Just a remark: due some issues with other databases, the GeoSPARQL support is still in a separate branch: https://github.com/apache/marmotta/tree/MARMOTTA-584
On Wed, Oct 12, 2016 at 7:25 AM, Jakob Frank <jakob.fr...@redlink.co> wrote: > Hi Juan, > > as the website correctly says, GeoSPARQL is only available in 3.4.0 which > has not been officially released yet. > If you need GeoSPARQL support in Marmotta, you need to build it from > source yourself. Instructions for that can be found on the website [1], > look for "Installation from Source". > > Best, > Jakob > > [1] http://marmotta.apache.org/installation.html > > Juan David Rondon Diaz <jdrond...@unal.edu.co> schrieb am Di., 11. Okt. > 2016, 21:43: > >> Hi, >> >> May i have your help with the next issue: >> >> I have an Apache Marmotta Server (3.3.0) on a GNU/Linux OS (OpenSUSE >> 13.2) with PostgreSQL (9.5.4) and PostGIS 2.2.3. >> >> I have loaded the RDF avalaible in the Marmotta Wiki >> <https://wiki.apache.org/marmotta/MARMOTTA-584/UserDocumentation>on my >> Marmotta server but i cant get get any result when trying to use GeoSPARQL. >> >> For example when i use the next query: >> >> PREFIX geoes: <http://geo.marmotta.es/ontology#>PREFIX geo: >> <http://www.opengis.net/ont/geosparql#>PREFIX geof: >> <http://www.opengis.net/def/function/geosparql/>SELECT DISTINCT >> ?labelMunicipios WHERE { ?subject a >> <http://geo.marmotta.es/ontology#provincia>. ?subject rdfs:label >> "Madrid"@es. ?subject geoes:hasExactGeometry ?geo. ?geo geo:asWKT ?wkt. >> ?subject2 a <http://geo.marmotta.es/ontology#municipio>. ?subject2 >> rdfs:label ?labelMunicipios. ?subject2 geoes:hasExactGeometry ?geo2. ?geo2 >> geo:asWKT ?wkt2. FILTER (geof:sfContains(?wkt, ?wkt2))} ORDER BY >> ?labelMunicipiosLIMIT 10 >> >> I got the error: >> >> error while evaluating query >> >> >> And this is the log: >> >> 14:37:55.697 ERROR o.a.m.p.s.s.sparql.SparqlServiceImpl - error while >> evaluating query: {} >> org.openrdf.query.QueryEvaluationException: Unknown function ' >> http://www.opengis.net/def/function/geosparql/sfContains' >> at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl. >> evaluate(EvaluationStrategyImpl.java:1529) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.impl.EvaluationStrategyImpl. >> evaluate(EvaluationStrategyImpl.java:995) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.impl. >> EvaluationStrategyImpl.isTrue(EvaluationStrategyImpl.java:1842) >> ~[sesame-queryalgebra-evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> FilterIterator.accept(FilterIterator.java:98) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> FilterIterator.accept(FilterIterator.java:33) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.FilterIteration.findNextElement(FilterIteration.java:82) >> ~[sesame-util-2.7.13.jar:na] >> at info.aduna.iteration.FilterIteration.hasNext(FilterIteration.java:54) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:69) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:30) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:69) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:30) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:69) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:30) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:69) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> JoinIterator.getNextElement(JoinIterator.java:30) ~[sesame-queryalgebra- >> evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.lookAhead(LookAheadIteration.java:91) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.LookAheadIteration.hasNext(LookAheadIteration.java:60) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.algebra.evaluation.iterator. >> OrderIterator.createIteration(OrderIterator.java:90) >> ~[sesame-queryalgebra-evaluation-2.7.13.jar:na] >> at >> info.aduna.iteration.DelayedIteration.hasNext(DelayedIteration.java:73) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68) >> ~[sesame-util-2.7.13.jar:na] >> at info.aduna.iteration.LimitIteration.hasNext(LimitIteration.java:73) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.FilterIteration.findNextElement(FilterIteration.java:79) >> ~[sesame-util-2.7.13.jar:na] >> at info.aduna.iteration.FilterIteration.hasNext(FilterIteration.java:54) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.ConvertingIteration.hasNext(ConvertingIteration.java:73) >> ~[sesame-util-2.7.13.jar:na] >> at >> info.aduna.iteration.IterationWrapper.hasNext(IterationWrapper.java:68) >> ~[sesame-util-2.7.13.jar:na] >> at org.openrdf.query.QueryResults.report(QueryResults.java:155) >> ~[sesame-query-2.7.13.jar:na] >> at >> org.openrdf.repository.sail.SailTupleQuery.evaluate(SailTupleQuery.java:76) >> ~[sesame-repository-sail-2.7.13.jar:na] >> at org.apache.marmotta.platform.sparql.services.sparql. >> SparqlServiceImpl.query(SparqlServiceImpl.java:344) >> ~[marmotta-sparql-3.3.0.jar:3.3.0] >> at org.apache.marmotta.platform.sparql.services.sparql. >> SparqlServiceImpl.query(SparqlServiceImpl.java:351) >> ~[marmotta-sparql-3.3.0.jar:3.3.0] >> at org.apache.marmotta.platform.sparql.services.sparql. >> SparqlServiceImpl.access$700(SparqlServiceImpl.java:60) >> ~[marmotta-sparql-3.3.0.jar:3.3.0] >> at org.apache.marmotta.platform.sparql.services.sparql. >> SparqlServiceImpl$5.call(SparqlServiceImpl.java:290) >> [marmotta-sparql-3.3.0.jar:3.3.0] >> at org.apache.marmotta.platform.sparql.services.sparql. >> SparqlServiceImpl$5.call(SparqlServiceImpl.java:279) >> [marmotta-sparql-3.3.0.jar:3.3.0] >> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >> [na:1.8.0_40] >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> [na:1.8.0_40] >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> [na:1.8.0_40] >> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] >> 14:37:55.698 INFO o.a.m.p.s.s.sparql.SparqlServiceImpl - SPARQL query >> execution aborted due to exception >> >> >> I dont know if there's any other requirement that i am missing. >> >> By the way i am confused because in the Apache Marmotta >> <http://marmotta.apache.org/kiwi/geosparql.html> page says "in version >> 3.4.0 we have added GeoSPARQL support to our SPARQL >> <http://marmotta.apache.org/kiwi/sparql.html> implementation.". But the >> latest version is 3.3.0. >> >> Thanks for you help and sorry for my english. >> >> Juan David Rondón Díaz. >> M.Sc. (c) Geomatics >> Universidad Nacional de Colombia, Bogotá >> > -- > Jakob Frank > | http://redlink.co > | m: +43 699 10588742 | e: jakob.fr...@redlink.co > | http://at.linkedin.com/in/jakobfrank > -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 6602747925 e: sergio.fernan...@redlink.co w: http://redlink.co