Hey Joost,
Another thing to try. Try changing the class for the "sail" bean id in your
spring-mongo-db-geo.xml file to org.apache.rya.indexing.GeoRyaSailFactory. If
that doesn't work, you can try adding the following properties to your "conf"
bean id:
-
-
Hi Eric,
I've now added the following lines to spring-mongodb-geo.xml:
sc.use_geo=true
sc.geo.predicates=${sc.geo.predicates}
After that, the application complained about an unknown class:
MongoGeoIndexer.
I've now added rya.geo.mongo as extra dependency for web.rya, but the
result-set remains
Nevermind. Make that change in "spring-mongodb-geo.xml" NOT
"spring-root-extensions.xml". And add all the other geo related properties in
there over too.
sc.geo.table=${sc.geo.table}
sc.geo.predicates=${sc.geo.predicates}
sc.geo.numPartitions=${sc.geo.numPartitions}
Sounds like it's still not enabling geo entirely. "sc.use_geo" appears to
never be set in the conf. Modify "spring-root-extensions.xml":
Add in "sc.use_geo" to the "hadoopConf":
...
...
sc.use_geo=${sc.use_geo}
...
...
Thanks,
-Eric White
Hey Joost,
Have a look at the following IT to make sure that you are formatting your
queries correctly:
https://github.com/apache/incubator-rya/blob/master/extras/rya.geoindexing/geo.mongo/src/test/java/org/apache/rya/indexing/mongo/MongoGeoIndexerFilterIT.java
Carefully compare your geo
Hi Eric,
Thanks for replying!
Indexing and querying non-geo data is working well. However, when filtering
by a GeoSPARQL predicate, the query runs without errors, but the result set
is empty (where I would expect 1 binding). Please see the exact data and
query in my initial posting. Indexing
Joost,
You might want to confirm that non-geo data can be added and queried. If only
geo data isn't working then try stopping Tomcat and modifying your
"/webapps/web.rya/WEB-INF/spring/spring-mongodb-geo.xml" file (back
it up first).
Change the line:
To:
Save the file and then
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: