Skip to main content

fact_to_jsonld

Function fact_to_jsonld 

Source
pub fn fact_to_jsonld(
    expr: &ClExpr,
    base_iri: &str,
    msg_id: &str,
    assertor: &str,
) -> Result<Value, String>
Expand description

Convert one CL fact to a JSON-LD claim node.

The claim records: the predicate IRI, the arguments as properties, truth as acl:holds, and (when present) the epistemic metadata (ยง6.4).