Skip to content
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

Intoduce WGS-84 DefinedNamespace #1709

Closed
kvjrhall opened this issue Feb 9, 2022 · 3 comments · Fixed by #1710
Closed

Intoduce WGS-84 DefinedNamespace #1709

kvjrhall opened this issue Feb 9, 2022 · 3 comments · Fixed by #1710

Comments

@kvjrhall
Copy link
Contributor

kvjrhall commented Feb 9, 2022

WGS84 (html, rdf) is a small vocabulary that is commonly used in documents from dbpedia, geonames, and others. The vocabulary hasn't changed since 2006, suggesting that ongoing maintenance effort for the namespace should be minimal.

@kvjrhall
Copy link
Contributor Author

kvjrhall commented Feb 9, 2022

There do seem to be some gotchas here. Example seen so far:

  1. dbpedia and others will commonly use geo prefix for this vocabulary, which we currently use for GeoSPARQL. I'll use wgs84 as the prefix for this vocab.
  2. dbpedia uses a term geometry from this namespace that is not part of the specification. I've included it in the vocabulary class and documented the non standard nature of it as well as why it's there.

@nicholascar
Copy link
Member

Fee free to contribute a DefinedNamespace of the WGS-84 content if you like. You can add it to the files in https://github.com/RDFLib/rdflib/tree/master/rdflib/namespace.

There is no RDF prefix given within a DefinedNamespace class, so it doesn't matter what people use when you create that. Also, we are about to remove the larger set of prefixes bound to graphs here, https://github.com/RDFLib/rdflib/blob/master/rdflib/namespace/__init__.py#L350-L376, since this is problematic for some users.

Also, note that on prefic.cc the prefix pos is registered for WGS-84 and that's what's used in the WGS-84-> GeoSPARQL 1.1 mapping available https://opengeospatial.github.io/ogc-geosparql/geosparql11/spec.html#_e_2_wgs84_geo_positioning_an_rdf_vocabulary_pos.

So you don't really have to worry much about geo v. wgs84 v. pos in RDFLib itself as you don't have to declare it for a new DefinedNamespace but I'd recommend going with pos when you want to use a prefix generally since, in the future, we may better link up RDFLib with prefix.cc.

@kvjrhall
Copy link
Contributor Author

kvjrhall commented Mar 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants