Module rdf_triples

Combine a list of triples into a collection of JSON-LD (alike) documents.

Copyright © Copyright (c) 2021 Driebit BV

Description

Combine a list of triples into a collection of JSON-LD (alike) documents.

Function Index

compact/2Compact a doc, add namespaces and simplify values.
ns_compact/2Compact a namespace in a predicate.
ns_expand/2Expand a namespace in a predicate.
to_docs/1Combine a list of triples into a collection of JSON-LD (alike) documents.

Function Details

compact/2

compact(Doc, Namespaces) -> Doc

Compact a doc, add namespaces and simplify values.

ns_compact/2

ns_compact(Pred, Ns) -> Pred

Compact a namespace in a predicate. For example, replaces: http://www.w3.org/2001/XMLSchema#integer with xsd:integer

ns_expand/2

ns_expand(Pred, Ns) -> Pred

Expand a namespace in a predicate. For example, replaces: xsd:integer with http://www.w3.org/2001/XMLSchema#integer

to_docs/1

to_docs(Triples) -> {ok, Docs}

Combine a list of triples into a collection of JSON-LD (alike) documents. Only non blank-node dcuments are returned. Blank nodes are substituted into the documents.


Generated by EDoc