/cam-kp-api

Web service API for the NCATS Data Translator CAM-KP

Primary LanguageScalaMIT LicenseMIT

Scala CI

cam-kp-api

Introduction

CAMs (Causal Activity Models) are small knowledge graphs built using the Web Ontology Language (OWL). The CAM database combines many CAM graphs along with a large merged bio-ontology containing the full vocabulary of concepts referenced within the individual CAMs. Each CAM describes an instantiation of some of those concepts in a particular context, modeling the interactions between those instances as an interlinked representation of a complex biological or environmental process.

Click here for the term definitions.

Query Process

Anyone can query the database by posting the query here: CAM-KP API. Click here for some example queries.

SmartAPI Registration

Running

CAMs (Causal Activity Models) are small knowledge graphs built using the Web Ontology Language (OWL). The CAM database combines many CAM graphs along with a large merged bio-ontology containing the full vocabulary of concepts referenced within the individual CAMs. Each CAM describes an instantiation of some of those concepts in a particular context, modeling the interactions between those instances as an interlinked representation of a complex biological or environmental process.

  • sbt docker:stage docker:publishLocal
  • docker run -p 8080:8080 -it renciorg/cam-kp-api:0.1 (or detached mode: docker run -p 8080:8080 -d renciorg/cam-kp-api:0.1)

Issue Management

Anyone can create new issues by clicking on "New issue" button on the issues page of this repository. Click here for the current issues.

Example queries

Example queries are included in ./src/it/resources/examples. Look for the message field in each JSON file in that directory. You can run them by running:

$ CAM_KP_ENDPOINT=https://cam-kp-api-dev.renci.org/1.2.0/query sbt "IntegrationTest/testOnly org.renci.cam.it.ExampleQueriesEndpointTest"

Server responses will be written to the ./src/it/resources/example-results directory.