RDF/CBOR: A CBOR-based Serialization of RDF

Hello semantic-web,

I'd like to share some recent work towards a binary serialization of RDF
using CBOR:

https://openengiadina.codeberg.page/rdf-cbor/

CBOR (RFC 8949) is a binary data serialization that provides basic data
types (string, integer, arrays, etc.) as well as extendable tags for
annotating more complex data types. RDF/CBOR encodes RDF into CBOR
types. CBOR types are re-used for efficient binary serialization of
literal values and certain binary IRIs (e.g. UUIDs).

RDF/CBOR is very much inspired by the HDT serialization and uses a very
similar encoding (front-coded dictionaries and BitMapTriples). Unlike
HDT, RDF/CBOR is optimized for small pieces of content that are created,
transported and read by possibly constrained devices.

The serialization is defined using the Concise Data Definition Language
(CDDL; RFC 8610) which allows a very concise and precise specification.

RDF/CBOR also allows groups of RDF statements to be content-addressed,
i.e. identifiers are the cryptographic hash of the serialized
statements. This can be used for cryptographic signature schemes and
makes RDF viable on distributed, peer-to-peer systems.

I look forward to your feedback and comments.

Best regards,
pukkamustard

Received on Sunday, 18 September 2022 19:58:11 UTC