Questions tagged [geosparql]

For question related to GeoSPARQL, a standard for representation and querying of geospatial linked data for the Semantic Web from the Open Geospatial Consortium (OGC). Please do not use for triplestore-specific geospatial SPARQL extensions.

GeoSPARQL is a standard for representation and querying of geospatial linked data for the from the Open Geospatial Consortium (OGC).

The definition of a small ontology based on well-understood OGC standards is intended to provide a standardized exchange basis for geospatial data which can support both qualitative and quantitative spatial reasoning and querying with the database query language.

61 questions
1
vote
1 answer

Is there a JavaScript implementation of OGC GeoSPARQL functions?

I am aware of various Java implementations of OGC GeoSPARQL standard, provided by RDF4J, Jena, GraphDB and other vendors. Now I am looking for JavaScript libraries that implement whole set of GeoSPARQL functions, or some subset of them. I tried…
RedCrusaderJr
  • 350
  • 1
  • 12
1
vote
1 answer

GeoSparql functions not working as expected in RDF4J's repository

Colleagues and I are working with RDF dataset and RDF4J's in-Memory repository and we are trying to execute GeoSparql queries while using geometry data in WKT format, as shown below: @prefix geo: . @prefix sf:…
RedCrusaderJr
  • 350
  • 1
  • 12
1
vote
0 answers

Virtuoso: st_intersects() distance between points does not match with precision parameter

The LinkedGeoData site has some examples of SPARQL queries. One example says it retrieves all amenities 100m from Leipzig Central Station. However, the SPARQL query results have much more distance than 100m from the Central Station. The example's…
João Almeida
  • 45
  • 1
  • 1
  • 8
1
vote
1 answer

SPARQL - Get all Data Properties directly assigned to an individual and all indirectly assigned to other individuals via an object property

My code so far is this: PREFIX : SELECT ?property ?value WHERE{ ?poi :POIhasID 7878787. ?poi ?property ?value; filter (?property not in (rdf:type)) …
GGEv
  • 843
  • 9
  • 23
1
vote
0 answers

GraphDB 8.10 Geosparql geof:nearby how to

I am quite new to sparql and geosparql and I am using GraphDB 8.10 and have already enabled geosparql plugin by executing this in SPARQL interface PREFIX : INSERT DATA { _:s :enabled "true" . } I have…
GGEv
  • 843
  • 9
  • 23
1
vote
1 answer

GraphDB 8.6.1 Free - Geospatial predicates don't work with runtime but work with Workbench

I am using a repo with no ruleset enabled. Query_1 uses geof:sfIntersects() and Query_2 uses geo:sfIntersects predicate. With the Workbench v8.6.1 Query_1 executes properly and Query_2 does not execute properly returning no rows, as described in the…
1
vote
0 answers

Spatial SPARQL Queries in RDF4J with Lucene support

I am testing RDF4J on spatial queries. I have deployed the RDF4J Server and Workbench apps on Appache Tomcat 9.0.12. My current dataset has 853 LineStrings and 88 Polygons represented asWKT fields. But the performance of query varied from type of…
AMIR RAZA
  • 11
  • 1
1
vote
1 answer

How to filter the simple Subject in a SPARQL Query

I guess I am stuck at the basics with SPARQL. Can someone help ? I simply wnat to filter all subjects containing "Mountain" of an RDS database. Prefix lgdr: Prefix lgdo: Select…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
1
vote
1 answer

RDF4J and GEOSparql spatial functions not working (or not implemented)

I'm using RDF4J as I got caught by the advertised implementation of GEOSPARQL (which I didn't find in other RDF frameworks). I followed basic guides and tutorial, but unfortunately I haven't been able to perform basically any of the advertised…
McKracken
  • 389
  • 4
  • 17
1
vote
1 answer

GraphDB GeoSPARQL projection support

I'm having some issues loading data with non-default projections into GraphDB. Using the example files from the documentation website, but changing the projection from CRS84 to CRS83, results in no intersections being found when running example 2…
nickrobison
  • 150
  • 2
  • 14
1
vote
0 answers

GeoSPARQL or stSPARQL to get length of line object

Is there any way to calculate the total distance of a line object (e.g. coastline) using GeoSPARQL or stSPARQL?
LostIT
  • 247
  • 2
  • 10
1
vote
1 answer

How to set geometry of feature as union of multiple geometries

I want to organise my administrative geographies based on the GeoSPARQL standard. This question is moved by the obvious consideration that administrative units are hierarchical and nested. So for example, the geo:feature (see…
CptNemo
  • 6,455
  • 16
  • 58
  • 107
1
vote
1 answer

SPARQL Transitive Query with Unique Predicates

I have a number of triples organized like following. :A :hasB :B :B :hasC :C :C :hasD :D :D :hasE :E ............ :X :hasY :Y :Y :hasZ :Z All the predicates are unique. I need to write two SPARQL queries. Query 1 will find all the predicates…
Beautiful Mind
  • 5,828
  • 4
  • 23
  • 42
1
vote
0 answers

Distance in linkedgeodata with sparql

I need to calculate distance between two points like this: Prefix rdfs: Prefix ogc: Prefix geom: Prefix lgdo:…
BADWOLF
  • 47
  • 9
1
vote
1 answer

GEOSPARQL "within" and stardog

I'm struggling with the geosparql in particular geo:Within. The documentation I can find at: open gis documentation states that it needs a geo:SpatialObject and that a geo:Feature is a type of geo:SpatialObject. I have a number of features which…
ChrisUK
  • 66
  • 5