From 223522ecd839e9bfe72f222b073d8fef78e7f7a9 Mon Sep 17 00:00:00 2001 From: Michael Hanke Date: Fri, 6 Feb 2026 20:41:50 +0100 Subject: [PATCH] rf: Base `DataItem` on `ValueSpecificationMixin` not `ValueSpecification` The reason is that the latter required a `value`, whereas we also want to be able to describe more complex data types (e.g. images). --- .../unreleased/examples/XYZDataItem-03-prov.json | 6 +++--- src/things-data/unreleased.yaml | 4 +++- .../unreleased/examples/DataItem-02-attributes.json | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/demo-research-information/unreleased/examples/XYZDataItem-03-prov.json b/src/demo-research-information/unreleased/examples/XYZDataItem-03-prov.json index beb3e20..836d733 100644 --- a/src/demo-research-information/unreleased/examples/XYZDataItem-03-prov.json +++ b/src/demo-research-information/unreleased/examples/XYZDataItem-03-prov.json @@ -2,12 +2,12 @@ "pid": "ex:wind-strength-on-20250815", "kind": "obo:ENVO_01001362", "schema_type": "xyzri:XYZDataItem", - "value": "22", - "defined_by": "sio:SIO_001215", - "unit": "obo:UO_0000094", "part_of": [ "ex:dataset/windy" ], + "defined_by": "sio:SIO_001215", + "unit": "obo:UO_0000094", + "value": "22", "attributed_to": [ { "object": "ex:dr-no", diff --git a/src/things-data/unreleased.yaml b/src/things-data/unreleased.yaml index 6336047..a2e224c 100644 --- a/src/things-data/unreleased.yaml +++ b/src/things-data/unreleased.yaml @@ -53,7 +53,9 @@ imports: classes: DataItem: - is_a: ValueSpecification + is_a: Thing + mixins: + - ValueSpecificationMixin description: >- An information content entity that is intended to be a truthful statement about something (modulo, e.g., measurement precision or other systematic diff --git a/src/things-data/unreleased/examples/DataItem-02-attributes.json b/src/things-data/unreleased/examples/DataItem-02-attributes.json index 8a89ee4..5e3d2a8 100644 --- a/src/things-data/unreleased/examples/DataItem-02-attributes.json +++ b/src/things-data/unreleased/examples/DataItem-02-attributes.json @@ -2,11 +2,11 @@ "pid": "https://example.org/wind-strength-on-20250815", "kind": "http://purl.obolibrary.org/obo/ENVO_01001362", "schema_type": "dlthings:DataItem", - "value": "22", - "defined_by": "http://semanticscience.org/resource/SIO_001215", - "unit": "obo:UO_0000094", "part_of": [ "https://example.org/dataset/windy" ], + "defined_by": "http://semanticscience.org/resource/SIO_001215", + "unit": "obo:UO_0000094", + "value": "22", "@type": "DataItem" } -- 2.54.1