Skip to main content

to_rdf

Function to_rdf 

Source
pub fn to_rdf(expanded: &Value) -> Result<Vec<Quad>, Error>
Expand description

The JSON-LD “Deserialize JSON-LD to RDF” algorithm, over a document expand_for_rdf expanded.

Statements naming a relative IRI, or a blank node as a predicate, are left out, as the algorithm leaves them out; so is a literal whose language tag is not well formed.