Skip to content

TheJacksonLaboratory/ontology-service

Repository files navigation

Ontology Microservice

This service allows you to deploy any ontology as a rest api with graph traversal. To support a particular ontology you must update ontology.sh and if you are leveraging github actions .github/workflows/ontology-cron.yml

Requirements

Java 17

Configuration

    ONTOLOGY_SERVICE_ONTOLOGY=<ontology-to-use>
    ONTOLOGY_SERVICE_LOAD=true
    ONTOLOGY_SERVICE_INTERNATIONAL=<true if babelon translations enabled>

Running Locally

./gradlew run

Building Docker Container

  1. Get the data bash ontology.sh hp
  2. Configure envrionment
    export ONTOLOGY_SERVICE_ONTOLOGY=hp
    export ONTOLOGY_SERVICE_LOAD=true
    export ONTOLOGY_SERVICE_INTERNATIONAL=true
    
  3. Build container ./gradlew dockerBuild
  4. Run container docker run ontology-service:<version> -p 8080:8080
  5. Open http://localhost:8080/api/hp/docs