Manually Merging Terms from Other Ontologies - OpenEnergyPlatform/ontology GitHub Wiki
In order to reuse terms already defined in other ontologies these are imported into the import-modules. This is usually done automatically.
In case a manual import has to be done, this can be done via ROBOT:
This shows the example of importing realized in
from RO.
- Open a command-line in the directory the module resides in
- Download latest version of source ontology
curl -L http://purl.obolibrary.org/obo/ro.owl > ro.owl
-
Look up URL of required term in ontologies documentation.
realized in
≙ http://purl.obolibrary.org/obo/BFO_0000054 -
Extract term via ROBOT without hierarchy (see ROBOT documentation for extraction including hierarchy):
robot merge --input ro.owl extract --method MIREOT --lower-term http://purl.obolibrary.org/obo/BFO_0000054 --upper-term owl:topObjectProperty --intermediates none --output ro-extract-manually.owl
- Merge the term into the required module:
robot merge --input ro-extracted.owl --input ro-extract-manually.owl --output ro-extracted.owl
- Delete
ro.owl
andro-extract-manually.owl