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
{{ message }}
Repository navigation
RDF ontology/SHACL describe om:fromColumn/om:toColumn as column IRIs but the projection writes literals; om:hasChildColumn mislabelled InferenceOnly #34864
Found while working on #34270 (PR #34790). The RDF ontology and shapes describe two column-lineage terms differently from what the metadata projection actually writes. ontology_describe serves the ontology to MCP clients and agents, so the mismatch misleads them.
1. om:fromColumn / om:toColumn are declared as IRIs, but the projection writes plain string literals
Declared:openmetadata-spec/src/main/resources/rdf/ontology/openmetadata.ttl:1430 and :1438 declare om:fromColumn / om:toColumn as owl:ObjectProperty with range om:Column.
Changelog:openmetadata-spec/src/main/resources/rdf/ontology/CHANGELOG.md:20 (1.1.0) says they "are now URI references to om:Column".
SHACL:openmetadata-spec/src/main/resources/rdf/shapes/openmetadata-shapes.ttl:106om:ColumnLineageShape requires IRIs (sh:class om:Column), so every real om:ColumnLineage node is reported as a violation. Validation is report-only.
Written: the production writer, RdfRepository.buildLineageModel (openmetadata-service/.../rdf/RdfRepository.java ~1252-1255, run by RdfIndexApp), adds the column FQNs as plain string literals: om:fromColumn "svc.db.schema.table.col". The IRI form only comes from RdfPropertyMapper.addColumnLineage, which fires for entity JSON fields that current schemas lack.
Queries must match the literal (see the column-lineage section of docs/rdf-ontology-contract.md and the sparql_query MCP tool description).
2. om:hasChildColumn is labelled InferenceOnly, but a normal reindex materializes it
Declared:openmetadata.ttl:2819 has om:projectionStatus om:InferenceOnly and "Not emitted by the metadata projection for current entity schemas".
Activity