adding funding to flat data #89

Open
msz wants to merge 3 commits from grant into main
7 changed files with 121 additions and 0 deletions

View file

@ -124,6 +124,20 @@ slots:
notes: notes:
- When type of the distribution is defined by IANA, `media_type` should be used. - When type of the distribution is defined by IANA, `media_type` should be used.
funding_organization:
title: Funding Organization
description: >-
Organization which supported (sponsored) something financially.
range: Organization
funding_sources:
title: Funding sources
description: >-
Source of funding (such as a specific grant). Used for funding
acknowledgements.
range: Grant
multivalued: true

FTR: I am including this funding_sources as funding in the resource-mixin schema over at datalad-concepts.

FTR: I am including this `funding_sources` as `funding` in the `resource-mixin` schema over at datalad-concepts.
generated_by: generated_by:
title: Generated by title: Generated by
description: >- description: >-
@ -226,6 +240,7 @@ classes:
- part_of - part_of
- primary_source - primary_source
- short_name - short_name
- funding_sources
slot_usage: slot_usage:
name: name:
recommended: true recommended: true
@ -253,6 +268,10 @@ classes:
recommended: true recommended: true
annotations: annotations:
sh:order: 7 sh:order: 7
funding_sources:
annotations:
sh:order: 8
DataItem: DataItem:
class_uri: inm7fd:DataItem class_uri: inm7fd:DataItem
@ -454,6 +473,22 @@ classes:
annotations: annotations:
sh:order: 4 sh:order: 4
Grant:
is_a: Thing
mixins:
- CurationAid
description: >-
A grant, typically financial or otherwise quantifiable,
resources.
slots:
- name
- funding_organization
slot_usage:
name:
required: True
funding_organization:
required: True
Instrument: Instrument:
class_uri: inm7fd:Instrument class_uri: inm7fd:Instrument
is_a: Thing is_a: Thing

View file

@ -0,0 +1,25 @@
{
"pid": "inm7:dataset/demo2",
"relations": {
"inm7:grant/foobar": {
"pid": "inm7:grant/foobar",
"schema_type": "inm7fd:Grant",
"name": "Brain and Behavior and Agriculture",
"funding_organization": "inm7:organization/dfg"
},
"inm7:organization/dfg": {
"pid": "inm7:organization/dfg",
"schema_type": "inm7fb:Organization",
"name": "Deutsche Forschungsgemeinschaft",
"short_name": "DFG"
}
},
"schema_type": "inm7fd:Dataset",
"name": "A Multimodal Dataset of Brain Activity and Behavioral Responses to Sustainable Agricultural Practices in Rural Populations",
"short_name": "NeuroAgroDB",
"funding_sources": [
"inm7:grant/foobar"
],
"display_label": "NeuroAgroDB",
"@type": "Dataset"
}

View file

@ -0,0 +1,17 @@
pid: inm7:dataset/demo2
name: >-
A Multimodal Dataset of Brain Activity and Behavioral Responses
to Sustainable Agricultural Practices in Rural Populations
short_name: NeuroAgroDB
display_label: NeuroAgroDB
funding_sources:
- inm7:grant/foobar
relations:
inm7:grant/foobar:
schema_type: inm7fd:Grant
name: Brain and Behavior and Agriculture
funding_organization: inm7:organization/dfg
inm7:organization/dfg:
schema_type: inm7fb:Organization
name: Deutsche Forschungsgemeinschaft
short_name: DFG

View file

@ -0,0 +1,16 @@
{
"pid": "inm7:grant/qfipp",
"relations": {
"inm7:organization/dfg": {
"pid": "inm7:organization/dfg",
"schema_type": "inm7fb:Organization",
"name": "Deutsche Forschungsgemeinschaft",
"short_name": "DFG"
}
},
"description": "Part of a 'grant names for documentation examples' funding scheme",
"schema_type": "inm7fd:Grant",
"name": "Exploring the Quantum Fluctuation-Induced Propulsion Paradigm for Next-Generation Deep Space Exploration",
"funding_organization": "inm7:organization/dfg",
"@type": "Grant"
}

View file

@ -0,0 +1,9 @@
pid: inm7:grant/qfipp
name: Exploring the Quantum Fluctuation-Induced Propulsion Paradigm for Next-Generation Deep Space Exploration
funding_organization: inm7:organization/dfg
description: Part of a 'grant names for documentation examples' funding scheme
relations:
inm7:organization/dfg:
schema_type: inm7fb:Organization
name: Deutsche Forschungsgemeinschaft
short_name: DFG

View file

@ -0,0 +1,10 @@
schema: src/flat-data/unreleased.yaml
target_class: Dataset
data_sources:
- src/flat-data/unreleased/examples/Dataset-2-with-funding.yaml
plugins:
JsonschemaValidationPlugin:
closed: true
include_range_class_descendants: false
RecommendedSlotsPlugin:

View file

@ -0,0 +1,9 @@
schema: src/flat-data/unreleased.yaml
target_class: Grant
data_sources:
- src/flat-data/unreleased/examples/Grant-1.yaml
plugins:
JsonschemaValidationPlugin:
closed: true
include_range_class_descendants: false
RecommendedSlotsPlugin: