Provenance
Import Trevas Provenance module
<dependency>
<groupId>fr.insee.trevas</groupId>
<artifactId>vtl-prov</artifactId>
<version>2.7.3</version>
</dependency>
Provenance
vtl-prov exposes fr.insee.vtl.prov.Provenance as the public entry point.
Provenance.run evaluates the script on the caller’s ScriptEngine, extracts an IR graph, then projects it to an SDTH Program:
Program program = Provenance.run(engine, script, "program-id", "program-name");
Packages under the façade:
fr.insee.vtl.prov.extract— parse → support-check → structure oracle →ProvGraphfr.insee.vtl.prov.ir—ProvGraphfr.insee.vtl.prov.view—SdthProgramView(production) /RichRdfView(experimental)fr.insee.vtl.prov.prov— SDTH beans (Program,ProgramStep, …)fr.insee.vtl.prov.utils—RDFUtils, …
Program
run returns a Program containing steps, dataframes, variables, and entity lineage.
RDF
vtl-prov embeds Jena and exposes RDFUtils.
Build RDF model
Model model = RDFUtils.buildModel(program);
RDF serialization
String jsonLd = RDFUtils.serialize(model, "JSON-LD");