-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GEO namespace missing from 6.0.0 #1371
Comments
Hi @timcroydon, looks like the big pull request #1074 to migrate The new Alternatively, you can use the |
Thank you. I wasn't sure if its removal was an oversight or intentional. I tried the tool suggested but I haven't immediately been able to get it running - I get a load of parsing errors like the following (using SKOS as an example):
Not had time to investigate but will report back if I get time to try it properly. In the meantime, if anyone needs a quick workaround, creating the following definition works fine: from rdflib import URIRef
from rdflib.namespace import ClosedNamespace
# GEO namespace was removed in RDFLib 6.0.0 so recreate it ourselves here
GEO = ClosedNamespace(
uri=URIRef("http://www.opengis.net/ont/geosparql#"),
terms=[
"Feature",
"Geometry",
"SpatialObject",
"asGML",
"asWKT",
"coordinateDimension",
"defaultGeometry",
"dimension",
"ehContains",
"ehCoveredBy",
"ehCovers",
"ehDisjoint",
"ehEquals",
"ehInside",
"ehMeet",
"ehOverlap",
"gmlLiteral",
"hasGeometry",
"hasSerialization",
"isEmpty",
"isSimple",
"rcc8dc",
"rcc8ec",
"rcc8eq",
"rcc8ntpp",
"rcc8ntppi",
"rcc8po",
"rcc8tpp",
"rcc8tppi",
"sfContains",
"sfCrosses",
"sfDisjoint",
"sfEquals",
"sfIntersects",
"sfOverlaps",
"sfTouches",
"sfWithin",
"spatialDimension",
"wktLiteral",
],
) |
The parser error is since RDFLin 6.0 seems to have changed the default input format to |
Sorry, should have been clearer - those errors were when I tried running the |
No, you're good. The |
I noticed the GEO namespace (http://www.opengis.net/ont/geosparql#) that was present in earlier commits is no longer available in 6.0.0.
I know it's not part of SPARQL 1.1 itself, but are there any plans to reintroduce it, or is best to reimplement it myself locally as a
ClosedNamespace
?The text was updated successfully, but these errors were encountered: