Skip to content

Expose more Java-side methods for SyncOntology #278

Description

@htmai-880

The issue

So I realized that a lot of methods for SyncOntology could be helpful but are currently unavailable on Python-side, and I currently find myself implementing by hand in very roundabout ways.

For example, the only way to verify that an ontology contains an axiom on Python-side is to go through all the axioms and check if the axiom is in it. Likewise, if we want to check if an OWLClass/OWLObjectProperty/etc is in an ontology, we have to go through all the classes/object properties/etc of the SyncOntology then verify.

So my thought is that there are a couple of useful Java-side methods that we could basically expose as class methods on Python-side.
Some examples of useful methods:

  • getAxioms
  • containsAxiom
  • containsClassInSignature, containsObjectPropertyInSignature, containsDataPropertyInSignature, containsAnnotationPropertyInSignature, containsIndividualInSignature
  • isDeclared
  • getPunnedIRIs (useful for reasoning tasks)

What are your thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions