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

Allow StimulusExperiment to use any type of intracellular electrode #100

Open
wants to merge 1 commit into
base: v0
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to neurosciencegraph/commons/activity/v0.1.4

"{{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": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to use nsg:Cell as a type of the used entity.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that is specific enough. It is important that the object used in the experiment be a cell-that-has-been-recorded-from.

I had in mind to define "nsg:RecordedCell" as a parent of "nsg:PatchedCell" and "nsg:IntraCellularSharpElectrodeRecordedCell", but I didn't do that yet because I wanted to keep the changes minimal so as to get them deployed as soon as possible.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification. I'm all for using nsg:RecordedCell then. I think it makes sense.

"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
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}