Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first attempt to formalize graph dependencies #280

Draft
wants to merge 2 commits into
base: v4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions schemas/data/file.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
"_instruction": "Add one or several bundles in which this single file can be grouped.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/FileBundle"
],
"_restrictions": [
{
"_isPartOf": [
{
"@id": "fileRepository"
},
{
"@reverse": true,
"@id": "isPartOf"
}
]
}
]
},
"name": {
Expand Down
99 changes: 99 additions & 0 deletions schemas/data/fileBundle.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,105 @@
"_instruction": "Add the entity that played a role in the production of this file bundle.",
"_linkedCategories": [
"fileOrigin"
],
"_restrictions": [
{
"_excludeSelf": true,
"_isPartOf": [
{
"@id": "isPartOf"
},
{
"@reverse": true,
"@id": "repository"
},
{
"_or": [
[
{
"@id": "studyTarget"
}
],
[
{
"@id": "technique"
}
],
[
{
"@id": "repository"
},
{
"@reverse": true,
"@id": "fileRepository"
}
],
[
{
"@id": "repository"
},
{
"@reverse": true,
"@id": "fileRepository"
}
],
[
{
"@id": "repository"
},
{
"@reverse": true,
"@id": "isPartOf"
}
],
[
{
"@id": "behavioralProtocol"
}
],
[
{
"@id": "behavioralProtocol"
}
],
[
{
"@id": "studiedSpecimen"
}
],
[
{
"@id": "studiedSpecimen"
},
{
"@id": "studiedState"
}
],
[
{
"@id": "studiedSpecimen"
},
{
"@reverse": true,
"@id": "isPartOf"
}
],
[
{
"@id": "studiedSpecimen"
},
{
"@reverse": true,
"@id": "isPartOf"
},
{
"@id": "studiedState"
}
]
]
}
]
}
]
},
"format": {
Expand Down
38 changes: 38 additions & 0 deletions schemas/products/datasetVersion.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
"_instruction": "If necessary, add one or several authors (person or organization) that contributed to the production and publication of this dataset version. Note that these authors will overwrite the once provided in the dataset product this version belongs to.",
"_linkedCategories": [
"legalPerson"
],
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "author"
}
]
},
"behavioralProtocol": {
Expand Down Expand Up @@ -68,12 +77,41 @@
"_instruction": "Add all dataset versions that can be used alternatively to this dataset version.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/DatasetVersion"
],
"_restrictions": [
{
"_excludeSelf": true,
"_isPartOf": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "hasVersion"
}
]
}
]
},
"isNewVersionOf": {
"_instruction": "Add the dataset version preceding this dataset version.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/DatasetVersion"
],
"_restrictions": [
{
"_excludeSelf": true,
"_uniqueReference": true,
"_isPartOf": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "hasVersion"
}
]
}
]
},
"license": {
Expand Down
9 changes: 9 additions & 0 deletions schemas/products/metaDataModelVersion.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"_instruction": "If necessary, add one or several developers (person or organization) that contributed to the code implementation of this (meta)data model version. Note that these developers will overwrite the once provided in the (meta)data model product this version belongs to.",
"_linkedCategories": [
"legalPerson"
],
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "developer"
}
]
},
"digitalIdentifier": {
Expand Down
9 changes: 9 additions & 0 deletions schemas/products/modelVersion.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"_instruction": "If necessary, add one or several developers (person or organization) that contributed to the code implementation of this model version. Note that these developers will overwrite the once provided in the model product this version belongs to.",
"_linkedCategories": [
"legalPerson"
],
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "developer"
}
]
},
"digitalIdentifier": {
Expand Down
47 changes: 42 additions & 5 deletions schemas/products/researchProductVersion.schema.tpl.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"_categories": [
"researchProduct"
],
Expand All @@ -24,7 +24,7 @@
]
},
"custodian": {
"type": "array",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"_instruction": "Add one or several person(s) or organization(s) that fulfills the role of a custodian. The role of the custodian is typically fulfilled by a research group leader or principal investigator, but could also be carried out by an organization. Custodians are typically the main contact in case of misconduct, obtain permission from the contributors to publish personal information, and maintain the content and quality of the data, metadata, and/or code of a research product.",
Expand All @@ -35,19 +35,51 @@
"description": {
"type": "string",
"maxLength": 2000,
"_instruction": "If necessary, enter a version specific description (abstract) for this research product version (max. 2000 characters, incl. spaces; no references). If left blank, the research product version will inherit the 'description' of it's corresponding research product."
"_instruction": "If necessary, enter a version specific description (abstract) for this research product version (max. 2000 characters, incl. spaces; no references). If left blank, the research product version will inherit the 'description' of it's corresponding research product.",
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "description"
}
]
},
"fullDocumentation": {
"_instruction": "Add the DOI, file or URL that points to a full documentation of this research product version.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/DOI",
"https://openminds.ebrains.eu/core/File",
"https://openminds.ebrains.eu/core/URL"
],
"_restrictions": [
{
"_forType": "https://openminds.ebrains.eu/core/File",
"_isPartOf": [
{
"@id": "repository"
},
{
"@reverse": true,
"@id": "fileRepository"
}
]
}
]
},
"fullName": {
"type": "string",
"_instruction": "If necessary, enter a version specific descriptive full name (title) for this research product version. If left blank, the research product version will inherit the 'fullName' of it's corresponding research product."
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "fullName"
}
]
},
"funding": {
"type": "array",
Expand All @@ -71,7 +103,7 @@
"keyword": {
"type": "array",
"maxItems": 5,
"minItems": 1,
"minItems": 1,
"uniqueItems": true,
"_instruction": "Add controlled or suggest new terms as keywords to this research product version.",
"_linkedCategories": [
Expand Down Expand Up @@ -108,6 +140,11 @@
"_instruction": "Add the file repository of this research product version.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/FileRepository"
],
"_restrictions": [
{
"_uniqueReference": true
}
]
},
"shortName": {
Expand All @@ -117,7 +154,7 @@
},
"supportChannel": {
"type": "array",
"minItems": 1,
"minItems": 1,
"uniqueItems": true,
"_instruction": "Enter all channels through which a user can receive support for handling this research product.",
"items": {
Expand Down
9 changes: 9 additions & 0 deletions schemas/products/softwareVersion.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
"_instruction": "If necessary, add one or several developers (person or organization) that contributed to the code implementation of this software version. Note that these developers will overwrite the once provided in the software product this version belongs to.",
"_linkedCategories": [
"legalPerson"
],
"_fallback": [
{
"@reverse": true,
"@id": "hasVersion"
},
{
"@id": "developer"
}
]
},
"device": {
Expand Down
13 changes: 13 additions & 0 deletions schemas/research/tissueSample.schema.tpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
"_instruction": "Add all tissue sample collections of which this tissue sample is part of.",
"_linkedTypes": [
"https://openminds.ebrains.eu/core/TissueSampleCollection"
],
"_restrictions": [
{
"_isPartOf": [
{
"@reverse": true,
"@id": "studiedSpecimen"
},
{
"@id": "studiedSpecimen"
}
]
}
]
},
"laterality": {
Expand Down