Interface ModelObject<X extends org.semanticweb.owlapi.model.OWLObject>

    • Method Detail

      • getModel

        OntModel getModel()
        Returns the model to which this object is attached.
        Returns:
        OntModel
      • eraseModel

        X eraseModel()
        Answers with an object that equals to the ONTObject.getOWLObject(), but without any model information inside.

        Such unattached object can be used in whatever way, while the object ONTObject.getOWLObject() requires more attention: it will not allow GC to dispose of the model, as there is a strong reference (or a facility to get such reference) to the model inside that object.

        Returns:
        ModelObject
        See Also:
        ONTObject.getOWLObject()