feat: Migrate has_agreement_signed_date to is_or_was_based_on and add Agreement class and is_or_was_signed_on slot

This commit is contained in:
kempersc 2026-01-27 00:50:10 +01:00
parent bdba9de593
commit 3d7c52c1de
7 changed files with 116 additions and 1879 deletions

View file

@ -1,5 +1,5 @@
{
"generated": "2026-01-26T22:48:27.648Z",
"generated": "2026-01-26T23:49:30.478Z",
"schemaRoot": "/schemas/20251121/linkml",
"totalFiles": 3014,
"categoryCounts": {

View file

@ -1,5 +1,5 @@
{
"generated": "2026-01-26T23:49:30.478Z",
"generated": "2026-01-26T23:50:10.883Z",
"schemaRoot": "/schemas/20251121/linkml",
"totalFiles": 3014,
"categoryCounts": {

View file

@ -0,0 +1,53 @@
# Agreement class
# Represents a formal agreement, contract, or treaty
#
# Generation date: 2026-01-27
# Rule compliance: 0b, 38, 39, 53
#
# Created for has_agreement_signed_date migration
id: https://nde.nl/ontology/hc/class/Agreement
name: Agreement
title: Agreement Class
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
dcterms: http://purl.org/dc/terms/
default_prefix: hc
imports:
- linkml:types
- ../slots/has_or_had_label
- ../slots/has_or_had_description
- ../slots/is_or_was_signed_on
- ../slots/temporal_extent
- ./TimeSpan
classes:
Agreement:
class_uri: schema:Agreement
description: |
A formal agreement, contract, or treaty between parties.
**Examples**:
- Loan Agreement
- Service Agreement
- Memorandum of Understanding
**Ontological Alignment**:
- `schema:Agreement`: A generic agreement.
slots:
- has_or_had_label
- has_or_had_description
- is_or_was_signed_on
- temporal_extent
slot_usage:
has_or_had_label:
description: Title or name of the agreement.
is_or_was_signed_on:
description: Date the agreement was signed.
temporal_extent:
description: Validity period of the agreement.

View file

@ -16,7 +16,10 @@ imports:
- ../enums/LoanStatusEnum
- ../slots/has_approval_date
- ../slots/has_actual_return_date
- ../slots/has_agreement_signed_date
- ../slots/is_or_was_based_on
- ../classes/Agreement
- ../slots/is_or_was_signed_on
- ../classes/Timestamp
- ../slots/custody_received_by # was: borrower - migrated per Rule 53/56 (2026-01-17)
- ../slots/has_or_had_contact_point # was: borrower_contact - migrated per Rule 53/56 (2026-01-17)
# MIGRATED 2026-01-22: condition_on_return → is_or_was_returned + ReturnEvent (Rule 53)
@ -97,7 +100,7 @@ classes:
- schema:TransferAction
slots:
- temporal_extent # was: has_actual_return_date - migrated per Rule 53 (2026-01-26)
- has_agreement_signed_date
- is_or_was_based_on
- has_approval_date
- custody_received_by # was: borrower - migrated per Rule 53/56 (2026-01-17)
- has_or_had_contact_point # was: borrower_contact - migrated per Rule 53/56 (2026-01-17)
@ -134,6 +137,16 @@ classes:
- specificity_annotation
- has_or_had_score # was: template_specificity - migrated per Rule 53 (2026-01-17)
slot_usage:
is_or_was_based_on:
range: Agreement
description: |
The formal agreement governing the loan.
Replaces has_agreement_signed_date per Rule 53.
examples:
- value:
has_or_had_label: "Loan Agreement 2023-001"
is_or_was_signed_on: "2022-03-15"
description: Signed loan agreement
loan_id:
identifier: true
required: true
@ -419,6 +432,9 @@ classes:
request_date: '2021-06-15'
approval_date: '2021-09-20'
agreement_signed_date: '2022-03-15'
is_or_was_based_on:
has_or_had_label: "Loan Agreement 2023-001"
is_or_was_signed_on: "2022-03-15"
loan_start_date: '2023-02-10'
loan_end_date: '2023-06-04'
temporal_extent: # was: has_actual_return_date (2026-01-26)

View file

@ -0,0 +1,40 @@
# is_or_was_signed_on slot
# Generic slot for signature dates
#
# Generation date: 2026-01-27
# Rule compliance: 38, 39, 42
#
# Part of has_agreement_signed_date migration (Rule 53)
id: https://nde.nl/ontology/hc/slot/is_or_was_signed_on
name: is_or_was_signed_on_slot
title: Is Or Was Signed On Slot
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
default_prefix: hc
imports:
- linkml:types
slots:
is_or_was_signed_on:
slot_uri: schema:dateCreated
description: |
The date when an agreement, contract, or document was signed.
**Temporal Semantics** (RiC-O Pattern):
"isOrWas" indicates the signing event in the past.
**Ontological Alignment**:
- `schema:dateCreated`: The date on which the CreativeWork was created or the item was added to a DataFeed.
**Range**:
- Can be a simple date string.
- Can be a structured date object if needed.
range: uriorcurie
multivalued: false
required: false

File diff suppressed because it is too large Load diff