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.
Extract the skos-based RDF of ConceptReferences from OWL.
robot query --input <ontology.owl> --query <sparql.rq> <turtle.ttl>
-
Create an RDF graph and export it to turtle.
-
Put the ttl file in neo4j import directory
-
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"]
}))
The .env
file in the root directory is used only when running locally. The docker containers use the .env
file in the docker directory