I modified rdfbox.c to take out the two (!) checks that object to literals of type geo:wktLiteral with coordinate system URIs. Currently I'm loading a wikidata dump into virtuoso and nothing is complaining (so far).
I expect that working with this data will produce query-time errors when trying to do geographic operations on these values. Hopefully these errors will produce SPARQL errors that can be handled and not bring down virtuoso. peter PS: I would be nice to be able to turn the errors into warnings, but I couldn't figure out how to do that. PPS: It also would be nice to have an option that ignores triples with problems when loading large RDF documents. I think that this has been asked for in the past as well. On 11/10/2016 05:29 AM, Jerven Tjalling Bolleman wrote: > Dear Kingsley, > > I imagine that Peter is referring to > > Req 10 > All RDFS Literals of type geo:wktLiteral shall consist of an > optional URI identifying the coordinate reference system followed by > Simple Features Well Known Text (WKT) describing a geometric value. > Valid geo:wktLiterals are formed by concatenating a valid, > absolute URI as defined in [RFC 2396], one or more spaces (Unicode > U+0020 character) as a separator, and a WKT string as defined in > Simple Features [ISO 19125-1]. > > From page vii of the GeoSPARQL standard. However, I can imagine that you > have > few customers demanding GeoSPARQL support for Mars at this time ;) > > So it is just a feature not yet implemented... > > Regards, > Jerven > > On 2016-11-10 14:06, Kingsley Idehen wrote: >> On 11/9/16 10:25 PM, Peter F. Patel-Schneider wrote: >>> Through a process of bisection I found the datum that is not handled >>> by >>> virtuoso. It is >>> >>> wd:Q24227 a wikibase:Item ; >>> wdt:P625 "<http://www.wikidata.org/entity/Q111> Point(351.83 >>> -14.47)"^^geo:wktLiteral . >>> >>> i.e., a point on Mars. >>> >>> Is virtuoso supposed to be able to handle other coordinate systems? >>> If not, >>> how can it handle Wikidata and other information sources that have >>> points not >>> on the surface of the earth? >>> >>> peter >> >> A valid RDF triple (or datum) would take the form: >> >> wd:Q24227 a wikibase:Item ; >> wdt:P625 "Point(351.83-14.47)"^^geo:wktLiteral . >> >> Thus, you have a problematic triple. >> >> >> Kingsley >> >> >>> >>> >>> On 11/08/2016 07:23 PM, Hugh Williams wrote: >>>> Hi Peter, >>>> >>>> What is the Virtuoso version your are using ( run “virtuoso-t -?”) ? >>>> >>>> Against the latest 07.20.3217 build the following point geometry >>>> loads >>>> successfully with the ttlp function: >>>> >>>> SQL> ttlp ('@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> >>>> @prefix >>>> virtrdf: <http://www.openlinksw.com/schemas/virtrdf#> <point> >>>> geo:geometry >>>> "point(1.2 22.4"^^virtrdf:Geometry .', 'xxx', 'graph'); >>>> >>>> Done. -- 10 msec. >>>> SQL> sparql select * from <graph> where {?s ?p ?o}; >>>> s >>>> p >>>> o >>>> LONG VARCHAR >>>> LONG VARCHAR >>>> LONG VARCHAR >>>> _______________________________________________________________________________ >>>> >>>> http://xxx/point >>>> http://www.w3.org/2003/01/geo/wgs84_pos#geometry >>>> POINT(1.2000000476837 22.39999961853) >>>> >>>> 1 Rows. -- 2 msec. >>>> SQL> >>>> >>>> Best Regards >>>> Hugh Williams >>>> Professional Services >>>> OpenLink Software, Inc. // >>>> http://www.openlinksw.com/ >>>> Weblog -- http://www.openlinksw.com/blogs/ >>>> LinkedIn -- http://www.linkedin.com/company/openlink-software/ >>>> Twitter -- http://twitter.com/OpenLink >>>> Google+ -- http://plus.google.com/100570109519069333827/ >>>> Facebook -- http://www.facebook.com/OpenLinkSoftware >>>> Universal Data Access, Integration, and Management Technology >>>> Providers >>>> >>>>> On 9 Nov 2016, at 02:34, Peter F. Patel-Schneider >>>>> <pfpschnei...@gmail.com >>>>> <mailto:pfpschnei...@gmail.com>> wrote: >>>>> >>>>> Hi: >>>>> >>>>> I'm trying to get virtuoso to work with geometry data types. >>>>> >>>>> I noticed that the version of virtuoso that I am using requires that >>>>> the data >>>>> type names be in ALL CAPS (e.g., POINT). Has this been fixed in >>>>> the current >>>>> version of virtuoso? >>>>> >>>>> peter >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Developer Access Program for Intel Xeon Phi Processors >>>>> Access to Intel Xeon Phi processor-based developer platforms. >>>>> With one year of Intel Parallel Studio XE. >>>>> Training and support from Colfax. >>>>> Order your platform today. http://sdm.link/xeonphi >>>>> _______________________________________________ >>>>> Virtuoso-users mailing list >>>>> Virtuoso-users@lists.sourceforge.net >>>>> <mailto:Virtuoso-users@lists.sourceforge.net> >>>>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >>> ------------------------------------------------------------------------------ >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> _______________________________________________ >>> Virtuoso-users mailing list >>> Virtuoso-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >> >> >> -- >> Regards, >> >> Kingsley Idehen >> Founder & CEO >> OpenLink Software (Home Page: http://www.openlinksw.com) >> >> Weblogs (Blogs): >> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ >> Blogspot Blog: http://kidehen.blogspot.com >> Medium Blog: https://medium.com/@kidehen >> >> Profile Pages: >> Pinterest: https://www.pinterest.com/kidehen/ >> Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen >> Twitter: https://twitter.com/kidehen >> Google+: https://plus.google.com/+KingsleyIdehen/about >> LinkedIn: http://www.linkedin.com/in/kidehen >> >> Web Identities (WebID): >> Personal: http://kingsley.idehen.net/dataspace/person/kidehen#this >> : >> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this >> >> >> >> ------------------------------------------------------------------------------ >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> _______________________________________________ >> Virtuoso-users mailing list >> Virtuoso-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users