0

I'm struggling with the GeoSPARQL functions. I have two points defined in my ontology. Using this query I get them in my results:

PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>

SELECT ?what ?met
WHERE {
  ?what geo:hasGeometry ?met .
  FILTER geof:within( ?met ,"ENVELOPE(51.900991, 51.913594, 4.502206, 4.476328)"^^geo:wktLiteral  ) .
}

The question is why http://www.example.org/POI#ErasmusBrug is not part of the search result. Should it be possible to search for polygons within an envelop?

Which GeoSPARQL functions are available in Stardog? Any good example resource?

The ontology I use can be found here

Mark Miller
  • 3,011
  • 1
  • 14
  • 34
  • The documentation clearly lists the supported functions: *"The operators supported by Stardog are geof:relate, geof:distance, geof:within, geof:nearby and geof:area."* – UninformedUser Dec 13 '17 at 19:06

2 Answers2

0

The Stardog documentation for GeoSPARQL can be found here. For more specific support, please come visit us at Stardog Community.

snowell
  • 181
  • 2
0

I found out that there is an error in the log file of Stardog upon importing the data:

WARN 2017-12-14 08:31:30,989 [XNIO-1 task-24] com.complexible.stardog.spatial.io.StatementSourceGeospatialSource:parse(95): Failed to parse unknown/malformed shape POLYGON((4.476027 51.91137, 4.497099 51.911291, 4.497142 51.905307, 4.75813 51.905201, 4.476027 51.91137 )). Skipping this record

What could be wrong with this polygon?