Skip to main content

Crate jsonld_serialization

Crate jsonld_serialization 

Source
Expand description

Serialization of RDF datasets into JSON-LD.

Turns an RDF dataset — or any type implementing ld_core::LinkedData, which includes types deriving it — into a jsonld_core::ExpandedDocument. This is the inverse of the to_rdf direction implemented in jsonld-core.

Blank nodes are resolved through the interpretation the dataset was built against, so the same resource seen twice yields one node object rather than two.

Enums§

Error
Error raised while serializing a document.

Functions§

serialize
Serialize the given Linked-Data value into a JSON-LD document.
serialize_node
Serialize the given Linked-Data value into a JSON-LD node object.
serialize_node_with
Serialize the given Linked-Data value into a JSON-LD node object using a custom vocabulary and interpretation.
serialize_object
Serialize the given Linked-Data value into a JSON-LD object.
serialize_object_with
Serialize the given Linked-Data value into a JSON-LD object using a custom vocabulary and interpretation.
serialize_with
Serialize the given Linked-Data value into a JSON-LD document using a custom vocabulary and interpretation.