Semantic knowledge graph
The semantic knowledge graph is an RDF-backed view of OpenMetadata metadata. It gives supported entities stable IRIs and represents their types, properties, links, lineage, glossary meaning, and governance context as linked data. The graph is a serving view rather than the main metadata record. It supports linked-data access, SPARQL, ontology authoring, validation, inference, and semantic discovery.
Semantic layer
The semantic layer turns platform metadata into a shared graph model. It combines RDF, RDFS, SKOS, DCAT, PROV-O, and OpenMetadata terms so clients can query metadata as linked data. Entity references become links to other resources. Supported structured fields become typed RDF values or resources. Fields with no semantic value stay outside the graph.
Resource identity
An entity IRI links the main metadata model to its RDF representation. The same identity supports projection writes, RDF reads, relationship edges, graph traversal, and linked-data dereferencing. Glossary terms can also act as ontology classes, so the metadata record IRI and the authored class IRI remain separate identities.
The projection maps references to live resources and leaves credentials, identity correlators, audit helpers, time-series results, and UI-only state outside the graph. Structured values such as custom properties, extensions, columns, constraints, and quality measurements use owned subresources. Their triples are replaced with the owning entity, without traversing into shared entity references. This keeps updates complete without taking ownership of another resource.
Standard RDF, RDFS, OWL, XSD, and SKOS vocabulary keeps its defined meaning. The projection does not redefine these terms with OpenMetadata relationship characteristics. Custom relationship types can carry OWL property links such as domains, ranges, inverses, chains, and characteristics when those links are valid for the vocabulary.
Authenticated linked-data access checks the entity type and view permission before it returns an RDF representation. Clients can follow links without bypassing platform access control. The live projection removes references to soft-deleted entities, tags, and glossary terms so a serving link does not recreate a resource that the graph has removed.
References: openmetadata-service/…/JsonLdTranslator.java• L57-95 openmetadata-service/…/RdfPropertyMapper.java• L63-112 openmetadata-service/…/RdfPropertyMapper.java• L139-180 openmetadata-service/…/RdfOwnedResources.java• L15-80 openmetadata-service/…/LiveReferenceFilter.java• L28-63 openmetadata-service/…/GlossaryTermClassIri.java• L20-41 openmetadata-service/…/LodResource.java• L61-81 openmetadata-service/…/OwlEntityDeclarations.java• L28-35 openmetadata-service/…/OwlEntityDeclarations.java• L78-105 openmetadata-service/…/RelationshipTypeRdfWriter.java• L37-60
Ontology concept bindings add a semantic link from a concept to each bound catalog asset. Explore views merge these links from current metadata with the graph response, subject to the reader's permissions, so binding changes do not wait for a graph cache to expire. Published ontology exports use the same om:boundAsset meaning.
References: openmetadata-service/…/OntologyBindingGraphLinks.java• L21-27 openmetadata-service/…/OntologyBindingGraphLinks.java• L47-115 openmetadata-service/…/OntologyConceptBindingService.java• L101-157 openmetadata-service/…/OntologyReleaseExporter.java• L103-125
Named graphs
Named graphs separate source facts, semantic definitions, validation shapes, and derived facts. This lets a query ask for asserted metadata without treating inferred statements as source facts. It also gives each inference rule and graph insight a separate place for its derived results.
Asserted-only queries build their dataset from every known non-inference, non-staging graph. Platform writes invalidate or extend that graph list. Updates with unknown targets trigger a fresh listing. The list is never kept empty as a stable result, so a first projection does not make later asserted data invisible.
References: openmetadata-service/…/AssertedOnlyQueries.java• L27-39 openmetadata-service/…/AssertedOnlyQueries.java• L68-113 openmetadata-service/…/AssertedGraphTrackingRdfStorage.java• L45-51 openmetadata-service/…/AssertedGraphTrackingRdfStorage.java• L123-161 openmetadata-service/…/RdfStorageInterface.java• L235-245
Lineage
Lineage is modeled as linked provenance rather than an opaque metadata field. A source and its output use canonical upstream, downstream, and PROV-O links. A separate lineage resource can connect the edge to SQL, pipeline, plan, and column-level details.
The live graph keeps lineage only when both endpoint entities are live. It also removes a pipeline reference from lineage details when that pipeline is no longer live. This keeps lineage traversal useful without hidden links to deleted catalog objects.
References: openmetadata-service/…/RdfLineage.java• L6-24 openmetadata-service/…/RdfLineagePipelines.java• L26-50 openmetadata-service/…/RdfRepository.java• L598-610 openmetadata-service/…/RdfPropertyMapper.java• L957-1059
Canonical vocabulary
The canonical vocabulary is the bundled definition of OpenMetadata RDF terms. The service loads it as a model and can return the full ontology or a focused description for one term in a requested RDF format. This gives clients a stable reference for interpreting the graph and its predicates.
References: openmetadata-service/…/OntologyDocument.java• L30-49 openmetadata-service/…/OntologyDocument.java• L64-109
Graph projection
Graph projection keeps the RDF view aligned with metadata in the main platform store. A committed metadata change produces a replayable command. Replay reads current metadata before writing the graph, so delayed work does not restore an old snapshot. A delete becomes reconciliation work when an update outlives a hard delete.
Entity writes reconcile triples owned by the entity projection while preserving relationship and lineage edges owned by their own writers. Bulk projection uses bounded entity and payload batches. Reconciliation writes replace the mapped entity facts, while insert-only writes append new facts through the storage contract. This keeps entity facts, relationship edges, and derived resources under separate ownership.
Live projection
The live projection uses a durable queue and one cluster-wide drain writer. Entity, relationship, glossary-relation, ontology, and pipeline changes use replayable commands. Failed writes wait for retry. Storage maintenance, low disk space, and compaction hold queued writes without spending delivery attempts. Writes that exhaust their attempts move to a dead-letter store and mark the projection degraded until repair or reconciliation restores it.
When a server runs with RDF disabled, it records that state in shared projection health. The graph is then treated as degraded because metadata changes made by that server cannot reach the RDF view. Only a rebuild that starts after the disabled period can prove that the graph is current again.
The graph represents the live catalog. A soft-deleted entity is removed with its incoming and outgoing edges. A restore plans the edges and referring resources that must be projected again. Each replay checks current liveness, so a delayed relationship or entity update cannot reintroduce a deleted endpoint.
References: openmetadata-service/…/RdfLiveWrite.java• L25-100 openmetadata-service/…/RdfLiveWriteStore.java• L29-51 openmetadata-service/…/RdfLiveWriteStore.java• L188-291 openmetadata-service/…/RdfLiveWriteStore.java• L338-399 openmetadata-service/…/RdfDisabledMark.java• L27-49 openmetadata-service/…/RdfDisabledMark.java• L91-126 openmetadata-service/…/RdfRepository.java• L580-691 openmetadata-service/…/RdfStorageInterface.java• L53-87
Projection reads also attach the newest quality evidence to tables and test cases before RDF translation. This includes table and column profiles, test results, and open incident status, with masking based on live tags and column links. A change to table columns or tags requeues affected test cases so their graph evidence can be refreshed.
References: openmetadata-service/…/RdfProjectionLoaders.java• L30-76 openmetadata-service/…/RdfQualityEvidence.java• L39-71 openmetadata-service/…/DatabaseRdfQualityEvidenceSource.java• L43-143 openmetadata-service/…/RdfRepository.java• L597-624
Relationship scope
Relationship scope defines which metadata edges belong in the semantic graph. It excludes platform records and interaction edges that do not describe catalog meaning. Typed glossary relations use their semantic predicates instead of a duplicate generic edge.
The same scope guides relationship indexing and entity restore. Rebuilds, live writes, deletes, and restores therefore agree about which links are part of the graph.
References: openmetadata-service/…/RdfRelationshipScope.java• L24-75 openmetadata-service/…/RdfRestorePlanner.java• L98-118 openmetadata-service/…/RdfUpdater.java• L204-243
Restore projection
Restore projection repairs more than the restored entity's own triples. It re-adds live relationship rows, typed glossary relations, and live entities that refer to the restored object through labels or other links. One restore plan prevents edges between restored entities from being written before both endpoints are live.
References: openmetadata-service/…/RdfRestorePlanner.java• L28-44 openmetadata-service/…/RdfRestorePlanner.java• L120-192 openmetadata-service/…/RdfRestoreSources.java• L59-111
Dataset rebuild
The rebuild path supports initial population, repair, and broad refresh. It writes an alternate dataset, records complete replayable mutations in a bounded durable journal, replays the journal, and promotes the completed dataset. Ontology graph mutations keep only the release identity and rebuild the sealed graph from SQL during replay. Entity mutations keep bounded RDF models. Promotion creates a new serving generation and marks derived results stale because their source graph changed.
Serving writes are fenced during cutover. Storage maintenance takes a shared lease that holds other serving writes while compaction or reset runs. Queued writes resume after the pause, and the maintenance job can write through its lease to restore required graphs. An uncertain remote result quarantines the rebuild rather than allowing an unknown target dataset to be reused.
This diagram shows how a metadata change reaches the serving graph and how a rebuild preserves live changes during dataset replacement.
flowchart LR
A[Metadata transaction] --> B[Post-commit RDF command]
B --> C[Durable live-write queue]
C --> D[Cluster writer]
D --> E[Current metadata projection]
E --> F[Serving RDF dataset]
G[Rebuild] --> H[Alternate dataset]
H --> I[Replay mutation journal]
I --> J[Serving dataset promotion]
J --> F
F --> K[Linked data and SPARQL]
F --> L[Validation and inference]
References: openmetadata-service/…/RdfMutation.java• L36-51 openmetadata-service/…/RdfMutation.java• L53-199 openmetadata-service/…/RdfDatasetManager.java• L91-141 openmetadata-service/…/RdfDatasetManager.java• L168-267 openmetadata-service/…/RdfLiveWritePause.java• L27-41 openmetadata-service/…/RdfRebuildStore.java• L197-224 openmetadata-service/…/RdfRebuildStore.java• L307-344 openmetadata-service/…/RebuildingRdfStorage.java• L34-75 openmetadata-service/…/RebuildingRdfStorage.java• L79-173 openmetadata-service/…/RdfRepository.java• L403-447
Linked-data access
The RDF access layer exposes resource representations and graph views. Clients can retrieve JSON-LD or another RDF format, explore a bounded neighborhood, export a graph, inspect lineage, and view glossary links. Traversals use depth, row, and time limits. Results can state that they are partial.
SPARQL access
SPARQL is the graph query interface. Read queries return tables for SELECT and ASK, or RDF graphs for CONSTRUCT and DESCRIBE. The service checks query shape, output limits, federation policy, and the requested inference level before execution. Updates are validated first and record an uncertain write when the remote result cannot prove whether the store changed.
Ontology-scoped reads use one self-contained ontology model. They support no inference, RDFS inference, or OWL inference. They reject external dataset clauses, federation, and custom materialized inference. A bounded worker process isolates ontology loading and query execution. It allows one local ontology query at a time and applies a shared query length, result row, output size, and timeout budget. If the ontology is too large for the worker, a served named graph can answer a no-inference query with the time that remains from the original request. The Ontology and RDF operations page covers query, authoring, validation, and inference interfaces.
Knowledge-graph queries can read asserted data only or include configured materialized rule graphs. Users can keep a bounded private library of named SPARQL queries. Saved entries retain the query format, inference choice, optional ontology scope, and save time so a later run uses the same query intent. The RDF indexing and storage page covers the storage and rebuild path behind these reads.
References: openmetadata-service/…/OntologySparqlQueryService.java• L63-121 openmetadata-service/…/OntologySparqlQueryService.java• L135-225 openmetadata-service/…/OntologySparqlWorker.java• L48-118 openmetadata-service/…/OntologySparqlWorker.java• L134-235 openmetadata-service/…/SparqlQueryLimits.java• L22-57 openmetadata-service/…/RdfRepository.java• L1661-1764 openmetadata-service/…/SavedSparqlQueryService.java• L27-95
Entity version diffs
Entity version diffs show how one metadata version changes the RDF view of an entity. The service translates both versions, canonicalizes blank nodes, and returns deterministic added and removed statements with typed IRI or literal objects. Clients get a graph-level change view without comparing raw JSON.
References: openmetadata-service/…/RdfEntityDiffService.java• L44-170
Administrative access
SQL access gives administrators a relational entry point to the semantic graph. The service maps supported metadata fields to RDF classes and predicates, then validates the generated SPARQL before execution. Translation and execution remain separate so a caller can inspect the graph query first.
Agent access is narrower. REST and MCP callers share a read-only SELECT path with inference disabled. It rejects graph selection, federation, updates, external loads, and unsafe extension calls. A read is admitted only while the projection is READY, and the response reports bounded output and completeness.
References: openmetadata-service/…/RdfSqlResource.java• L43-152 openmetadata-service/…/SqlToSparqlService.java• L20-75 openmetadata-service/…/AgentSparqlService.java• L52-135 openmetadata-service/…/AgentSparqlQueryInspector.java• L51-151 openmetadata-service/…/SparqlQueryWalker.java• L35-115
Ontology authoring
Ontology authoring gives the semantic layer explicit concepts, properties, axioms, namespaces, and links. A glossary remains useful for business terms. A native ontology stores OWL-oriented definitions that can be checked and published as a coherent semantic model. The Ontology and RDF operations page covers authoring and RDF operation contracts.
Ontology model
An ontology model contains concepts, properties, and axioms. Concepts can represent OWL classes, SKOS concepts, or both. Properties describe object, data, or annotation links. Axioms describe class structure, property assertions, and class expressions.
References: openmetadata-service/…/OntologyClassHierarchy.java• L40-132 openmetadata-service/…/OntologyReferences.java• L30-59 openmetadata-service/…/OwlDatatypeSupport.java• L56-77 openmetadata-spec/…/ontologyConceptBindings.json• L1-65
Release review
Ontology releases move through a review decision before they become the active semantic model. Approval or rejection is recorded as release history and also appears in the author's Inbox activity feed, while a failure to publish the notice does not change the stored decision.
References: openmetadata-service/…/OntologyReleaseRepository.java• L97-124 openmetadata-service/…/OntologyDecisionNotice.java• L18-83
Native RDF import
Native RDF import brings Turtle, RDF/XML, N-Triples, JSON-LD, or CSV ontology content into the normal ontology draft flow. The reader maps the supported OWL, RDFS, and SKOS definitions to concepts, properties, and axioms. It skips unsupported statements with a reason report instead of guessing their meaning. The parser still rejects unsafe or invalid input and keeps the source bounded.
Preview compares imported definitions with the working ontology by IRI or axiom signature. It reports additions, changes, mappings, duplicates, unchanged definitions, and skipped statements. The result is a typed change set with dependencies between new definitions. This keeps import reviewable and applies the same version and scope rules as other ontology changes.
References: openmetadata-service/…/SafeRdfModelParser.java• L21-47 openmetadata-service/…/SafeRdfModelParser.java• L52-115 openmetadata-service/…/SafeRdfModelParser.java• L118-161 openmetadata-service/…/NativeOntologyRdfReader.java• L47-52 openmetadata-service/…/NativeOntologyRdfReader.java• L101-115 openmetadata-service/…/NativeOntologyRdfReader.java• L230-379 openmetadata-service/…/NativeOntologyRdfReader.java• L550-613 openmetadata-service/…/NativeOntologyRdfImporter.java• L102-159 openmetadata-service/…/NativeOntologyRdfImporter.java• L383-405 openmetadata-service/…/NativeOntologyRdfImporter.java• L545-617
Glossary ontology import
Glossary ontology import converts external OWL or SKOS concepts into versioned, searchable glossary terms. A concept scheme can create a glossary, while classes and concepts become terms with labels, descriptions, synonyms, mappings, and typed relations. A selected target glossary can receive the same content.
The import preserves source namespaces and non-native source statements as an annex. It validates the source when configured or during a dry run. Governed relationship types named by the source are reused or restored by predicate, and compatible inverse partners are linked. This lets an imported vocabulary keep its meaning without creating duplicate relationship types.
References: openmetadata-service/…/GlossaryRdfImporter.java• L93-112 openmetadata-service/…/GlossaryRdfImporter.java• L221-261 openmetadata-service/…/GlossaryRdfImporter.java• L366-415 openmetadata-service/…/GlossaryRdfImporter.java• L475-539 openmetadata-service/…/GlossaryRdfImporter.java• L661-743 openmetadata-service/…/GlossaryRdfImporter.java• L798-891 openmetadata-service/…/SoftDeletedRelationTypes.java• L27-69
Ontology projection
An active ontology release is projected as a stable RDF graph. Working edits do not reach this graph. The projection reads sealed release members and writes standard RDF, OWL, RDFS, SKOS, XSD, and OpenMetadata vocabulary terms. It can keep statement-source annotations for exports while the serving graph holds asserted statements only.
The projection declares each non-built-in IRI with one OWL entity kind. Reserved vocabulary keeps its own semantics and does not receive custom inverse, chain, disjointness, or characteristic axioms. The active graph is replaced from one verified release snapshot. Large graphs use bounded chunks and an atomic swap so readers see the old graph or the new graph. A rebuild can project the release again from its release identity rather than storing a large graph in the mutation journal.
References: openmetadata-service/…/OntologyReleaseProjection.java• L36-100 openmetadata-service/…/OntologyReleaseProjection.java• L145-185 openmetadata-service/…/OntologyActiveGraph.java• L19-45 openmetadata-service/…/OntologyActiveGraph.java• L75-100 openmetadata-service/…/OwlEntityDeclarations.java• L78-131 openmetadata-service/…/RelationshipTypeRdfWriter.java• L54-75 openmetadata-service/…/RelationshipTypeRdfWriter.java• L109-149 openmetadata-service/…/ChunkedGraphReplace.java• L30-85
When an ontology release graph changes, the live-write path refreshes the graph and then refreshes each asset bound to one of its concepts. Each asset is independent, so a failed asset refresh does not block the release graph or unrelated assets.
References: openmetadata-service/…/RdfLiveWrite.java• L39-50 openmetadata-service/…/RdfRepository.java• L627-645
Structural validation
Structural validation checks whether an ontology can be represented and used safely. It reports undeclared or wrongly typed references, reserved vocabulary conflicts, class cycles, invalid expressions, unsupported literals, property-chain problems, and OWL 2 profile violations. It checks structure only. It does not perform logical reasoning.
SHACL validation adds graph-shape checks at two points. Catalog SHACL checks projected RDF. Native ontology SHACL checks sealed ontology definitions against native shapes before they become a semantic model. The two checks protect different contracts.
References: openmetadata-service/…/OntologyStructureValidator.java• L66-121 openmetadata-service/…/OwlProfileGuard.java• L65-90 openmetadata-service/…/NativeOntologyValidation.java• L38-107 openmetadata-service/…/RdfShaclValidator.java• L30-72
Inference
Inference derives RDF statements that are not direct metadata facts. Custom rules are stored in SQL and materialized by Fuseki into separate named graphs. Queries can choose asserted facts only or include the current materialized rule bundle.
Rule lifecycle
An inference rule is a named SPARQL CONSTRUCT rule. The platform accepts rules that are local, finite, and monotonic so repeated passes can reach a fixed point. Federation, unstable values, negation, aggregation, ordering, and unbounded term generation are outside this rule language.
Materialization clears rule graphs and applies enabled rules in repeated passes. Rules can read conclusions from earlier passes. The run ends when a pass adds no new triples. A cluster-wide lease prevents overlapping runs. Source changes during a run leave the rules dirty so the next run uses newer facts.
References: openmetadata-service/…/InferenceRuleValidator.java• L18-37 openmetadata-service/…/FixedPointRuleCheck.java• L57-70 openmetadata-service/…/InferenceMaterializer.java• L122-218 openmetadata-service/…/InferenceRunLock.java• L24-47
Inference freshness
Inference freshness is separate from job success. A result is current only when its serving dataset generation, live-write watermark, ontology digest, and rule-bundle digest still match platform state. A degraded projection makes freshness unknown because the system cannot prove that its source facts are complete. Any successful or possibly applied source mutation marks derived output dirty.
This diagram shows the relationship between asserted facts, materialized rule graphs, query selection, and freshness.
flowchart TD
A[Asserted RDF facts] --> B[Validated CONSTRUCT rules]
B --> C[Fixed-point materialization]
C --> D[Named graph per rule]
A --> E{Query level}
D --> E
E -->|none| F[Asserted-only result]
E -->|custom| G[Asserted plus materialized result]
H[Dataset, live-write, ontology, or rule change] --> I[Freshness check]
F --> I
G --> I
References: openmetadata-service/…/InferenceMaterializer.java• L122-218 openmetadata-service/…/ReasoningFreshness.java• L21-51 openmetadata-service/…/InferenceInvalidatingRdfStorage.java• L26-67 openmetadata-service/…/InferenceInvalidatingRdfStorage.java• L69-135 openmetadata-service/…/RdfRepository.java• L1726-1764
Platform integration
The semantic layer is an optional platform capability. Configuration selects RDF enablement, the remote store, the base URI, validation behavior, materialized inference, federation policy, and linked-data dereferencing. Projection state combines persisted run state with runtime health, so readiness-sensitive clients do not read an incomplete graph.
Semantic discovery
Semantic discovery combines text similarity with graph context. It first finds candidate entities. It then uses nearby RDF links and inferred relationships to improve relevance and add related entities. Lineage, glossary meaning, domains, ownership, tags, and usage can connect results that text similarity alone would miss.
References: openmetadata-service/…/SemanticSearchEngine.java• L58-137 openmetadata-service/…/SemanticSearchEngine.java• L172-253 openmetadata-service/…/SemanticSearchEngine.java• L401-471
Projection state
Projection state tells clients whether the serving graph is safe to read. The resolver reads the newest run that changed the projection rather than treating a skipped or deferred run as the current state. It pages through a bounded run history. It reports REBUILDING when no usable recent run exists. Malformed run state reports DEGRADED. A runtime degraded signal overrides READY, so a live storage or write fault cannot remain hidden behind a successful historical run.
References: openmetadata-service/…/RdfProjectionStateResolver.java• L31-59 openmetadata-service/…/RdfProjectionStateResolver.java• L61-83 openmetadata-service/…/RdfProjectionStateResolver.java• L101-145
Graph insights
Graph insights turn RDF relationships into platform signals. The platform can find bounded lineage paths, compute centrality, detect communities from lineage or shared semantic labels, and query recommendations or relationship reach. Results can be stored as RDF named views so later graph queries can use them.
References: openmetadata-service/…/RdfInsightsService.java• L19-69 openmetadata-service/…/LineagePathFinder.java• L19-34 openmetadata-service/…/CentralityComputation.java• L13-29 openmetadata-service/…/CommunityComputation.java• L14-23
Storage boundary
The storage boundary gives the service one contract for entity and relationship writes, SPARQL reads and updates, graph loading and replacement, counts, readiness, dataset management, and compaction. Decorators forward the complete contract so tracking, inference invalidation, and dataset routing do not hide backend capabilities.
The current remote implementation connects to Fuseki and protects requests with connection and request time limits, bounded payloads, retries, a single writer permit, metrics, and a circuit breaker. Read queries can stream into a bounded serializer. Readiness checks the configured dataset, its write capabilities, and its union default graph. Low disk space, active compaction, and uncertain remote outcomes remain explicit states rather than being reported as successful writes.
Whole-graph replacement uses bounded requests. A small graph uses one replacement request. A larger graph uses staging graphs and an atomic swap. Dataset management lets a rebuild repoint serving to an alternate dataset without rebuilding every storage handle. Maintenance uses a cluster-wide pause lease while compaction runs. The child page RDF indexing and storage covers projection rebuilds and backend operations.
References: openmetadata-service/…/RdfStorageInterface.java• L24-41 openmetadata-service/…/RdfStorageInterface.java• L189-345 openmetadata-service/…/ForwardingRdfStorage.java• L28-198 openmetadata-service/…/JenaFusekiStorage.java• L78-83 openmetadata-service/…/JenaFusekiStorage.java• L282-375 openmetadata-service/…/JenaFusekiStorage.java• L609-746 openmetadata-service/…/JenaFusekiStorage.java• L749-975 openmetadata-service/…/ChunkedGraphReplace.java• L30-85 openmetadata-service/…/RdfLiveWritePause.java• L62-79
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the RDF base URI or entity IRI rules must stay aligned across translation, storage writes, API reads, linked-data access, ontology IRIs, and lineage queries.
- Changes to RDF predicates, entity typing, or owned resources must update the ontology, projection mapping, relationship writers, delete scope, query mappings, and inference rules as one contract.
- Changes to reserved vocabulary handling must preserve the one-kind OWL declaration rule and prevent custom inverse, chain, disjointness, or characteristic axioms on built-in terms.
- Changes to asserted-only graph tracking must preserve graph discovery after entity writes, SPARQL updates, graph loads, graph replacement, and uncertain updates.
- Changes to live writes or rebuilds must preserve current-data reloads, delete reconciliation, liveness checks, restore referrers, mutation journaling, replay ordering, serving generations, and derived-result invalidation.
- Changes to RDF enablement must preserve the disabled-server mark and prevent a server's unprojected metadata changes from being reported as current.
- Changes to active ontology projection must preserve sealed-release reads, release verification, source-annotation rules, bounded graph replacement, and release-only rebuild journal entries.
- Changes to native RDF or glossary import must preserve safe parsing, supported vocabulary, deterministic duplicate and skip reporting, absolute IRIs, relation-type reuse, inverse compatibility, and dry-run behavior.
- Changes to SPARQL inspection or federation policy must cover nested patterns, expressions, property paths, subqueries,
SERVICE, and externalLOADsources. - Changes to ontology query isolation must preserve worker admission, process cleanup, input and output bounds, inference selection, and the fallback from an oversized ontology to served-graph reads.
- Changes to projection state must preserve skipped-run handling, bounded history paging, malformed status handling, and the runtime degraded override of persisted
READY. - Changes to inference freshness must preserve invalidation after successful or possibly applied source writes and after dataset, ontology, rule, or serving-generation changes.
- Changes to storage maintenance must preserve queued-write retry ownership, direct-writer failure handling, compaction outcome reporting, low-disk backoff, and projection health.
- Changes to graph results or traversal limits must keep query form, media type, serializer capability, row limits, time limits, and partial-result metadata aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The RDF store is disabled or not ready | RDF access, rebuilds, and materialized inference are unavailable | Configuration, disabled-server marks, and storage readiness checks |
| The projection is rebuilding, failed, stopped, malformed, or degraded | Readiness-sensitive graph reads fail instead of returning unsafe data | Resolve persisted run state with bounded history and runtime health; restore READY through repair or rebuild |
| A delayed update replays after its entity was deleted | The graph restores an obsolete resource or stale facts | Reload current metadata and reconcile missing entities as deletes |
| A relationship is projected for a dead endpoint | The graph contains an edge to an entity that is not in the live catalog | Check both endpoints before writing edges and lineage |
| An entity update deletes a shared resource by mistake | Another entity loses RDF facts it owns | Replace only owned subresources and preserve shared entity references |
| Asserted-only queries use a stale graph list | New asserted data is missing from a query or inferred graphs enter the result | Track server writes, refresh unknown targets, exclude inference and staging prefixes, and expire the graph list |
| A new dataset is promoted | Existing inference or insight results no longer describe the serving graph | Create a new serving generation and mark derived results dirty |
| A local ontology query exceeds its worker input, memory, concurrency, result, or time budget | The query is rejected or times out rather than consuming unbounded service resources | Isolated worker, one-permit admission, bounded transport files, bounded output, and request deadline |
| An ontology is too large for the local worker and requests inference | The query cannot use the served-graph fallback | Use a no-inference query against the scoped served graph or reduce the ontology/query scope |
| A rule is non-monotonic, federated, unstable, or unbounded | Materialization can loop, retract facts, or create unsafe data | Validate the rule language before storage and execution |
| Source data or rules change during materialization | The result can describe an older graph | Stop the run, keep rules dirty, and recompute |
| Native RDF contains unsupported structure or invalid absolute-IRI, literal, or list data | Import skips the definition or rejects the source instead of making an unsafe guess | Safe parser, native reader, skip ledger, and ontology structure checks |
| A glossary import names a soft-deleted relation type or an incompatible inverse | The import can create duplicate governance types or lose the source relation | Restore by predicate, validate inverse partners, and skip names held on another predicate |
| A release is changed after review or activated from an old revision | The published pointer can refer to content that was not approved | Sealed snapshots, content digests, independent review, and expected revision checks |
| An ontology graph replacement exceeds request limits or fails during swap | The active graph stays old or becomes unavailable rather than partly replaced | Chunked staging, atomic swap, cleanup of stale staging graphs, and graph-size limits |
SPARQL uses SERVICE, LOAD, graph selection, or unsafe extension calls outside policy | The query can read from or invoke an unapproved external system | Walk nested query elements and expressions and enforce policy |
| Storage maintenance pauses the dataset or Fuseki refuses low-disk writes | Direct writes wait or fail and queued writes lag | Shared pause lease, maintenance retry signal, low-disk backoff, and degraded health |
| A remote write times out after it may have applied | A retry can duplicate or conflict with an unknown result | Record outcome as uncertain and quarantine or reconcile before reuse |
| A graph traversal reaches its row or time budget | The client receives a partial result or no path | Bound traversal and return explicit truncation state |
Key files
| File | Why to read it |
|---|---|
| openmetadata-service/…/RdfRepository.java | Central RDF boundary for projection, graph access, dataset routing, ontology loading, and graph operations. |
| openmetadata-service/…/JsonLdTranslator.java | Shows how platform entities receive RDF identity and type and become linked data. |
| openmetadata-service/…/RdfPropertyMapper.java | Shows how entity fields, references, structured resources, relationships, and lineage become RDF properties. |
| openmetadata-service/…/RdfOwnedResources.java | Defines which subresources an entity owns during replacement. |
| openmetadata-service/…/OwlEntityDeclarations.java | Defines how OWL entity kinds and reserved vocabulary are handled. |
| openmetadata-service/…/RelationshipTypeRdfWriter.java | Shows how governed relationship types become OWL object properties. |
| openmetadata-service/…/AssertedOnlyQueries.java | Defines how asserted-only queries exclude inferred and staging graphs while tracking open-ended asserted graphs. |
| openmetadata-service/…/RdfUpdater.java | Shows how committed metadata changes and restores enter the live projection. |
| openmetadata-service/…/RdfLiveWriteStore.java | Shows ordered delivery, retries, dead letters, maintenance backoff, and projection health. |
| openmetadata-service/…/RdfDisabledMark.java | Shows how servers with RDF disabled mark the graph as unable to represent their changes. |
| openmetadata-service/…/RdfRestorePlanner.java | Shows how restored entities regain edges and referring resources. |
| openmetadata-service/…/RdfMutation.java | Defines the replayable mutation forms used by rebuilds, including release-graph projection. |
| openmetadata-service/…/RdfDatasetManager.java | Shows alternate dataset construction, mutation capture, journal replay, and serving cutover. |
| openmetadata-service/…/RdfLiveWritePause.java | Defines the cluster-wide lease that protects serving writes during storage maintenance. |
| openmetadata-service/…/RdfRebuildStore.java | Defines durable rebuild state, mutation journal fences, generations, and uncertain-write quarantine. |
| openmetadata-service/…/OntologyActiveGraph.java | Defines the stable RDF graph for the active sealed ontology release. |
| openmetadata-service/…/OntologyReleaseProjection.java | Shows how sealed ontology members become RDF concepts, properties, and axioms. |
| openmetadata-service/…/OntologySparqlQueryService.java | Defines ontology-scoped query modes, result formats, served-graph fallback, and inference limits. |
| openmetadata-service/…/OntologySparqlWorker.java | Defines isolated ontology query execution, admission, cleanup, and resource bounds. |
| openmetadata-service/…/SparqlQueryLimits.java | Defines shared query length, result, timeout, and output limits. |
| openmetadata-service/…/SavedSparqlQueryService.java | Defines the bounded private saved-query library and its input contract. |
| openmetadata-service/…/GlossaryRdfImporter.java | Shows how external OWL and SKOS content becomes glossary terms and governed relations. |
| openmetadata-service/…/NativeOntologyRdfReader.java | Defines the native ontology subset read from RDF and the treatment of unsupported statements. |
| openmetadata-service/…/NativeOntologyRdfImporter.java | Shows how native RDF input becomes a reviewable ontology change set. |
| openmetadata-service/…/SafeRdfModelParser.java | Defines the bounded and isolated parser boundary for native RDF import. |
| openmetadata-service/…/InferenceMaterializer.java | Shows fixed-point execution, run locking, dirty state, and failure behavior. |
| openmetadata-service/…/RdfStorageInterface.java | Defines the remote storage contract for graph operations, streaming reads, readiness, datasets, and compaction. |
| openmetadata-service/…/ForwardingRdfStorage.java | Shows how storage decorators preserve the full backend contract. |
| openmetadata-service/…/JenaFusekiStorage.java | Shows the remote RDF boundary, request protection, payload limits, readiness checks, and dataset management. |
| openmetadata-service/…/ChunkedGraphReplace.java | Shows bounded whole-graph replacement and atomic staging. |