Hey Joost, After glancing at the pom file for web.rya, it appears that you are enabling two profiles that will build different versions of the .war. Have a look at the two profiles that appear at lines 189 and 196 in the web.rya pom in the following link:
https://github.com/meiercaleb/incubator-rya/blob/master/web/web.rya/pom.xml In particular, -P mongodb will build and deploy a mongo backed web service with no geo enabled, and -P geoindexing deploys a mongo backed web service with geo indexing enabled. Could you try building using only the geoindexing profile? Hopefully that helps. Caleb Caleb A. Meier, Ph.D. Senior Software Engineer ♦ Analyst Parsons Corporation 1911 N. Fort Myer Drive, Suite 800 ♦ Arlington, VA 22209 Office: (703)797-3066 [email protected] ♦ www.parsons.com -----Original Message----- From: Joost Farla <[email protected]> Sent: Sunday, May 06, 2018 5:29 AM To: [email protected] Subject: How to enable GeoSPARQL support for endpoint on MongoDB? Hi there, I've recently started experimenting with Rya on MongoDB. I've been able to load geospatial data into MongoDB. The rya__triples and rya_rya_geo collections are populated without issues. However, when I try to use GeoSPARQL functions via the provided SPARQL endpoint implementation (web.rya), I get an empty result-set. I've also tried to query using RDF4J directly, but same result. I'm using the latest master (4.0.0-SNAPSHOT) and I've built the .war with: mvn clean install -P mongodb -P geoindexing -DskipTests Env config (relevant part): sc.useMongo=true sc.use_geo=true sc.geo.predicates=https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_ont_geosparql-23asWKT&d=DwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=vuVdzYC2kksVZR5STiFwDpzJ7CrMHCgeo_4WXTD0qo8&m=hL9E1Bkzma7jWCW41bMKQOYWz2WY8WLuFGPmqH4hrdM&s=SJ_BJ1r2sYikKHP-BDWHYi8sdx-JPGSFvLqcpH-Yg0I&e= mongo.db.collectionprefix=rya_ mongo.geo.maxdist=1e-10 The test data: @prefix geo: <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_ont_geosparql-23&d=DwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=vuVdzYC2kksVZR5STiFwDpzJ7CrMHCgeo_4WXTD0qo8&m=hL9E1Bkzma7jWCW41bMKQOYWz2WY8WLuFGPmqH4hrdM&s=52Htwc-sfw0ZKjI8kGG5i3H4oytUmbntwPY0rWBtEtE&e=> . @prefix ex: <https://urldefense.proofpoint.com/v2/url?u=http-3A__example.org_&d=DwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=vuVdzYC2kksVZR5STiFwDpzJ7CrMHCgeo_4WXTD0qo8&m=hL9E1Bkzma7jWCW41bMKQOYWz2WY8WLuFGPmqH4hrdM&s=BRLJlfnTwK-kcz_WOUE1bhr_TSULRNWnHs7cS-eG7Qo&e=> . ex:Foo geo:hasGeometry ex:FooGeometry. ex:FooGeometry geo:asWKT "POINT(5.091025039849683 51.55845016358455)"^^geo:wktLiteral. The test query: PREFIX geo: <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_ont_geosparql-23&d=DwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=vuVdzYC2kksVZR5STiFwDpzJ7CrMHCgeo_4WXTD0qo8&m=hL9E1Bkzma7jWCW41bMKQOYWz2WY8WLuFGPmqH4hrdM&s=52Htwc-sfw0ZKjI8kGG5i3H4oytUmbntwPY0rWBtEtE&e=> PREFIX geof: <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.opengis.net_def_function_geosparql_&d=DwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=vuVdzYC2kksVZR5STiFwDpzJ7CrMHCgeo_4WXTD0qo8&m=hL9E1Bkzma7jWCW41bMKQOYWz2WY8WLuFGPmqH4hrdM&s=f89OhfL5oDrcth-BdEvVqs50OWIjuyAKc0ghUyiTFUg&e=> SELECT ?s ?wkt WHERE { ?s geo:asWKT ?wkt . FILTER(geof:sfWithin(?wkt, "POLYGON((5.034360992118195 51.595144381441415,5.149717437430695 51.595144381441415,5.149717437430695 51.52086334303003,5.034360992118195 51.52086334303003,5.034360992118195 51.595144381441415))"^^geo:wktLiteral)) } The indexed POINT geometry is located within the provided POLYGON. Therefore, I would expect one binding-set as result. What should I do to get this working? Thanks!! NOTICE: This email message and all attachments transmitted with it may contain privileged and confidential information, and information that is protected by, and proprietary to, Parsons Corporation, and is intended solely for the use of the addressee for the specific purpose set forth in this communication. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited, and you should delete this message and all copies and backups thereof. The recipient may not further distribute or use any of the information contained herein without the express written authorization of the sender. If you have received this message in error, or if you have any questions regarding the use of the proprietary information contained therein, please contact the sender of this message immediately, and the sender will provide you with further instructions.
