diff --git a/dev/data/example_synthetic.jsonld b/dev/data/example_synthetic.jsonld deleted file mode 100644 index 937951b..0000000 --- a/dev/data/example_synthetic.jsonld +++ /dev/null @@ -1,331 +0,0 @@ -{ - "@context": { - "nb": "http://neurobagel.org/vocab/", - "snomed": "http://purl.bioontology.org/ontology/SNOMEDCT/", - "nidm": "http://purl.org/nidash/nidm#", - "cogatlas": "https://www.cognitiveatlas.org/task/id/", - "ncit": "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#", - "Acquisition": "nb:Acquisition", - "identifier": "@id", - "hasContrastType": { - "@id": "nb:hasContrastType" - }, - "schemaKey": "@type", - "Assessment": "nb:Assessment", - "Bagel": "nb:Bagel", - "BaseModel": "nb:BaseModel", - "ControlledTerm": "nb:ControlledTerm", - "Dataset": "nb:Dataset", - "hasLabel": { - "@id": "nb:hasLabel" - }, - "hasPortalURI": { - "@id": "nb:hasPortalURI" - }, - "hasSamples": { - "@id": "nb:hasSamples" - }, - "Diagnosis": "nb:Diagnosis", - "Image": "nb:Image", - "ImagingSession": "nb:ImagingSession", - "hasFilePath": { - "@id": "nb:hasFilePath" - }, - "hasAcquisition": { - "@id": "nb:hasAcquisition" - }, - "PhenotypicSession": "nb:PhenotypicSession", - "hasAge": { - "@id": "nb:hasAge" - }, - "hasSex": { - "@id": "nb:hasSex" - }, - "isSubjectGroup": { - "@id": "nb:isSubjectGroup" - }, - "hasDiagnosis": { - "@id": "nb:hasDiagnosis" - }, - "hasAssessment": { - "@id": "nb:hasAssessment" - }, - "Session": "nb:Session", - "Sex": "nb:Sex", - "Subject": "nb:Subject", - "hasSession": { - "@id": "nb:hasSession" - }, - "SubjectGroup": "nb:SubjectGroup" - }, - "identifier": "nb:e0c7d08c-edcc-4c2a-816a-306878ed7be2", - "hasLabel": "BIDS synthetic", - "hasPortalURI": "https://github.com/bids-standard/bids-examples", - "hasSamples": [ - { - "identifier": "nb:34ec1e2d-9a81-4a50-bcd0-eb22c88d11e1", - "hasLabel": "sub-01", - "hasSession": [ - { - "identifier": "nb:85c7473c-6122-4999-ad3b-5cd57a883c87", - "hasLabel": "ses-01", - "hasAge": 34.1, - "hasSex": { - "identifier": "snomed:248152002", - "schemaKey": "Sex" - }, - "isSubjectGroup": { - "identifier": "ncit:C94342", - "schemaKey": "SubjectGroup" - }, - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - }, - { - "identifier": "nb:eb57d0c1-fb96-4c04-8c16-1f29f7f40db4", - "hasLabel": "ses-02", - "hasAge": 35.3, - "hasSex": { - "identifier": "snomed:248152002", - "schemaKey": "Sex" - }, - "isSubjectGroup": { - "identifier": "ncit:C94342", - "schemaKey": "SubjectGroup" - }, - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - } - ], - "schemaKey": "Subject" - }, - { - "identifier": "nb:2de41397-805f-4059-b464-388ef501d6e5", - "hasLabel": "sub-02", - "hasSession": [ - { - "identifier": "nb:0ce182f3-b47c-4b50-8b76-8f257e490cf3", - "hasLabel": "ses-01", - "hasSex": { - "identifier": "snomed:248153007", - "schemaKey": "Sex" - }, - "hasDiagnosis": [ - { - "identifier": "snomed:406506008", - "schemaKey": "Diagnosis" - } - ], - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - }, - { - "identifier": "nb:4871d5c2-963f-4825-ab43-85a87edac4ce", - "hasLabel": "ses-02", - "hasAge": 39.0, - "hasSex": { - "identifier": "snomed:248153007", - "schemaKey": "Sex" - }, - "hasDiagnosis": [ - { - "identifier": "snomed:406506008", - "schemaKey": "Diagnosis" - } - ], - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - } - ], - "schemaKey": "Subject" - }, - { - "identifier": "nb:d4258426-2971-43ff-92fa-4b20bd21c31f", - "hasLabel": "sub-03", - "hasSession": [ - { - "identifier": "nb:3f9c82d5-6648-4b9b-8f86-195ee9283875", - "hasLabel": "ses-01", - "hasAge": 22.1, - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - }, - { - "identifier": "nb:0f7fe93b-13b1-4ca7-9e58-b997a18ec9b9", - "hasLabel": "ses-02", - "hasAge": 23.2, - "hasDiagnosis": [ - { - "identifier": "snomed:406506008", - "schemaKey": "Diagnosis" - } - ], - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - } - ], - "schemaKey": "Subject" - }, - { - "identifier": "nb:73193f71-cd19-4b8c-ae73-abc882e9b688", - "hasLabel": "sub-04", - "hasSession": [ - { - "identifier": "nb:962aa986-dbd7-4412-a180-49c0a24c9f87", - "hasLabel": "ses-01", - "hasAge": 21.1, - "hasSex": { - "identifier": "snomed:248152002", - "schemaKey": "Sex" - }, - "isSubjectGroup": { - "identifier": "ncit:C94342", - "schemaKey": "SubjectGroup" - }, - "hasAssessment": [ - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - }, - { - "identifier": "nb:8622fc66-013d-4675-a328-fdcccd4616b0", - "hasLabel": "ses-02", - "hasAge": 22.3, - "hasSex": { - "identifier": "snomed:248152002", - "schemaKey": "Sex" - }, - "isSubjectGroup": { - "identifier": "ncit:C94342", - "schemaKey": "SubjectGroup" - }, - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - } - ], - "schemaKey": "Subject" - }, - { - "identifier": "nb:cb8d7a96-fdec-425c-b0b5-9e9ac3c70e8c", - "hasLabel": "sub-05", - "hasSession": [ - { - "identifier": "nb:1d7c30f5-cae9-43c9-a154-26dbe0029594", - "hasLabel": "ses-01", - "hasAge": 42.5, - "hasSex": { - "identifier": "snomed:248153007", - "schemaKey": "Sex" - }, - "hasDiagnosis": [ - { - "identifier": "snomed:406506008", - "schemaKey": "Diagnosis" - } - ], - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - }, - { - "identifier": "nb:2401e418-6f9b-4113-9511-b1b9a332a5d0", - "hasLabel": "ses-02", - "hasAge": 43.2, - "hasSex": { - "identifier": "snomed:248153007", - "schemaKey": "Sex" - }, - "hasDiagnosis": [ - { - "identifier": "snomed:406506008", - "schemaKey": "Diagnosis" - } - ], - "hasAssessment": [ - { - "identifier": "cogatlas:trm_57964b8a66aed", - "schemaKey": "Assessment" - }, - { - "identifier": "cogatlas:tsk_4a57abb949ece", - "schemaKey": "Assessment" - } - ], - "schemaKey": "PhenotypicSession" - } - ], - "schemaKey": "Subject" - } - ], - "schemaKey": "Dataset" -} \ No newline at end of file diff --git a/dev/data/example_synthetic_pheno-bids.jsonld b/dev/data/example_synthetic_pheno-bids.jsonld new file mode 100644 index 0000000..44e7f6d --- /dev/null +++ b/dev/data/example_synthetic_pheno-bids.jsonld @@ -0,0 +1,731 @@ +{ + "@context": { + "nb": "http://neurobagel.org/vocab/", + "snomed": "http://purl.bioontology.org/ontology/SNOMEDCT/", + "nidm": "http://purl.org/nidash/nidm#", + "cogatlas": "https://www.cognitiveatlas.org/task/id/", + "ncit": "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#", + "Acquisition": "nb:Acquisition", + "identifier": "@id", + "hasContrastType": { + "@id": "nb:hasContrastType" + }, + "schemaKey": "@type", + "Assessment": "nb:Assessment", + "Bagel": "nb:Bagel", + "BaseModel": "nb:BaseModel", + "ControlledTerm": "nb:ControlledTerm", + "Dataset": "nb:Dataset", + "hasLabel": { + "@id": "nb:hasLabel" + }, + "hasPortalURI": { + "@id": "nb:hasPortalURI" + }, + "hasSamples": { + "@id": "nb:hasSamples" + }, + "Diagnosis": "nb:Diagnosis", + "Image": "nb:Image", + "ImagingSession": "nb:ImagingSession", + "hasFilePath": { + "@id": "nb:hasFilePath" + }, + "hasAcquisition": { + "@id": "nb:hasAcquisition" + }, + "PhenotypicSession": "nb:PhenotypicSession", + "hasAge": { + "@id": "nb:hasAge" + }, + "hasSex": { + "@id": "nb:hasSex" + }, + "isSubjectGroup": { + "@id": "nb:isSubjectGroup" + }, + "hasDiagnosis": { + "@id": "nb:hasDiagnosis" + }, + "hasAssessment": { + "@id": "nb:hasAssessment" + }, + "Session": "nb:Session", + "Sex": "nb:Sex", + "Subject": "nb:Subject", + "hasSession": { + "@id": "nb:hasSession" + }, + "SubjectGroup": "nb:SubjectGroup" + }, + "identifier": "nb:e0c7d08c-edcc-4c2a-816a-306878ed7be2", + "hasLabel": "BIDS synthetic", + "hasPortalURI": "https://github.com/bids-standard/bids-examples", + "hasSamples": [ + { + "identifier": "nb:34ec1e2d-9a81-4a50-bcd0-eb22c88d11e1", + "hasLabel": "sub-01", + "hasSession": [ + { + "identifier": "nb:85c7473c-6122-4999-ad3b-5cd57a883c87", + "hasLabel": "ses-01", + "hasAge": 34.1, + "hasSex": { + "identifier": "snomed:248152002", + "schemaKey": "Sex" + }, + "isSubjectGroup": { + "identifier": "ncit:C94342", + "schemaKey": "SubjectGroup" + }, + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:eb57d0c1-fb96-4c04-8c16-1f29f7f40db4", + "hasLabel": "ses-02", + "hasAge": 35.3, + "hasSex": { + "identifier": "snomed:248152002", + "schemaKey": "Sex" + }, + "isSubjectGroup": { + "identifier": "ncit:C94342", + "schemaKey": "SubjectGroup" + }, + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:e67fd08b-9bf9-4ed8-b4cc-d0142cd27789", + "hasLabel": "ses-01", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-01/ses-01", + "hasAcquisition": [ + { + "identifier": "nb:5dc2e11e-4f7a-4b0e-9488-843f0a607f4b", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:3436fd9f-9895-4282-9990-42537e0e3365", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:b65e635a-29eb-4de2-9d9a-4d1940ff65c7", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:0709012b-6b83-435d-b332-6dbbf8ef48c7", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + }, + { + "identifier": "nb:66177197-51e0-403c-bbfb-806b123f243d", + "hasLabel": "ses-02", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-01/ses-02", + "hasAcquisition": [ + { + "identifier": "nb:368ca74f-c4cd-4d46-a856-67e0f3634d45", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:eebd46f0-1d9c-428c-8e30-91115fb02952", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:49444dbf-f56e-4fec-a096-77e3f71a3a8a", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:b5e79c41-d953-4de0-b038-85c20d16dd08", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + } + ], + "schemaKey": "Subject" + }, + { + "identifier": "nb:2de41397-805f-4059-b464-388ef501d6e5", + "hasLabel": "sub-02", + "hasSession": [ + { + "identifier": "nb:0ce182f3-b47c-4b50-8b76-8f257e490cf3", + "hasLabel": "ses-01", + "hasSex": { + "identifier": "snomed:248153007", + "schemaKey": "Sex" + }, + "hasDiagnosis": [ + { + "identifier": "snomed:406506008", + "schemaKey": "Diagnosis" + } + ], + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:4871d5c2-963f-4825-ab43-85a87edac4ce", + "hasLabel": "ses-02", + "hasAge": 39.0, + "hasSex": { + "identifier": "snomed:248153007", + "schemaKey": "Sex" + }, + "hasDiagnosis": [ + { + "identifier": "snomed:406506008", + "schemaKey": "Diagnosis" + } + ], + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:63d093bd-62df-42f5-86b7-210258f67c9b", + "hasLabel": "ses-01", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-02/ses-01", + "hasAcquisition": [ + { + "identifier": "nb:41dc7ce3-959a-480a-8e6f-aff312384b87", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:1ba90704-000c-46c1-bb02-eb5e7ac45751", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:a531d16e-7d55-4909-8d7d-1b4af6d8b914", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f4e9ba66-64e4-46b5-b92f-1a428b9d9f15", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + }, + { + "identifier": "nb:e17501bb-216f-487a-99f5-491f18f60ad5", + "hasLabel": "ses-02", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-02/ses-02", + "hasAcquisition": [ + { + "identifier": "nb:f0ed98eb-6639-4014-98bd-25e75b72da06", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f5ecb749-d807-4213-a318-f35ef9bdb17a", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:4290daa5-c9c9-4aa3-a289-3d4d43798e1f", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:3b691219-511f-4fcf-9837-241432a78db8", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + } + ], + "schemaKey": "Subject" + }, + { + "identifier": "nb:d4258426-2971-43ff-92fa-4b20bd21c31f", + "hasLabel": "sub-03", + "hasSession": [ + { + "identifier": "nb:3f9c82d5-6648-4b9b-8f86-195ee9283875", + "hasLabel": "ses-01", + "hasAge": 22.1, + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:0f7fe93b-13b1-4ca7-9e58-b997a18ec9b9", + "hasLabel": "ses-02", + "hasAge": 23.2, + "hasDiagnosis": [ + { + "identifier": "snomed:406506008", + "schemaKey": "Diagnosis" + } + ], + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:32660b2a-e5e8-4e1b-af5c-4c5cdacce21d", + "hasLabel": "ses-01", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-03/ses-01", + "hasAcquisition": [ + { + "identifier": "nb:f9c90ddb-5e7f-40f5-b195-666054c0176c", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:3691a8f3-8f7d-47f1-a014-1a5dd69b1ee6", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:4be1fbcd-62a2-497b-9f12-4d6a069a8449", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:aea0110e-da1f-4f7e-b424-39e159fd137f", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + }, + { + "identifier": "nb:12a5131a-d8ee-4e4c-bb4c-f39aa755b03c", + "hasLabel": "ses-02", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-03/ses-02", + "hasAcquisition": [ + { + "identifier": "nb:ca11ecc9-773b-4496-b63c-8cfc23ca9a78", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f8b246c2-1eb5-4821-b244-b511d7d86a25", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:8b238169-cc99-484e-8869-02c4008719e3", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:3ece5f2b-2c5a-48e2-9bd6-41b12c4d317e", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + } + ], + "schemaKey": "Subject" + }, + { + "identifier": "nb:73193f71-cd19-4b8c-ae73-abc882e9b688", + "hasLabel": "sub-04", + "hasSession": [ + { + "identifier": "nb:962aa986-dbd7-4412-a180-49c0a24c9f87", + "hasLabel": "ses-01", + "hasAge": 21.1, + "hasSex": { + "identifier": "snomed:248152002", + "schemaKey": "Sex" + }, + "isSubjectGroup": { + "identifier": "ncit:C94342", + "schemaKey": "SubjectGroup" + }, + "hasAssessment": [ + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:8622fc66-013d-4675-a328-fdcccd4616b0", + "hasLabel": "ses-02", + "hasAge": 22.3, + "hasSex": { + "identifier": "snomed:248152002", + "schemaKey": "Sex" + }, + "isSubjectGroup": { + "identifier": "ncit:C94342", + "schemaKey": "SubjectGroup" + }, + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:4c4ad446-2dfa-447b-8982-0e89252a48db", + "hasLabel": "ses-01", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-04/ses-01", + "hasAcquisition": [ + { + "identifier": "nb:055cbbe8-cb3b-4ce4-bf44-6872d6abf8c8", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:e110bf95-6855-43c3-a675-05b486510ad7", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:afcba6b2-266c-4a1d-9c35-4629fc28f0fe", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f2aae326-dbbd-4d84-bc4a-1c390a6aff55", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + }, + { + "identifier": "nb:e799e71d-5378-4c58-8cad-66a827fa6a6d", + "hasLabel": "ses-02", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-04/ses-02", + "hasAcquisition": [ + { + "identifier": "nb:4bdedf63-eb73-4fe0-bf29-c439e331d475", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:21b162d2-b025-4a3d-95f6-e65b35639a3e", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f78ad803-ac7e-4951-b68c-56448b2da336", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:0fd038f4-5fc6-4811-ad32-c333e3066724", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + } + ], + "schemaKey": "Subject" + }, + { + "identifier": "nb:cb8d7a96-fdec-425c-b0b5-9e9ac3c70e8c", + "hasLabel": "sub-05", + "hasSession": [ + { + "identifier": "nb:1d7c30f5-cae9-43c9-a154-26dbe0029594", + "hasLabel": "ses-01", + "hasAge": 42.5, + "hasSex": { + "identifier": "snomed:248153007", + "schemaKey": "Sex" + }, + "hasDiagnosis": [ + { + "identifier": "snomed:406506008", + "schemaKey": "Diagnosis" + } + ], + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:2401e418-6f9b-4113-9511-b1b9a332a5d0", + "hasLabel": "ses-02", + "hasAge": 43.2, + "hasSex": { + "identifier": "snomed:248153007", + "schemaKey": "Sex" + }, + "hasDiagnosis": [ + { + "identifier": "snomed:406506008", + "schemaKey": "Diagnosis" + } + ], + "hasAssessment": [ + { + "identifier": "cogatlas:trm_57964b8a66aed", + "schemaKey": "Assessment" + }, + { + "identifier": "cogatlas:tsk_4a57abb949ece", + "schemaKey": "Assessment" + } + ], + "schemaKey": "PhenotypicSession" + }, + { + "identifier": "nb:b1c3704d-787e-42d8-9b7a-e80309938136", + "hasLabel": "ses-01", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-05/ses-01", + "hasAcquisition": [ + { + "identifier": "nb:5db67199-752a-44e5-bcad-89405e0b7c22", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:85e7525b-9d56-467d-b81e-e9668a10b313", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:38f8440c-bc52-4aed-bee5-84a8d43cb1fc", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:08b41711-4bba-4cfe-bd2e-bc9b3353f59a", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + }, + { + "identifier": "nb:85881582-f817-4f8c-b8e2-aa7781180bfe", + "hasLabel": "ses-02", + "hasFilePath": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-05/ses-02", + "hasAcquisition": [ + { + "identifier": "nb:a2efc296-46a7-468b-a9a0-cf091517424d", + "hasContrastType": { + "identifier": "nidm:T1Weighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:143c340a-728a-4711-8929-131b84ea5f4f", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:2f6f5949-df23-42c0-befd-b9365eb33621", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + }, + { + "identifier": "nb:f492c69b-d101-4f27-a2cd-6e1cb34f24ef", + "hasContrastType": { + "identifier": "nidm:FlowWeighted", + "schemaKey": "Image" + }, + "schemaKey": "Acquisition" + } + ], + "schemaKey": "ImagingSession" + } + ], + "schemaKey": "Subject" + } + ], + "schemaKey": "Dataset" +} \ No newline at end of file diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index a5a7e51..e5663e2 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -29,7 +29,7 @@ services: volumes: - "${NB_GRAPH_ROOT_HOST:-~/graphdb-home}:${NB_GRAPH_ROOT_CONT:-/opt/graphdb/home}" - "${PWD}:/usr/src" - - "${LOCAL_GRAPH_DATA:-./data}:/usr/src/data" + - "${LOCAL_GRAPH_DATA:-./data}:/data" ports: - "${NB_GRAPH_PORT_HOST:-7200}:${NB_GRAPH_PORT:-7200}" env_file: .env @@ -49,13 +49,23 @@ services: environment: NB_API_PORT: ${NB_FAPI_PORT:-8000} - query: + query_federation: image: "neurobagel/query_tool:${NB_QUERY_TAG:-latest}" profiles: - "local_federation" - - "local_node_query" - "full_stack" ports: - "${NB_QUERY_PORT_HOST:-3000}:5173" environment: - NB_API_QUERY_URL: ${NB_API_QUERY_URL} \ No newline at end of file + NB_API_QUERY_URL: ${NB_API_QUERY_URL} + NB_IS_FEDERATION_API: "true" + + query_local: + image: "neurobagel/query_tool:${NB_QUERY_TAG:-latest}" + profiles: + - "local_node_query" + ports: + - "${NB_QUERY_PORT_HOST:-3000}:5173" + environment: + NB_API_QUERY_URL: ${NB_API_QUERY_URL} + NB_IS_FEDERATION_API: "false" \ No newline at end of file diff --git a/dev/setup.sh b/dev/setup.sh index e6f775c..061a91c 100755 --- a/dev/setup.sh +++ b/dev/setup.sh @@ -21,7 +21,7 @@ main() { echo "Finished server setup." echo "Adding datasets to the database..." - ./add_data_to_graph.sh ./data localhost:${NB_GRAPH_PORT} ${NB_GRAPH_DB} "${NB_GRAPH_USERNAME}" "${NB_GRAPH_PASSWORD}" + ./add_data_to_graph.sh /data localhost:${NB_GRAPH_PORT} ${NB_GRAPH_DB} "${NB_GRAPH_USERNAME}" "${NB_GRAPH_PASSWORD}" echo "Finished adding datasets to databases." echo "Adding Neurobagel vocabulary to the database"