tccm-api

TCCM rest api


License
CC0-1.0
Install
pip install tccm-api==0.1.5

Documentation

Getting Started with Docker

Create a .env file in /docker directory, using the /.env.sample file as a template.

Then run docker

cd docker; docker-compose up

It will bring up two containers, one for neo4j, and the other for the api.

Loader

Extract the skos-based RDF of ConceptReferences from OWL.

robot query --input <ontology.owl> --query <sparql.rq> <turtle.ttl>

Import file to neo4j

  1. Create an RDF graph and export it to turtle.

  2. Put the ttl file in neo4j import directory

  3. run this command

CALL n10s.rdf.import.fetch("file:///var/lib/neo4j/import/<file_name>", "Turtle", {
    predicateExclusionList : [ "https://hotecosystem.org/termci/contents"]
})

To delete triples imported from an RDF file:

CALL n10s.rdf.delete.fetch("file:///var/lib/neo4j/import/<file_name>", "Turtle", {
    predicateExclusionList : [ "https://hotecosystem.org/termci/contents"]
}))

DotEnv files

The .env file in the root directory is used only when running locally. The docker containers use the .env file in the docker directory