1.4 KiB
1.4 KiB
Canonical Model (MVP)
Goal
Normalize selected 1C OData entities into a stable internal schema for search, analysis, and assistant workflows.
Core Entities
OrganizationCounterpartyContractAccountSubcontoDocumentPostingRegisterMovementPeriod
Common Entity Contract
Each canonical entity contains:
source_entity: original OData entity set namesource_id: stable source identifier (for exampleRef_Key)display_name: best-effort display labelattributes: source fields from OData rowlinks: inferred references to related entities
Link Semantics
links[] represent read-only graph edges inferred from reference-like fields:
relation: currentlyreferencetarget_entity: guessed target type by field nametarget_id: ID/GUID of referenced objectsource_field: field that produced the link
Mapping Rules (v1)
- Detect
source_idfromRef_Key,ID,Id,id,Key. - Detect
display_namefromDescription,Presentation,Number,Code, and Russian equivalents. - Treat
_Key,*Ref*, and GUID-like values as link candidates. - Classify entity type by entity set name keywords (RU + EN).
Limitations
- Mapping is heuristic before final per-configuration adapters.
- Some 1C links may require explicit OData navigation expansion.
- Date filtering in API is best effort until entity-specific query templates are added.