Skip to content

minimum geosparql example #4504

Discussion options

You must be logged in to vote

I am not immediately sure why we don't have those as constants in our vocabulary classes - seems an odd oversight. I've logged a feature request: #4505.

In the meantime though, it shouldn't stop you from creating these models using RDF4J. You can create all relevant IRIs yourself, for example like so:

import static org.eclipse.rdf4j.model.util.Values.iri;

model.add(eiffelTower, iri(GEO.NAMESPACE, "hasGeometry"), coordinateset);
model.add(coordinateset, RDF.TYPE, iri(GEOF.NAMESPACE, "Point"));

Doing them inline here for brevity but of course if you plan reusing them, you're best off creating your own reusable constants.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by abrokenjester
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants