Jelly-RDF / jelly-protobuf

Protocol Buffers and gRPC specifications for the Jelly protocol
Apache License 2.0
4 stars 0 forks source link

Proposal: prefix declarations in Jelly-RDF #12

Open Ostrzyciel opened 3 days ago

Ostrzyciel commented 3 days ago

Many RDF serialization formats (e.g., Turtle, RDF/XML, some binary formats) have a way to preserve named prefix declarations. For example, in Turtle:

PREFIX stax: <https://w3id.org/stax/ontology#>

This is currently not possible in Jelly-RDF. Although we do have the prefix lookup table, this is not the same thing as a prefix declaration. Prefixes in the lookup table are arbitrary and only are there to improve the compression ratio, they also don't have names.

This proposal is to introduce such a functionality to Jelly-RDF.

Scope:

Implementation:

Motivation and related issues:

Ostrzyciel commented 3 days ago

Maybe call this "namespace declarations" instead, to avoid confusion with the prefix lookup table. The "namespace" terminology is already used by RDF4J and rdflib (but not Jena), so it would make sense.