Copyright © 2021 Driebit BV
extract_edges/2 | Extract standard Zotonic edges from an RDF document. |
extract_props/1 | Extract standard Zotonic properties from an RDF document. |
extract_resource/2 | Extract standard Zotonic src import from an RDF document. |
map_values/1 | Map all values in the RDF doc to values we can handle in the system. |
mapping/1 | Check if a property can be mapped to a standard property. |
to_simple_value/1 | Translate the given value to a simpler value. |
extract_edges(RDFDoc, Context) -> Edges
Extract standard Zotonic edges from an RDF document. The document is a "compact" document returned by zotonic_rdf. This collects the @id attributes in the top-level predicates of the document.
extract_props(RDFDoc) -> Props
Extract standard Zotonic properties from an RDF document. The document is a "compact" document returned by zotonic_rdf. All predicates in the document are of the form "namespace:term", for example: "dc:title". The namespaces are the ones defined in zotonic_rdf.
extract_resource(RDFDoc, Context::z:context()) -> {ok, Import} | {error, term()}
Extract standard Zotonic src import from an RDF document. The document is a "compact" document returned by zotonic_rdf.
map_values(V) -> any()
Map all values in the RDF doc to values we can handle in the system
mapping(Prop::binary()) -> binary() | undefined
Check if a property can be mapped to a standard property. This is used in m_rsc:p/3 for fetching namespaced properties.
to_simple_value(V::map()) -> error | term()
Translate the given value to a simpler value
Generated by EDoc