ROBOT

- - - - - - - - - -
view on github
getting started
common errors
chaining commands
global options
makefile
plugins
- - - - - - - - - -
annotate
collapse
convert
diff
expand
explain
export
export-prefixes
extract
filter
materialize
measure
merge
mirror
python
query
reason
reduce
relax
remove
rename
repair
report
template
unmerge
validate-profile
verify
- - - - - - - - - -
ROBOT is licensed under the
BSD 3-Clause License.
Theme by orderedlist

Mirror

Many ontologies make use of owl:imports to bring in other ontologies, or portions of other ontologies. Large import chains involving multiple large ontologies are more prone to run-time failure due to network errors or latency. It can therefore be beneficial to “mirror”, or cache an external ontology’s import chain locally. This can be thought of as analogous to what happens with standard dependency management tools for software development.

The following command will mirror the imports locally:

robot mirror --input test.owl \
  --directory results/my-cache \
  --output results/my-catalog.xml

This will generate a directory results/my-cache/purl.obolibrary.org/obo/ro/ (based on the ontology IRI) with the imported ontologies as files. The file my-catalog.xml is a generated XML catalog mapping the source URIs to local files.