Interface OWLOntologyBuilder

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OWLOntologyBuilder extends Serializable
An ontology builder is responsible for choosing an OWLOntology implementation. This interface allows for injecting different OWLOntology implementations without having to rewrite code implemented in OWLOntologyFactory classes.
Since:
4.0.0
Author:
Ignazio
  • Method Details

    • createOWLOntology

      OWLOntology createOWLOntology(OWLOntologyManager manager, OWLOntologyID ontologyID)
      Parameters:
      manager - manager for the ontology to be created
      ontologyID - id for the ontology to be created
      Returns:
      new ontology instance
    • setLock

      default void setLock(ReadWriteLock lock)
      Override the lock in the ontology builder; this is a workaround for #806
      Parameters:
      lock - overriding lock instance to use