JupyterLab : We are currently experiencing unexpected issues following a recent system update, and as a result, the Lab @ JSC is temporarily unavailable. We apologize for the inconvenience this may cause. In the meantime, we kindly ask users to use the Lab @ Cineca as an alternative.


Programming Interface Application

Version 1.1 by maaike on 2022/06/23 16:19

Programmatic access (API)

The EBRAINS Knowledge Graph provides convenient tools and APIs for the implementation of queries into your scripts. 

Request permission

To be able to access the Knowledge Graph (KG) programmatically, you require:

  1. An EBRAINS account. Register for an account here: https://ebrains.eu/register/
  2. Register and request credentials for your KG client by emailing support@ebrains.eu

Query Builder

The query builder allows you to make, save, and reuse complex queries without any knowledge of graph query languages.

Go to the Query Builder: https://query.kg.ebrains.eu

Select a category

A query for the Knowledge Graph is always executed against a specific data structure (e.g. a "Dataset version"). First select the data structure for your query.

Step 1: Select a category

Select an experimental approach

Similar to the facetted filters in the Knowledge Graph Search UI, we can refine our query by defining the experimental approach of our interest, for example electrophysiology.

To ensure that all dataset versions with electrophysiology are queried, and none of the dataset versions without electrophysiology, we make this property required and we apply a filter to the label we are searching for (i.e. electrophysiology).

Step 2: Select modality

Select species

Similarly, we can refine our query for mice only.

Step 3: Select species

Access detailed metadata

Or code

Code blocks can be added by using the code macro:

x = 1
if x == 1:
   # indented four spaces
   print("x is 1.")