Skip to content

Non-deterministic prefix creation #1168

Description

@nicholascar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions