Initial import NDC_1C
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# 2020 экспорт: состав выгрузки
|
||||
|
||||
Папка собрана автоматически для ручного анализа текущего состояния.
|
||||
|
||||
## Файлы
|
||||
|
||||
1. `01_ontology_mapping_layer.md` — текущая онтология/мэппинг и метрики среза.
|
||||
2. `02_canonical_relation_rules.md` — правила построения canonical relations.
|
||||
3. `03_snapshot_fragment_problem_cases.json` — проблемный фрагмент snapshot июня 2020.
|
||||
4. `04_samples_SpisanieSRaschetnogoScheta.json` — реальные записи по `СписаниеСРасчетногоСчета`.
|
||||
5. `05_samples_RealizaciyaTovarovUslug.json` — реальные записи по `РеализацияТоваровУслуг`.
|
||||
6. `06_samples_PostuplenieTovarovUslug.json` — реальные записи по `ПоступлениеТоваровУслуг`.
|
||||
7. `07_samples_DocumentJournals.json` — реальные записи по журналам документов.
|
||||
8. `08_samples_NDS_registers.json` — реальные записи по НДС-регистрам.
|
||||
9. `09_samples_key_fields_Recorder_Ref_Supplier_Buyer_Responsible.json` — записи с ключевыми полями.
|
||||
|
||||
## Ключевые поля: фактическая встречаемость в snapshot
|
||||
|
||||
| field | count |
|
||||
| --- | --- |
|
||||
| Ответственный_Key | 187 |
|
||||
| Ref | 168 |
|
||||
| Recorder | 147 |
|
||||
| Ref_Key | 93 |
|
||||
| Поставщик_Key | 78 |
|
||||
| Покупатель_Key | 46 |
|
||||
@@ -0,0 +1,96 @@
|
||||
# Текущая онтология / mapping-слой
|
||||
|
||||
Дата экспорта: 2026-03-23T10:23:29.088258+00:00
|
||||
Источник snapshot: `X:\1C\NDC_1C\logs\pre_report_snapshot_2020_2020-06_semantic_v2.json`
|
||||
|
||||
## Что считается сущностями сейчас
|
||||
|
||||
Базовая модель (canonical classes):
|
||||
- `CanonicalEntity`
|
||||
- `Organization`
|
||||
- `Counterparty`
|
||||
- `Contract`
|
||||
- `Account`
|
||||
- `Subconto`
|
||||
- `ResponsiblePerson`
|
||||
- `Currency`
|
||||
- `Warehouse`
|
||||
- `CashflowArticle`
|
||||
- `Department`
|
||||
- `Individual`
|
||||
- `Item`
|
||||
- `BankAccount`
|
||||
- `Document`
|
||||
- `InvoiceDocument`
|
||||
- `Posting`
|
||||
- `RegisterMovement`
|
||||
- `RegisterRecord`
|
||||
- `Period`
|
||||
|
||||
## Срез июня 2020: покрытие сущностей
|
||||
|
||||
- Отобранный период: `2020-06`
|
||||
- Диапазон: `2020-06-01T00:00:00+00:00 -> 2020-07-01T00:00:00+00:00`
|
||||
- Записей в slice: `409`
|
||||
- Связей в slice: `2011`
|
||||
- Entity sets: `42`
|
||||
- Записей с `source_id=unknown`: `0`
|
||||
|
||||
### Распределение entity sets по canonical-классам
|
||||
|
||||
| Canonical class | Entity set count |
|
||||
| --- | --- |
|
||||
| Account | 3 |
|
||||
| Document | 28 |
|
||||
| Individual | 1 |
|
||||
| InvoiceDocument | 2 |
|
||||
| RegisterRecord | 8 |
|
||||
|
||||
### Топ target_entity в links
|
||||
|
||||
| target_entity | count |
|
||||
| --- | --- |
|
||||
| Document | 458 |
|
||||
| Counterparty | 440 |
|
||||
| Organization | 434 |
|
||||
| Account | 217 |
|
||||
| Currency | 158 |
|
||||
| ResponsiblePerson | 112 |
|
||||
| Unknown | 102 |
|
||||
| BankAccount | 30 |
|
||||
| Individual | 22 |
|
||||
| Department | 18 |
|
||||
| Warehouse | 12 |
|
||||
| Contract | 7 |
|
||||
| Item | 1 |
|
||||
|
||||
### Топ relation в links
|
||||
|
||||
| relation | count |
|
||||
| --- | --- |
|
||||
| journal_refers_to_document | 168 |
|
||||
| journal_organization | 168 |
|
||||
| reference | 165 |
|
||||
| register_relates_to_organization | 148 |
|
||||
| register_recorded_by_document | 147 |
|
||||
| document_has_counterparty | 139 |
|
||||
| document_line_has_account | 136 |
|
||||
| journal_counterparty | 133 |
|
||||
| register_relates_to_invoice | 124 |
|
||||
| document_belongs_to_organization | 118 |
|
||||
| journal_has_currency | 95 |
|
||||
| register_relates_to_supplier | 78 |
|
||||
| register_relates_to_account | 77 |
|
||||
| document_has_currency | 63 |
|
||||
| document_has_responsible | 57 |
|
||||
| journal_responsible | 55 |
|
||||
| register_relates_to_buyer | 46 |
|
||||
| journal_bank_account | 30 |
|
||||
| register_relates_to_individual | 21 |
|
||||
| register_relates_to_department | 18 |
|
||||
|
||||
### Качество типизации связей
|
||||
|
||||
- Всего связей: `2011`
|
||||
- Связей с `target_entity=Unknown`: `102`
|
||||
- Доля unknown: `5.07%`
|
||||
@@ -0,0 +1,32 @@
|
||||
# Текущие canonical relation rules
|
||||
|
||||
Источник: `canonical_layer/mappers.py`
|
||||
|
||||
## Текущий каталог semantic relations
|
||||
|
||||
| Context | Field role | Relation |
|
||||
| --- | --- | --- |
|
||||
| register | recorder | register_recorded_by_document |
|
||||
| journal | ref | journal_refers_to_document |
|
||||
| document | counterparty | document_has_counterparty |
|
||||
| document | contract | document_has_contract |
|
||||
| document | organization | document_belongs_to_organization |
|
||||
| document | responsible | document_has_responsible |
|
||||
| document | currency | document_has_currency |
|
||||
| document | warehouse | document_has_warehouse |
|
||||
| document | cashflow_article | document_has_cashflow_article |
|
||||
| document | bank_account | document_has_bank_account |
|
||||
| register | supplier | register_relates_to_supplier |
|
||||
| register | buyer | register_relates_to_buyer |
|
||||
| register | invoice | register_relates_to_invoice |
|
||||
| register | contract | register_relates_to_contract |
|
||||
| register | organization | register_relates_to_organization |
|
||||
| register | account | register_relates_to_account |
|
||||
| register | item | register_relates_to_item |
|
||||
|
||||
## Базовые правила извлечения ссылок
|
||||
|
||||
1. Поле попадает в link, если это `_Key`, `*ref`, GUID или semantic-поле (например `Recorder`, `СчетФактура`).
|
||||
2. `*_Type` используется как приоритетная подсказка типа target-сущности.
|
||||
3. Нулевые GUID (`00000000-...`) отфильтровываются из canonical links.
|
||||
4. Если `source_id` отсутствует, строится составной `cmp:<sha1>` ключ.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+8753
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user