Re: How to mapping correctly?

94 views
Skip to first unread message

Guohui Xiao

unread,
Jun 20, 2022, 4:59:03 AM6/20/22
to l zw, ontop4obda
Hi, 

I noticed that there are several messages from you to the group but classified as spam. I only reply this message.

1. GeoSPARQL support is now part of the official release of Ontop since v4.1. You should simply use the standard distribution of Ontop, not the one on the deprecated Ontop-spatial. Sorry for the confusion.

2. We have a up-to-date tutorial: https://github.com/ontopic-vkg/destination-tutorial . This is highly recommended. You may just the end of the tutorial to see the final outcome by 'docker-compose -f docker-compose.solution.yml up'

Best regards,

Guohui



On Mon, Jun 20, 2022 at 10:53 AM l zw <lizhong...@gmail.com> wrote:

HI:

 

I’m newly in ontop-spatial, and I follow the example wiki tutorial and download the mapping files from ConstantB/Ontop-spatial-example, which contains lgd-bremen.obda and lgd-bremen.ttl,  But it seems that i cannot use it correctly.I import the example database according  the example wiki at first. Then i encounter some questions when i import or creating the mappings.

 

First and formost, Where can I download the latest ontop-spatial boundled protégé. Currently, I download Protege-5.0.0-beta-17, which contain ontopPro 1.16.1 from Ontop-spatial (uoa.gr), and it seems not the latest version which may lead to the following errors. So please tell me where I can find the latest version.

 

Second,How can i import lgd-bremen.obda using ontop-spatial boundled protégé.The example wiki says Ontop supports both .obda and R2RML mappings. But i cannot find the funciton tab.

 

Third, I turn to create mappings using mapping manager manually after creating datasource connection and successfully connected in ontop Mappings>datasource manager>datasource editor on protege desktop. But I cannot correctly add the mapping language, even when I copy the sample code in example wiki(lgd:{gid} lgd:landUse lgd:{type} . lgd:{gid} lgd:hasName {name} . lgd:{gid} geo:asWKT {geom}^^geo:wktLiteral . ),  and the Target (Triples Template) shows red box.Although it seems solved when I follow functions in mapping files - the st_asText(geom) propblem(see in following code), But I’m not very sure if I will encounter other questions.So please tell me why I cannot excute the sample code in example wiki.

 

mappingId       lgd_point

target          :poi-{name} a :poi ; :geom {geomWKT} ; :name {name}^^xsd:string .

source          select  gid, type, st_asText(geom) AS geomWKT, name from landuse

 

Fourth,I try to load the lgd-bremen.ttl through ontop>import R2RML mapings... on protege.But protege jump out the error:” An error occured while parsing the mappings.For more info,see the logs”. and logs shows as follows: 

 

java.lang.Exception: Unable to parse the query: <http://linkedgeodata.org/ontology#{gid}> <http://www.opengis.net/ont/geosparql#asWKT> {geom}^^http://www.opengis.net/ont/geosparql#wktLiteral . , it.unibz.krdb.obda.parser.TargetQueryParserException: <http://linkedgeodata.org/ontology#{gid}> <http://www.opengis.net/ont/geosparql#asWKT> {geom}^^http://www.opengis.net/ont/geosparql#wktLiteral .

        at it.unibz.krdb.obda.protege4.utils.QueryPainter.recolorQuery(QueryPainter.java:344)
        at it.unibz.krdb.obda.protege4.utils.OBDAMappingListRenderer.prepareRenderer(OBDAMappingListRenderer.java:432)
        at it.unibz.krdb.obda.protege4.utils.OBDAMappingListRenderer.getListCellRendererComponent(OBDAMappingListRenderer.java:377)        ……Unknown Source)…..
     

So, Please help me solve these questions or point out my error, Thanks a lot !!!

--
Please follow our guidelines on how to report a bug https://ontop-vkg.org/community/contributing/bug-report
---
You received this message because you are subscribed to the Google Groups "ontop4obda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ontop4obda+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ontop4obda/c091e6da-65db-43ec-b980-a2ac790bab11n%40googlegroups.com.


--
Guohui Xiao, PhD
http://www.ghxiao.org
Reply all
Reply to author
Forward
0 new messages