jupyrdf / ipyradiant

Jupyter widgets for working with RDF graphs.
BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

Proper way to process namespace information #65

Open zwelz3 opened 3 years ago

zwelz3 commented 3 years ago

This ticket is interested in a common process for handling namespaces.

Currently, namespaces must be defined like so:

initNs = {
    "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
    "res": "https://swapi.co/resource/",
    "voc": "https://swapi.co/vocabulary/",
    "base": "https://swapi.co/resource/",
}

We should be able to support the values being URIRef and Namespace as well. The entire initNs should also support being a NamespaceManager.

We need a common way to process the namespace (maybe a util) so that queries and other methods can use the namespace object without worry.