Function rdf_to_value

Source
pub fn rdf_to_value(defn: &RdfDef) -> Value
Expand description

Convert a SDML RdfDef into a context object, in the form shown as JSON below.

{
    "__type": "rdf",
    "source_span": {},              // optional
    "name": "Identifier",
    "annotations": []               // optional
}