Skip to content

[QUESTION] - How to configure the input directory(owl2oml)? Are all imported relative ontologies in my '.owl' file needed? #67

@xyf-sw

Description

@xyf-sw

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:

  1. The inputCatalogPath and the outputCatalogPath have to be absolute path in my machine;

  2. In Owl2Oml.java there is a visitOntology() method performs important role, inside that the OML type will be checked:
    image
    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).
    image

  3. As the BFO is set to be oml vocabulary, it invoke visitVocabulary() method like:
    image
    And in this method, the imports, annotations, and the axioms of BFO will be visit:
    image
    In visitAnnotations(), the getImportedIri() will be execute:
    image
    like this:
    image
    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 by manager.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

The files I use:

inputs:
owl.zip
outputs:
oml.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions