From 554c5721ea3f73f43f55fd92f0bdba503fbf6308 Mon Sep 17 00:00:00 2001 From: kempersc Date: Wed, 14 Jan 2026 09:06:36 +0100 Subject: [PATCH] fix: update generated timestamp in manifest.json and add has_or_had_expenses slot definition --- .../schemas/20251121/linkml/manifest.json | 2 +- schemas/20251121/linkml/manifest.json | 2 +- .../modules/slots/has_or_had_expenses.yaml | 70 +++++++++++++++++++ 3 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 schemas/20251121/linkml/modules/slots/has_or_had_expenses.yaml diff --git a/frontend/public/schemas/20251121/linkml/manifest.json b/frontend/public/schemas/20251121/linkml/manifest.json index d6e8f5f8d6..3448f700b6 100644 --- a/frontend/public/schemas/20251121/linkml/manifest.json +++ b/frontend/public/schemas/20251121/linkml/manifest.json @@ -1,5 +1,5 @@ { - "generated": "2026-01-13T23:20:27.789Z", + "generated": "2026-01-14T08:05:54.440Z", "schemaRoot": "/schemas/20251121/linkml", "totalFiles": 2923, "categoryCounts": { diff --git a/schemas/20251121/linkml/manifest.json b/schemas/20251121/linkml/manifest.json index 3448f700b6..ce8d8d3535 100644 --- a/schemas/20251121/linkml/manifest.json +++ b/schemas/20251121/linkml/manifest.json @@ -1,5 +1,5 @@ { - "generated": "2026-01-14T08:05:54.440Z", + "generated": "2026-01-14T08:06:36.818Z", "schemaRoot": "/schemas/20251121/linkml", "totalFiles": 2923, "categoryCounts": { diff --git a/schemas/20251121/linkml/modules/slots/has_or_had_expenses.yaml b/schemas/20251121/linkml/modules/slots/has_or_had_expenses.yaml new file mode 100644 index 0000000000..184bb9a965 --- /dev/null +++ b/schemas/20251121/linkml/modules/slots/has_or_had_expenses.yaml @@ -0,0 +1,70 @@ +id: https://nde.nl/ontology/hc/slot/has_or_had_expenses +name: has_or_had_expenses_slot +title: Has Or Had Expenses Slot +description: >- + Links an entity to its expense records. Follows RiC-O temporal naming + convention (has_or_had_*) to indicate the relationship may be current + or historical. + +prefixes: + linkml: https://w3id.org/linkml/ + hc: https://nde.nl/ontology/hc/ + schema: http://schema.org/ + frapo: http://purl.org/cerif/frapo/ + +imports: + - linkml:types + +default_prefix: hc + +slots: + has_or_had_expenses: + description: >- + Links an entity (e.g., FinancialStatement, Budget) to its categorized + expense records. + + **USAGE**: + + ```yaml + financial_statement: + has_or_had_expenses: + - expense_type: ADMINISTRATIVE + amount: 10000000.0 + currency: EUR + - expense_type: PROGRAM + amount: 62000000.0 + currency: EUR + ``` + + **DESIGN RATIONALE**: + + This is a GENERIC slot following slot_fixes.yaml revision. Do NOT create + bespoke slots like `has_administrative_expenses` or `has_program_expenses`. + Instead, use this single slot with Expenses instances that have an + `expense_type` classification. + + **REPLACES**: + + - `administrative_expenses` (deprecated stub) + - `has_or_had_administrative_expense` (bespoke, should not have been created) + - `program_expense` (migrate to Expenses with type=PROGRAM) + - `fundraising_expense` (migrate to Expenses with type=FUNDRAISING) + - `innovation_expense` (migrate to Expenses with type=INNOVATION) + range: Expenses + multivalued: true + inlined: true + inlined_as_list: true + slot_uri: hc:hasOrHadExpenses + exact_mappings: + - frapo:hasExpenditure + related_mappings: + - schema:MonetaryAmount + - frapo:hasFunding + annotations: + custodian_types: '["*"]' + custodian_types_rationale: Financial expenses applicable to all heritage custodian types. + custodian_types_primary: M + specificity_score: 0.55 + specificity_rationale: >- + Moderately specific - financial expense tracking is specialized but applicable + across institution types with financial reporting requirements.