Developer reference
Technical details
RDF lineage
Legra's PROV-O-compliant provenance model uses the W3C PROV-O ontology: prov:Entity for source/output artifacts, prov:Activity for producing operations, and prov:Agent for accountable actors. An illustrative import record:
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix ex: <https://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:result a prov:Entity ;
prov:wasDerivedFrom ex:source ;
prov:wasGeneratedBy ex:import .
ex:import a prov:Activity ;
prov:used ex:source ;
prov:wasAssociatedWith ex:agent ;
prov:atLocation ex:ingestSite ;
prov:endedAtTime "2026-10-17T10:00:00Z"^^xsd:dateTime .
ex:source a prov:Entity .
ex:agent a prov:SoftwareAgent .
ex:ingestSite a prov:Location .
Derivation evidence additionally identifies the rule, premises and input commit. Task/transaction IDs join this semantic lineage to execution evidence.
Cryptographic verification
Merkle-tree hashing, generalized into a Merkle DAG, authenticates content transitively from a trusted root; hash chains bind commit ancestry; a signature authenticates the signing key. Verify referenced block hashes and commit signatures to mathematically establish that content and lineage match authenticated history, under the algorithms' cryptographic assumptions.
Source, time and place are provenance assertions. Hashing binds those assertions to the record; establishing wall-clock time or physical location requires a trusted attestation. Together, authenticated lineage and identifiable attesting authorities provide verifiable evidence for trust decisions. Workspace disclosure policies keep that evidence under its owner's control, making provenance part of data sovereignty.