lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
219 stars 52 forks source link

Configure Prefix For gendocs #135

Open tobiasschweizer opened 7 months ago

tobiasschweizer commented 7 months ago

Hi there,

RDFLib changed the default prefixes for schema.org so that schema refers to https://schema.org while the non-TLS version is now prefixed with schema1. This is all fine in the formal sense, however this looks weird in the docs.

Could there be a config option for gendocs so that the prefixes could be set explicitly? These could be passed to RDFLib as follows:

graph.namespace_manager.bind("schema", "http://schema.org/", override=True, replace=True)

https://github.com/RDFLib/pySHACL/issues/118#issuecomment-1026252226

Thanks for your feedback!