You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(envited-x): add AttributeProvenance shape for metadata derivation tracking
Extend the envited-x base ontology with a formal mechanism to declare
how individual metadata attributes were derived and which software
agent (tool or LLM model) produced them.
New OWL classes and properties:
- envited-x:AttributeProvenance (subclass of prov:Activity)
- envited-x:hasAttributeProvenance (on DomainSpecification)
- envited-x:attributeName, derivationMethod, confidence, llmModel
New SHACL shapes:
- envited-x:AttributeProvenanceShape — validates provenance entries
- envited-x:SoftwareAgentShape — validates tool identity (schema:name,
gx:version, optional envited-x:llmModel)
Derivation method enum:
- extraction: directly parsed from source file
- calculation: computed from multiple source values
- rule-based-inference: heuristic/keyword-based mapping
- llm-inference: LLM model generated the value
- manual: human input (e.g. wizard)
Reuses existing external vocabularies:
- prov:SoftwareAgent, prov:wasAssociatedWith, prov:endedAtTime (W3C PROV-O)
- schema:name (Schema.org)
- gx:version (Gaia-X Trust Framework)
Motivation: automated metadata enrichment tools (e.g. llm_enricher in
sl-5-8-asset-tools) need a standardized way to declare which fields
they filled and with what confidence, enabling downstream consumers to
distinguish human-curated from machine-derived values.
Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
- Class definition for CodeArtifactBase (https://w3id.org/ascs-ev/envited-x/envited-x/v3/CodeArtifactBase)
27
29
- Class definition for CodeAsset (https://w3id.org/ascs-ev/envited-x/envited-x/v3/CodeAsset)
28
30
- Class definition for Content (https://w3id.org/ascs-ev/envited-x/envited-x/v3/Content)
@@ -43,6 +45,7 @@ class Class_definition_for_SoftwareResourceBase
43
45
44
46
|Class|IRI|Description|Parents|
45
47
|---|---|---|---|
48
+
|Attribute Provenance|https://w3id.org/ascs-ev/envited-x/envited-x/v3/AttributeProvenance|Records the derivation method and responsible software agent for one or more metadata attributes that were automatically filled.|Activity|
46
49
|Class definition for CodeArtifactBase|https://w3id.org/ascs-ev/envited-x/envited-x/v3/CodeArtifactBase|Base class coupling ENVITED-X code assets to gx:CodeArtifact.|CodeArtifact|
47
50
|Class definition for CodeAsset|https://w3id.org/ascs-ev/envited-x/envited-x/v3/CodeAsset|A structured digital asset in the ENVITED-X Data Space representing a code artifact.
48
51
Carries domain-specific metadata while delegating GX compliance
@@ -78,6 +81,7 @@ class Class_definition_for_SoftwareResourceBase
|DomainSpecificationShape|envited-x|<aid="prop-https---w3id-org-ascs-ev-envited-x-envited-x-v3-hasattributeprovenance"></a>hasAttributeProvenance|0||Records which metadata attributes were automatically derived, by which tool and method.||envited-x.shacl.ttl|
180
+
|AttributeProvenanceShape|envited-x|<aid="prop-https---w3id-org-ascs-ev-envited-x-envited-x-v3-attributename"></a>attributeName|1|1|The name of the metadata attribute whose provenance is declared.|<http://www.w3.org/2001/XMLSchema#string>|envited-x.shacl.ttl|
181
+
|AttributeProvenanceShape|envited-x|<aid="prop-https---w3id-org-ascs-ev-envited-x-envited-x-v3-derivationmethod"></a>derivationMethod|1|1|The method used to derive the attribute value.||envited-x.shacl.ttl|
182
+
|AttributeProvenanceShape|envited-x|<aid="prop-https---w3id-org-ascs-ev-envited-x-envited-x-v3-confidence"></a>confidence||1|Confidence level of the derived value.||envited-x.shacl.ttl|
183
+
|AttributeProvenanceShape|prov|<aid="prop-http---www-w3-org-ns-prov-wasassociatedwith"></a>wasAssociatedWith|1|1|The software agent (tool or service) that produced this attribute value.||envited-x.shacl.ttl|
184
+
|AttributeProvenanceShape|prov|<aid="prop-http---www-w3-org-ns-prov-endedattime"></a>endedAtTime||1|Timestamp when the attribute was derived.|<http://www.w3.org/2001/XMLSchema#dateTime>|envited-x.shacl.ttl|
185
+
|SoftwareAgentShape|schema|name|1|1|Human-readable name of the software agent.|<http://www.w3.org/2001/XMLSchema#string>|envited-x.shacl.ttl|
186
+
|SoftwareAgentShape|gx|<aid="prop-https---w3id-org-gaia-x-development-version"></a>version|1|1|Version identifier of the software agent.|<http://www.w3.org/2001/XMLSchema#string>|envited-x.shacl.ttl|
187
+
|SoftwareAgentShape|envited-x|<aid="prop-https---w3id-org-ascs-ev-envited-x-envited-x-v3-llmmodel"></a>llmModel||1|Identifier of the LLM model used, if derivation method is llm-inference. Absent for non-LLM methods.|<http://www.w3.org/2001/XMLSchema#string>|envited-x.shacl.ttl|
rdfs:comment "Records the derivation method and responsible software agent for one or more metadata attributes that were automatically filled."@en ;
420
+
rdfs:subClassOf prov:Activity .
421
+
422
+
envited-x:hasAttributeProvenance a owl:ObjectProperty ;
423
+
rdfs:label "has attribute provenance"@en ;
424
+
rdfs:comment "Links a DomainSpecification to provenance records describing how individual attributes were derived."@en ;
425
+
rdfs:domain envited-x:DomainSpecification ;
426
+
rdfs:range envited-x:AttributeProvenance .
427
+
428
+
envited-x:attributeName a owl:DatatypeProperty ;
429
+
rdfs:label "attribute name"@en ;
430
+
rdfs:comment "The name of the metadata attribute whose provenance is being declared."@en ;
431
+
rdfs:domain envited-x:AttributeProvenance ;
432
+
rdfs:range xsd:string .
433
+
434
+
envited-x:derivationMethod a owl:DatatypeProperty ;
435
+
rdfs:label "derivation method"@en ;
436
+
rdfs:comment "The method used to derive the attribute value. One of: extraction (parsed from source), calculation (computed from source values), rule-based-inference (heuristic mapping), llm-inference (LLM model generated), manual (human input)."@en ;
437
+
rdfs:domain envited-x:AttributeProvenance ;
438
+
rdfs:range xsd:string .
439
+
440
+
envited-x:confidence a owl:DatatypeProperty ;
441
+
rdfs:label "confidence"@en ;
442
+
rdfs:comment "Confidence level of the derived value: high, medium, or low."@en ;
443
+
rdfs:domain envited-x:AttributeProvenance ;
444
+
rdfs:range xsd:string .
445
+
446
+
envited-x:llmModel a owl:DatatypeProperty ;
447
+
rdfs:label "LLM model"@en ;
448
+
rdfs:comment "Identifier of the LLM model used for inference (e.g. 'claude-sonnet-4', 'gpt-4o'). Absent or null when derivation is not LLM-based."@en ;
0 commit comments