Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions NTO/Accounting/attributes/commercialPartnerCountryCode.ttl

This file was deleted.

14 changes: 14 additions & 0 deletions NTO/Accounting/attributes/counterpartyCountryCode.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@prefix ogit.Accounting: <http://www.purl.org/ogit/Accounting/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Accounting:counterpartyCountryCode
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "counterpartyCountryCode";
dcterms:description "ISO 3166-1 alpha-2 code of the country of the counterparty (the customer or supplier) of a journal entry. Used to match sanctions-list jurisdictions, to decide VAT reverse charge and to route e-invoices (Peppol/UBL). Kept on the entry so these checks do not have to follow the counterparty relation.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI)";
.
4 changes: 2 additions & 2 deletions NTO/Accounting/attributes/fiscalCountryCode.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ogit.Accounting:fiscalCountryCode
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "fiscalCountryCode";
dcterms:description "ISO 3166-1 alpha-2 code of the fiscal country of this entity's company. Denormalised root-level promotion of the Odoo 3-hop chain `company_id.account_fiscal_country_id.code` (5 occurrences across TIER-1 addons per lance-graph EXT-1..6). Collapses VAT calc / sanctions cross-reference / jurisdiction routing reads from O(3) Many2one traversal to O(1) codebook lookup. Recomputed via ComputeRecompute cascade when the entity's company or that company's fiscal country changes.";
dcterms:description "ISO 3166-1 alpha-2 code of the fiscal country of the company that owns this entity. Used for VAT calculation, sanctions checks and jurisdiction routing. Kept on the entity so these checks do not have to follow the company relation; the hasFiscalCountry edge gives the same jurisdiction as a FiscalJurisdiction node.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
.
4 changes: 2 additions & 2 deletions NTO/Accounting/attributes/isEuMember.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ogit.Accounting:isEuMember
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "isEuMember";
dcterms:description "Boolean — true iff this fiscal jurisdiction is a current EU member state. Codebook attribute on FiscalJurisdiction. Hot path for VAT reverse-charge eligibility (intra-EU B2B reverse-charge rules), Peppol/UBL e-invoice routing, and MOSS / OSS classification.";
dcterms:description "True if this fiscal jurisdiction is a current EU member state. Used to decide intra-EU reverse charge, Peppol/UBL routing and OSS classification.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
.
4 changes: 2 additions & 2 deletions NTO/Accounting/attributes/iso3166Alpha2.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ogit.Accounting:iso3166Alpha2
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "iso3166Alpha2";
dcterms:description "Two-letter ISO 3166-1 alpha-2 country code (e.g. `DE`, `AT`, `CH`, `US`). Canonical codebook key for the FiscalJurisdiction entity — used as the indexed attribute that makes country lookups O(1). The two-letter form is the universal join key across Odoo (`res.country.code`), Peppol/UBL (`ram:CountryCode`), SWIFT BIC country segment, and OFAC sanctions list jurisdiction filters.";
dcterms:description "Two-letter ISO 3166-1 alpha-2 country code (for example `DE`, `AT`, `CH`, `US`). The indexed key of FiscalJurisdiction: one jurisdiction per code. The same two-letter code is used by Peppol/UBL, by the country segment of a SWIFT BIC and by sanctions-list jurisdiction filters.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
.
14 changes: 0 additions & 14 deletions NTO/Accounting/attributes/productCategoryComplete.ttl

This file was deleted.

