- Get vars.sh from Tom.
Start a virtual environment
conda create --name ontox4j python=3.8
conda activate ontox4j
pip install -r requirements.txt
Or use this nix shell
nix-shell
Start the server:
source vars.sh
python /src/app.py
Open a in a browser the GraphiQL interface at http://127.0.0.1:5000/graphql
Example query to read an entity:
{
chemical(ChemicalID: "D000658") {
CasRN
ChemicalID
ChemicalName
}
}
Example query to write an entity:
mutation {
createChemical(ChemicalName: "Amoxicillin", ChemicalID: "D000658") {
chemical {
ChemicalName, ChemicalID
},
success
}
}
Error message "Cannot connect to any known routers" is related with a Neo4j DB Authentication problem, check your access credentials.