Try it yourself!

Version 2.3 by maaike on 2022/06/28 10:10

User examples

  1. How many datasets used human subjects?
  2. Find datasets with male adult subjects
  3. Find datasets that contain NIfTI files
  4. Find the software that can be used to open .smr file formats?

Example 1 - How many datasets used human subjects?

Search UI

In the filter function, select "Homo Sapiens" under species. This filters the available datasets in the Knowledge Graph for human subjects only.

https://search.kg.ebrains.eu/?facet_type[0]=Dataset&facet_Dataset_speciesFilter[0]=Homo%20sapiens

Query Builder

Example 2 - Find datasets with male adult subjects

Search UI

All the metadata in the knowledge graph is represented by nodes and their relationships by the edges. Most of the "basic" metadata is visualised in the Search UI to make it easy for the user to find datasets that fit certain criteria without needing to know how to navigate and traverse a graph structure. 

Query Builder

query = {
 "@context": {
   "@vocab": "https://core.kg.ebrains.eu/vocab/query/",
   "query": "https://schema.hbp.eu/myQuery/",
   "propertyName": {
     "@id": "propertyName",
     "@type": "@id"
    },
   "path": {
     "@id": "path",
     "@type": "@id"
    }
  },
 "meta": {
   "type": "https://openminds.ebrains.eu/core/DatasetVersion",
   "responseVocab": "https://schema.hbp.eu/myQuery/"
  },
 "structure": [
    {
     "propertyName": "query:id",
     "path": "@id"
    },
    {
     "propertyName": "query:shortName",
     "path": "https://openminds.ebrains.eu/vocab/shortName"
    },
    {
     "propertyName": "query:studiedSpecimen",
     "path": "https://openminds.ebrains.eu/vocab/studiedSpecimen",
     "required": true,
     "structure": [
        {
         "propertyName": "query:id",
         "path": "@id"
        },
        {
         "propertyName": "query:biologicalSex",
         "path": "https://openminds.ebrains.eu/vocab/biologicalSex",
         "required": true,
         "structure": {
           "propertyName": "query:name",
           "path": "https://openminds.ebrains.eu/vocab/name",
           "required": true,
           "filter": {
             "op": "EQUALS",
             "value": "male"
            }
          }
        },
        {
         "propertyName": "query:studiedState",
         "path": "https://openminds.ebrains.eu/vocab/studiedState",
         "required": true,
         "structure": {
           "propertyName": "query:ageCategory",
           "path": "https://openminds.ebrains.eu/vocab/ageCategory",
           "required": true,
           "structure": {
             "propertyName": "query:name",
             "path": "https://openminds.ebrains.eu/vocab/name",
             "required": true,
             "filter": {
               "op": "EQUALS",
               "value": "adult"
              }
            }
          }
        }
      ]
    }
  ]
}

Example 3 - Find datasets that contain NIfTI files

Search UI

Files are organised based on their file format (i.e. file extension) and the software that could be used to open these files. In openMINDS this is captured with the content type. In the filter function, select "application/vnd.nifti.1" under content types to select all the dataset with a NIfTI 1 file format. 

ContentTypes.png

https://search.kg.ebrains.eu/?facet_type[0]=Dataset&facet_Dataset_contentTypes[0]=application%2Fvnd.nifti.1

Query Builder

query = {
 "@context": {
   "@vocab": "https://core.kg.ebrains.eu/vocab/query/",
   "query": "https://schema.hbp.eu/myQuery/",
   "propertyName": {
     "@id": "propertyName",
     "@type": "@id"
    },
   "path": {
     "@id": "path",
     "@type": "@id"
    }
  },
 "meta": {
   "type": "https://openminds.ebrains.eu/core/DatasetVersion",
   "responseVocab": "https://schema.hbp.eu/myQuery/"
  },
 "structure": [
    {
     "propertyName": "query:shortName",
     "path": "https://openminds.ebrains.eu/vocab/shortName"
    },
    {
     "propertyName": "query:id",
     "path": "@id"
    },
    {
     "propertyName": "query:repository",
     "path": "https://openminds.ebrains.eu/vocab/repository",
     "required": true,
     "structure": {
       "propertyName": "query:fileRepository",
       "path": {
         "@id": "https://openminds.ebrains.eu/vocab/fileRepository",
         "reverse": true
        },
       "required": true,
       "structure": {
         "propertyName": "query:name",
         "path": "https://openminds.ebrains.eu/vocab/name",
         "required": true,
         "filter": {
           "op": "ENDS_WITH",
           "value": ".nii.gz"
          }
        }
      }
    }
  ]
}