4 changes: 2 additions & 2 deletions NTO/Accounting/attributes/vatRateStandard.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ogit.Accounting:vatRateStandard
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "vatRateStandard";
dcterms:description "Standard VAT / Mehrwertsteuer rate of this fiscal jurisdiction, expressed as a decimal fraction (e.g. `0.19` for the German 19% Regelsteuersatz). Codebook attribute on FiscalJurisdiction. Reduced rates and special exemptions are not modelled here — use the per-jurisdiction Tax entity for those.";
dcterms:description "Standard VAT rate of this fiscal jurisdiction as a decimal fraction (for example `0.19` for 19%). Reduced rates and exemptions are not modelled here; use the jurisdiction's Tax entity for those.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
.
6 changes: 4 additions & 2 deletions NTO/Accounting/entities/FiscalJurisdiction.ttl
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
@prefix ogit.Accounting: <http://www.purl.org/ogit/Accounting/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix ogit.Compliance: <http://www.purl.org/ogit/Compliance/> .
@prefix ogit.FinancialMarket: <http://www.purl.org/ogit/FinancialMarket/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Accounting:FiscalJurisdiction
a rdfs:Class;
rdfs:subClassOf ogit:Entity;
rdfs:label "FiscalJurisdiction";
dcterms:description "Codebook entry pinning a fiscal jurisdiction by ISO 3166-1 alpha-2 code. The canonical lookup target for `hasFiscalCountry` edges and the resolved leaf of the Odoo 3-hop chain `entity.company_id.account_fiscal_country_id`. Strict codebook semantics: one entry per ISO 3166-1 alpha-2 code, no duplicates. Standard VAT rate + EU membership are denormalised onto the entry so jurisdiction-conditional logic (reverse-charge, MOSS/OSS, GoBD applicability) reads as O(1) attribute access, not a downstream graph join. Cross-jurisdictional sanctions cross-reference is supported via an outbound edge to ogit.Compliance:SanctionsEntry when the jurisdiction maintains a sanctions programme.";
dcterms:description "A fiscal jurisdiction, identified by its ISO 3166-1 alpha-2 code: one entry per code. The target of hasFiscalCountry edges. Carries the standard VAT rate and EU membership, so jurisdiction-dependent rules (reverse charge, OSS, record-keeping obligations) read an attribute instead of following further edges. Links to a sanctions entry when the jurisdiction runs a sanctions programme.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
ogit:scope "NTO";
ogit:parent ogit:Node;
ogit:mandatory-attributes (
Expand Down
8 changes: 4 additions & 4 deletions NTO/Accounting/entities/JournalEntry.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ogit.Accounting:JournalEntry
a rdfs:Class;
rdfs:subClassOf ogit:Entity;
rdfs:label "JournalEntry";
dcterms:description "A double-entry accounting journal entry — the canonical OGIT projection of Odoo `account.move` (and the deeply analogous SAP `BSEG` document line, MS Dynamics `JournalLine`, DATEV `Buchung`). Demonstrates the 3-hop optimisation doctrine: instead of the lookups `entity.company_id.account_fiscal_country_id.code` (5+ Odoo sites) and `move.commercial_partner_id.country_id`, the leaf attributes are promoted onto JournalEntry directly (`fiscalCountryCode`, `commercialPartnerCountryCode`) and the intermediate hops are also accessible via the shortcut verb `hasFiscalCountry` for graph traversal. Both routes are kept — promoted attribute for hot-path reads, edge verb for cascade traversal — and the EdgeColumn ComputeRecompute cascade keeps them coherent.";
dcterms:description "A double-entry accounting journal entry: a dated, balanced set of debit and credit lines in one currency, with a status (for example draft or posted). The fiscal country of the owning company and the country of the counterparty are kept on the entry (fiscalCountryCode, counterpartyCountryCode) for VAT and sanctions checks; the hasFiscalCountry edge links the same jurisdiction as a node.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
ogit:scope "NTO";
ogit:parent ogit:Node;
ogit:mandatory-attributes (
Expand All @@ -25,13 +25,13 @@ ogit.Accounting:JournalEntry
ogit:createdAt
ogit:lastUpdatedAt
ogit.Accounting:fiscalCountryCode
ogit.Accounting:commercialPartnerCountryCode
ogit.Accounting:counterpartyCountryCode
);
ogit:indexed-attributes (
ogit:id
ogit:status
ogit.Accounting:fiscalCountryCode
ogit.Accounting:commercialPartnerCountryCode
ogit.Accounting:counterpartyCountryCode
);
ogit:allowed (
[ ogit.Accounting:hasFiscalCountry ogit.Accounting:FiscalJurisdiction ]
Expand Down
4 changes: 2 additions & 2 deletions NTO/Accounting/verbs/hasFiscalCountry.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ogit.Accounting:hasFiscalCountry
a owl:ObjectProperty;
rdfs:subPropertyOf ogit:Verb;
rdfs:label "hasFiscalCountry";
dcterms:description "Direct edge from a fiscal entity (JournalEntry, CompanyEntity, FinancialInstrument, Tax) to its fiscal jurisdiction (FiscalJurisdiction codebook entry / FinancialMarket:Country). Collapses the Odoo 2-hop chain `entity.company_id.account_fiscal_country_id` and the 3-hop variant `entity.company_id.account_fiscal_country_id.code` into one typed edge in the EdgeColumn. Targets: ogit.Accounting:FiscalJurisdiction (preferred) or ogit.FinancialMarket:Country.";
dcterms:description "Links a fiscal entity (journal entry, company, financial instrument, tax) to the jurisdiction whose tax rules apply to it. Target: ogit.Accounting:FiscalJurisdiction, or ogit.FinancialMarket:Country.";
dcterms:valid "start=2026-05-28;";
dcterms:creator "Claude (AdaWorldAPI/lance-graph 3-hop optim)";
dcterms:creator "Claude (AdaWorldAPI)";
.
14 changes: 0 additions & 14 deletions NTO/Accounting/verbs/hasPickingType.ttl

This file was deleted.

14 changes: 0 additions & 14 deletions NTO/Accounting/verbs/hasProductCategory.ttl

This file was deleted.

16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/anomize.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:anomize
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "anomize";
dcterms:description "Anonymisation flag for research export (praxis_patient.p_anomize).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:praxis_patient.p_anomize";
ogit:type "xsd:boolean";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/birth.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:birth
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "birth";
dcterms:description "Patient date of birth (praxis_patient.p_birth).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:praxis_patient.p_birth";
ogit:type "xsd:dateTime";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/bloodPressureDiastolic.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:bloodPressureDiastolic
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "bloodPressureDiastolic";
dcterms:description "Diastolic blood pressure in mmHg (pf_vital_bloodpressure.dia).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_vital_bloodpressure.dia";
ogit:type "xsd:float";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/bloodPressureSystolic.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:bloodPressureSystolic
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "bloodPressureSystolic";
dcterms:description "Systolic blood pressure in mmHg (pf_vital_bloodpressure.sys).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_vital_bloodpressure.sys";
ogit:type "xsd:float";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/country.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:country
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "country";
dcterms:description "Patient country (praxis_patient.p_country).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:praxis_patient.p_country";
ogit:type "xsd:string";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/createDate.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:createDate
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "createDate";
dcterms:description "Entry creation timestamp (pf_diagnosis.d_createdate).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_diagnosis.d_createdate";
ogit:type "xsd:dateTime";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/datum.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:datum
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "datum";
dcterms:description "Measurement timestamp (pf_vital_bloodpressure.datum).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_vital_bloodpressure.datum";
ogit:type "xsd:dateTime";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/dbSourceDb.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:dbSourceDb
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "dbSourceDb";
dcterms:description "Provenance: name of the source database the row was imported from (pf_therapy.db_sourcedb).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_therapy.db_sourcedb";
ogit:type "xsd:string";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
16 changes: 16 additions & 0 deletions NTO/Healthcare/attributes/dbSourceId.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@prefix ogit.Healthcare: <http://www.purl.org/ogit/Healthcare/> .
@prefix ogit: <http://www.purl.org/ogit/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

ogit.Healthcare:dbSourceId
a owl:DatatypeProperty;
rdfs:subPropertyOf ogit:Attribute;
rdfs:label "dbSourceId";
dcterms:description "Provenance: row id in the source database (pf_therapy.db_sourceid).";
dcterms:source "AdaWorldAPI/MedCare-rs/.MYSQL/Struktur.sql:pf_therapy.db_sourceid";
ogit:type "xsd:integer";
dcterms:valid "start=2026-10-10;";
dcterms:creator "claude-ogit-bootstrap";
.
Loading