Skip to content

SPARQL Query notes

Leigh Carmody edited this page Apr 25, 2022 · 1 revision

ROBOT SPARQL QUERIES

  • Make sure either ROBOT is downloaded on your computer or you have DOCKER/ODK installed on your computer.
  • navigate to src/ontology (e.g. cd Git/MAxO/src/ontology/)
  • Use "sh run.sh robot query" for query (e.g. sh run.sh robot query --input maxo-edit.owl --query ../sparql/maxo_classes_with_definitions.sparql results/maxo_classes_with_definitions_test.csv results/maxo_classes_with_definitions_test.csv)
  • Note: you may need to make a directory before performing this, if so use mkdir (e.g. mkdir results)