-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possibility to express arbitrary properties (precisely)
This is simply using a basic implementation of `rdfs:Property`. This document ```yaml name: growing-dataset properties: - type: http://purl.obolibrary.org/obo/NCIT_C90437 label: Planned Number of Female Subjects range: xsd:nonNegativeInteger value: 54 ``` will translate to this set of triples (blank node identifiers shortened) ```ntriples OBJ0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://concepts.datalad.org/ontology/DatasetVersionObject> . OBJ0 <https://concepts.datalad.org/ontology/name> "growing-dataset" . OBJ0 <http://www.w3.org/2000/01/rdf-schema#property> OBJ1 . OBJ1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Property> . OBJ1 <http://www.w3.org/2000/01/rdf-schema#type> "http://purl.obolibrary.org/obo/NCIT_C90437"^^<http://www.w3.org/2001/XMLSchema#anyURI> . OBJ1 <http://www.w3.org/2000/01/rdf-schema#value> "54" . OBJ1 <http://www.w3.org/2000/01/rdf-schema#label> "Planned Number of Female Subjects" . OBJ1 <http://www.w3.org/2000/01/rdf-schema#range> "xsd:nonNegativeInteger"^^<http://www.w3.org/2001/XMLSchema#anyURI> . ```
- Loading branch information
Showing
12 changed files
with
233 additions
and
98 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/examples/dataset-version/DatasetVersionObject-customproperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"properties": [ | ||
{ | ||
"label": "Planned Number of Female Subjects", | ||
"range": "xsd:nonNegativeInteger", | ||
"type": "http://purl.obolibrary.org/obo/NCIT_C90437", | ||
"value": [ | ||
"54" | ||
] | ||
} | ||
], | ||
"name": "growing-dataset", | ||
"@type": "DatasetVersionObject" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/examples/dataset-version/DatasetVersionObject-customproperties.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: growing-dataset | ||
properties: | ||
- type: http://purl.obolibrary.org/obo/NCIT_C90437 | ||
label: Planned Number of Female Subjects | ||
range: xsd:nonNegativeInteger | ||
value: 54 |
108 changes: 108 additions & 0 deletions
108
src/examples/dataset-version/DatasetVersionObject-dats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"properties": [ | ||
{ | ||
"label": "Total number of sessions", | ||
"value": [ | ||
"521" | ||
] | ||
}, | ||
{ | ||
"label": "logo", | ||
"value": [ | ||
"logo.png" | ||
] | ||
}, | ||
{ | ||
"label": "CONP_status", | ||
"value": [ | ||
"CONP" | ||
] | ||
}, | ||
{ | ||
"label": "files", | ||
"value": [ | ||
"3771" | ||
] | ||
}, | ||
{ | ||
"label": "subjects", | ||
"type": "http://purl.obolibrary.org/obo/NCIT_C98703", | ||
"value": [ | ||
"1" | ||
] | ||
}, | ||
{ | ||
"label": "origin_consortium", | ||
"value": [ | ||
"IBIS" | ||
] | ||
}, | ||
{ | ||
"label": "origin_institution", | ||
"value": [ | ||
"McGill Centre for Integrative Neuroscience" | ||
] | ||
}, | ||
{ | ||
"label": "origin_city", | ||
"value": [ | ||
"Montreal" | ||
] | ||
}, | ||
{ | ||
"label": "origin_province", | ||
"value": [ | ||
"Quebec" | ||
] | ||
}, | ||
{ | ||
"label": "origin_country", | ||
"type": "http://purl.obolibrary.org/obo/HSO_0000360", | ||
"value": [ | ||
"Canada" | ||
] | ||
} | ||
], | ||
"license": "licenses:CC-BY-ND-4.0", | ||
"was_attributed_to": [ | ||
{ | ||
"meta_code": "MCIN", | ||
"meta_type": "dlco:OrganizationObject", | ||
"name": "McGill Center for Integrative Neuroscience" | ||
}, | ||
{ | ||
"meta_code": "ACEvans", | ||
"meta_type": "dlco:ResearchContributorObject", | ||
"name": "Alan C. Evans" | ||
} | ||
], | ||
"was_generated_by": [ | ||
{ | ||
"at_location": { | ||
"name": "North America", | ||
"description": "13 scanners in 6 sites across North America" | ||
}, | ||
"started_at": "2008-04-25T00:00:00", | ||
"ended_at": "2019-04-15T00:00:00" | ||
} | ||
], | ||
"qualified_attribution": [ | ||
{ | ||
"agent": "ACEvans", | ||
"had_role": [ | ||
"marcrel:ccp", | ||
"marcrel:cre", | ||
"marcrel:ldr", | ||
"marcrel:rth" | ||
] | ||
} | ||
], | ||
"description": "Longitudinal brain scans of a single human phantom acquired on multiple MRI devices across North America over a period of 11 years. In addition to the human brain images, lego phantom scans have been acquired in parallel for quality assessments over time across sites.", | ||
"keyword": [ | ||
"phantom", | ||
"MRI" | ||
], | ||
"title": "Multicenter Single Subject Human MRI Phantom", | ||
"version": "2.0", | ||
"@type": "DatasetVersionObject" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
id: https://concepts.datalad.org/ontology/rdfs | ||
name: meta_utils | ||
title: RDFS elements | ||
description: >- | ||
TODO | ||
prefixes: | ||
RDFS: http://www.w3.org/2000/01/rdf-schema# | ||
emit_prefixes: | ||
- RDFS | ||
imports: | ||
- ../ontology/types | ||
|
||
|
||
slots: | ||
comment: | ||
slot_uri: RDFS:comment | ||
description: >- | ||
A human-readable description. | ||
range: string | ||
|
||
label: | ||
slot_uri: RDFS:label | ||
description: >- | ||
A human-readable version of a resource's name. | ||
range: string | ||
|
||
range: | ||
slot_uri: RDFS:range | ||
description: >- | ||
State that the values of a property are instances a class. | ||
range: uriorcurie | ||
|
||
type: | ||
slot_uri: RDFS:type | ||
description: >- | ||
State that the subject is an instance of a class. | ||
range: uriorcurie | ||
|
||
value: | ||
slot_uri: RDFS:value | ||
description: >- | ||
Value of a resource. | ||
range: string | ||
multivalued: true | ||
relational_role: OBJECT | ||
|
||
properties: | ||
slot_uri: RDFS:property | ||
description: >- | ||
Container for arbitrary (extra) properties that are not covered by | ||
other dedicated properties. | ||
range: Property | ||
multivalued: true | ||
relational_role: PREDICATE | ||
|
||
|
||
classes: | ||
Property: | ||
class_uri: RDFS:Property | ||
description: >- | ||
RDFS based class to describe arbitrary properties. | ||
slots: | ||
- comment | ||
- label | ||
- range | ||
- type | ||
- value |
Oops, something went wrong.