TheDocumentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
semantic_model resource connects Xpert semantic models to the UOSE system. It syncs models, Cubes, metrics, measures, and dimensions as ontology objects and provides read-only analytical actions through semantic query interfaces.
Synced Objects
After sync, it usually contains:semantic_model: top-level semantic model.semantic_cube: analytical Cube under the model.semantic_indicator: business metric.semantic_measure: measure under the Cube.semantic_dimension: dimension under the Cube.
semantic_model_has_cubesemantic_cube_has_indicatorsemantic_cube_has_measuresemantic_cube_has_dimension
Connection and Capabilities
Connections usually point to the xpert-pro API. Secrets support:current_user_oidc: use the current user’s OIDC token.static_bearer: use a static Bearer token.api_key: use an API key.
modelIds: local model filter after sync.endpoints.modelList: semantic model list API.endpoints.modelById: model detail API.endpoints.query: semantic query API.pagination.models: model list pagination configuration.
Analysis Contract
analysis_contract is the key for semantic model resources to execute fact queries. It usually appears in semantic_cube and semantic_indicator attributes and contains:
- modelId.
- cubeId.
- cubeName.
- metricRefs.
- defaultTimeDimension.
- supportedGranularities.
- defaultDimensions.
- filterableFields.
analysis_contract is missing, the entity can still be searched and displayed, but query actions are rejected.
Actions
Common actions include:semantic_model.query_metric_snapshot: query metric time series.semantic_model.query_cube_slice: query Cube group slices.semantic_model.query_calculated_expression: query calculated expressions.semantic_model.query_statement: execute controlled semantic query statements.semantic_model.query_native_dsl: execute native semantic query DSL.
Recommended Usage
- Register the resource and complete full sync.
- In the ontology workspace, confirm that models, Cubes, metrics, measures, and dimensions have entered the graph.
- Use
queryEntitiesto locate the target indicator or cube. - Use
getEntityNeighborhoodto inspect the owning Cube and available dimensions. - Use
discoverActionsto confirm executable query actions. - Use
simulateActionto validate time window, granularity, dimensions, and filters. - Use
executeActionto return trends, tables, or analytical summaries.