-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description
I'm trying to transfer the bfo-core.owl into .oml by the owl2oml adapter. I run the source code as CLI in IDEA and had overcame sevel problems:
-
The inputCatalogPath and the outputCatalogPath have to be absolute path in my machine;
-
In Owl2Oml.java there is a visitOntology() method performs important role, inside that the OML type will be checked:

So the input bfo-core.owl file must have OML annotations porperties, ie: http://opencaesar.io/oml#namespace, http://opencaesar.io/oml#prefix, and http://opencaesar.io/oml#type (especially this one).

-
As the BFO is set to be oml vocabulary, it invoke visitVocabulary() method like:

And in this method, the imports, annotations, and the axioms of BFO will be visit:

In visitAnnotations(), the getImportedIri() will be execute:

like this:

The 'ontologyIri' here may be ontologies like http://purl.org/dc/elements/1.1, http://purl.org/dc/terms/, http://www.w3.org/2004/02/skos/core# and many others which must be put in input directory as .owl files (I try to get them online bymanager.loadOntologyFromOntologyDocument(ontologyIri)but obviously I failed). So I tried to use the input directory below and it seems to work. Am I right? Is this a effective way? And where can I get ontologies like http://purl.org/dc/terms/(for annotation properties), http://purl.obolibrary.org/obo/(for axioms), and so on to to transfer the bfo-core.owl into .oml.
Additional Context
My input directory:
│ ├─owl
│ │ ├─bfo
│ │ │ │ bfo-core.owl
│ │ │ │ catalog.xml
│ │ │ │
│ │ │ └─purl.org
│ │ │ └─dc
│ │ │ └─elements
│ │ │ 1.1.owl
My output directory:
│ │ ├─oml
│ │ │ ├─bfo
│ │ │ │ bfo-core.oml
│ │ │ │ catalog.xml