Skip to main content

Crate sophia_c14n

Crate sophia_c14n 

Source
Expand description

This crate is part of Sophia, an RDF and Linked Data toolkit in Rust.

This crate provides function to canonicalize graphs and datasets.

It currently implements the RDFC-1.0 algorithm.

TODO list:

  • check that UTF-8 byte-by-byte ordering is indeed equivalent to code point ordering.
  • use c14n in sophia_isomorphism, replacing the current incomplete algorithm

Modules§

hash
Define the HashFunction trait as well as standard hash functions.
rdfc10
I provide the implementation of the RDFC-1.0 algorithm described at https://www.w3.org/TR/rdf-canon/
sophia
I provide Sophia-C14N, a canonicalization algorithm for RDF Datasets, which unlike RDFC-1.0 supports RDF 1.2 and Sophia’s generalized RDF.

Enums§

C14nError
Canonicalization error.