The entity graph is the visual semantic result of the UOSE system. It displays objects, relationships, and attributes from external resources in a unified graph structure so users and Agents can understand context around objects.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.
Basic Graph Structure
The graph consists of three parts:- Nodes: entity instances, such as metrics, Cubes, database tables, SAP Entity Sets, and knowledge entities.
- Edges: relationship instances, such as contains, references, points to, associates with, and navigates to.
- Attributes: structured information on nodes or edges, such as field definitions, query capabilities, evidence samples, status, and version.
Graph Shapes of Different Resources
semantic models usually contain:semantic_modelsemantic_cubesemantic_indicatorsemantic_measuresemantic_dimension
sap_odata_servicesap_odata_entity_typesap_odata_entity_setsap_odata_operation
knowledgebaseknowledge_entity
database_sourcedatabase_namespacedatabase_tabledatabase_columndatabase_constraintdatabase_index
Attribute Details
Attributes are the key to graph executability. For example:analysis_contracttells the system how to compile a metric or Cube into a fact query.query_capabilitiestells the system which query options an OData Entity Set supports.key_schematells the system how to read a single OData entity.propertiestells the system the field definitions of an OData Entity Type.connection_summarykeeps only non-sensitive summaries of database connections.evidence_samplesexplains which document snippets knowledge entities come from.
One-hop Neighborhood
The one-hop neighborhood is what Agents use most often. It can answer:- Which parent object the current object belongs to.
- Which available fields or dimensions the current object contains.
- Which entity type the current object points to.
- Which related knowledge entities the current object has.
- Which affordances the current object can execute.
getEntityNeighborhood returns relationship summaries and full attributes of related entities. Agents can generate plans directly from the neighborhood without reading the whole graph at once.
Graph Acceptance
After resource sync, validate the graph as follows:- Check whether entity types match expectations for the resource.
- Check whether core relationships exist, such as model to cube, entity set to entity type, and table to column.
- Check whether key attributes are complete, such as
analysis_contract,properties, andkey_schema. - Check whether node counts are unusually low or high.
- Run action discovery on a typical object and confirm actions can be discovered or provide clear rejection reasons.