diff --git a/modules/electrophysiology/src/main/resources/schemas/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1.json b/modules/electrophysiology/src/main/resources/schemas/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1.json new file mode 100644 index 00000000..f0502b79 --- /dev/null +++ b/modules/electrophysiology/src/main/resources/schemas/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1.json @@ -0,0 +1,73 @@ +{ + "@context": [ + "{{base}}/contexts/neurosciencegraph/core/schema/v0.1.0", + { + "this": "{{base}}/schemas/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1/shapes/" + } + ], + "@type": "nxv:Schema", + "imports": [ + "{{base}}/schemas/neurosciencegraph/commons/activity/v0.1.3", + "{{base}}/schemas/neurosciencegraph/commons/typedlabeledontologyterm/v0.1.1" + ], + "shapes": [ + { + "@id": "this:StimulusExperimentShape", + "@type": "sh:NodeShape", + "label": "Stimulus experiment shape definition", + "targetClass": "nsg:StimulusExperiment", + "nodeKind": "sh:BlankNodeOrIRI", + "and": [ + { + "node": "{{base}}/schemas/neurosciencegraph/commons/activity/v0.1.3/shapes/ActivityShape" + }, + { + "property": [ + { + "path": "nsg:stimulus", + "name": "Stimulus", + "description": "The shape of the stimulus", + "node": "this:StimulusShape", + "minCount": 1, + "maxCount": 1 + }, + { + "path": "prov:used", + "description": "The cell recorded from", + "class": { + "or": ["nsg:PatchedCell", "nsg:IntraCellularSharpElectrodeRecordedCell"] + }, + "minCount": 1, + "maxCount": 1 + } + ] + } + ] + }, + { + "@id": "this:StimulusShape", + "@type": "sh:NodeShape", + "label": "Stimulus shape definition", + "property": [ + { + "path": "nsg:stimulusType", + "name": "Stimulus type", + "node": "{{base}}/schemas/neurosciencegraph/commons/typedlabeledontologyterm/v0.1.1/shapes/StimulusTypeOntologyTermShape", + "minCount": 1, + "maxCount": 1 + }, + { + "path": "nsg:eCode", + "name": "eCode", + "node": "{{base}}/schemas/neurosciencegraph/commons/typedlabeledontologyterm/v0.1.1/shapes/EcodeOntologyTermShape", + "maxCount": 1 + }, + { + "path": "schema:description", + "datatype": "xsd:string", + "maxCount": 1 + } + ] + } + ] +} \ No newline at end of file diff --git a/modules/electrophysiology/src/test/resources/data/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1/min-fields.json b/modules/electrophysiology/src/test/resources/data/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1/min-fields.json new file mode 100644 index 00000000..d7f0b5d7 --- /dev/null +++ b/modules/electrophysiology/src/test/resources/data/neurosciencegraph/electrophysiology/stimulusexperiment/v0.1.1/min-fields.json @@ -0,0 +1,24 @@ +{ + "@context": [ + "{{base}}/contexts/neurosciencegraph/core/data/v0.1.0" + ], + "@type": [ + "prov:Activity", + "nsg:StimulusExperiment" + ], + "stimulus": { + "stimulusType": { + "@id": "http://www.FIXME.org/ephys_stimuli/0000001", + "rdfs:label": "ADHPdepol" + } + }, + "used": [ + { + "@id": "{{base}}/dev/v0/data/neurosciencegraph/experiment/intrasharprecordedcell/v0.1.0/f4880a5e-3096-4527-bbf8-05d797b8c424", + "@type": [ + "nsg:IntraCellularSharpElectrodeRecordedCell", + "prov:Entity" + ] + } + ] +} \ No newline at end of file