Semantic analysis is the most typical read-only execution scenario in the UOSE system. It maps a user’s natural language analysis need to semantic model objects, then queries fact data from the source through controlled actions.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.
Use Cases
The semantic analysis flow is suitable for questions such as:- Query the trend of a metric over a recent period.
- View Cube slices by dimensions such as region, product, or store.
- Compare metrics year over year, period over period, or against previous periods.
- See which analyzable dimensions and measures a Cube has.
- Explain why a metric cannot currently be queried.
Recommended Flow
Step 1: Locate the Object
First usequeryEntities to query the target object. For metric questions, prefer narrowing the scope:
Step 2: Read the Neighborhood
UsegetEntityNeighborhood to inspect the indicator’s owning Cube, related measures, available dimensions, and analysis_contract. Focus on:
- Whether the indicator is attached to a cube.
- Whether the cube has measures and dimensions.
- Whether
analysis_contractcontains metricRefs. - Whether a default time dimension exists.
- Whether optional granularity satisfies the user’s question.
Step 3: Discover Actions
For an indicator, usually expect:semantic_model.query_metric_snapshot
semantic_model.query_cube_slice
analysis_contract_missing, query_endpoint_missing, or policy denial.
Step 4: Simulate
Simulate before execution. Example metric trend request:Step 5: Execute and Explain
In execution results, focus on:effect.seriesoreffect.rows.effect.summary.effect.appliedPlan.auditRef.policyDecision.
Common Issues
- The metric can be found but cannot execute: check
analysis_contract. - Cube slice parameters fail: check whether dimensions and measures are in the contract.
- Time window does not take effect: use
window.fromandwindow.toconsistently. - Result is empty: check business filters and source-system fact data, not only the UOSE graph.