ontox-hu / aspis4j

an api for the ontox4j graph database
0 stars 0 forks source link

Ontox4J - A graph database for toxicology

Documentation

Dev

- 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

Usage

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
  }
}

Troubleshooting

Error message "Cannot connect to any known routers" is related with a Neo4j DB Authentication problem, check your access credentials.

Roadmap

  1. Get the Neo4j server with GraphiQL working
  2. CDT Chemical Entity
    • Model
    • CRUD
    • Documentation
    • ETL
  3. CDT Gene Entity
  4. CDT Chemical Gene Interaction
  5. Graph Visualization
  6. CDT Disease Entity
  7. CDT Chemical Disease Association
  8. CDT Gene Disease Association
  9. Graph Visualization
  10. CDT Pathway Entity
  11. CDT Chemical Pathway Association
  12. CDT Gene Pathway Association
  13. CDT Disease Pathway Association
  14. Graph Visualization