Currently RDFib serializes using all bound prefixes - both those that are set automatically like RDF ("rdf") and OWL etc., as well as those you set manually (g.bind(...)) but also invents some, ns, ns2 etc. This invention is problematic as those prefixes are not in the Namespace Manager and won't always be the same between serializations.
We should remove the auto-creation of prefixes.
We should also perhaps provide prefixes for all Namespaces/ClosedNamesapces/DefinedNamespaces given that many are well known. If we do, they should be default but able to be overridden manually.
While we are at it: remove the ability to import some Namespaces ("RDF", "RDFS") from rdflib and only use rdflib.namespace.
Currently RDFib serializes using all bound prefixes - both those that are set automatically like RDF ("rdf") and OWL etc., as well as those you set manually (
g.bind(...)) but also invents some,ns,ns2etc. This invention is problematic as those prefixes are not in the Namespace Manager and won't always be the same between serializations.We should remove the auto-creation of prefixes.
We should also perhaps provide prefixes for all Namespaces/ClosedNamesapces/DefinedNamespaces given that many are well known. If we do, they should be default but able to be overridden manually.
While we are at it: remove the ability to import some Namespaces ("RDF", "RDFS") from rdflib and only use rdflib.namespace.