Ontology Snapshot is the versioned result of semantic publishing in the UOSE system. It freezes the canonical ontology IR obtained from one resource sync and serves as the shared semantic baseline for queries, graphs, action discovery, and auditing.Documentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
Canonical Ontology IR
After an adapter syncs an external resource, it generates canonical ontology IR. It usually contains:- ontology meta: ontology ID, adapter ID, resource ID, and graph version.
- entity types: entity type definitions.
- relation types: relation type definitions.
- attribute types: attribute definitions.
- affordances: executable actions for objects.
- instances: entity instances.
- relations: relationship instances.
- constraints: constraints, shapes, or references.
Snapshot Publishing
Publishing saves IR as an ontology snapshot and marks the current graph version of the resource. After publishing succeeds, the snapshot becomes the source for semantic queries and projections for the current resource. The value of snapshots is:- Traceable: know which semantic version an Agent execution was based on.
- Replaceable: new syncs create new snapshots, while old snapshots can be used for audit replay.
- Repairable: issues such as missing
analysis_contractcan be repaired from semantic context in the snapshot. - Scopable: different resources can publish independently without requiring a global rebuild.
RDF Graph
When an RDF engine is configured, UOSE materializes the ontology into an RDF graph. The RDF graph supports:- schema queries.
- entity resolution.
- neighborhood queries.
- affordance discovery.
- raw SPARQL debugging.
Instance Projection
To let the frontend and Agent Tools use the current snapshot efficiently, UOSE projects the snapshot into runtime instance tables:uose_entity: entity instances.uose_relation: relationship instances.uose_action: action instances or affordance projections.
Repair and Backfill
During resource upgrades or old snapshot migrations, a snapshot may have entities but lack runtime contracts. For example, an indicator in an semantic model may be visible but lackanalysis_contract.
UOSE attempts repair at these times:
- Application startup maintenance scans.
- After resource register or update.
- Before sync publishing.