Hi,
I've just to start to make queries in the database using the GeoSPARQL vocabulary and I am wondering whether there is something missing/wrong in this query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX ouext: <http://oracle.com/semtech/jena-adaptor/ext/user-def-function#>
PREFIX oext: <http://oracle.com/semtech/jena-adaptor/ext/function#>
PREFIX astro: <http://www.tng.iac.es/ontologies/2014/6/starguidecatalog#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX ORACLE_SEM_FS_NS: <http://oracle.com/semtech#timeout=100,qid=123>
SELECT ?name ?fWKT
WHERE { ?name astro:hasAstronomicalPoint ?point .
?point geo:asWKT ?fWKT .
FILTER (geof:sfWithin(?fWKT, "Polygon (0.0 0.0, 10.0 0.0, 10.0 0.1, 0.0 0.1)"^^geo:wktLiteral))
}
LIMIT 10
The query is based on the ontology described on this thread (Oracle semantic tech inference + Protege plugin). Basically, it's a simple thing. I just want to pull out the names within a box defined by the Polygon. Can anybody point out whether it is correct? I got an internal error from Joseki server (HTTP Status 500 - Unknown error)Thanks & Cheers