diff --git a/Makefile b/Makefile index a3f44b4..0f9199f 100644 --- a/Makefile +++ b/Makefile @@ -20,16 +20,27 @@ build/linkml-docs: \ build/linkml-docs/s/relations-mixin/unreleased \ build/linkml-docs/s/things/unreleased \ build/linkml-docs/s/things/v1 \ + build/linkml-docs/s/things/v2 \ build/linkml-docs/s/things-properties/unreleased \ + build/linkml-docs/s/things-properties/v1 \ build/linkml-docs/s/things-data/unreleased \ + build/linkml-docs/s/things-data/v1 \ build/linkml-docs/s/things-study/unreleased \ + build/linkml-docs/s/things-study/v1 \ build/linkml-docs/s/things-resources/unreleased \ + build/linkml-docs/s/things-resources/v1 \ build/linkml-docs/s/things-rules/unreleased \ + build/linkml-docs/s/things-rules/v1 \ build/linkml-docs/s/things-distributions/unreleased \ + build/linkml-docs/s/things-distributions/v1 \ build/linkml-docs/s/things-social/unreleased \ + build/linkml-docs/s/things-social/v1 \ build/linkml-docs/s/things-files/unreleased \ + build/linkml-docs/s/things-files/v1 \ build/linkml-docs/s/things-publications/unreleased \ + build/linkml-docs/s/things-publications/v1 \ build/linkml-docs/s/things-prov/unreleased \ + build/linkml-docs/s/things-prov/v1 \ build/linkml-docs/s/flat/unreleased \ build/linkml-docs/s/spatial-mixin/unreleased \ build/linkml-docs/s/temporal-mixin/unreleased \ @@ -99,16 +110,27 @@ check-models: \ checkmodel/relations-mixin/unreleased \ checkmodel/things/unreleased \ checkmodel/things/v1 \ + checkmodel/things/v2 \ checkmodel/things-properties/unreleased \ + checkmodel/things-properties/v1 \ checkmodel/things-study/unreleased \ + checkmodel/things-study/v1 \ checkmodel/things-data/unreleased \ + checkmodel/things-data/v1 \ checkmodel/things-resources/unreleased \ + checkmodel/things-resources/v1 \ checkmodel/things-rules/unreleased \ + checkmodel/things-rules/v1 \ checkmodel/things-distributions/unreleased \ + checkmodel/things-distributions/v1 \ checkmodel/things-social/unreleased \ + checkmodel/things-social/v1 \ checkmodel/things-files/unreleased \ + checkmodel/things-files/v1 \ checkmodel/things-publications/unreleased \ + checkmodel/things-publications/v1 \ checkmodel/things-prov/unreleased \ + checkmodel/things-prov/v1 \ checkmodel/flat/unreleased \ checkmodel/spatial-mixin/unreleased \ checkmodel/temporal-mixin/unreleased \ @@ -165,22 +187,40 @@ check-validation: \ checkvalidation/things/unreleased \ convertexamples/things/v1 \ checkvalidation/things/v1 \ + convertexamples/things/v2 \ + checkvalidation/things/v2 \ convertexamples/things-distributions/unreleased \ checkvalidation/things-distributions/unreleased \ + convertexamples/things-distributions/v1 \ + checkvalidation/things-distributions/v1 \ convertexamples/things-social/unreleased \ checkvalidation/things-social/unreleased \ + convertexamples/things-social/v1 \ + checkvalidation/things-social/v1 \ convertexamples/things-study/unreleased \ checkvalidation/things-study/unreleased \ + convertexamples/things-study/v1 \ + checkvalidation/things-study/v1 \ convertexamples/things-data/unreleased \ checkvalidation/things-data/unreleased \ + convertexamples/things-data/v1 \ + checkvalidation/things-data/v1 \ convertexamples/things-resources/unreleased \ checkvalidation/things-resources/unreleased \ + convertexamples/things-resources/v1 \ + checkvalidation/things-resources/v1 \ convertexamples/things-rules/unreleased \ checkvalidation/things-rules/unreleased \ + convertexamples/things-rules/v1 \ + checkvalidation/things-rules/v1 \ convertexamples/things-files/unreleased \ checkvalidation/things-files/unreleased \ + convertexamples/things-files/v1 \ + checkvalidation/things-files/v1 \ convertexamples/things-publications/unreleased \ checkvalidation/things-publications/unreleased \ + convertexamples/things-publications/v1 \ + checkvalidation/things-publications/v1 \ convertexamples/demo-empirical-data/unreleased \ checkvalidation/demo-empirical-data/unreleased \ convertexamples/demo-research-assets/unreleased \ @@ -205,14 +245,23 @@ checkinvalid/%: src/%/validation src/%.yaml convert-examples: \ convertexamples/things/unreleased \ convertexamples/things/v1 \ + convertexamples/things/v2 \ convertexamples/things-distributions/unreleased \ + convertexamples/things-distributions/v1 \ convertexamples/things-social/unreleased \ + convertexamples/things-social/v1 \ convertexamples/things-study/unreleased \ + convertexamples/things-study/v1 \ convertexamples/things-data/unreleased \ + convertexamples/things-data/v1 \ convertexamples/things-resources/unreleased \ + convertexamples/things-resources/v1 \ convertexamples/things-rules/unreleased \ + convertexamples/things-rules/v1 \ convertexamples/things-files/unreleased \ + convertexamples/things-files/v1 \ convertexamples/things-publications/unreleased \ + convertexamples/things-publications/v1 \ convertexamples/flat/unreleased \ convertexamples/flat-prov/unreleased \ convertexamples/flat-publications/unreleased \ diff --git a/extra-docs/index.md b/extra-docs/index.md index 0187891..7969e7d 100644 --- a/extra-docs/index.md +++ b/extra-docs/index.md @@ -24,22 +24,17 @@ The sources for all schemas are on [GitHub](https://github.com/psychoinformatics ### Latest releases -- [Things (v1)](s/things/v1/index.md): foundational schema to describe any "thing" - -### Development - -ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME - -- [Things properties schema](s/things-properties/unreleased/index.md) -- [Things data schema](s/things-data/unreleased/index.md) -- [Things study schema](s/things-study/unreleased/index.md) -- [Things resources schema](s/things-resources/unreleased/index.md) -- [Things rules schema](s/things-rules/unreleased/index.md) -- [Things distributions schema](s/things-distributions/unreleased/index.md) -- [Things social schema](s/things-social/unreleased/index.md) -- [Things files schema](s/things-files/unreleased/index.md) -- [Things publications schema](s/things-publications/unreleased/index.md) -- [Things provenance schema](s/things-prov/unreleased/index.md) +- [Things (v2)](s/things/v2/index.md): foundational schema to describe any "thing" +- [Things properties add-on (v1)](s/things-properties/v1/index.md) +- [Things data add-on (v1)](s/things-data/v1/index.md) +- [Things study add-on (v1)](s/things-study/v1/index.md) +- [Things resources add-on (v1)](s/things-resources/v1/index.md) +- [Things rules add-on (v1)](s/things-rules/v1/index.md) +- [Things distributions add-on (v1)](s/things-distributions/v1/index.md) +- [Things social add-on (v1)](s/things-social/v1/index.md) +- [Things files add-on (v1)](s/things-files/v1/index.md) +- [Things publications add-on (v1)](s/things-publications/v1/index.md) +- [Things provenance add-on (v1)](s/things-prov/v1/index.md) ### Previous versions diff --git a/mkdocs.yml b/mkdocs.yml index 79facf3..ad1996a 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,17 +5,17 @@ nav: - About: about.md - Schemas: - Foundational: - - Things: s/things/v1/index.md - - Things data: s/things-data/unreleased/index.md - - Things distributions: s/things-distributions/unreleased/index.md - - Things files: s/things-files/unreleased/index.md - - Things resources: s/things-resources/unreleased/index.md - - Things rules: s/things-rules/unreleased/index.md - - Things social: s/things-social/unreleased/index.md - - Things study: s/things-study/unreleased/index.md - - Things properties: s/things-properties/unreleased/index.md - - Things provenance: s/things-prov/unreleased/index.md - - Things publications: s/things-publications/unreleased/index.md + - Things: s/things/v2/index.md + - Things data: s/things-data/v1/index.md + - Things distributions: s/things-distributions/v1/index.md + - Things files: s/things-files/v1/index.md + - Things resources: s/things-resources/v1/index.md + - Things rules: s/things-rules/v1/index.md + - Things social: s/things-social/v1/index.md + - Things study: s/things-study/v1/index.md + - Things properties: s/things-properties/v1/index.md + - Things provenance: s/things-prov/v1/index.md + - Things publications: s/things-publications/v1/index.md - Demonstrator: - Research information: s/demo-research-information/unreleased/index.md - Dump-things storage: dump-things-storage-v0.md @@ -28,17 +28,17 @@ plugins: redirect_maps: # map unversioned URLs to the latest version 'dump-things-storage.md': 'dump-things-storage-v0.md' - 's/things/index.md': 's/things/v1/index.md' - 's/things-properties/index.md': 's/things-properties/unreleased/index.md' - 's/things-data/index.md': 's/things-data/unreleased/index.md' - 's/things-study/index.md': 's/things-study/unreleased/index.md' - 's/things-resources/index.md': 's/things-resources/unreleased/index.md' - 's/things-rules/index.md': 's/things-rules/unreleased/index.md' - 's/things-distributions/index.md': 's/things-distributions/unreleased/index.md' - 's/things-social/index.md': 's/things-social/unreleased/index.md' - 's/things-files/index.md': 's/things-files/unreleased/index.md' - 's/things-publications/index.md': 's/things-publications/unreleased/index.md' - 's/things-prov/index.md': 's/things-prov/unreleased/index.md' + 's/things/index.md': 's/things/v2/index.md' + 's/things-properties/index.md': 's/things-properties/v1/index.md' + 's/things-data/index.md': 's/things-data/v1/index.md' + 's/things-study/index.md': 's/things-study/v1/index.md' + 's/things-resources/index.md': 's/things-resources/v1/index.md' + 's/things-rules/index.md': 's/things-rules/v1/index.md' + 's/things-distributions/index.md': 's/things-distributions/v1/index.md' + 's/things-social/index.md': 's/things-social/v1/index.md' + 's/things-files/index.md': 's/things-files/v1/index.md' + 's/things-publications/index.md': 's/things-publications/v1/index.md' + 's/things-prov/index.md': 's/things-prov/v1/index.md' 's/types/index.md': 's/types/v1/index.md' 's/identifiers/index.md': 's/identifiers/unreleased/index.md' 's/temporal-mixin/index.md': 's/temporal-mixin/unreleased/index.md' diff --git a/src/demo-research-information/unreleased.yaml b/src/demo-research-information/unreleased.yaml index 48ee4c7..24db0c3 100644 --- a/src/demo-research-information/unreleased.yaml +++ b/src/demo-research-information/unreleased.yaml @@ -49,7 +49,7 @@ prefixes: # TODO preliminary definition, pointing to a future resolver dldi: https://pid.datalad.org/distributions/ dlschemas: https://concepts.datalad.org/s/ - dlthings: https://concepts.datalad.org/s/things/unreleased/ + dlthings: https://concepts.datalad.org/s/things/v2/ dlvocab: https://concepts.datalad.org/vocab/ doi: https://doi.org/ eunal: http://publications.europa.eu/resource/authority/ @@ -109,14 +109,14 @@ emit_prefixes: - xyzrins imports: - - dlschemas:things-data/unreleased - - dlschemas:things-files/unreleased - - dlschemas:things-publications/unreleased - - dlschemas:things-resources/unreleased - - dlschemas:things-prov/unreleased - - dlschemas:things-social/unreleased - - dlschemas:things-study/unreleased - - dlschemas:things-rules/unreleased + - dlschemas:things-data/v1 + - dlschemas:things-files/v1 + - dlschemas:things-publications/v1 + - dlschemas:things-resources/v1 + - dlschemas:things-prov/v1 + - dlschemas:things-social/v1 + - dlschemas:things-study/v1 + - dlschemas:things-rules/v1 slots: application_deadline: diff --git a/src/things-data/unreleased.yaml b/src/things-data/unreleased.yaml index a2e224c..4b70c35 100644 --- a/src/things-data/unreleased.yaml +++ b/src/things-data/unreleased.yaml @@ -4,9 +4,11 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concepts for hierarchical data representations for use with the things schema description: | + *This is an unreleased development version* + The schema defines conceptual models for datasets and individual data items to describe their nature and relationships across formats and linked with - their serializationa (see `things-distribution` and `things-files`) + their serializationa (see `things-distributions` and `things-files`). More information may be available on the schema's [about page](about). diff --git a/src/things-data/v1.yaml b/src/things-data/v1.yaml new file mode 100644 index 0000000..6a92fa7 --- /dev/null +++ b/src/things-data/v1.yaml @@ -0,0 +1,95 @@ +id: https://concepts.datalad.org/s/things-data/v1 +name: things-data-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concepts for hierarchical data representations for use with the things schema +description: | + The schema defines conceptual models for datasets and individual data items + to describe their nature and relationships across formats and linked with + their serializationa (see `things-distributions` and `things-files`). + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-data/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +classes: + DataItem: + 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 + errors) and is constructed/acquired by a method which reliably tends to + produce (approximately) truthful statements. + + This is a conceptual entity. A single data item might be available in + more than one representation, with differing formats, and serializations. + slots: + - part_of + slot_usage: + part_of: + range: Dataset + multivalued: true + exact_mappings: + - obo:IAO_0000027 + + Dataset: + is_a: Thing + description: >- + A collection of data (data items), published or curated by a single + agent. This is a conceptual entity. A single dataset might be available + in more than one representation, with differing schematic layouts, + formats, and serializations. + slots: + - title + - short_name + - part_of + slot_usage: + part_of: + range: Dataset + multivalued: true + exact_mappings: + - dcat:Dataset diff --git a/src/things-data/v1/examples/DataItem-02-attributes.json b/src/things-data/v1/examples/DataItem-02-attributes.json new file mode 100644 index 0000000..5e3d2a8 --- /dev/null +++ b/src/things-data/v1/examples/DataItem-02-attributes.json @@ -0,0 +1,12 @@ +{ + "pid": "https://example.org/wind-strength-on-20250815", + "kind": "http://purl.obolibrary.org/obo/ENVO_01001362", + "schema_type": "dlthings:DataItem", + "part_of": [ + "https://example.org/dataset/windy" + ], + "defined_by": "http://semanticscience.org/resource/SIO_001215", + "unit": "obo:UO_0000094", + "value": "22", + "@type": "DataItem" +} diff --git a/src/things-data/v1/examples/DataItem-02-attributes.yaml b/src/things-data/v1/examples/DataItem-02-attributes.yaml new file mode 100644 index 0000000..52a06c4 --- /dev/null +++ b/src/things-data/v1/examples/DataItem-02-attributes.yaml @@ -0,0 +1,11 @@ +pid: https://example.org/wind-strength-on-20250815 +# atmospheric wind speed +kind: http://purl.obolibrary.org/obo/ENVO_01001362 +value: "22" +# m/s +unit: obo:UO_0000094 +# severe -> beaufort scale 9 +defined_by: http://semanticscience.org/resource/SIO_001215 +# containing dataset +part_of: + - https://example.org/dataset/windy diff --git a/src/things-data/v1/extra-docs/about.md b/src/things-data/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-data/v1/validation/DataItem.valid.cfg.yaml b/src/things-data/v1/validation/DataItem.valid.cfg.yaml new file mode 100644 index 0000000..5d5ac47 --- /dev/null +++ b/src/things-data/v1/validation/DataItem.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-data/v1.yaml +target_class: DataItem +data_sources: + - src/things-data/v1/examples/DataItem-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-distributions/unreleased.yaml b/src/things-distributions/unreleased.yaml index a71130f..d805caa 100644 --- a/src/things-distributions/unreleased.yaml +++ b/src/things-distributions/unreleased.yaml @@ -4,6 +4,8 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concept related to distributions for use with the things schema description: | + *This is an unreleased development version* + Distributions are (physical) manifestations of conceptual entities. An example is a physical book (a distribution) that contains a particular story (conceptual entity). diff --git a/src/things-distributions/v1.yaml b/src/things-distributions/v1.yaml new file mode 100644 index 0000000..536995a --- /dev/null +++ b/src/things-distributions/v1.yaml @@ -0,0 +1,93 @@ +id: https://concepts.datalad.org/s/things-distributions/v1 +name: things-distributions-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concept related to distributions for use with the things schema +description: | + Distributions are (physical) manifestations of conceptual entities. + An example is a physical book (a distribution) that contains a particular + story (conceptual entity). + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-distributions/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + dash: http://datashapes.org/dash# + dcat: http://www.w3.org/ns/dcat# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + fabio: http://purl.org/spar/fabio/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + skos: http://www.w3.org/2004/02/skos/core# + spdx: http://spdx.org/rdf/terms# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +slots: + distributions: + title: Distributions + description: >- + Available distributions of an entity. + domain: Thing + range: Distribution + multivalued: true + exact_mappings: + - dcat:distribution + broad_mappings: + - sio:SIO_000341 + inverse: distribution_of + + distribution_of: + description: >- + The resource that the subject is a distribution of. + domain: Distribution + range: Thing + broad_mappings: + - sio:SIO_000426 + inverse: distributions + +classes: + Distribution: + is_a: Thing + description: >- + A specific (physical) manifestation conceptual entity. + slots: + - distribution_of + slot_usage: + distribution_of: + multivalued: true + exact_mappings: + - dcat:Distribution diff --git a/src/things-distributions/v1/examples/Distribution-02-attributes.json b/src/things-distributions/v1/examples/Distribution-02-attributes.json new file mode 100644 index 0000000..c80abab --- /dev/null +++ b/src/things-distributions/v1/examples/Distribution-02-attributes.json @@ -0,0 +1,8 @@ +{ + "pid": "ex:mybook", + "schema_type": "dlthings:Distribution", + "distribution_of": [ + "ex:mywritings" + ], + "@type": "Distribution" +} diff --git a/src/things-distributions/v1/examples/Distribution-02-attributes.yaml b/src/things-distributions/v1/examples/Distribution-02-attributes.yaml new file mode 100644 index 0000000..53fb4bc --- /dev/null +++ b/src/things-distributions/v1/examples/Distribution-02-attributes.yaml @@ -0,0 +1,3 @@ +pid: ex:mybook +distribution_of: + - ex:mywritings diff --git a/src/things-distributions/v1/extra-docs/about.md b/src/things-distributions/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-distributions/v1/validation/Distribution.valid.cfg.yaml b/src/things-distributions/v1/validation/Distribution.valid.cfg.yaml new file mode 100644 index 0000000..b166477 --- /dev/null +++ b/src/things-distributions/v1/validation/Distribution.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-distributions/v1.yaml +target_class: Distribution +data_sources: + - src/things-distributions/v1/examples/Distribution-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-files/unreleased.yaml b/src/things-files/unreleased.yaml index 512383f..1df6a64 100644 --- a/src/things-files/unreleased.yaml +++ b/src/things-files/unreleased.yaml @@ -4,6 +4,16 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concept related to files for use with the things schema description: | + *This is an unreleased development version* + + Files are modeled as a special case of a `Distribution`, a manifestation + of some information in the form of a concrete electronic file. Files + have a certain formation, size in bytes, and checksum. They do not, however, + have a particular file name. The filename is considered contextual + information, captured an entity containing a file (such as an archive, + or a directory). With this approach, one and the same `File` object + can be reused by multiple "containers" without duplication. + More information may be available on the schema's [about page](about). The schema definition is available as diff --git a/src/things-files/v1.yaml b/src/things-files/v1.yaml new file mode 100644 index 0000000..32b2319 --- /dev/null +++ b/src/things-files/v1.yaml @@ -0,0 +1,183 @@ +id: https://concepts.datalad.org/s/things-files/v1 +name: things-files-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concept related to files for use with the things schema +description: | + Files are modeled as a special case of a `Distribution`, a manifestation + of some information in the form of a concrete electronic file. Files + have a certain formation, size in bytes, and checksum. They do not, however, + have a particular file name. The filename is considered contextual + information, captured an entity containing a file (such as an archive, + or a directory). With this approach, one and the same `File` object + can be reused by multiple "containers" without duplication. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-files/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + dash: http://datashapes.org/dash# + dcat: http://www.w3.org/ns/dcat# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + fabio: http://purl.org/spar/fabio/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + skos: http://www.w3.org/2004/02/skos/core# + spdx: http://spdx.org/rdf/terms# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-distributions/v1 + +slots: + byte_size: + description: >- + The size of the subject in bytes. + range: NonNegativeInteger + exact_mappings: + - dcat:byteSize + + checksums: + description: >- + The checksum property provides a mechanism that can be used to verify + that the contents of a file or package have not changed. + range: Checksum + multivalued: true + inlined: true + inlined_as_list: true + exact_mappings: + - spdx:checksum + + format: + description: >- + The file format of a distribution. + range: Thing + exact_mappings: + - dcterms:format + notes: + - When type of the distribution is defined by IANA, `media_type` should be used. + + media_type: + description: >- + The media type of a distribution as defined by IANA + range: string + examples: + - value: text/csv + see_also: + - https://www.iana.org/assignments/media-types + exact_mappings: + - dcat:mediaType + +classes: + Checksum: + is_a: Identifier + description: >- + A Checksum is a value that allows to check the integrity of the contents + of a file. Even small changes to the content of the file will change its + checksum. This class allows the results of a variety of checksum and + cryptographic message digest algorithms to be represented. + exact_mappings: + - spdx:Checksum + slot_usage: + creator: + description: >- + Identifies the software agent (algorithm) used to produce the subject + `Checksum`. + required: true + exact_mappings: + - spdx:algorithm + notation: + description: >- + Lower case hexadecimal encoded checksum digest value. + range: HexBinary + required: true + exact_mappings: + - spdx:checksumValue + + File: + is_a: Distribution + description: >- + A specific representation of a data item in the form of + an electronic file. The concept of a file here is aligned + with the broad UNIX philoshopy of "everything is a file". + An archive, a disk image, a directory are all valid instances + of a file. + slots: + - byte_size + - checksums + - format + - media_type + - parts + - part_of + slot_usage: + distribution_of: + multivalued: true + parts: + range: NamedFilePart + inlined: true + part_of: + range: File + multivalued: true + comments: + - There is no `name` property or similar, because the focus is on the + identity of the distribution content, not how it might be named + in a particular context. For example, an image in JPEG format + might be names "20250825_102385.jpg" on a camera and + "me_at_the_party.jpg" elsewhere, but it would be the exact same + image. Expressing naming in some context should be done within + the scope of the containing entity (see `named_parts`). + broad_mappings: + - fabio:DigitalManifestation + + NamedFilePart: + description: >- + An association class for attaching a `locator` as additional information to a + `hasPart` relationship between two files. + slots: + - locator + - roles + - object + slot_usage: + locator: + description: A relative path in POSIX notation. + key: true + # ensure no leading slash + pattern: '^[^/]+.*$' + object: + # this must be required, if we want to support key-based + # access to the named distribution parts. this also + # implies that we cannot support listings without content + # identifiers + required: true + range: File diff --git a/src/things-files/v1/examples/Checksum-01-minimal.json b/src/things-files/v1/examples/Checksum-01-minimal.json new file mode 100644 index 0000000..88451c3 --- /dev/null +++ b/src/things-files/v1/examples/Checksum-01-minimal.json @@ -0,0 +1,6 @@ +{ + "notation": "be32eeadb443c00c3e6ca43f2295e2ee", + "creator": "spdx:checksumAlgorithm_md5", + "schema_type": "dlthings:Checksum", + "@type": "Checksum" +} diff --git a/src/things-files/v1/examples/Checksum-01-minimal.yaml b/src/things-files/v1/examples/Checksum-01-minimal.yaml new file mode 100644 index 0000000..e511663 --- /dev/null +++ b/src/things-files/v1/examples/Checksum-01-minimal.yaml @@ -0,0 +1,2 @@ +creator: spdx:checksumAlgorithm_md5 +notation: be32eeadb443c00c3e6ca43f2295e2ee diff --git a/src/things-files/v1/examples/File-02-attributes.json b/src/things-files/v1/examples/File-02-attributes.json new file mode 100644 index 0000000..a6cb1e0 --- /dev/null +++ b/src/things-files/v1/examples/File-02-attributes.json @@ -0,0 +1,23 @@ +{ + "pid": "https://example.com/a_file.json", + "schema_type": "dlthings:File", + "distribution_of": [ + "https://example.com/a_file" + ], + "byte_size": 23176, + "checksums": [ + { + "notation": "0a7254fc5be8c41f98339aba02a87856", + "creator": "spdx:checksumAlgorithm_md5", + "schema_type": "dlthings:Checksum" + }, + { + "notation": "2252e32f027eb769be4b3729fb0e98f24ac20754", + "creator": "spdx:checksumAlgorithm_sha1", + "schema_type": "dlthings:Checksum" + } + ], + "format": "http://edamontology.org/format_3475", + "media_type": "application/json", + "@type": "File" +} diff --git a/src/things-files/v1/examples/File-02-attributes.yaml b/src/things-files/v1/examples/File-02-attributes.yaml new file mode 100644 index 0000000..c79daf5 --- /dev/null +++ b/src/things-files/v1/examples/File-02-attributes.yaml @@ -0,0 +1,13 @@ +pid: https://example.com/a_file.json +byte_size: 23176 +checksums: + - creator: spdx:checksumAlgorithm_md5 + notation: "0a7254fc5be8c41f98339aba02a87856" + - creator: spdx:checksumAlgorithm_sha1 + notation: "2252e32f027eb769be4b3729fb0e98f24ac20754" +media_type: application/json +# file format specification via custom definition IRI +# (here effectively also pointing to IANA) +format: http://edamontology.org/format_3475 +distribution_of: + - https://example.com/a_file diff --git a/src/things-files/v1/examples/File-03-parts.json b/src/things-files/v1/examples/File-03-parts.json new file mode 100644 index 0000000..872a88c --- /dev/null +++ b/src/things-files/v1/examples/File-03-parts.json @@ -0,0 +1,25 @@ +{ + "pid": "ex:a_file.zip", + "schema_type": "dlthings:File", + "parts": { + "file1.txt": { + "locator": "file1.txt", + "object": "ex:a_file.txt" + }, + "file2.sh": { + "locator": "file2.sh", + "object": "ex:b_file.sh", + "roles": [ + "https://example.com/ns/Executable" + ] + }, + "dir1/file1.txt": { + "locator": "dir1/file1.txt", + "object": "ex:a_file.json" + } + }, + "part_of": [ + "ex:a_directory" + ], + "@type": "File" +} diff --git a/src/things-files/v1/examples/File-03-parts.yaml b/src/things-files/v1/examples/File-03-parts.yaml new file mode 100644 index 0000000..f088a8f --- /dev/null +++ b/src/things-files/v1/examples/File-03-parts.yaml @@ -0,0 +1,11 @@ +pid: ex:a_file.zip +part_of: + - ex:a_directory +parts: + file1.txt: ex:a_file.txt + file2.sh: + locator: file2.sh + object: ex:b_file.sh + roles: + - https://example.com/ns/Executable + dir1/file1.txt: ex:a_file.json diff --git a/src/things-files/v1/extra-docs/about.md b/src/things-files/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-files/v1/validation/Checksum.valid.cfg.yaml b/src/things-files/v1/validation/Checksum.valid.cfg.yaml new file mode 100644 index 0000000..433cb21 --- /dev/null +++ b/src/things-files/v1/validation/Checksum.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-files/v1.yaml +target_class: Checksum +data_sources: + - src/things-files/v1/examples/Checksum-01-minimal.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-files/v1/validation/File.valid.cfg.yaml b/src/things-files/v1/validation/File.valid.cfg.yaml new file mode 100644 index 0000000..120522f --- /dev/null +++ b/src/things-files/v1/validation/File.valid.cfg.yaml @@ -0,0 +1,10 @@ +schema: src/things-files/v1.yaml +target_class: File +data_sources: + - src/things-files/v1/examples/File-02-attributes.yaml + - src/things-files/v1/examples/File-03-parts.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-properties/unreleased.yaml b/src/things-properties/unreleased.yaml index 9f76ed9..f3c73ce 100644 --- a/src/things-properties/unreleased.yaml +++ b/src/things-properties/unreleased.yaml @@ -4,6 +4,8 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Collection of common properties for use with the things schema description: | + *This is an unreleased development version* + This schema provides a collection of common data properties and object properties for use with the things schema. It can be imported directly into other linkml schemas, or any of its diff --git a/src/things-properties/v1.yaml b/src/things-properties/v1.yaml new file mode 100644 index 0000000..caa2a06 --- /dev/null +++ b/src/things-properties/v1.yaml @@ -0,0 +1,234 @@ +id: https://concepts.datalad.org/s/things-properties/v1 +name: things-properties-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Collection of common properties for use with the things schema +description: | + This schema provides a collection of common data properties and object + properties for use with the things schema. + It can be imported directly into other linkml schemas, or any of its + individual property definitions can be used by their URI as vocabulary + components or definitions (e.g., `dlthings:name` identified by this + [URI](`name`)). + + Slot names use the plural form whenever they are directly declared as + "multivalued" in this schema, otherwise the singular form is used for + the slot name. The `slot_uri` always uses the singular form. + + Every property declared here is mapped to at least one standard/established + vocabulary. + + The schema definition is available as + + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-properties/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: MIT + +prefixes: + bibo: http://purl.org/ontology/bibo/ + dcat: http://www.w3.org/ns/dcat# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + pq: http://www.wikidata.org/prop/qualifier/ + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + schema: http://schema.org/ + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + +imports: + - dlschemas:things/v2 + - linkml:types + +types: + W3CISO8601: + uri: dlthings:w3ctr-datetime + base: str + typeof: string + description: + W3C variant/subset of IS08601 for specifying date(times). + Supported are + - YYYY (eg 1997) + - YYYY-MM (eg 1997-07) + - YYYY-MM-DD (eg 1997-07-16) + - YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00) + - YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00) + - YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00) + where TZD is the time zone designator (Z or +hh:mm or -hh:mm) + pattern: '^([-+]\d+)|(\d{4})|(\d{4}-[01]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$' + see_also: + - https://www.w3.org/TR/NOTE-datetime + +slots: + at_location: + description: >- + Associate the subject with a location. This can be a geographic place, + or another uniquely identified object. + range: Thing + notes: + - For specifying a context-specific location see `locator`. + exact_mappings: + - prov:atLocation + - schema:location + + at_time: + description: >- + Time at which an instanteneous event takes place or took place. + range: W3CISO8601 + exact_mappings: + - prov:atTime + + conforms_to: + description: >- + An established standard to which the subject conforms. + range: Thing + comments: + - This property SHOULD be used to indicate a model, schema, ontology, view or profile that the subject conforms to. + exact_mappings: + - dcterms:conformsTo + + depends_on: + description: >- + The subject depends on object in some way. + range: Thing + exact_mappings: + - obo:RO_0002502 + + depiction: + description: >- + An image, or photograph information, or other visualization that + annotates some aspect of the subject (e.g., a digital image of a + portrait of a person). + range: Thing + exact_mappings: + - foaf:depiction + + keywords: + description: >- + One or more keywords or tags describing the subject. + range: string + multivalued: true + exact_mappings: + - dcat:keyword + - schema:keywords + - obo:IAO_0000629 + + locator: + description: >- + A descriptive identifier that locates a resource within a containing resource. + This can be a unique name, a numerical key, or another notation that uniquely + identifies the subject within the containing resource. + range: string + notes: + - For specifying a location via a globally unique identifier see `at_location`. + exact_mappings: + - bibo:locator + name: + description: >- + Name of the subject. A name is closely related to a `title`, but often + more compact and identifier-like, but without the implication of + uniqueness of an identifier. A name is often used by technical systems + to display an item in an organizational structure, such as a file + in a directory hierarchy. + exact_mappings: + - rdfs:label + - schema:name + - foaf:name + close_mappings: + - dcterms:title + - obo:IAO_0000590 + range: string + + part_of: + description: >- + The entity that the subject is a part of. A core relation that + holds between a part and its whole. + exact_mappings: + - obo:BFO_0000050 + - dcterms:isPartOf + - schema:isPartOf + domain: Thing + range: Thing + inverse: parts + + parts: + description: >- + A related resource that is included either physically or logically + in the described resource. + exact_mappings: + - dcterms:hasPart + - schema:hasPart + domain: Thing + range: Thing + multivalued: true + inverse: part_of + + roles: + description: >- + Describes the function of an entity or agent (object) within the scope of + a relationship with the subject. + range: Thing + multivalued: true + exact_mappings: + - prov:hadRole + - dcat:had_role + + same_as: + description: >- + Declares that the subject and an object are equal. + Can be used to indicate a URL of a reference Web page that unambiguously + indicates the subject's identity. For example, the URL of the subject's + Wikipedia page, Wikidata entry, or official website. + range: Thing + exact_mappings: + - owl:sameAs + close_mappings: + - schema:sameAs + + short_name: + is_a: name + description: >- + A shortened name for the subject. For example, an acronym, initialism, + nickname, or other abbreviation of the `name`. + exact_mappings: + - pq:P1813 + broad_mappings: + - obo:NCIT_C42610 + range: string + + title: + description: >- + A summarily description of the subject. It is closely related to + a `name`, but often less compact and more descriptive. Typically used for + documents. + exact_mappings: + - dcterms:title + related_mappings: + - schema:name + range: string + + version_of: + description: >- + A related resource of which the described resource is a version, edition, or adaptation. + range: Thing + exact_mappings: + - dcterms:isVersionOf diff --git a/src/things-properties/v1/extra-docs/about.md b/src/things-properties/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-prov/unreleased.yaml b/src/things-prov/unreleased.yaml index 8bd73f4..8ecb4eb 100644 --- a/src/things-prov/unreleased.yaml +++ b/src/things-prov/unreleased.yaml @@ -4,6 +4,8 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Provenance properties and class mixins for use with the things schema description: | + *This is an unreleased development version* + This schema mixin provides the majority of the terms and relationships defined by [PROV-O](https://www.w3.org/TR/prov-o/), with the following exceptions and deviations. It is implemented as a mixin to be able to diff --git a/src/things-prov/v1.yaml b/src/things-prov/v1.yaml new file mode 100644 index 0000000..84c0c46 --- /dev/null +++ b/src/things-prov/v1.yaml @@ -0,0 +1,677 @@ +id: https://concepts.datalad.org/s/things-prov/v1 +name: things-prov-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Provenance properties and class mixins for use with the things schema +description: | + This schema mixin provides the majority of the terms and relationships + defined by [PROV-O](https://www.w3.org/TR/prov-o/), with the following + exceptions and deviations. It is implemented as a mixin to be able to + flexibly add provenance-focused interfaces to classes that are part + of a topical class hierarchy already. + + All relationships are implemented using the "qualified relation" pattern, but + combined with properties that are named after their (shortened) "binary" + equivalent. For example, a `wasDerivedFrom` is implemented as the + `derived_from` slot, and has the `Derivation` association class as its + `range`. This means that qualifying properties of a relationship are + consolidated into the respective relationship class. Consequently, there is + no equivalent of, for example, `generatedAtTime`. Instead, the time needs to + be annotated via the `at_time` slot of `Generation`. + + Consistent with PROV-DM, all relationship classes support the expression of + arbitrary attributes to further characterize a relationship beyond the set of + dedicated slots. This is achieved by applying the core `ThingMixin` to the + `Influence` class, the base class of all relationships. This allows for the + same annotation patterns that are enabled by `Thing` to also be used for PROV + relationships. This includes, custom attributes, `characterized_by` relations, + mapping declarations, annotations, and semantic mappings. + + All relationship classes uniformly use an `object` slot to reference the + respective entity, agent, or activity. PROV-O's `actedOnBehalfOf` is named + `delegated_by` for consistency with the association class `Delegation`. + + No inverse properties are defined, i.e. there is `invalidated_by`, but not + `invalidated`. + + This schema does not implement support for PROV bundles. + + There is no explicit support for annotating an `Influence` with an unspecific + `Activity` (`hadActivity`, optional in PROV-O). For describing, for example, + the generating activity in a derivation, `generated_by` is provided. + + The annotation of `Agent` and `Entity` instances with a location (PROV-O + `atLocation`) is not supported. The idea of a (single) location for these + concepts is at odds with the core approach of this schema to use persistent + identifiers for all `Thing`s. However, `at_location` is supported within + `Start` and `End` that are available to annotate `Activity`, and + `EntityInfluence` like `Usage` with temporal and spatial locators. + + There is not direct support for the PROV-O classes `Location`, `Plan`, + (and with it `hadPlan`), `Role`, and `SoftwareAgent`. The `Thing` class can + be used to express these concepts in a generic fashion. Dedicated support + is left to more application-specific schemas that require these concepts. + + The PROV-O concept of `PrimarySource`, as a special case of a `Derivation` + is not supported. Use the role annotation to identify an influencing entity + in a `Derivation` as a "primary source". + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-prov/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: MIT + +prefixes: + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + linkml: https://w3id.org/linkml/ + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +slots: + alternate_of: + description: >- + Two alternate entities present aspects of the same thing. These aspects + may be the same or different, and the alternate entities may or may not + overlap in time. + range: Thing + exact_mappings: + - prov:alternateOf + + associated_with: + is_a: influenced_by + description: >- + An activity association is an assignment of responsibility to an agent + for an activity, indicating that the agent had a role in the activity. + It further allows for a plan to be specified, which is the plan intended + by the agent to achieve some goals in the context of this activity. + range: Association + notes: + - PROV-O "wasAssociatedWith" is a short-cut property. "Association" also has "agent". + exact_mappings: + - prov:wasAssociatedWith + + attributed_to: + is_a: influenced_by + description: >- + Attribution is the ascribing of an entity to an agent. + range: Attribution + notes: + - PROV-O "wasAttributedTo" is a short-cut property. "Attribution" also has "agent". + exact_mappings: + - prov:wasAttributedTo + + delegated_by: + is_a: influenced_by + description: >- + Delegation is the assignment of authority and responsibility to an + agent (by itself or by another agent) to carry out a specific activity + as a delegate or representative, while the agent it acts on behalf of + retains some responsibility for the outcome of the delegated work. + For example, a student acted on behalf of his supervisor, who acted + on behalf of the department chair, who acted on behalf of the university; + all those agents are responsible in some way for the activity that took + place but we do not say explicitly who bears responsibility and to what + degree. + range: Delegation + notes: + - This is PROV-O's "acted_on_behalf_of", which is a short-cut property -- "Delegation" also identifies an agent. + - naming is different for homogeneity with the other slots + exact_mappings: + - prov:actedOnBehalfOf + + derived_from: + is_a: influenced_by + title: Derived from + description: >- + A entity from which the subject was created through some kind of process. + Derivation is a transformation of an entity into another, + an update of an entity resulting in a new one, or the + construction of a new entity based on a pre-existing entity. + range: Derivation + notes: + - PROV-O "wasDerivedFrom" is a short-cut property. "Derivation" also has "entity". + exact_mappings: + - prov:wasDerivedFrom + + ended: + is_a: influenced_by + description: >- + End is when an activity is deemed to have been ended by an entity, known + as trigger. The activity no longer exists after its end. Any usage, + generation, or invalidation involving an activity precedes the activity's + end. An end may refer to a trigger entity that terminated the activity, + or to an activity, known as ender that generated the trigger. + range: End + notes: + - PROV-O "endedAt" is a short-cut property. "Start" also has "atTime". + - same naming remarks as for "started" apply. + exact_mappings: + - prov:wasEndedBy + + generated_by: + is_a: influenced_by + title: Generated by + description: >- + Identification of the process that led to the production of the subject entity. + Generation is the completion of production of a new entity by an activity. + This entity did not exist before generation and becomes available for usage + after this generation. + notes: + - PROV-O "wasGeneratedBy" is a short-cut property. "Generation" also has "activity". + exact_mappings: + - prov:wasGeneratedBy + range: Generation + + influenced_by: + title: Influenced by + description: >- + Influence is the capacity of an entity, activity, or agent to have an + effect on the character, development, or behavior of another by means + of usage, start, end, generation, invalidation, communication, + derivation, attribution, association, or delegation. + notes: + - PROV-O "wasInfluencedBy" is a short-cut property. "Influence" also identifies an "influencer". + exact_mappings: + - prov:wasInfluencedBy + range: Influence + + informed_by: + is_a: influenced_by + description: >- + Communication is the exchange of an entity by two activities, one + activity using the entity generated by the other. + range: Communication + notes: + - PROV-O "wasInformedBy" is a short-cut property. "Communication" also has "activity". + exact_mappings: + - prov:wasInformedBy + + invalidated_by: + is_a: influenced_by + description: >- + Invalidation is the start of the destruction, cessation, or expiry of + an existing entity by an activity. The entity is no longer available + for use (or further invalidation) after invalidation. Any generation + or usage of an entity precedes its invalidation. + range: Invalidation + notes: + - PROV-O "wasInvalidatedBy" is a short-cut property. "Invalidation" also identifies an "entity". + exact_mappings: + - prov:wasInvalidatedBy + + quoted_from: + is_a: derived_from + description: >- + A quotation is the repeat of (some or all of) an entity, such as + text or image, by someone who may or may not be its original author. + Quotation is a particular case of derivation. + range: Quotation + notes: + - PROV-O "wasQuotedFrom" is a short-cut property. "Quotation" also identifies an "entity". + exact_mappings: + - prov:wasQuotedFrom + + revision_of: + is_a: derived_from + description: >- + A revision is a derivation for which the resulting entity is a revised + version of some original. The implication here is that the resulting + entity contains substantial content from the original. Revision is a + particular case of derivation. + range: Revision + notes: + - PROV-O "wasRevisionOf" is a short-cut property. "Revision" also identifies an "entity". + exact_mappings: + - prov:wasRevisionOf + + specialization_of: + is_a: alternate_of + description: >- + An entity that is a specialization of another shares all aspects of + the latter, and additionally presents more specific aspects of the + same thing as the latter. In particular, the lifetime of the entity + being specialized contains that of any specialization. Examples of + aspects include a time period, an abstraction, and a context associated + with the entity. + range: Thing + exact_mappings: + - prov:specializationOf + + started: + is_a: influenced_by + description: >- + Start is when an activity is deemed to have been started by an entity, + known as trigger. The activity did not exist before its start. Any + usage, generation, or invalidation involving an activity follows the + activity's start. A start may refer to a trigger entity that set off + the activity, or to an activity, known as starter, that generated + the trigger. + range: Start + notes: + - PROV-O "startedAt" is a short-cut property. "Start" also has "atTime". + - name is just started, because the association class Start has both time information and trigger information. Hence the name needs to capture both started_by and started_at. "started" has the unfortunate ambiguity of having started an activity, however the range "Start" is an "EntityInfluence" where the linked "object" is an Entity -- hopefully limiting the confusion. + exact_mappings: + - prov:wasStartedBy + + used: + title: Used + description: >- + Usage is the beginning of utilizing an entity by an activity. + Before usage, the activity had not begun to utilize this entity and + could not have been affected by the entity. + range: Usage + notes: + - PROV-O "used" is a short-cut property. "Usage" also has "entity". + exact_mappings: + - prov:used + + +classes: + ActivityMixin: + mixin: true + description: >- + An activity is something that occurs over a period of time and acts + upon or with entities; it may include consuming, processing, + transforming, modifying, relocating, using, or generating entities. + slots: + - started + - ended + - associated_with + - used + - informed_by + - influenced_by + slot_usage: + associated_with: + range: Association + multivalued: true + inlined: true + inlined_as_list: true + ended: + range: End + inlined: true + influenced_by: + range: Influence + multivalued: true + inlined: true + inlined_as_list: true + informed_by: + range: Communication + multivalued: true + inlined: true + inlined_as_list: true + started: + range: Start + inlined: true + used: + range: Usage + multivalued: true + inlined: true + inlined_as_list: true + exact_mappings: + - prov:Activity + + AgentMixin: + mixin: true + description: >- + Something that bears some form of responsibility for an activity + taking place, for the existence of an entity, or for another + agent's activity. + slots: + - delegated_by + - influenced_by + slot_usage: + delegated_by: + range: Delegation + inlined: true + influenced_by: + range: Influence + multivalued: true + inlined: true + inlined_as_list: true + exact_mappings: + - prov:Agent + + EntityMixin: + mixin: true + description: >- + A physical, digital, conceptual, or other kind of thing with some + fixed aspects; entities may be real or imaginary. + slots: + - attributed_to + - generated_by + - derived_from + - revision_of + - quoted_from + - invalidated_by + - alternate_of + - specialization_of + - influenced_by + slot_usage: + attributed_to: + range: Attribution + multivalued: true + inlined: true + inlined_as_list: true + derived_from: + range: Derivation + multivalued: true + inlined: true + inlined_as_list: true + generated_by: + range: Generation + inlined: true + influenced_by: + range: Influence + multivalued: true + inlined: true + inlined_as_list: true + invalidated_by: + range: Invalidation + inlined: true + quoted_from: + range: Quotation + inlined: true + revision_of: + range: Revision + inlined: true + exact_mappings: + - prov:Entity + + # bases for non-Things + # Base for prov:Generation , prov:Start , prov:Invalidation , prov:End , prov:Usage + # this means that this is NOT a Thing! + InstantaneousEventMixin: + mixin: true + description: >- + The PROV data model is implicitly based on a notion of instantaneous + events (or just events), that mark transitions in the world. Events + include generation, usage, or invalidation of entities, as well as + starting or ending of activities. This notion of event is not + first-class in the data model, but it is useful for explaining + its other concepts and its semantics + slots: + - at_location + - at_time + exact_mappings: + - prov:InstantaneousEvent + + # association classes -- influences + # base for all influences + Influence: + mixins: + - ThingMixin + description: >- + Influence is the capacity of an entity, activity, or agent to have + an effect on the character, development, or behavior of another by + means of usage, start, end, generation, invalidation, communication, + derivation, attribution, association, or delegation. + slots: + # influencer + - object + - roles + slot_usage: + object: + title: Influencer + exact_mappings: + - prov:Influence + + # base for the following four, not used directly + EntityInfluence: + is_a: Influence + description: >- + EntityInfluence is the capacity of an entity to have an effect on + the character, development, or behavior of another by means of + usage, start, end, derivation, or other. + slot_usage: + object: + title: Entity + exact_mappings: + - prov:EntityInfluence + + Usage: + is_a: EntityInfluence + mixins: + - InstantaneousEventMixin + description: >- + Usage is the beginning of utilizing an entity by an activity. + Before usage, the activity had not begun to utilize this entity + and could not have been affected by the entity. + slot_usage: + object: + description: Entity that was derived from. + roles: + description: Roles the entity had with respect to the derivation. + at_location: + description: Location where the usage took place. + at_time: + description: Timepoint when the usage happened. + exact_mappings: + - prov:Usage + + Start: + is_a: EntityInfluence + mixins: + - InstantaneousEventMixin + description: >- + Start is when an activity is deemed to have been started by an + entity, known as trigger. The activity did not exist before its + start. Any usage, generation, or invalidation involving an activity + follows the activity's start. A start may refer to a trigger entity + that set off the activity, or to an activity, known as starter, that + generated the trigger. + slot_usage: + object: + title: Trigger + exact_mappings: + - prov:Start + + End: + is_a: EntityInfluence + mixins: + - InstantaneousEventMixin + description: >- + End is when an activity is deemed to have been ended by an entity, + known as trigger. The activity no longer exists after its end. Any + usage, generation, or invalidation involving an activity precedes + the activity's end. An end may refer to a trigger entity that + terminated the activity, or to an activity, known as ender that + generated the trigger. + slot_usage: + object: + title: Trigger + exact_mappings: + - prov:End + + Derivation: + is_a: EntityInfluence + description: >- + A derivation is a transformation of an entity into another, an + update of an entity resulting in a new one, or the construction + of a new entity based on a pre-existing entity. + slots: + - generated_by + - used + slot_usage: + object: + description: Entity that was derived from. + roles: + description: Roles the entity had with respect to the derivation. + generated_by: + range: Generation + description: Activity that generated the derived entity. + inlined: true + used: + range: Usage + description: Entities used for the derivation (e.g., instruments). + multivalued: true + inlined: true + inlined_as_list: true + exact_mappings: + - prov:Derivation + + Quotation: + is_a: Derivation + description: >- + A quotation is the repeat of (some or all of) an entity, such as + text or image, by someone who may or may not be its original author. + Quotation is a particular case of derivation. + exact_mappings: + - prov:Quotation + + Revision : + is_a: Derivation + description: >- + A revision is a derivation for which the resulting entity is a + revised version of some original. The implication here is that + the resulting entity contains substantial content from the + original. Revision is a particular case of derivation. + exact_mappings: + - prov:Revision + + # base for the following three + ActivityInfluence: + is_a: Influence + description: >- + ActivitiyInfluence is the capacity of an activity to have an effect + on the character, development, or behavior of another by means of + generation, invalidation, communication, or other. + slot_usage: + object: + title: Activity + exact_mappings: + - prov:ActivityInfluence + + Generation: + is_a: ActivityInfluence + mixins: + - InstantaneousEventMixin + description: >- + Generation is the completion of production of a new entity by an + activity. This entity did not exist before generation and becomes + available for usage after this generation. + slots: + - used + slot_usage: + object: + description: Generating activity. + roles: + description: Roles the activity had with respect to the generation. + at_location: + description: Location where the generating activity took place. + at_time: + description: Timepoint when the generating activity happened. + used: + range: Usage + description: Entities used for the generation (e.g., instruments). + multivalued: true + inlined: true + inlined_as_list: true + exact_mappings: + - prov:Generation + + Communication: + is_a: ActivityInfluence + description: >- + Communication is the exchange of an entity by two activities, + one activity using the entity generated by the other. + exact_mappings: + - prov:Communication + + Invalidation: + is_a: ActivityInfluence + mixins: + - InstantaneousEventMixin + description: >- + Invalidation is the start of the destruction, cessation, or expiry + of an existing entity by an activity. The entity is no longer + available for use (or further invalidation) after invalidation. + Any generation or usage of an entity precedes its invalidation. + exact_mappings: + - prov:Invalidation + + # base for the following three + AgentInfluence: + is_a: Influence + description: >- + AgentInfluence is the capacity of an agent to have an effect on the + character, development, or behavior of another by means of attribution, + association, delegation, or other. + slot_usage: + object: + title: Agent + exact_mappings: + - prov:AgentInfluence + + Attribution: + is_a: AgentInfluence + description: >- + Attribution is the ascribing of an entity to an agent. When an entity + e is attributed to agent ag, entity e was generated by some unspecified + activity that in turn was associated to agent ag. Thus, this relation + is useful when the activity is not known, or irrelevant. + slot_usage: + object: + description: Agent the entity was attributed to. + roles: + description: Roles the agent had with respect to the entity. + exact_mappings: + - prov:Attribution + + Association: + is_a: AgentInfluence + description: >- + An activity association is an assignment of responsibility to an agent + for an activity, indicating that the agent had a role in the activity. + exact_mappings: + - prov:Association + slots: + - started + - ended + + Delegation: + is_a: AgentInfluence + description: >- + Delegation is the assignment of authority and responsibility to an + agent (by itself or by another agent) to carry out a specific activity + as a delegate or representative, while the agent it acts on behalf of + retains some responsibility for the outcome of the delegated work. + For example, a student acted on behalf of his supervisor, who acted on + behalf of the department chair, who acted on behalf of the university; + all those agents are responsible in some way for the activity that took + place but we do not say explicitly who bears responsibility and to what + degree. + slots: + - started + - ended + exact_mappings: + - prov:Delegation diff --git a/src/things-prov/v1/extra-docs/about.md b/src/things-prov/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-publications/unreleased.yaml b/src/things-publications/unreleased.yaml index 4d02574..897798a 100644 --- a/src/things-publications/unreleased.yaml +++ b/src/things-publications/unreleased.yaml @@ -4,6 +4,21 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concept related to publications for use with the things schema description: | + *This is an unreleased development version* + + The schema primarily provides classes for `DOI` and `ISSN` identifiers. + In addition, a simplistic `Publication` class is included. This class + does not provide any slots targeting bibliographic metadata. Instead, + it is suggested to capture the linkage of a publication to authors, + publishers, sponsors, and publication venues via provenance metadata + (see `things-prov` and the `research-information` demonstrator). + + Using the standard `attributes` slots of a `Thing` it is nevertheless + straightforward to describe a publication via the many properties + provided by the `bibo`, `CiTO`, and other vocabularies. For the + description of licenses, or access policies concerning publications, + please see the `things-rules` schema addon. + More information may be available on the schema's [about page](about). The schema definition is available as diff --git a/src/things-publications/v1.yaml b/src/things-publications/v1.yaml new file mode 100644 index 0000000..cecc455 --- /dev/null +++ b/src/things-publications/v1.yaml @@ -0,0 +1,121 @@ +id: https://concepts.datalad.org/s/things-publications/v1 +name: things-publications-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concept related to publications for use with the things schema +description: | + The schema primarily provides classes for `DOI` and `ISSN` identifiers. + In addition, a simplistic `Publication` class is included. This class + does not provide any slots targeting bibliographic metadata. Instead, + it is suggested to capture the linkage of a publication to authors, + publishers, sponsors, and publication venues via provenance metadata + (see `things-prov` and the `research-information` demonstrator). + + Using the standard `attributes` slots of a `Thing` it is nevertheless + straightforward to describe a publication via the many properties + provided by the `bibo`, `CiTO`, and other vocabularies. For the + description of licenses, or access policies concerning publications, + please see the `things-rules` schema addon. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-publications/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + ISSN: http://identifiers.org/issn/ + dash: http://datashapes.org/dash# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + doi: https://doi.org/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + - linkml:types + +classes: + DOI: + is_a: Identifier + description: >- + Digital Object Identifier (DOI; ISO 26324), an identifier system governed by the + DOI Foundation, where individual identifiers are issued by one of several registration + agencies. + slot_usage: + # TODO: creator has range: Thing, ie. OWL:Thing. + # But uricurie is a literal. + #creator: + # ifabsent: uriorcurie(https://doi.org) + # description: By default, the creator is identified as "https://doi.org". + notation: + description: >- + The identifier notation is specified without a URL-prefix, or a `doi:` prefix. + pattern: '(?i)^(?!(?:https?://|doi:)).+$' + unique_keys: + value: + description: The DOI notation is globally unique within the scope of DOIs + unique_key_slots: + - notation + + ISSN: + is_a: Identifier + description: >- + International Standard Serial Number (ISSN). + slot_usage: + notation: + description: >- + The identifier notation is specified without any prefix. + pattern: '^\d{4}-\d{3}[\dX]$' + unique_keys: + value: + description: The ISSN notation is globally unique within the scope of ISSNs + unique_key_slots: + - notation + related_mappings: + - schema:issn + comments: + - The creator is ror:026ytr635 + + Publication: + is_a: Thing + description: >- + A resource that is the output of a publishing process. + slots: + - title + exact_mappings: + - obo:IAO_0000311 + notes: + - There is not slot to indicate authorship, or a publication venue. + This is left to a PROV attribution. diff --git a/src/things-publications/v1/examples/DOI-01-minimal.json b/src/things-publications/v1/examples/DOI-01-minimal.json new file mode 100644 index 0000000..9aa5038 --- /dev/null +++ b/src/things-publications/v1/examples/DOI-01-minimal.json @@ -0,0 +1,5 @@ +{ + "notation": "10.1038/s41597-022-01163-2", + "schema_type": "dlthings:DOI", + "@type": "DOI" +} diff --git a/src/things-publications/v1/examples/DOI-01-minimal.yaml b/src/things-publications/v1/examples/DOI-01-minimal.yaml new file mode 100644 index 0000000..1ccae77 --- /dev/null +++ b/src/things-publications/v1/examples/DOI-01-minimal.yaml @@ -0,0 +1 @@ +notation: 10.1038/s41597-022-01163-2 diff --git a/src/things-publications/v1/examples/DOI-02-complete.json b/src/things-publications/v1/examples/DOI-02-complete.json new file mode 100644 index 0000000..187e425 --- /dev/null +++ b/src/things-publications/v1/examples/DOI-02-complete.json @@ -0,0 +1,6 @@ +{ + "notation": "10.2760/271009", + "creator": "https://op.europa.eu", + "schema_type": "dlthings:DOI", + "@type": "DOI" +} diff --git a/src/things-publications/v1/examples/DOI-02-complete.yaml b/src/things-publications/v1/examples/DOI-02-complete.yaml new file mode 100644 index 0000000..d832191 --- /dev/null +++ b/src/things-publications/v1/examples/DOI-02-complete.yaml @@ -0,0 +1,3 @@ +# a DOI where the creator is identified as one of the official registry agencies +notation: 10.2760/271009 +creator: https://op.europa.eu diff --git a/src/things-publications/v1/examples/Publication-02-attributes.json b/src/things-publications/v1/examples/Publication-02-attributes.json new file mode 100644 index 0000000..ea9539e --- /dev/null +++ b/src/things-publications/v1/examples/Publication-02-attributes.json @@ -0,0 +1,13 @@ +{ + "pid": "https://doi.org/10.1038/s41597-022-01163-2", + "about": [ + "https://www.nature.com/subjects/data-processing", + "https://www.nature.com/subjects/data-publication-and-archiving", + "https://www.nature.com/subjects/software" + ], + "description": "Large-scale datasets present unique opportunities to perform scientific investigations with unprecedented breadth. However, they also pose considerable challenges for the findability, accessibility, interoperability, and reusability (FAIR) of research outcomes due to infrastructure limitations, data usage constraints, or software license restrictions. Here we introduce a DataLad-based, domain-agnostic framework suitable for reproducible data processing in compliance with open science mandates. The framework attempts to minimize platform idiosyncrasies and performance-related complexities. It affords the capture of machine-actionable computational provenance records that can be used to retrace and verify the origins of research outcomes, as well as be re-executed independent of the original computing infrastructure. We demonstrate the framework’s performance using two showcases: one highlighting data sharing and transparency (using the studyforrest.org dataset) and another highlighting scalability (using the largest public brain imaging dataset available: the UK Biobank dataset).", + "kind": "obo:OMIT_0016934", + "schema_type": "dlthings:Publication", + "title": "FAIRly big: A framework for computationally reproducible processing of large-scale data", + "@type": "Publication" +} diff --git a/src/things-publications/v1/examples/Publication-02-attributes.yaml b/src/things-publications/v1/examples/Publication-02-attributes.yaml new file mode 100644 index 0000000..1dc4c56 --- /dev/null +++ b/src/things-publications/v1/examples/Publication-02-attributes.yaml @@ -0,0 +1,10 @@ +pid: https://doi.org/10.1038/s41597-022-01163-2 +title: "FAIRly big: A framework for computationally reproducible processing of large-scale data" +description: + "Large-scale datasets present unique opportunities to perform scientific investigations with unprecedented breadth. However, they also pose considerable challenges for the findability, accessibility, interoperability, and reusability (FAIR) of research outcomes due to infrastructure limitations, data usage constraints, or software license restrictions. Here we introduce a DataLad-based, domain-agnostic framework suitable for reproducible data processing in compliance with open science mandates. The framework attempts to minimize platform idiosyncrasies and performance-related complexities. It affords the capture of machine-actionable computational provenance records that can be used to retrace and verify the origins of research outcomes, as well as be re-executed independent of the original computing infrastructure. We demonstrate the framework’s performance using two showcases: one highlighting data sharing and transparency (using the studyforrest.org dataset) and another highlighting scalability (using the largest public brain imaging dataset available: the UK Biobank dataset)." +about: + - https://www.nature.com/subjects/data-processing + - https://www.nature.com/subjects/data-publication-and-archiving + - https://www.nature.com/subjects/software +# journal article +kind: obo:OMIT_0016934 diff --git a/src/things-publications/v1/extra-docs/about.md b/src/things-publications/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-publications/v1/validation/DOI.valid.cfg.yaml b/src/things-publications/v1/validation/DOI.valid.cfg.yaml new file mode 100644 index 0000000..0f4a234 --- /dev/null +++ b/src/things-publications/v1/validation/DOI.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-publications/v1.yaml +target_class: DOI +data_sources: + - src/things-publications/v1/examples/DOI-01-minimal.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-publications/v1/validation/Publication.valid.cfg.yaml b/src/things-publications/v1/validation/Publication.valid.cfg.yaml new file mode 100644 index 0000000..8489e02 --- /dev/null +++ b/src/things-publications/v1/validation/Publication.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-publications/v1.yaml +target_class: Publication +data_sources: + - src/things-publications/v1/examples/Publication-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-resources/unreleased.yaml b/src/things-resources/unreleased.yaml index 48fd818..2e99da3 100644 --- a/src/things-resources/unreleased.yaml +++ b/src/things-resources/unreleased.yaml @@ -4,8 +4,12 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concepts related to resources for use with the things schema description: | + *This is an unreleased development version* + Resources here are things that enable, inform, or are otherwise utilizes - by activities. + by activities. This schema provides a number of classes for select + concept in this domain, such as `Convention`, `Document`, and + `Instrument`. More information may be available on the schema's [about page](about). diff --git a/src/things-resources/v1.yaml b/src/things-resources/v1.yaml new file mode 100644 index 0000000..e72d8ca --- /dev/null +++ b/src/things-resources/v1.yaml @@ -0,0 +1,143 @@ +id: https://concepts.datalad.org/s/things-resources/v1 +name: things-resources-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concepts related to resources for use with the things schema +description: | + Resources here are things that enable, inform, or are otherwise utilizes + by activities. This schema provides a number of classes for select + concept in this domain, such as `Convention`, `Document`, and + `Instrument`. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-resources/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + dash: http://datashapes.org/dash# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +classes: + Convention: + is_a: Thing + description: >- + A set of agreed, stipulated, or generally accepted standards, norms, + social norms, or criteria, often taking the form of a custom. + slots: + - title + - short_name + exact_mappings: + # normative example + - obo:NCIT_C61300 + - obo:GSSO_010111 + narrow_mappings: + # standard + - obo:MS_1000898 + - obo:T4FS_0000381 + + Document: + is_a: Thing + description: >- + A conceptual entity representing things which a, broadly conceived, + "documents. This includes non-textual things like images. + A conceputal document is to be distinguished from its physical, + or electronic distributions. + slots: + - title + - part_of + slot_usage: + part_of: + range: Document + multivalued: true + notes: + - The key difference between a dataset and a document is the + collection-nature of the dataset (multiple items of a kind in + a collection), whereas a document is "one of its kind". A + dataset could comprise multiple documents. + - A document typically has at least one author. However, there are + also generated documents (e.g., a birth certificate) for which this is + irrelevant. And there are more roles that could be relevant for a + document's provenance. Rather than adding them all, none is provided. + PROV should be used to express this information. + exact_mappings: + - foaf:Document + + Grant: + is_a: Thing + description: >- + A grant, typically financial or otherwise quantifiable, + resources. + slots: + - title + - short_name + - part_of + slot_usage: + part_of: + range: Grant + multivalued: true + exact_mappings: + - obo:NCIT_C16644 + - schema:Grant + notes: + - A grant is not a document. The associated document would be the + grant agreement. + + Instrument: + is_a: Thing + description: >- + A thing that enables an agent to perform an action. This is typically a device + (e.g., a machine to perform a particular type of measurement), but it can also be + a questionnaire that is used to perform a particular kind of assessment. + An instrument is typically not a "reagent". + related_mappings: + - schema:instrument + narrow_mappings: + - obo:NCIT_C62103 + notes: + - It is unclear whether an instrument `name` would provide meaningful + and precise information (vs a description or an identifier). + There is `display_label`, if the need for a name is just for display + purposes (e.g., to say something generic like 'thermometer'). + - Slot `name` is added to avoid `display_label` having to carry unique + information. + slots: + - name diff --git a/src/things-resources/v1/examples/Convention-02-attributes.json b/src/things-resources/v1/examples/Convention-02-attributes.json new file mode 100644 index 0000000..2bb7b9b --- /dev/null +++ b/src/things-resources/v1/examples/Convention-02-attributes.json @@ -0,0 +1,16 @@ +{ + "pid": "https://scicrunch.org/resolver/RRID:SCR_016124", + "broad_mappings": [ + "obo:T4FS_0000381" + ], + "characterized_by": [ + { + "object": "https://doi.org/10.1038/sdata.2016.44", + "predicate": "http://purl.org/spar/cito/citesAsAuthority" + } + ], + "schema_type": "dlthings:Convention", + "title": "Brain Imaging Data Structure", + "short_name": "BIDS", + "@type": "Convention" +} diff --git a/src/things-resources/v1/examples/Convention-02-attributes.yaml b/src/things-resources/v1/examples/Convention-02-attributes.yaml new file mode 100644 index 0000000..25a03c5 --- /dev/null +++ b/src/things-resources/v1/examples/Convention-02-attributes.yaml @@ -0,0 +1,9 @@ +pid: https://scicrunch.org/resolver/RRID:SCR_016124 +title: Brain Imaging Data Structure +short_name: BIDS +broad_mappings: + # standard + - obo:T4FS_0000381 +characterized_by: + - predicate: http://purl.org/spar/cito/citesAsAuthority + object: https://doi.org/10.1038/sdata.2016.44 diff --git a/src/things-resources/v1/examples/Document-02-attributes.json b/src/things-resources/v1/examples/Document-02-attributes.json new file mode 100644 index 0000000..98cee7f --- /dev/null +++ b/src/things-resources/v1/examples/Document-02-attributes.json @@ -0,0 +1,6 @@ +{ + "pid": "https://example.com/README", + "schema_type": "dlthings:Document", + "title": "All you need to know about life", + "@type": "Document" +} diff --git a/src/things-resources/v1/examples/Document-02-attributes.yaml b/src/things-resources/v1/examples/Document-02-attributes.yaml new file mode 100644 index 0000000..313367c --- /dev/null +++ b/src/things-resources/v1/examples/Document-02-attributes.yaml @@ -0,0 +1,2 @@ +pid: https://example.com/README +title: All you need to know about life diff --git a/src/things-resources/v1/extra-docs/about.md b/src/things-resources/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-resources/v1/validation/Convention.valid.cfg.yaml b/src/things-resources/v1/validation/Convention.valid.cfg.yaml new file mode 100644 index 0000000..a129ce7 --- /dev/null +++ b/src/things-resources/v1/validation/Convention.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-resources/v1.yaml +target_class: Convention +data_sources: + - src/things-resources/v1/examples/Convention-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-resources/v1/validation/Document.valid.cfg.yaml b/src/things-resources/v1/validation/Document.valid.cfg.yaml new file mode 100644 index 0000000..20abf01 --- /dev/null +++ b/src/things-resources/v1/validation/Document.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-resources/v1.yaml +target_class: Document +data_sources: + - src/things-resources/v1/examples/Document-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-rules/unreleased.yaml b/src/things-rules/unreleased.yaml index cd3caf1..662463f 100644 --- a/src/things-rules/unreleased.yaml +++ b/src/things-rules/unreleased.yaml @@ -4,11 +4,17 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concepts related to rules applying to resources for use with the things schema description: | + *This is an unreleased development version* + Rules can be restricting or granting permissions. A concrete example is a license. However, a rule can also be a requirement that has to be met in order to be able to use a resource, such as a citation or acknowledgment requirement. + This schema provides a `rules` slot, and an associated `Rule` class that + can be used to capture permissions and regulation for a wide range of + concepts. + More information may be available on the schema's [about page](about). The schema definition is available as diff --git a/src/things-rules/v1.yaml b/src/things-rules/v1.yaml new file mode 100644 index 0000000..cbc2363 --- /dev/null +++ b/src/things-rules/v1.yaml @@ -0,0 +1,93 @@ +id: https://concepts.datalad.org/s/things-rules/v1 +name: things-rules-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concepts related to rules applying to resources for use with the things schema +description: | + Rules can be restricting or granting permissions. A concrete example + is a license. However, a rule can also be a requirement that has to be met + in order to be able to use a resource, such as a citation or acknowledgment + requirement. + + This schema provides a `rules` slot, and an associated `Rule` class that + can be used to capture permissions and regulation for a wide range of + concepts. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-rules/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + ODRL: http://www.w3.org/ns/odrl/2/ + dash: http://datashapes.org/dash# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + spdxlic: https://spdx.org/licenses/ + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - spdxlic + - xsd + +imports: + - dlschemas:things-properties/v1 + + +slots: + rules: + title: Rules + description: >- + Permissions, prohibitions, obligations or other rights/policies + associated with the resource. This could refer to a standard license, + a custom usage agreement, or a codified policy. + multivalued: true + range: Rule + narrow_mappings: + - ODRL:hasPolicy + - dcterms:rights + - dcterms:license + + +classes: + Rule: + is_a: Thing + description: >- + Permissions, prohibitions, obligations or other rights/policies. + This can be a standard license, a custom usage agreement, or a + codified policy. + slots: + # title because MIH thinks of these as documents + - title + # licenses often have them + - short_name diff --git a/src/things-rules/v1/examples/Rule-02-attributes.json b/src/things-rules/v1/examples/Rule-02-attributes.json new file mode 100644 index 0000000..bde65c1 --- /dev/null +++ b/src/things-rules/v1/examples/Rule-02-attributes.json @@ -0,0 +1,8 @@ +{ + "pid": "spdxlic:CC0-1.0", + "kind": "obo:NCIT_C43611", + "schema_type": "dlthings:Rule", + "title": "Creative Commons Zero v1.0 Universal", + "short_name": "CC0-1.0", + "@type": "Rule" +} diff --git a/src/things-rules/v1/examples/Rule-02-attributes.yaml b/src/things-rules/v1/examples/Rule-02-attributes.yaml new file mode 100644 index 0000000..73b6219 --- /dev/null +++ b/src/things-rules/v1/examples/Rule-02-attributes.yaml @@ -0,0 +1,5 @@ +pid: spdxlic:CC0-1.0 +title: Creative Commons Zero v1.0 Universal +short_name: CC0-1.0 +# license +kind: obo:NCIT_C43611 diff --git a/src/things-rules/v1/extra-docs/about.md b/src/things-rules/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-rules/v1/validation/Rule.valid.cfg.yaml b/src/things-rules/v1/validation/Rule.valid.cfg.yaml new file mode 100644 index 0000000..c2cbe0f --- /dev/null +++ b/src/things-rules/v1/validation/Rule.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-rules/v1.yaml +target_class: Rule +data_sources: + - src/things-rules/v1/examples/Rule-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-social/unreleased.yaml b/src/things-social/unreleased.yaml index 0bd1d50..0642c72 100644 --- a/src/things-social/unreleased.yaml +++ b/src/things-social/unreleased.yaml @@ -4,6 +4,8 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Basic social concepts for use with the things schema description: | + *This is an unreleased development version* + This schema defines basic social concepts (people, organizations, projects) as extensions of the general `things` model. It builds on the `properties` and `spatial` add-ons and provides name-related diff --git a/src/things-social/v1.yaml b/src/things-social/v1.yaml new file mode 100644 index 0000000..97be883 --- /dev/null +++ b/src/things-social/v1.yaml @@ -0,0 +1,185 @@ +id: https://concepts.datalad.org/s/things-social/v1 +name: things-social-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Basic social concepts for use with the things schema +description: | + This schema defines basic social concepts (people, organizations, + projects) as extensions of the general `things` model. It builds + on the `properties` and `spatial` add-ons and provides name-related + slots plus three classes (`Organization`, `Person`, `Project`) + with mappings to common vocabularies. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-social/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: CC-BY-4.0 + +prefixes: + dash: http://datashapes.org/dash# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + vcard: http://www.w3.org/2006/vcard/ns# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +slots: + family_name: + is_a: name + title: Family name + description: >- + The (inherited) family name of the subject. In many Western languages this is the + "last name". + range: string + exact_mappings: + - foaf:familyName + - vcard:family-name + + formatted_name: + is_a: name + description: >- + A formatted text corresponding to the name of the subject. + range: string + exact_mappings: + - vcard:fn + + honorific_name_prefix: + is_a: name + title: Title or prefix + description: >- + The honorific prefix(es) of the subject's name. For example, (academic/formal) titles + like "Mrs", or "Dr", "Dame". + range: string + exact_mappings: + - vcard:honorific-prefix + + honorific_name_suffix: + is_a: name + title: Suffix + description: >- + The honorific suffix(es) of the subject's name. For example, generation labels ("III"), + or indicators of an academic degree, a profession, or a position ("MD", "BA"). + range: string + exact_mappings: + - vcard:honorific-suffix + + given_name: + is_a: name + title: Given name + description: >- + The given (non-inherited) name of the subject. + range: string + exact_mappings: + - foaf:givenName + - vcard:given-name + + nickname: + is_a: name + title: Nickname + description: >- + A short informal, invented given name for a person or thing used instead of the + actual name of the person or thing. + range: string + exact_mappings: + - vcard:nickname + + additional_names: + is_a: name + title: Additional names + description: >- + Additional name(s) associated with the subject, such as one or more + middle names. + range: string + exact_mappings: + - vcard:additional_name + multivalued: true + +classes: + Organization: + is_a: Thing + description: >- + A social or legal institution such as a company, a society, or a university. + slots: + - name + - short_name + - at_location + - part_of + slot_usage: + part_of: + description: >- + An organization that the subject is part of. + range: Organization + multivalued: true + exact_mappings: + - prov:Organization + + Person: + is_a: Thing + description: >- + Person agents are people, alive, dead, or fictional. + exact_mappings: + - foaf:Person + - prov:Person + slots: + - additional_names + - family_name + - given_name + - honorific_name_prefix + - honorific_name_suffix + - formatted_name + + Project: + is_a: Thing + description: >- + A collective endeavour of some kind. Typically it is a planned + process that is undertaken or attempted to meet some requirement, + or to achieve a particular goal. + exact_mappings: + - foaf:Project + close_mappings: + - obo:NCIT_C47885 + broad_mappings: + # process + - obo:BFO_0000015 + slots: + - short_name + - title + - part_of + slot_usage: + part_of: + multivalued: true diff --git a/src/things-social/v1/examples/Organization-02-attributes.json b/src/things-social/v1/examples/Organization-02-attributes.json new file mode 100644 index 0000000..bc10b3e --- /dev/null +++ b/src/things-social/v1/examples/Organization-02-attributes.json @@ -0,0 +1,11 @@ +{ + "pid": "https://ror.org/02nv7yv05", + "schema_type": "dlthings:Organization", + "name": "Forschungszentrum Jülich", + "short_name": "FZJ", + "at_location": "https://sws.geonames.org/6557321", + "part_of": [ + "https://ror.org/0281dp749" + ], + "@type": "Organization" +} diff --git a/src/things-social/v1/examples/Organization-02-attributes.yaml b/src/things-social/v1/examples/Organization-02-attributes.yaml new file mode 100644 index 0000000..3d14bf2 --- /dev/null +++ b/src/things-social/v1/examples/Organization-02-attributes.yaml @@ -0,0 +1,6 @@ +pid: https://ror.org/02nv7yv05 +name: Forschungszentrum Jülich +short_name: FZJ +at_location: https://sws.geonames.org/6557321 +part_of: + - https://ror.org/0281dp749 diff --git a/src/things-social/v1/examples/Person-01-minimal.json b/src/things-social/v1/examples/Person-01-minimal.json new file mode 100644 index 0000000..d9549b5 --- /dev/null +++ b/src/things-social/v1/examples/Person-01-minimal.json @@ -0,0 +1,5 @@ +{ + "pid": "http://orcid.org/0000-0001-7628-0801", + "schema_type": "dlthings:Person", + "@type": "Person" +} diff --git a/src/things-social/v1/examples/Person-01-minimal.yaml b/src/things-social/v1/examples/Person-01-minimal.yaml new file mode 100644 index 0000000..1bd3345 --- /dev/null +++ b/src/things-social/v1/examples/Person-01-minimal.yaml @@ -0,0 +1,2 @@ +# A valid minimal person record is an identifier +pid: http://orcid.org/0000-0001-7628-0801 diff --git a/src/things-social/v1/examples/Person-02-attributes.json b/src/things-social/v1/examples/Person-02-attributes.json new file mode 100644 index 0000000..b5e9f2a --- /dev/null +++ b/src/things-social/v1/examples/Person-02-attributes.json @@ -0,0 +1,7 @@ +{ + "pid": "https://orcid.org/0000-0001-6398-6370", + "schema_type": "dlthings:Person", + "family_name": "Hanke", + "given_name": "Michael", + "@type": "Person" +} diff --git a/src/things-social/v1/examples/Person-02-attributes.yaml b/src/things-social/v1/examples/Person-02-attributes.yaml new file mode 100644 index 0000000..29f6dd5 --- /dev/null +++ b/src/things-social/v1/examples/Person-02-attributes.yaml @@ -0,0 +1,3 @@ +pid: https://orcid.org/0000-0001-6398-6370 +family_name: Hanke +given_name: Michael diff --git a/src/things-social/v1/examples/Project-02-attributes.json b/src/things-social/v1/examples/Project-02-attributes.json new file mode 100644 index 0000000..e459280 --- /dev/null +++ b/src/things-social/v1/examples/Project-02-attributes.json @@ -0,0 +1,14 @@ +{ + "pid": "https://trr379.de/projects/q02", + "identifiers": [ + { + "notation": "Q02", + "creator": "https://trr379.de", + "schema_type": "dlthings:Identifier" + } + ], + "schema_type": "dlthings:Project", + "short_name": "Q02", + "title": "Data management for computational modelling", + "@type": "Project" +} diff --git a/src/things-social/v1/examples/Project-02-attributes.yaml b/src/things-social/v1/examples/Project-02-attributes.yaml new file mode 100644 index 0000000..b40ac86 --- /dev/null +++ b/src/things-social/v1/examples/Project-02-attributes.yaml @@ -0,0 +1,6 @@ +pid: https://trr379.de/projects/q02 +title: Data management for computational modelling +short_name: Q02 +identifiers: + - notation: Q02 + creator: https://trr379.de diff --git a/src/things-social/v1/extra-docs/about.md b/src/things-social/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-social/v1/validation/Organization.valid.cfg.yaml b/src/things-social/v1/validation/Organization.valid.cfg.yaml new file mode 100644 index 0000000..fb45d48 --- /dev/null +++ b/src/things-social/v1/validation/Organization.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-social/v1.yaml +target_class: Organization +data_sources: + - src/things-social/v1/examples/Organization-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-social/v1/validation/Person.valid.cfg.yaml b/src/things-social/v1/validation/Person.valid.cfg.yaml new file mode 100644 index 0000000..2719ea7 --- /dev/null +++ b/src/things-social/v1/validation/Person.valid.cfg.yaml @@ -0,0 +1,10 @@ +schema: src/things-social/v1.yaml +target_class: Person +data_sources: + - src/things-social/v1/examples/Person-01-minimal.yaml + - src/things-social/v1/examples/Person-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-social/v1/validation/Project.valid.cfg.yaml b/src/things-social/v1/validation/Project.valid.cfg.yaml new file mode 100644 index 0000000..a2003dd --- /dev/null +++ b/src/things-social/v1/validation/Project.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-social/v1.yaml +target_class: Project +data_sources: + - src/things-social/v1/examples/Project-02-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-study/unreleased.yaml b/src/things-study/unreleased.yaml index e5350b7..43097b8 100644 --- a/src/things-study/unreleased.yaml +++ b/src/things-study/unreleased.yaml @@ -4,8 +4,18 @@ version: UNRELEASED status: eunal:concept-status/DRAFT title: Concept related to scientific studies for use with the things schema description: | - FLAT stands for Flexbile Low-complexity Annotation Technique. - The FLAT-study schema contains classes to describe scientific studies. + *This is an unreleased development version* + + This schema provides the foundational concepts of `Study` and `Subject` + for capturing key aspects of a scientific investigation. + + A `Subject` a domain agnostic model that identifies the context of a `Study` + for which it is valid. A `Study` supports classification of investigated + `factors`, and observed outcome variable (`dimensions`). + + It is suggested to use provenance information (`things-prov`) to capture + the relationship with investigative or data generating activities and actors. + Consequently, no such slots are provided by this schema. More information may be available on the schema's [about page](about). diff --git a/src/things-study/v1.yaml b/src/things-study/v1.yaml new file mode 100644 index 0000000..d332c49 --- /dev/null +++ b/src/things-study/v1.yaml @@ -0,0 +1,144 @@ +id: https://concepts.datalad.org/s/things-study/v1 +name: things-study-schema +version: 1.0.0 +status: eunal:concept-status/DRAFT +title: Concept related to scientific studies for use with the things schema +description: | + This schema provides the foundational concepts of `Study` and `Subject` + for capturing key aspects of a scientific investigation. + + A `Subject` a domain agnostic model that identifies the context of a `Study` + for which it is valid. A `Study` supports classification of investigated + `factors`, and observed outcome variable (`dimensions`). + + It is suggested to use provenance information (`things-prov`) to capture + the relationship with investigative or data generating activities and actors. + Consequently, no such slots are provided by this schema. + + More information may be available on the schema's [about page](about). + + The schema definition is available as + + - [JSON-LD context](../v1.context.jsonld) + - [LinkML YAML](../v1.yaml) + - [LinkML YAML (static/resolved)](../v1.static.yaml) + - [OWL TTL](../v1.owl.ttl) + - [SHACL TTL](../v1.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things-study/unreleased). + +comments: + - ALL CONTENT HERE IS UNRELEASED AND MAY CHANGE ANY TIME + +license: MIT + +prefixes: + dash: http://datashapes.org/dash# + dcterms: http://purl.org/dc/terms/ + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + eunal: http://publications.europa.eu/resource/authority/ + foaf: http://xmlns.com/foaf/0.1/ + FRAPO: http://purl.org/cerif/frapo/ + linkml: https://w3id.org/linkml/ + obo: http://purl.obolibrary.org/obo/ + owl: http://www.w3.org/2002/07/owl# + prov: http://www.w3.org/ns/prov# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + sh: http://www.w3.org/ns/shacl# + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - dlschemas:things-properties/v1 + +slots: + dimensions: + title: Outcomes variables + description: >- + Associated outcome variables. + range: Thing + multivalued: true + + factors: + title: Influencing factors + description: >- + Factors that influence the subject matter. + range: Thing + multivalued: true + + study: + title: Study context + description: >- + The study in which, for example, a subject was investigated. + range: Study + + +classes: + Study: + is_a: Thing + description: >- + A planned process that consists of parts: planning, study design + execution, documentation and which produce conclusion(s). An investigational + endeavour that involves research, enabled by a project. The study + relates to the scholarly and practical aspects of conducting the research + itself, including the hypotheses being investigated, the data being + gathered and analysed, the interpretations being drawn from the data, + and the results obtained. In contrast, a project that enables it + encompasses the administrative aspects of undertaking the endeavour, + including the funding obtained, the people involved, and the management + of the project in terms of deadlines and deliverables. + exact_mappings: + - obo:OBI_0000066 + - sio:SIO_001066 + - FRAPO:Investigation + narrow_mappings: + - sio:SIO_000994 + - obo:NCIT_C15206 + broad_mappings: + - prov:Activity + - obo:BFO_0000015 + slots: + - dimensions + - factors + - title + - part_of + slot_usage: + part_of: + range: Study + multivalued: true + + Subject: + is_a: Thing + description: >- + A subject is an entity being investigated in a study. This is a + contextual entity. One and the same entity can be different + subjects in two different studies. + slots: + - study + slot_usage: + study: + range: Study + kind: + title: Type + description: >- + A classifier that identifies the nature/type of a subject. + For specimen (a subject derived/taken from another subject), + this classifier should be more precise than the classifier + of the source subject. + comments: + - Rather than adding a `name` slot to assign a subject identifier, + the `identifiers` slot should be used for that -- possible + also identifying the issuing entity of that identifier via + `creator`. diff --git a/src/things-study/v1/examples/Study-1.json b/src/things-study/v1/examples/Study-1.json new file mode 100644 index 0000000..de1e67f --- /dev/null +++ b/src/things-study/v1/examples/Study-1.json @@ -0,0 +1,10 @@ +{ + "pid": "https://doi.org/1234/demo", + "about": [ + "https://en.wikipedia.org/wiki/Marie_Curie" + ], + "description": "very important science", + "schema_type": "dlthings:Study", + "title": "Demo", + "@type": "Study" +} diff --git a/src/things-study/v1/examples/Study-1.yaml b/src/things-study/v1/examples/Study-1.yaml new file mode 100644 index 0000000..a77178b --- /dev/null +++ b/src/things-study/v1/examples/Study-1.yaml @@ -0,0 +1,6 @@ +pid: https://doi.org/1234/demo +title: Demo +description: >- + very important science +about: + - https://en.wikipedia.org/wiki/Marie_Curie diff --git a/src/things-study/v1/examples/Subject-1.json b/src/things-study/v1/examples/Subject-1.json new file mode 100644 index 0000000..256b024 --- /dev/null +++ b/src/things-study/v1/examples/Subject-1.json @@ -0,0 +1,19 @@ +{ + "pid": "ex:6af3ce47-0c7a-479f-bd60-b960713b50be", + "identifiers": [ + { + "notation": "blood-from-sub-001", + "schema_type": "dlthings:Identifier" + } + ], + "kind": "obo:NCIT_C17610", + "characterized_by": [ + { + "object": "https://orcid.org/0000-0001-6398-6370", + "predicate": "prov:wasDerivedFrom" + } + ], + "schema_type": "dlthings:Subject", + "study": "ex:demo", + "@type": "Subject" +} diff --git a/src/things-study/v1/examples/Subject-1.yaml b/src/things-study/v1/examples/Subject-1.yaml new file mode 100644 index 0000000..f0d613b --- /dev/null +++ b/src/things-study/v1/examples/Subject-1.yaml @@ -0,0 +1,8 @@ +pid: ex:6af3ce47-0c7a-479f-bd60-b960713b50be +identifiers: + - notation: blood-from-sub-001 +study: ex:demo +kind: obo:NCIT_C17610 +characterized_by: + - predicate: prov:wasDerivedFrom + object: https://orcid.org/0000-0001-6398-6370 diff --git a/src/things-study/v1/extra-docs/about.md b/src/things-study/v1/extra-docs/about.md new file mode 100644 index 0000000..e69de29 diff --git a/src/things-study/v1/validation/Study.valid.cfg.yaml b/src/things-study/v1/validation/Study.valid.cfg.yaml new file mode 100644 index 0000000..55b5608 --- /dev/null +++ b/src/things-study/v1/validation/Study.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-study/v1.yaml +target_class: Study +data_sources: + - src/things-study/v1/examples/Study-1.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things-study/v1/validation/Subject.valid.cfg.yaml b/src/things-study/v1/validation/Subject.valid.cfg.yaml new file mode 100644 index 0000000..2ab1122 --- /dev/null +++ b/src/things-study/v1/validation/Subject.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things-study/v1.yaml +target_class: Subject +data_sources: + - src/things-study/v1/examples/Subject-1.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/unreleased.yaml b/src/things/unreleased.yaml index d969246..6414c87 100644 --- a/src/things/unreleased.yaml +++ b/src/things/unreleased.yaml @@ -21,6 +21,7 @@ description: | validation and precise data transformations ([`schema_type`](schema_type)) without limiting the general expressiveness to a fixed set of classes available this foundational schema. + - can be associated with any number of ([`identifiers`](identifiers). More information on this schema is available on a [dedicated page](about). Each class comes with dedicated examples that exemplify its use. A good @@ -28,11 +29,12 @@ description: | Although this generic schema could be used directly, it is meant to be used as a foundational building block for more targeted schemas. Therefore, the - schema does not define common slots like `name`, or `description`, and leaves + schema does not define common slots like `name`, or `title`, and leaves this to more targeted schemas to decide if such slots are needed, and how they should be defined. The envisioned use and reuse of this schema is to import it and built targeted derivatives of `Thing` and other classes provided here. - See the [PROV schema](/s/prov) for an example that is built on this schema. + See the [things-data schema](/s/things-data) for an example that is built on + this schema. This schema also incorporates a few fundamental type definitions, such as [`HexBinary`](HexBinary) (for checksum-like identifiers), and @@ -46,6 +48,20 @@ description: | - [OWL TTL](../unreleased.owl.ttl) - [SHACL TTL](../unreleased.shacl.ttl) + ## Upgrading vom Version 1 + + Most changes to the schema have been additions and should not break existing + use cases. However, the following changes are backward incompatible + + - All `sh:order` slot annotations have been removed. + - The `ADMS` vocabulary is no longer used and the prefix definition was removed. + - The obsolete `dltypes` prefix has been removed. + - The `exthisns` prefix definition was removed. The `ex` prefix continues to be + available. + + A dedicated `AnnotationTag` class has been added, and is used as the `range` + of the `annotation_tag` slot. + license: MIT prefixes: diff --git a/src/things/v2.yaml b/src/things/v2.yaml new file mode 100644 index 0000000..7a83723 --- /dev/null +++ b/src/things/v2.yaml @@ -0,0 +1,635 @@ +id: https://concepts.datalad.org/s/things/v2 +name: things-schema +version: 2.0.0 +status: eunal:concept-status/DRAFT +title: Generic schema for an arbitrarily detailed description of "things" +description: | + This schema provides a generic [`Thing`](Thing) concept as a basic building block. + Key concepts of this schema are that any `Thing` + + - has a unique identifier ([`pid`](pid)) + - can be mapped to arbitrary external schemas and terminologies to maximize + semantic alignment with existing metadata ecosystems + (see [`mappings`](mappings)) + - can be further described by attributes ([`attributes`](attributes)) + and qualified relations to other "things" + ([`characterized_by`](characterized_by)), + without prescribing a particular vocabulary + - can be associated with a specialized schema class for enabling detailed + validation and precise data transformations ([`schema_type`](schema_type)) + without limiting the general expressiveness to a fixed set of classes + available this foundational schema. + - can be associated with any number of ([`identifiers`](identifiers). + + More information on this schema is available on a [dedicated page](about). + Each class comes with dedicated examples that exemplify its use. A good + starting point are the [examples of the `Thing` class](Thing#examples). + + Although this generic schema could be used directly, it is meant to be used + as a foundational building block for more targeted schemas. Therefore, the + schema does not define common slots like `name`, or `title`, and leaves + this to more targeted schemas to decide if such slots are needed, and how they + should be defined. The envisioned use and reuse of this schema is to import + it and built targeted derivatives of `Thing` and other classes provided here. + See the [things-data schema](/s/things-data) for an example that is built on + this schema. + + This schema also incorporates a few fundamental type definitions, such as + [`HexBinary`](HexBinary) (for checksum-like identifiers), and + [`NonNegativeInteger`](NonNegativeInteger) for counts. + + The schema definition is available as + + - [JSON-LD context](../v2.context.jsonld) + - [LinkML YAML](../v2.yaml) + - [LinkML YAML (static/resolved)](../v2.static.yaml) + - [OWL TTL](../v2.owl.ttl) + - [SHACL TTL](../v2.shacl.ttl) + + Upcoming changes to this schema may be available in an [(unreleased) + development version](../../things/unreleased). + + ## Upgrading vom Version 1 + + Most changes to the schema have been additions and should not break existing + use cases. However, the following changes are backward incompatible + + - All `sh:order` slot annotations have been removed. + - The `ADMS` vocabulary is no longer used and the prefix definition was removed. + - The obsolete `dltypes` prefix has been removed. + - The `exthisns` prefix definition was removed. The `ex` prefix continues to be + available. + + A dedicated `AnnotationTag` class has been added, and is used as the `range` + of the `annotation_tag` slot. + +license: MIT + +prefixes: + # primarily for the examples, but also a foundational vocab + bibo: http://purl.org/ontology/bibo/ + # SHACL annotations + dash: http://datashapes.org/dash# + # here for alignment of `relations` + dcat: http://www.w3.org/ns/dcat# + # foundational + dcterms: http://purl.org/dc/terms/ + # self-reference + dlschemas: https://concepts.datalad.org/s/ + dlthings: https://concepts.datalad.org/s/things/v2/ + # here is a large, versatile source of controlled vocabularies/codes + eunal: http://publications.europa.eu/resource/authority/ + ex: http://example.org/ + # here as a technical necessity + linkml: https://w3id.org/linkml/ + # here as a large ecosystem for alignment and annotation + obo: http://purl.obolibrary.org/obo/ + # foundational + owl: http://www.w3.org/2002/07/owl# + rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# + rdfs: http://www.w3.org/2000/01/rdf-schema# + # Required for `Thing`-definition + schema: http://schema.org/ + # form annotations + sh: http://www.w3.org/ns/shacl# + # here for alignment of `attributes` + sio: http://semanticscience.org/resource/ + # foundational + skos: http://www.w3.org/2004/02/skos/core# + xsd: http://www.w3.org/2001/XMLSchema# + +default_prefix: dlthings + +# list of Curie prefixes that are used in the representation of instances of +# the model. All prefixes in this list are added to the prefix sections of +# the target models. +emit_prefixes: + - dlthings + - rdf + - rdfs + - skos + - xsd + +imports: + - linkml:types + +types: + EmailAddress: + uri: dlthings:EmailAddress + base: str + typeof: string + description: RFC 5322 compliant email address + pattern: '(?:[A-Za-z0-9!#$%&''*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&''*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])' + notes: + - The validation regex is taken from https://stackoverflow.com/a/201378 + - The regex is single-quoted for YAML encoding, hence all inner "'" have been doubled + + HexBinary: + uri: xsd:hexBinary + base: str + typeof: string + pattern: "^[a-fA-F0-9]+$" + description: >- + hex-encoded binary data. + + NodeUriOrCurie: + typeof: uriorcurie + description: >- + A type referencing an graph node. This is like `uriorcurie`, but in + an RDF export leads to the desirable `rdf.type` declaration, rather + then an `rdf.literal` of the corresponding URI. + base: str + uri: rdfs:Resource + + NonNegativeInteger: + uri: xsd:nonNegativeInteger + base: int + typeof: integer + description: An integer + notes: + - >- + Integer with minimum (inclusive) value of zero, i.e. the standard + mathematical concept of the non-negative integers. + broad_mappings: + - schema:Integer + +slots: + about: + slot_uri: dcterms:subject + description: >- + A relation of an information artifact to the subject, such as + a URL identifying the topic of a document. + range: Thing + exact_mappings: + - schema:about + - obo:IAO_0000136 + + annotations: + slot_uri: dlthings:annotations + title: Annotations + description: >- + A record of properties of the metadata record on a subject, a collection + of tag/text tuples with the semantics of OWL Annotation. + range: Annotation + inlined: true + multivalued: true + exact_mappings: + - obo:NCIT_C44272 + + annotation_tag: + description: A tag identifying an annotation. + range: Thing + + annotation_value: + description: The actual annotation. + range: string + + attributes: + slot_uri: dlthings:attributes + title: Attributes + description: >- + Declares a relation that associates a `Thing` (or another attribute) + with an attribute, where an attribute is an intrinsic characteristic, + such as a quality, capability, disposition, function, or is an + externally derived attribute determined from some descriptor + (e.g. a quantity, position, label/identifier). + Technically, this declaration is done via an `AttributeSpecification` + that combines a `predicate` with a value declaration and the + attribute-related slots of a `Thing`. Importantly, such attributes + are declared inline, because they do not have a unique identifier. + If an identifier is available, a `Thing` declaration (see `relation`), + and a qualification of that relationship via a `Statement` (see + `characterized_by`) should be preferred. + range: AttributeSpecification + inlined: true + inlined_as_list: true + multivalued: true + exact_mappings: + - sio:SIO_000008 + + broad_mappings: + slot_uri: skos:broadMatch + is_a: mappings + title: Broad mappings + description: >- + A list of terms from different schemas or terminology systems that have + broader meaning. + range: uriorcurie + multivalued: true + + characterized_by: + slot_uri: dlthings:characterized_by + title: Is characterized by + description: >- + Qualifies relationships between a subject `Thing` and an object `Thing` + with a `Statement` declaring a `predicate` on the nature of the + relationship. + range: Statement + inlined: true + inlined_as_list: true + multivalued: true + exact_mappings: + - obo:RO_0000053 + + close_mappings: + slot_uri: skos:closeMatch + is_a: mappings + title: Close mappings + description: >- + A list of terms from different schemas or terminology systems that have + close meaning. + range: uriorcurie + multivalued: true + + creator: + slot_uri: dcterms:creator + description: >- + An agent responsible for making an entity. + range: Thing + + defined_by: + slot_uri: rdfs:isDefinedBy + description: >- + Indicate a resource defining the subject. This may be a vocabulary + that describes the subject. + range: uriorcurie + + description: + slot_uri: dcterms:description + title: Description + description: A free-text account of the subject. + range: string + close_mappings: + - rdfs:comment + broad_mappings: + - obo:IAO_0000300 + annotations: + dash:singleLine: false + + display_label: + title: Record display label + slot_uri: skos:prefLabel + description: >- + Label that can be shown when the metadata record is displayed as an item. + range: string + + display_note: + title: Record display note + slot_uri: skos:note + description: >- + Note that can be shown when the record is displayed as an item. + This is typically longer than a label. + range: string + annotations: + dash:singleLine: false + + editorial_notes: + slot_uri: skos:editorialNote + title: Editorial note + description: >- + A comment about a metadata record either providing additional information for + a record curation, or leaving a comment after curation occurred. This can be + used to include information that is deemed relevant, but could not be expressed + in the provided fields. + range: string + multivalued: true + annotations: + dash:singleLine: false + + exact_mappings: + slot_uri: skos:exactMatch + is_a: mappings + title: Exact mappings + description: >- + A list of terms from different schemas or terminology systems that have + identical meaning. + range: uriorcurie + multivalued: true + + identifiers: + slot_uri: dcterms:identifier + description: An unambiguous reference to the subject within a given context. + exact_mappings: + - schema:identifier + range: Identifier + inlined: true + inlined_as_list: true + multivalued: true + + kind: + slot_uri: dcterms:type + description: >- + The nature of the subject. + range: Thing + comments: + - >- + This is conceptually the same as an instance-level `broad_mappings`. + It can make sense to use this slot (in addition) in order to enable + straightforward type declarations for instances from a controlled, + application specific vocabulary, while also keeping the ability to + use `broad_mappings` for alignment with external vocabularies and + applications. + exact_mappings: + - dcterms:type + + mappings: + slot_uri: skos:mappingRelation + description: >- + A list of terms from different schemas or terminology systems that have + comparable meaning. These may include terms that are precisely + equivalent, broader or narrower in meaning, or otherwise semantically + related but not equivalent from a strict ontological perspective. + range: uriorcurie + multivalued: true + + narrow_mappings: + slot_uri: skos:narrowMatch + is_a: mappings + title: Narrow mappings + description: >- + A list of terms from different schemas or terminology systems that have + narrower meaning. + range: uriorcurie + multivalued: true + + notation: + slot_uri: skos:notation + description: >- + String of characters such as "T58:5" or "30:4833" used to uniquely + identify a concept within the scope of a given concept scheme. + range: string + + object: + slot_uri: rdf:object + description: >- + Reference to a `Thing` within a `Statement`. + range: Thing + relational_role: OBJECT + exact_mappings: + - rdf:object + + pid: + identifier: true + title: Persistent identifier + description: >- + Persistent and globally unique identifier of a `Thing`. + range: uriorcurie + exact_mappings: + - dcterms:identifier + - schema:identifier + + predicate: + slot_uri: rdf:predicate + description: >- + Reference to a `Property` within a `Statement`. + range: Thing + multivalued: false + relational_role: PREDICATE + exact_mappings: + - rdf:predicate + + range: + slot_uri: rdfs:range + description: >- + Declares that the value of a `Thing` or `AttributeSpecification` + are instances of a particular class. + range: uriorcurie + + related_mappings: + slot_uri: skos:relatedMatch + is_a: mappings + title: Related mappings + description: >- + A list of terms from different schemas or terminology systems that have + related meaning. + range: uriorcurie + multivalued: true + + relations: + slot_uri: dlthings:relation + title: Relations + description: >- + Declares an unqualified relation of the subject `Thing` to another + `Thing`. This schema slot is used to define related things inline. + If such a definition is not needed. A qualified relationship can be + declared directly using the `characterized_by` slot. + multivalued: true + range: Thing + relational_role: OBJECT + symmetric: true + exact_mappings: + - dcat:relation + - dcterms:relation + + schema_type: + slot_uri: rdf:type + designates_type: true + description: >- + State that the subject is an instance of a particular schema class. + Typically, no explicit value needs to be assigned to this slot, + because it matches the class type of a particular record. + However, this slots can be used as a type designator of a schema + element for validation and schema structure handling purposes. + This is used to indicate specialized schema classes for properties + that accept a hierarchy of classes as their range. + range: NodeUriOrCurie + exact_mappings: + - dcterms:type + + unit: + slot_uri: obo:UO_0000000 + description: >- + A unit of measurement is a standardized quantity of a physical quality. + range: uriorcurie + + value: + slot_uri: rdf:value + description: >- + Value that is a direct representation of a thing. + relational_role: OBJECT + range: string + exact_mappings: + - rdf:value + + +classes: + ThingMixin: + mixin: true + description: >- + Mix-in with the common interface of `Thing` and `AttributeSpecification`. + This interface enables type specifications (`rdf:type`) for things + and attributes via a `type` designator slot to indicate specialized + schema classes for validation where a slot's `range` is too generic. + A thing or attribute can be further describe with statements on + qualified relations to other things (`characterized_by`), or + inline attributes (`attributes`). + A set of `mappings` slots enables the alignment for arbitrary external + schemas and terminologies. + slots: + - about + - annotations + - broad_mappings + - close_mappings + - description + - display_label + - display_note + - editorial_notes + - exact_mappings + - identifiers + - kind + - attributes + - characterized_by + - narrow_mappings + - related_mappings + - schema_type + + ValueSpecificationMixin: + mixin: true + description: >- + Mix-in for a (structured) value specification. Two slots are provided + to define a (literal) value (`value`) and its type (`range`). + slots: + - defined_by + - range + - unit + - value + comments: + - This mixin enables the expression of quantitative and qualitative + assessments/measurements/values. For a quantitative value, the + numerical value, and a possible unit is given. For a qualitative + value, `defined_by` is used to identify the quality of the + assessment from a controlled vocabulary or standard term. + + AttributeSpecification: + mixins: + - ThingMixin + - ValueSpecificationMixin + description: >- + An attribute is conceptually a thing, but it requires no dedicated + identifier (`pid`). Instead, it is linked to a `Thing` via its + `attributes` slot and declares a `predicate` on the nature of + the relationship. + slots: + - predicate + slot_usage: + about: + multivalued: true + predicate: + range: Property + required: true + exact_mappings: + - sio:SIO_000614 + close_mappings: + - dlthings:Thing + + Identifier: + class_uri: dlthings:Identifier + description: >- + An identifier is a label that uniquely identifies an item in a + particular context. Some identifiers are globally unique. All + identifiers are unique within their individual scope. + slots: + - creator + - notation + - schema_type + slot_usage: + notation: + required: true + exact_mappings: + - obo:IAO_0020000 + + Property: + class_uri: dlthings:Property + is_a: Thing + description: >- + An RDF property, a `Thing` used to define a `predicate`, for example + in a `Statement`. + exact_mappings: + - rdf:Property + + Statement: + class_uri: dlthings:Statement + description: >- + An RDF statement that links a `predicate` (a `Property`) with an + `object` (a `Thing`) to the subject to form a triple. + A `Statement` is used to qualify a relation to a `Thing` referenced + by its identifier. For specifying a qualified relation to an + attribute that has no dedicated identifier, use + an `AttributeSpecification`. + slots: + - object + - predicate + slot_usage: + object: + required: true + range: Thing + predicate: + range: Property + required: true + exact_mappings: + - rdf:Statement + + Thing: + class_uri: dlthings:Thing + mixins: + - ThingMixin + description: >- + The most basic, identifiable item. In addition to the slots + that are common between a `Thing` and an `AttributeSpecification` + (see `ThingMixin`), two additional slots are provided. The `pid` + slot takes the required identifier for a `Thing`. The `relation` + slot allows for the inline specification of other `Thing` instances. + Such a relation is unqualified (and symmetric), and should be + further characterized via a `Statement` (see `characterized_by`). + From a schema perspective, the `relation` slots allows for building + self-contained, structured documents (e.g., a JSON object) with + arbitrarily complex information on a `Thing`. + slots: + - pid + - relations + slot_usage: + about: + multivalued: true + relations: + inlined: true + inlined_as_list: false + exact_mappings: + - schema:Thing + + ValueSpecification: + is_a: Thing + mixins: + - ValueSpecificationMixin + description: >- + A `Thing` that is a value of some kind. This class can be used + to describe an outcome of a measurement, a factual value or constant, + or other qualitative or quantitative information with an associated + identifier. If no identifier is available, an `AttributeSpecification` + can be used within the context of an associated `Thing` + (`attributes`). + slot_usage: + value: + required: true + notes: + - >- + It is required, because when it is not needed, `Thing` should + be used as a type. Its absence is therefore likely a sign of + an error. + exact_mappings: + - obo:OBI_0001933 + + Annotation: + description: >- + A tag/value pair with the semantics of OWL Annotation. + slots: + - annotation_tag + - annotation_value + slot_usage: + annotation_tag: + range: AnnotationTag + key: true + + AnnotationTag: + is_a: Thing + title: Annotation tag + description: A tag identifying an annotation. diff --git a/src/things/v2/examples/AttributeSpecification-01-minimal.json b/src/things/v2/examples/AttributeSpecification-01-minimal.json new file mode 100644 index 0000000..5e66358 --- /dev/null +++ b/src/things/v2/examples/AttributeSpecification-01-minimal.json @@ -0,0 +1,6 @@ +{ + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "My attribute", + "@type": "AttributeSpecification" +} diff --git a/src/things/v2/examples/AttributeSpecification-01-minimal.yaml b/src/things/v2/examples/AttributeSpecification-01-minimal.yaml new file mode 100644 index 0000000..08caa8c --- /dev/null +++ b/src/things/v2/examples/AttributeSpecification-01-minimal.yaml @@ -0,0 +1,5 @@ +# Technically, the only required aspect of an AttributeSpecification +# is a predicate. That is because an attribute may not only have a +# single value, but is a more complex collection of attribute facets. +predicate: ex:title +value: "My attribute" diff --git a/src/things/v2/examples/AttributeSpecification-02-with-attributes.json b/src/things/v2/examples/AttributeSpecification-02-with-attributes.json new file mode 100644 index 0000000..7f24786 --- /dev/null +++ b/src/things/v2/examples/AttributeSpecification-02-with-attributes.json @@ -0,0 +1,20 @@ +{ + "predicate": "ex:identifier", + "exact_mappings": [ + "obo:IAO_0020000" + ], + "attributes": [ + { + "predicate": "skos:notation", + "schema_type": "dlthings:AttributeSpecification", + "value": "5008462-8" + }, + { + "predicate": "dcterms:creator", + "schema_type": "dlthings:AttributeSpecification", + "value": "https://d-nb.info" + } + ], + "schema_type": "dlthings:AttributeSpecification", + "@type": "AttributeSpecification" +} diff --git a/src/things/v2/examples/AttributeSpecification-02-with-attributes.yaml b/src/things/v2/examples/AttributeSpecification-02-with-attributes.yaml new file mode 100644 index 0000000..a1efdd0 --- /dev/null +++ b/src/things/v2/examples/AttributeSpecification-02-with-attributes.yaml @@ -0,0 +1,10 @@ +# An attribute without a singular value, but attributes of it +# own instead. +predicate: ex:identifier +exact_mappings: + - obo:IAO_0020000 +attributes: + - predicate: skos:notation + value: 5008462-8 + - predicate: dcterms:creator + value: https://d-nb.info diff --git a/src/things/v2/examples/Identifier-01-minimal.json b/src/things/v2/examples/Identifier-01-minimal.json new file mode 100644 index 0000000..b944f3a --- /dev/null +++ b/src/things/v2/examples/Identifier-01-minimal.json @@ -0,0 +1,5 @@ +{ + "notation": "0000-0001-6398-6370", + "schema_type": "dlthings:Identifier", + "@type": "Identifier" +} diff --git a/src/things/v2/examples/Identifier-01-minimal.yaml b/src/things/v2/examples/Identifier-01-minimal.yaml new file mode 100644 index 0000000..ad356ed --- /dev/null +++ b/src/things/v2/examples/Identifier-01-minimal.yaml @@ -0,0 +1,2 @@ +# For any identifier, just the actual notation must be specified. +notation: 0000-0001-6398-6370 diff --git a/src/things/v2/examples/Identifier-02-full.json b/src/things/v2/examples/Identifier-02-full.json new file mode 100644 index 0000000..ccc94d9 --- /dev/null +++ b/src/things/v2/examples/Identifier-02-full.json @@ -0,0 +1,6 @@ +{ + "notation": "0000-0001-6398-6370", + "creator": "https://orcid.org", + "schema_type": "dlthings:Identifier", + "@type": "Identifier" +} diff --git a/src/things/v2/examples/Identifier-02-full.yaml b/src/things/v2/examples/Identifier-02-full.yaml new file mode 100644 index 0000000..b1054f3 --- /dev/null +++ b/src/things/v2/examples/Identifier-02-full.yaml @@ -0,0 +1,2 @@ +creator: https://orcid.org +notation: 0000-0001-6398-6370 diff --git a/src/things/v2/examples/Property-01-minimal.json b/src/things/v2/examples/Property-01-minimal.json new file mode 100644 index 0000000..b17e331 --- /dev/null +++ b/src/things/v2/examples/Property-01-minimal.json @@ -0,0 +1,5 @@ +{ + "pid": "ex:title", + "schema_type": "dlthings:Property", + "@type": "Property" +} diff --git a/src/things/v2/examples/Property-01-minimal.yaml b/src/things/v2/examples/Property-01-minimal.yaml new file mode 100644 index 0000000..bb09430 --- /dev/null +++ b/src/things/v2/examples/Property-01-minimal.yaml @@ -0,0 +1,4 @@ +# A property is required to have an identifier, because it makes +# little sense to work with property definitions that cannot be +# referenced/resolved. +pid: ex:title diff --git a/src/things/v2/examples/Property-02-as_a_thing.json b/src/things/v2/examples/Property-02-as_a_thing.json new file mode 100644 index 0000000..12392ea --- /dev/null +++ b/src/things/v2/examples/Property-02-as_a_thing.json @@ -0,0 +1,13 @@ +{ + "pid": "ex:modified", + "description": "Date on which the resource was changed.", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "modified" + } + ], + "schema_type": "dlthings:Property", + "@type": "Property" +} diff --git a/src/things/v2/examples/Property-02-as_a_thing.yaml b/src/things/v2/examples/Property-02-as_a_thing.yaml new file mode 100644 index 0000000..5d357ad --- /dev/null +++ b/src/things/v2/examples/Property-02-as_a_thing.yaml @@ -0,0 +1,10 @@ +# A property is a thing, hence can be further defined using a +# Thing's means of definition. In general, properties are +# better referenced from well-defined vocabularies. However, +# for concrete technical applications, it can be useful to be +# able to specify key attributes of properties inline. +pid: ex:modified +description: "Date on which the resource was changed." +attributes: + - predicate: ex:title + value: "modified" diff --git a/src/things/v2/examples/Statement-01-minimal.json b/src/things/v2/examples/Statement-01-minimal.json new file mode 100644 index 0000000..73679f5 --- /dev/null +++ b/src/things/v2/examples/Statement-01-minimal.json @@ -0,0 +1,5 @@ +{ + "object": "https://helmholtz.de", + "predicate": "ex:subject", + "@type": "Statement" +} diff --git a/src/things/v2/examples/Statement-01-minimal.yaml b/src/things/v2/examples/Statement-01-minimal.yaml new file mode 100644 index 0000000..f445a70 --- /dev/null +++ b/src/things/v2/examples/Statement-01-minimal.yaml @@ -0,0 +1,5 @@ +# A statement contains the missing predicate and object to link to +# a subject in order to form a full RDF triple. Both are required, +# and both must be referenced (URI or CURIE) and not be inlined. +predicate: ex:subject +object: https://helmholtz.de diff --git a/src/things/v2/examples/Thing-01-minimal.json b/src/things/v2/examples/Thing-01-minimal.json new file mode 100644 index 0000000..499756f --- /dev/null +++ b/src/things/v2/examples/Thing-01-minimal.json @@ -0,0 +1,5 @@ +{ + "pid": "ex:mything", + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-01-minimal.yaml b/src/things/v2/examples/Thing-01-minimal.yaml new file mode 100644 index 0000000..e21dc6e --- /dev/null +++ b/src/things/v2/examples/Thing-01-minimal.yaml @@ -0,0 +1,3 @@ +# Any document on a Thing requires a identifier. +# Beyond that, no property is required. +pid: ex:mything diff --git a/src/things/v2/examples/Thing-02-aid.json b/src/things/v2/examples/Thing-02-aid.json new file mode 100644 index 0000000..eccf9cc --- /dev/null +++ b/src/things/v2/examples/Thing-02-aid.json @@ -0,0 +1,18 @@ +{ + "pid": "ex:mything", + "display_label": "My Thing", + "display_note": "In case someone is wondering what that thing of mine is, they could read further here...", + "editorial_notes": [ + "The only reason this record exists, is to function as an example in the documentation of `FlatThing`. Remove whenever there is no longer a need for that.", + "And also: this is lame!" + ], + "identifiers": [ + { + "notation": "meh", + "creator": "obo:FOODON_03411328", + "schema_type": "dlthings:Identifier" + } + ], + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-02-aid.yaml b/src/things/v2/examples/Thing-02-aid.yaml new file mode 100644 index 0000000..2437922 --- /dev/null +++ b/src/things/v2/examples/Thing-02-aid.yaml @@ -0,0 +1,14 @@ +pid: ex:mything +display_label: My Thing +display_note: >- + In case someone is wondering what that thing of mine is, + they could read further here... +editorial_notes: + - >- + The only reason this record exists, is to function as + an example in the documentation of `FlatThing`. + Remove whenever there is no longer a need for that. + - "And also: this is lame!" +identifiers: + - creator: obo:FOODON_03411328 + notation: meh diff --git a/src/things/v2/examples/Thing-02-identifiers.json b/src/things/v2/examples/Thing-02-identifiers.json new file mode 100644 index 0000000..6e7eb7a --- /dev/null +++ b/src/things/v2/examples/Thing-02-identifiers.json @@ -0,0 +1,27 @@ +{ + "pid": "https://ror.org/02nv7yv05", + "identifiers": [ + { + "notation": "02nv7yv05", + "creator": "https://ror.org", + "schema_type": "dlthings:Identifier" + }, + { + "notation": "5008462-8", + "creator": "https://d-nb.info", + "schema_type": "dlthings:Identifier" + } + ], + "characterized_by": [ + { + "object": "https://en.wikipedia.org/wiki/Forschungszentrum_J%C3%BClich", + "predicate": "owl:sameAs" + }, + { + "object": "https://www.wikidata.org/wiki/Q697111", + "predicate": "owl:sameAs" + } + ], + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-02-identifiers.yaml b/src/things/v2/examples/Thing-02-identifiers.yaml new file mode 100644 index 0000000..7567add --- /dev/null +++ b/src/things/v2/examples/Thing-02-identifiers.yaml @@ -0,0 +1,23 @@ +# Identification options for a thing. +# +# `pid` is the identifier of the metadata record. In practice it can +# by any of the identifiers below. In a particular context, it is often +# useful to agree on a particular type of identifier to simplify knowledge +# aggregation for individual things. Arbitrary other identifiers +# can be recorded in addition. +pid: https://ror.org/02nv7yv05 +identifiers: + # Research Organization Registry + - notation: 02nv7yv05 + creator: https://ror.org + # German National Library + # (here not using the direct value specification, but defining + # a proper identifier with a `notation`) + - notation: 5008462-8 + creator: https://d-nb.info +characterized_by: + # Use `sameAs` to point to other sources talking about the same thing + - object: https://en.wikipedia.org/wiki/Forschungszentrum_J%C3%BClich + predicate: owl:sameAs + - object: https://www.wikidata.org/wiki/Q697111 + predicate: owl:sameAs diff --git a/src/things/v2/examples/Thing-03-topic.json b/src/things/v2/examples/Thing-03-topic.json new file mode 100644 index 0000000..d1403f2 --- /dev/null +++ b/src/things/v2/examples/Thing-03-topic.json @@ -0,0 +1,11 @@ +{ + "pid": "https://doi.org/10.21105/joss.03262", + "characterized_by": [ + { + "object": "https://www.scicrunch.org/resolver/SCR_003931", + "predicate": "ex:subject" + } + ], + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-03-topic.yaml b/src/things/v2/examples/Thing-03-topic.yaml new file mode 100644 index 0000000..49d0f88 --- /dev/null +++ b/src/things/v2/examples/Thing-03-topic.yaml @@ -0,0 +1,6 @@ +# Relate a thing to topic/subjects +pid: https://doi.org/10.21105/joss.03262 +characterized_by: + # DataLad software + - object: https://www.scicrunch.org/resolver/SCR_003931 + predicate: ex:subject diff --git a/src/things/v2/examples/Thing-04-relations.json b/src/things/v2/examples/Thing-04-relations.json new file mode 100644 index 0000000..e5d63dd --- /dev/null +++ b/src/things/v2/examples/Thing-04-relations.json @@ -0,0 +1,22 @@ +{ + "pid": "https://doi.org/10.21105/joss.03262", + "relations": { + "ISSN:2475-9066": { + "pid": "ISSN:2475-9066", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "Journal of Open Source Software" + } + ], + "schema_type": "dlthings:Thing" + }, + "https://www.scicrunch.org/resolver/SCR_003931": { + "pid": "https://www.scicrunch.org/resolver/SCR_003931", + "schema_type": "dlthings:Thing" + } + }, + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-04-relations.yaml b/src/things/v2/examples/Thing-04-relations.yaml new file mode 100644 index 0000000..6fd691e --- /dev/null +++ b/src/things/v2/examples/Thing-04-relations.yaml @@ -0,0 +1,13 @@ +# `relations` is the only slot that allows for inlining other `Thing` +# records +# example: a paper +pid: https://doi.org/10.21105/joss.03262 +relations: + # the containing journal + ISSN:2475-9066: + # inlined information + attributes: + - predicate: ex:title + value: "Journal of Open Source Software" + # the datalad software (no information beyond the `pid` is inlined) + https://www.scicrunch.org/resolver/SCR_003931: diff --git a/src/things/v2/examples/Thing-05-publication.json b/src/things/v2/examples/Thing-05-publication.json new file mode 100644 index 0000000..65a4e26 --- /dev/null +++ b/src/things/v2/examples/Thing-05-publication.json @@ -0,0 +1,143 @@ +{ + "pid": "https://doi.org/10.1038/s41597-022-01163-2", + "relations": { + "ISSN:2052-4463": { + "pid": "ISSN:2052-4463", + "exact_mappings": [ + "bibo:Journal" + ], + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "Scientific Data" + } + ], + "schema_type": "dlthings:Thing" + } + }, + "description": "Large-scale datasets present unique opportunities to perform scientific investigations with unprecedented breadth. However, they also pose considerable challenges for the findability, accessibility, interoperability, and reusability (FAIR) of research outcomes due to infrastructure limitations, data usage constraints, or software license restrictions. Here we introduce a DataLad-based, domain-agnostic framework suitable for reproducible data processing in compliance with open science mandates. The framework attempts to minimize platform idiosyncrasies and performance-related complexities. It affords the capture of machine-actionable computational provenance records that can be used to retrace and verify the origins of research outcomes, as well as be re-executed independent of the original computing infrastructure. We demonstrate the framework’s performance using two showcases: one highlighting data sharing and transparency (using the studyforrest.org dataset) and another highlighting scalability (using the largest public brain imaging dataset available: the UK Biobank dataset).", + "exact_mappings": [ + "bibo:AcademicArticle" + ], + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "FAIRly big: A framework for computationally reproducible processing of large-scale data" + }, + { + "predicate": "ex:identifier", + "exact_mappings": [ + "obo:IAO_0020000" + ], + "attributes": [ + { + "predicate": "skos:notation", + "schema_type": "dlthings:AttributeSpecification", + "value": "10.1038/s41597-022-01163-2" + }, + { + "predicate": "dcterms:creator", + "schema_type": "dlthings:AttributeSpecification", + "value": "https://doi.org" + } + ], + "schema_type": "dlthings:AttributeSpecification" + }, + { + "predicate": "ex:bibliographicCitation", + "schema_type": "dlthings:AttributeSpecification", + "value": "Wagner, A.S., Waite, L.K., Wierzba, M. et al. FAIRly big: A framework for computationally reproducible processing of large-scale data. Sci Data 9, 80 (2022)." + }, + { + "predicate": "bibo:doi", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "DOI" + } + ], + "schema_type": "dlthings:AttributeSpecification", + "value": "https://doi.org/10.1038/s41597-022-01163-2" + }, + { + "predicate": "bibo:volume", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "Volume" + } + ], + "schema_type": "dlthings:AttributeSpecification", + "value": "9" + }, + { + "predicate": "bibo:number", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "Document number" + } + ], + "schema_type": "dlthings:AttributeSpecification", + "value": "80" + }, + { + "predicate": "bibo:numPages", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "Number of pages" + } + ], + "schema_type": "dlthings:AttributeSpecification", + "range": "xsd:nonNegativeInteger", + "value": "17" + }, + { + "predicate": "ex:modified", + "schema_type": "dlthings:AttributeSpecification", + "range": "xsd:date", + "value": "2022-02-11" + }, + { + "predicate": "ex:date", + "schema_type": "dlthings:AttributeSpecification", + "range": "xsd:date", + "value": "2022-03-11" + } + ], + "characterized_by": [ + { + "object": "ISSN:2052-4463", + "predicate": "ex:isPartOf" + }, + { + "object": "https://www.nature.com/subjects/data-processing", + "predicate": "ex:subject" + }, + { + "object": "https://www.nature.com/subjects/data-publication-and-archiving", + "predicate": "ex:subject" + }, + { + "object": "https://www.nature.com/subjects/software", + "predicate": "ex:subject" + }, + { + "object": "https://www.nature.com/articles/s41597-022-01163-2", + "predicate": "owl:sameAs" + }, + { + "object": "https://spdx.org/licenses/CC-BY-4.0", + "predicate": "ex:license" + } + ], + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-05-publication.yaml b/src/things/v2/examples/Thing-05-publication.yaml new file mode 100644 index 0000000..d37d5e2 --- /dev/null +++ b/src/things/v2/examples/Thing-05-publication.yaml @@ -0,0 +1,74 @@ +# A record on a scientific publication, as an example of describing +# a rather specialized thing without any dedicated support for +# specialized concepts by the schema itself. +# other schemas for those aspects. +pid: https://doi.org/10.1038/s41597-022-01163-2 +exact_mappings: + - bibo:AcademicArticle +description: "Large-scale datasets present unique opportunities to perform scientific investigations with unprecedented breadth. However, they also pose considerable challenges for the findability, accessibility, interoperability, and reusability (FAIR) of research outcomes due to infrastructure limitations, data usage constraints, or software license restrictions. Here we introduce a DataLad-based, domain-agnostic framework suitable for reproducible data processing in compliance with open science mandates. The framework attempts to minimize platform idiosyncrasies and performance-related complexities. It affords the capture of machine-actionable computational provenance records that can be used to retrace and verify the origins of research outcomes, as well as be re-executed independent of the original computing infrastructure. We demonstrate the framework’s performance using two showcases: one highlighting data sharing and transparency (using the studyforrest.org dataset) and another highlighting scalability (using the largest public brain imaging dataset available: the UK Biobank dataset)." +relations: + # the containing journal with some information on it + ISSN:2052-4463: + exact_mappings: + - bibo:Journal + attributes: + - predicate: ex:title + value: "Scientific Data" +attributes: + - predicate: ex:title + value: "FAIRly big: A framework for computationally reproducible processing of large-scale data" + # DOI + - predicate: ex:identifier + exact_mappings: + - obo:IAO_0020000 + attributes: + - predicate: skos:notation + value: 10.1038/s41597-022-01163-2 + - predicate: dcterms:creator + value: https://doi.org + # bibliographic information + - predicate: ex:bibliographicCitation + value: "Wagner, A.S., Waite, L.K., Wierzba, M. et al. FAIRly big: A framework for computationally reproducible processing of large-scale data. Sci Data 9, 80 (2022)." + - predicate: bibo:doi + attributes: + - predicate: ex:title + value: DOI + value: https://doi.org/10.1038/s41597-022-01163-2 + - predicate: bibo:volume + attributes: + - predicate: ex:title + value: Volume + value: "9" + - predicate: bibo:number + attributes: + - predicate: ex:title + value: Document number + value: "80" + - predicate: bibo:numPages + attributes: + - predicate: ex:title + value: Number of pages + value: "17" + range: xsd:nonNegativeInteger + - predicate: ex:modified + range: xsd:date + value: "2022-02-11" + - predicate: ex:date + range: xsd:date + value: "2022-03-11" +characterized_by: + # containing journal + - predicate: ex:isPartOf + object: ISSN:2052-4463 + # related topics + - predicate: ex:subject + object: https://www.nature.com/subjects/data-processing + - predicate: ex:subject + object: https://www.nature.com/subjects/data-publication-and-archiving + - predicate: ex:subject + object: https://www.nature.com/subjects/software + # publisher landing page + - predicate: owl:sameAs + object: https://www.nature.com/articles/s41597-022-01163-2 + - predicate: ex:license + object: https://spdx.org/licenses/CC-BY-4.0 diff --git a/src/things/v2/examples/Thing-06-annotations.json b/src/things/v2/examples/Thing-06-annotations.json new file mode 100644 index 0000000..c146171 --- /dev/null +++ b/src/things/v2/examples/Thing-06-annotations.json @@ -0,0 +1,18 @@ +{ + "pid": "https://example.org/thething", + "annotations": { + "obo:NCIT_C42615": { + "annotation_tag": "obo:NCIT_C42615", + "annotation_value": "https://www.trr379.de/contributors/michael-hanke" + }, + "dcterms:audience": { + "annotation_tag": "dcterms:audience", + "annotation_value": "obo:NCIT_C49060" + }, + "obo:NCIT_C71491": { + "annotation_tag": "obo:NCIT_C71491" + } + }, + "schema_type": "dlthings:Thing", + "@type": "Thing" +} diff --git a/src/things/v2/examples/Thing-06-annotations.yaml b/src/things/v2/examples/Thing-06-annotations.yaml new file mode 100644 index 0000000..a8357c6 --- /dev/null +++ b/src/things/v2/examples/Thing-06-annotations.yaml @@ -0,0 +1,13 @@ +# generic record annotation available for any `Thing`. +# annotation tags can be Thing identifiers, enabling the +# use of convention-driven local annotation patterns. +# annotation values are arbitrary strings, their interpretation +# being subject to such conventions +pid: https://example.org/thething +annotations: + # approved by + obo:NCIT_C42615: https://www.trr379.de/contributors/michael-hanke + # target audience is the public + dcterms:audience: obo:NCIT_C49060 + # deprecated + obo:NCIT_C71491: diff --git a/src/things/v2/examples/ValueSpecification-01-minimal.json b/src/things/v2/examples/ValueSpecification-01-minimal.json new file mode 100644 index 0000000..27394bd --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-01-minimal.json @@ -0,0 +1,6 @@ +{ + "pid": "ex:measurement853", + "schema_type": "dlthings:ValueSpecification", + "value": "special", + "@type": "ValueSpecification" +} diff --git a/src/things/v2/examples/ValueSpecification-01-minimal.yaml b/src/things/v2/examples/ValueSpecification-01-minimal.yaml new file mode 100644 index 0000000..43ccb2e --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-01-minimal.yaml @@ -0,0 +1,9 @@ +# The absolute minimum of a value specification is an +# identifier and a value. For something where no identifier +# can be assigned, `AttributeSpecification` can be used +# for attaching it to and identifiable thing. +# Such a plain value specification should only be used when +# additional essential properties can be aggregated via the +# identifier. +pid: ex:measurement853 +value: "special" diff --git a/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.json b/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.json new file mode 100644 index 0000000..897ea0c --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.json @@ -0,0 +1,12 @@ +{ + "pid": "ex:assessment123", + "about": [ + "obo:MF_0000202" + ], + "kind": "ex:sct-363881005", + "schema_type": "dlthings:ValueSpecification", + "value": "Extrovert", + "defined_by": "ex:isbn-of-Jung-1923", + "range": "xsd:string", + "@type": "ValueSpecification" +} diff --git a/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.yaml b/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.yaml new file mode 100644 index 0000000..b1f7324 --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-02-qualitative-assessment.yaml @@ -0,0 +1,9 @@ +pid: ex:assessment123 +# personality +about: + - obo:MF_0000202 +# Character trait (observable entity) from snomed +kind: ex:sct-363881005 +range: xsd:string +value: "Extrovert" +defined_by: ex:isbn-of-Jung-1923 diff --git a/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.json b/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.json new file mode 100644 index 0000000..38b06c4 --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.json @@ -0,0 +1,19 @@ +{ + "pid": "ex:measurement853", + "about": [ + "obo:PATO_0000125" + ], + "kind": "obo:IAO_0000109", + "attributes": [ + { + "predicate": "ex:title", + "schema_type": "dlthings:AttributeSpecification", + "value": "measured mass (kg)" + } + ], + "schema_type": "dlthings:ValueSpecification", + "value": "145.3", + "range": "xsd:decimal", + "unit": "obo:UO_0000009", + "@type": "ValueSpecification" +} diff --git a/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.yaml b/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.yaml new file mode 100644 index 0000000..9a1986c --- /dev/null +++ b/src/things/v2/examples/ValueSpecification-02-quantitative-measurement.yaml @@ -0,0 +1,13 @@ +pid: ex:measurement853 +# mass +about: + - obo:PATO_0000125 +attributes: + - predicate: ex:title + value: "measured mass (kg)" +# measurement datum +kind: obo:IAO_0000109 +range: xsd:decimal +# kilogram +unit: obo:UO_0000009 +value: "145.3" diff --git a/src/things/v2/extra-docs/about.md b/src/things/v2/extra-docs/about.md new file mode 100644 index 0000000..2decffb --- /dev/null +++ b/src/things/v2/extra-docs/about.md @@ -0,0 +1,72 @@ +# About the `things` schema + +This schema aims to define a lean data structure that can express arbitrarily +detailed information in a relatively shallow structure. It achieves this by +following a few basic principles: + +- every "thing" is required to have (at least) *one* unique identifier +- linking instead of nesting +- schema class type designator +- qualified relationships + +Each of these aspects is detailed in the following sections. + +## Every `thing` must have an identifier + +The `Thing` class, the main class of the schema, has an `pid` slot, which takes a URI or CURIE. +This slot is required, hence any instance of such a class must have a URI or CURIE identifier specified to be valid. +This is a strong requirement, and an essential pillar for the schema, which will become clear in the following sections. + +### What if there is no identifier? + +For many types of "things" identification systems have been developed (countries, institutions, publications, researchers, etc.). +However, not every conceivable "thing" comes with a (globally) unique identifier. +In such cases it can help to define an arbitrary, but dedicated namespace, and assign unique identifiers in that space. + +A concrete example could be a research consortium and its contributors. +Typically, such a consortium has a website with a dedicated domain. +If the domain is `example.org`, and the name of a contributor is Elena Piscopia, a suitable identifier could be `https://example.org/contributors/elena-piscopia`. +If a webpage on that person would be available at this address, the identifier would even resolve to more (human-readable) information, but this is not required. + +With this approach, identifiers for anything and everything can be generated. +However, this approach also requires to establish a process that guarantees that no two different "things" are assigned the same identifier. + +### What if there is more than one identifier? + +The one-identifier-and-one-identifier-only requirement only applies to the mechanics of the `things` schema and the `pid` slot of the `Thing` class in particular. +Beyond that, there is no constraint on the nature and number of identifiers associated with a `Thing`. +Such identifiers are attributes of a `Thing` and can be expressed as such. +The schema documentation contains [an example](/s/things/v2/Thing#example-thing-02-identifiers) showing how this can be done via the `attributes` slot of a `Thing`. For schema development, the [identifiers extension schema](/s/identifiers) is worth a look. +It provides a dedicated slot and classes for representing identifiers. + + +## Linking, not nesting + +In order to keep the structure of data records reasonably shallow, relationships between things are declared by referencing another thing's identifier, rather than by inlining a `Thing` record. +Making this possible is the reason for having a required `pid` slot in the `Thing` class. + +There is only one exception to this rule: the `relations` slot. Here, other `Thing` records can be inlined. The purpose of this slot is to largely avoid the need for a top-level, array-like data structure that can hold any number of data records. Using the `relations` slot, it is possible to represent arbitrarily rich information in a monolithic data structure. + +There is one other case of record-inlining in the `things` schema (besides few association helper classes): `attributes`. +Attributes are information that are not things (which would have an identifier), but nevertheless describe a `Thing`. +An example of such an attribute is the mass of a physical object. +A dedicated `AttributeSpecification` class defines how attributes are expressed. + +## Type designator slot + +The `relations` slot for inlining `Thing` records has a range of `Thing` (expects records of type `Thing`). +This implies a limitation on the validation of such records. +For example, a `Thing` may actually be a `InventoryItem`, using a data model defined in a derived schema. +Such an `InventoryItem` may define additional slots with their own constraints, and it should be possible to perform a targeted validation of such records. + +For this purpose, `Thing` provides a `schema_type` slot. +This slots takes an identifier (CURIE) of a schema class (including classes in derived schemas), which provide the effective data model for validation. + +Moreover, a set of `mappings` slots can be used to map a(n implicit) type of a data record to external schemas and terminologies, without requiring any and all concepts to be represented by a dedicated schema class. + +## Qualified relationships + +[Qualified relation](https://patterns.dataincubator.org/book/qualified-relation.html) is an essential pattern used by the `things` schema, and also its derivatives and extensions. +Within the `things` schema it is used by the `characterized_by` slot (and to some degree also for `attributes`) for characterizing the relationship between things. +The relationship between two things is qualified via an inline `Statement` that assigns a predicate to the relationship between a subject-thing, and a related object-thing. +See the [example for a topic annotation](/s/things/v2/Thing#example-thing-03-topic) for a concrete demo. diff --git a/src/things/v2/validation/AttributeSpecification.valid.cfg.yaml b/src/things/v2/validation/AttributeSpecification.valid.cfg.yaml new file mode 100644 index 0000000..2040c82 --- /dev/null +++ b/src/things/v2/validation/AttributeSpecification.valid.cfg.yaml @@ -0,0 +1,10 @@ +schema: src/things/v2.yaml +target_class: AttributeSpecification +data_sources: + - src/things/v2/examples/AttributeSpecification-01-minimal.yaml + - src/things/v2/examples/AttributeSpecification-02-with-attributes.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/v2/validation/Identifier.valid.cfg.yaml b/src/things/v2/validation/Identifier.valid.cfg.yaml new file mode 100644 index 0000000..dc32a1d --- /dev/null +++ b/src/things/v2/validation/Identifier.valid.cfg.yaml @@ -0,0 +1,10 @@ +schema: src/things/v2.yaml +target_class: Identifier +data_sources: + - src/things/v2/examples/Identifier-01-minimal.yaml + - src/things/v2/examples/Identifier-02-full.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/v2/validation/Property.valid.cfg.yaml b/src/things/v2/validation/Property.valid.cfg.yaml new file mode 100644 index 0000000..11996fa --- /dev/null +++ b/src/things/v2/validation/Property.valid.cfg.yaml @@ -0,0 +1,10 @@ +schema: src/things/v2.yaml +target_class: Thing +data_sources: + - src/things/v2/examples/Property-01-minimal.yaml + - src/things/v2/examples/Property-02-as_a_thing.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/v2/validation/Statement.valid.cfg.yaml b/src/things/v2/validation/Statement.valid.cfg.yaml new file mode 100644 index 0000000..3fd86ce --- /dev/null +++ b/src/things/v2/validation/Statement.valid.cfg.yaml @@ -0,0 +1,9 @@ +schema: src/things/v2.yaml +target_class: Statement +data_sources: + - src/things/v2/examples/Statement-01-minimal.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/v2/validation/Thing.valid.cfg.yaml b/src/things/v2/validation/Thing.valid.cfg.yaml new file mode 100644 index 0000000..1a13a3d --- /dev/null +++ b/src/things/v2/validation/Thing.valid.cfg.yaml @@ -0,0 +1,14 @@ +schema: src/things/v2.yaml +target_class: Thing +data_sources: + - src/things/v2/examples/Thing-01-minimal.yaml + - src/things/v2/examples/Thing-02-identifiers.yaml + - src/things/v2/examples/Thing-02-aid.yaml + - src/things/v2/examples/Thing-03-topic.yaml + - src/things/v2/examples/Thing-04-relations.yaml + - src/things/v2/examples/Thing-05-publication.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: diff --git a/src/things/v2/validation/ValueSpecification.valid.cfg.yaml b/src/things/v2/validation/ValueSpecification.valid.cfg.yaml new file mode 100644 index 0000000..915c151 --- /dev/null +++ b/src/things/v2/validation/ValueSpecification.valid.cfg.yaml @@ -0,0 +1,11 @@ +schema: src/things/v2.yaml +target_class: ValueSpecification +data_sources: + - src/things/v2/examples/ValueSpecification-01-minimal.yaml + - src/things/v2/examples/ValueSpecification-02-quantitative-measurement.yaml + - src/things/v2/examples/ValueSpecification-02-qualitative-assessment.yaml +plugins: + JsonschemaValidationPlugin: + closed: true + include_range_class_descendants: false + RecommendedSlotsPlugin: