Class InternalGraphModelImpl

java.lang.Object
org.apache.jena.enhanced.EnhGraph
org.apache.jena.rdf.model.impl.ModelCom
org.apache.jena.ontapi.impl.OntGraphModelImpl
com.github.owlcs.ontapi.internal.InternalGraphModelImpl
All Implemented Interfaces:
HasConfig, HasObjectFactory, InternalGraphModel, org.apache.jena.ontapi.common.OntEnhGraph, org.apache.jena.ontapi.model.OntModel, org.apache.jena.rdf.model.InfModel, org.apache.jena.rdf.model.Model, org.apache.jena.rdf.model.ModelCon, org.apache.jena.rdf.model.ModelGraphInterface, org.apache.jena.rdf.model.RDFReaderF, org.apache.jena.rdf.model.RDFWriterF, org.apache.jena.shared.Lock, org.apache.jena.shared.PrefixMapping, org.semanticweb.owlapi.model.HasOntologyID

public class InternalGraphModelImpl extends org.apache.jena.ontapi.impl.OntGraphModelImpl implements InternalGraphModel
A Buffer Graph OWL model, which supports both listing OWL-API objects (OWL Axioms, Entities and Annotations) and Jena interfaces (through the OntModel view of RDF Graph).

It is an analogue of uk.ac.manchester.cs.owl.owlapi.Internals. This model is used by the facade model (i.e. by Ontology) while reading and writing the structural (axiomatic) representation of ontology.

Notice that this model is a non-serializable (while everything in OWL-API is Serializable), since it is part of ONT-API internal implementation.

Unlike native OWL-API (see owl-api-impl) implementation, this model does not store all possible OWL objects in memory. Instead, there are several caches. The main cache is divided into buckets by OWL objects types (39 OWL Axioms types plus Header Annotations). And each of these buckets is indivisible. It means that only the whole bucket can be loaded or invalidated, not just part of it. This is the major restriction of the current implementation: if you have such a large ontology that can not even be partially placed in memory (that is, the set of axioms of any type, but with the exclusion of their components, exceeds the memory limit), then this solution won't work. To work with such large ontologies, it is recommended to use Axiom Translators directly (see AxiomTranslator.get(AxiomType)).

TODO: Should it return ONTObjects, not just naked OWLObjects (see #87, #72)? It seems it would be more convenient and could make this class useful not only as part of inner implementation.

Created by @ssz on 26.10.2016.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    The direct listener to synchronize caches while working through OWL-API and jena at the same time.

    Nested classes/interfaces inherited from interface org.apache.jena.shared.PrefixMapping

    org.apache.jena.shared.PrefixMapping.Factory, org.apache.jena.shared.PrefixMapping.IllegalPrefixException, org.apache.jena.shared.PrefixMapping.JenaLockedException
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom,org.semanticweb.owlapi.model.OWLAnnotationSubject>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLAnnotationProperty>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLAnnotationProperty>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLAnonymousIndividual>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLClass>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLDataProperty>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLDatatype>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.IRI>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLLiteral>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLNamedIndividual>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLObjectProperty>
     
    protected ID
    Ontology ID cache.
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLClassAssertionAxiom,org.semanticweb.owlapi.model.OWLClassExpression>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLClassAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLClass>
     
    protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,Map<OWLComponentType,ObjectMap<org.semanticweb.owlapi.model.OWLObject>>>
    OWL objects cache to work with OWL-API 'signature' methods.
    protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,InternalConfig>
    The configuration settings to control behaviour.
    protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>>>
    The main cache, which contains all axioms and the ontology header.
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLDataProperty>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLDatatype>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDeclarationAxiom,org.semanticweb.owlapi.model.OWLEntity>
     
    The direct listener, it monitors changes that occur through the main (Jena) interface.
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom,org.semanticweb.owlapi.model.OWLClass>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom,org.semanticweb.owlapi.model.OWLClass>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLNamedIndividual>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual>
     
    protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,ModelObjectFactory>
    An internal object factory, that is responsible for mapping ONT Jena Objects to OWL-API objects.
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom,org.semanticweb.owlapi.model.OWLObjectPropertyExpression>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom,org.semanticweb.owlapi.model.OWLObjectPropertyExpression>
     
    protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLObjectProperty>
     
    protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,org.apache.jena.ontapi.impl.OntGraphModelImpl>
    A model for axiom/object's search optimizations, containing nodes cache.
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLSubClassOfAxiom,org.semanticweb.owlapi.model.OWLClass>
     
    protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLSubClassOfAxiom,org.semanticweb.owlapi.model.OWLClass>
     

    Fields inherited from class org.apache.jena.ontapi.impl.OntGraphModelImpl

    dtTypes, propertyStore

    Fields inherited from class org.apache.jena.enhanced.EnhGraph

    graph

    Fields inherited from interface org.apache.jena.shared.Lock

    READ, WRITE

    Fields inherited from interface org.apache.jena.shared.PrefixMapping

    Extended, Standard
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalGraphModelImpl(org.apache.jena.graph.Graph base, org.apache.jena.ontapi.common.OntPersonality personality, InternalConfig config, DataFactory dataFactory, Map<Class<? extends org.semanticweb.owlapi.model.OWLPrimitive>,InternalCache<?,?>> fromManager)
    Constructs a model instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    add(OWLTopObjectType key, org.semanticweb.owlapi.model.OWLObject container)
    Adds the specified OWLObject into the model.
    org.apache.jena.ontapi.model.OntModel
    add(List<org.apache.jena.rdf.model.Statement> arg0)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Model arg0)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2, String arg3)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2, org.apache.jena.datatypes.RDFDatatype arg3)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Statement arg0)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.Statement[] arg0)
     
    org.apache.jena.ontapi.model.OntModel
    add(org.apache.jena.rdf.model.StmtIterator arg0)
     
    boolean
    add(org.semanticweb.owlapi.model.OWLAnnotation annotation)
    Adds the given annotation to the ontology header of the model.
    boolean
    add(org.semanticweb.owlapi.model.OWLAxiom axiom)
    Adds the specified axiom to the model.
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, boolean arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, char arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, double arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, float arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, int arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, long arg2)
     
    org.apache.jena.ontapi.model.OntModel
    addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.Literal arg2)
     
    protected void
    cacheComponents(org.semanticweb.owlapi.model.OWLObject container)
    Extracts all components from the given container and puts them into the InternalReadGraphModel.components cache.
    void
    Invalidates all caches.
    void
    Invalidates the cache if needed.
    protected void
    clearComponents(org.semanticweb.owlapi.model.OWLObject container)
    Invalidates the cache for all components parsed from the given container.
    protected void
    Invalidates InternalReadGraphModel.components, InternalReadGraphModel.objectFactory and InternalReadGraphModel.searchModel caches.
    org.apache.jena.ontapi.model.OntModel
     
    protected void
    Invalidates search model and object factory caches.
    boolean
    contains(org.semanticweb.owlapi.model.OWLAnnotation a)
     
    boolean
    contains(org.semanticweb.owlapi.model.OWLAxiom a)
     
    protected boolean
    containsComponent(OWLComponentType type, org.semanticweb.owlapi.model.OWLObject o)
    Tests if the given component-type pair is present in the signature.
    boolean
    containsIgnoreAnnotations(org.semanticweb.owlapi.model.OWLAxiom a)
     
    protected boolean
    containsNoAnnotations(ObjectMap<? extends org.semanticweb.owlapi.model.OWLAxiom> map)
    Answers true if the specified map does not contain annotated axioms.
    boolean
    containsOWLDeclaration(org.semanticweb.owlapi.model.OWLEntity e)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLAnnotationProperty p)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLClass c)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLDataProperty p)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLDatatype d)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLNamedIndividual i)
     
    boolean
    containsOWLEntity(org.semanticweb.owlapi.model.OWLObjectProperty p)
     
    protected Stream<ObjectMap<?>>
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithBuiltin
    createBuiltInSWRLAtom(org.apache.jena.rdf.model.Resource arg0, Collection<org.apache.jena.ontapi.model.OntSWRL.DArg> arg1)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithClass
    createClassSWRLAtom(org.apache.jena.ontapi.model.OntClass arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
     
    protected ObjectMap<org.semanticweb.owlapi.model.OWLObject>
    Creates a ObjectMap container for the given OWLComponentType.
    protected Map<OWLComponentType,ObjectMap<org.semanticweb.owlapi.model.OWLObject>>
    Creates a component store Map.
    protected ObjectMap<org.semanticweb.owlapi.model.OWLObject>
    Creates a ObjectMap container for the given OWLTopObjectType.
    protected Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>>
    Creates a content store Map.
    org.apache.jena.ontapi.model.OntClass.NaryDataAllValuesFrom
    createDataAllValuesFrom(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
     
    org.apache.jena.ontapi.model.OntClass.DataAllValuesFrom
    createDataAllValuesFrom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
     
    org.apache.jena.ontapi.model.OntClass.DataCardinality
    createDataCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
     
    org.apache.jena.ontapi.model.OntDataRange.ComplementOf
    createDataComplementOf(org.apache.jena.ontapi.model.OntDataRange arg0)
     
    org.apache.jena.ontapi.model.OntClass.DataHasValue
    createDataHasValue(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.rdf.model.Literal arg1)
     
    org.apache.jena.ontapi.model.OntDataRange.IntersectionOf
    createDataIntersectionOf(Collection<org.apache.jena.ontapi.model.OntDataRange> arg0)
     
    default org.apache.jena.ontapi.model.OntDataRange.IntersectionOf
    createDataIntersectionOf(org.apache.jena.ontapi.model.OntDataRange... arg0)
     
    org.apache.jena.ontapi.model.OntClass.DataMaxCardinality
    createDataMaxCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
     
    org.apache.jena.ontapi.model.OntClass.DataMinCardinality
    createDataMinCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
     
    org.apache.jena.ontapi.model.OntDataRange.OneOf
    createDataOneOf(Collection<org.apache.jena.rdf.model.Literal> arg0)
     
    default org.apache.jena.ontapi.model.OntDataRange.OneOf
    createDataOneOf(org.apache.jena.rdf.model.Literal... arg0)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithDataProperty
    createDataPropertySWRLAtom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1, org.apache.jena.ontapi.model.OntSWRL.DArg arg2)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithDataRange
    createDataRangeSWRLAtom(org.apache.jena.ontapi.model.OntDataRange arg0, org.apache.jena.ontapi.model.OntSWRL.DArg arg1)
     
    org.apache.jena.ontapi.model.OntDataRange.Restriction
    createDataRestriction(org.apache.jena.ontapi.model.OntDataRange.Named arg0, Collection<org.apache.jena.ontapi.model.OntFacetRestriction> arg1)
     
    default org.apache.jena.ontapi.model.OntDataRange.Restriction
    createDataRestriction(org.apache.jena.ontapi.model.OntDataRange.Named arg0, org.apache.jena.ontapi.model.OntFacetRestriction... arg1)
     
    org.apache.jena.ontapi.model.OntClass.NaryDataSomeValuesFrom
    createDataSomeValuesFrom(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
     
    org.apache.jena.ontapi.model.OntClass.DataSomeValuesFrom
    createDataSomeValuesFrom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
     
    org.apache.jena.ontapi.model.OntDataRange.UnionOf
    createDataUnionOf(Collection<org.apache.jena.ontapi.model.OntDataRange> arg0)
     
    default org.apache.jena.ontapi.model.OntDataRange.UnionOf
    createDataUnionOf(org.apache.jena.ontapi.model.OntDataRange... arg0)
     
    org.apache.jena.ontapi.model.OntDisjoint.Individuals
    createDifferentIndividuals(Collection<org.apache.jena.ontapi.model.OntIndividual> arg0)
     
    default org.apache.jena.ontapi.model.OntDisjoint.Individuals
    createDifferentIndividuals(org.apache.jena.ontapi.model.OntIndividual... arg0)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithDifferentIndividuals
    createDifferentIndividualsSWRLAtom(org.apache.jena.ontapi.model.OntSWRL.IArg arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
     
    Creates a direct listener.
    org.apache.jena.ontapi.model.OntDisjoint.Classes
    createDisjointClasses(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
     
    default org.apache.jena.ontapi.model.OntDisjoint.Classes
    createDisjointClasses(org.apache.jena.ontapi.model.OntClass... arg0)
     
    org.apache.jena.ontapi.model.OntDisjoint.DataProperties
    createDisjointDataProperties(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0)
     
    default org.apache.jena.ontapi.model.OntDisjoint.DataProperties
    createDisjointDataProperties(org.apache.jena.ontapi.model.OntDataProperty... arg0)
     
    org.apache.jena.ontapi.model.OntDisjoint.ObjectProperties
    createDisjointObjectProperties(Collection<org.apache.jena.ontapi.model.OntObjectProperty> arg0)
     
    default org.apache.jena.ontapi.model.OntDisjoint.ObjectProperties
    createDisjointObjectProperties(org.apache.jena.ontapi.model.OntObjectProperty... arg0)
     
    org.apache.jena.ontapi.model.OntClass.HasSelf
    createHasSelf(org.apache.jena.ontapi.model.OntObjectProperty arg0)
     
    protected <K extends Enum<K>, V>
    Map<K,V>
    createMapStore(Class<K> type, Stream<K> keys, Function<K,V> loader)
    Creates a Map that has Enum-keys using the specified parameters.
    org.apache.jena.ontapi.model.OntClass.ObjectAllValuesFrom
    createObjectAllValuesFrom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntClass arg1)
     
    org.apache.jena.ontapi.model.OntClass.ObjectCardinality
    createObjectCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
     
    org.apache.jena.ontapi.model.OntClass.ComplementOf
    createObjectComplementOf(org.apache.jena.ontapi.model.OntClass arg0)
     
    createObjectFactory(DataFactory df, Map<Class<? extends org.semanticweb.owlapi.model.OWLPrimitive>,InternalCache<?,?>> external)
    Creates a fresh Object Factory instance, which is responsible for mapping Node (and OntObject) to OWLObject.
    org.apache.jena.ontapi.model.OntClass.ObjectHasValue
    createObjectHasValue(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntIndividual arg1)
     
    org.apache.jena.ontapi.model.OntClass.IntersectionOf
    createObjectIntersectionOf(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
     
    default org.apache.jena.ontapi.model.OntClass.IntersectionOf
    createObjectIntersectionOf(org.apache.jena.ontapi.model.OntClass... arg0)
     
    org.apache.jena.ontapi.model.OntClass.ObjectMaxCardinality
    createObjectMaxCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
     
    org.apache.jena.ontapi.model.OntClass.ObjectMinCardinality
    createObjectMinCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
     
    org.apache.jena.ontapi.model.OntClass.OneOf
    createObjectOneOf(Collection<org.apache.jena.ontapi.model.OntIndividual> arg0)
     
    default org.apache.jena.ontapi.model.OntClass.OneOf
    createObjectOneOf(org.apache.jena.ontapi.model.OntIndividual... arg0)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty
    createObjectPropertySWRLAtom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1, org.apache.jena.ontapi.model.OntSWRL.IArg arg2)
     
    org.apache.jena.ontapi.model.OntClass.ObjectSomeValuesFrom
    createObjectSomeValuesFrom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntClass arg1)
     
    org.apache.jena.ontapi.model.OntClass.UnionOf
    createObjectUnionOf(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
     
    default org.apache.jena.ontapi.model.OntClass.UnionOf
    createObjectUnionOf(org.apache.jena.ontapi.model.OntClass... arg0)
     
    org.apache.jena.ontapi.model.OntSWRL.Atom.WithSameIndividuals
    createSameIndividualsSWRLAtom(org.apache.jena.ontapi.model.OntSWRL.IArg arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
     
    protected org.apache.jena.ontapi.impl.OntGraphModelImpl
    Derives a model to be used in read operations.
    org.apache.jena.ontapi.model.OntSWRL.Imp
    createSWRLImp(Collection<org.apache.jena.ontapi.model.OntSWRL.Atom<?>> arg0, Collection<org.apache.jena.ontapi.model.OntSWRL.Atom<?>> arg1)
     
    org.apache.jena.ontapi.model.OntSWRL.Variable
     
    protected void
    delete(org.apache.jena.graph.Triple triple)
    Deletes a triple from the base graph and clears the standard jena model cache for it.
    protected void
    Enables direct listening.
    protected void
    Disables direct listening.
    void
    enterCriticalSection(boolean requestReadLock)
    Jena model method to work with embedded lock-mechanism.
    protected Stream<ObjectMap<? extends org.semanticweb.owlapi.model.OWLAxiom>>
    Maps the given Stream of OWLTopObjectType to ObjectMap.
    protected Optional<org.semanticweb.owlapi.model.OWLObject>
    findUsedContentContainer(org.semanticweb.owlapi.model.OWLObject entity, org.semanticweb.owlapi.model.OWLObject... excludes)
    Finds the container object which contains the given component object somewhere in its depths.
    void
    Forcibly loads the whole content cache.
    protected ObjectMap<org.semanticweb.owlapi.model.OWLAxiom>
    Gets the ObjectMap for the given OWLTopObjectType.
    protected <O extends org.semanticweb.owlapi.model.OWLObject>
    ObjectMap<O>
    Gets components for the given type in the form of ObjectMap.
    Returns the model's InternalConfig snapshot instance, which is an immutable object.
    protected <X extends org.semanticweb.owlapi.model.OWLObject>
    ObjectMap<X>
    Gets an ontology content ObjectMap-cache.
    protected Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>>
    Gets a content store Map.
    protected ObjectMap<org.semanticweb.owlapi.model.OWLAnnotation>
    Gets an ontology header content cache-store.
    org.apache.jena.shared.Lock
    Jena model method.
    Returns the InternalDataFactory, a helper (possibly, with cache) to read OWL-API objects.
     
    long
     
    org.apache.jena.ontapi.impl.OntGraphModelImpl
    Returns an OntGraphModelImpl version with search optimizations.
    org.apache.jena.ontapi.UnionGraph
    Answers the UnionGraph which this Model is presenting.
    protected Set<org.apache.jena.graph.Triple>
    getUsedTriples(org.apache.jena.ontapi.model.OntModel model, org.semanticweb.owlapi.model.OWLObject container)
    Calculates and returns the triples, that belong to both the given content-container and some other one.
    protected boolean
    Answers whether there are manually added axioms in the cache.
    boolean
     
    void
    Jena model method to work with embedded lock-mechanism.
    Stream<org.semanticweb.owlapi.model.OWLAnonymousIndividual>
     
    Stream<org.semanticweb.owlapi.model.OWLNamedIndividual>
     
    protected <O extends org.semanticweb.owlapi.model.OWLObject>
    Stream<O>
    Lists all OWL-objects of the specified type.
    Stream<org.semanticweb.owlapi.model.OWLAnonymousIndividual>
     
    Stream<org.semanticweb.owlapi.model.OWLNamedIndividual>
     
    Stream<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom>
    listOWLAnnotationAssertionAxioms(org.semanticweb.owlapi.model.OWLAnnotationSubject subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom>
    listOWLAnnotationAssertionAxioms(org.semanticweb.owlapi.model.OWLAnnotationSubject subject)
    Lists Annotation Assertion Axioms with the given subject.
    Stream<org.semanticweb.owlapi.model.OWLAnnotationProperty>
     
    default Stream<org.semanticweb.owlapi.model.OWLAnnotationPropertyDomainAxiom>
    listOWLAnnotationPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLAnnotationPropertyRangeAxiom>
    listOWLAnnotationPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
     
    Stream<org.semanticweb.owlapi.model.OWLAnnotation>
     
    default Stream<org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom>
    listOWLAsymmetricObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    Stream<org.semanticweb.owlapi.model.OWLAxiom>
     
    protected <A extends org.semanticweb.owlapi.model.OWLAxiom, K extends org.semanticweb.owlapi.model.OWLObject>
    Stream<A>
    listOWLAxioms(ByObjectSearcher<A,K> searcher, Class<A> type, K parameter, InternalConfig config)
    Auxiliary method to extract axioms from the graph.
    <A extends org.semanticweb.owlapi.model.OWLAxiom>
    Stream<A>
     
    <A extends org.semanticweb.owlapi.model.OWLAxiom>
    Stream<A>
    Lists axioms of the given class-type.
    <A extends org.semanticweb.owlapi.model.OWLAxiom>
    Stream<A>
    listOWLAxioms(Class<A> type, org.semanticweb.owlapi.model.OWLObject object)
     
    Stream<org.semanticweb.owlapi.model.OWLAxiom>
    listOWLAxioms(Iterable<org.semanticweb.owlapi.model.AxiomType<?>> filter)
     
    <A extends org.semanticweb.owlapi.model.OWLAxiom>
    Stream<A>
    listOWLAxioms(org.semanticweb.owlapi.model.AxiomType<A> type)
     
    Stream<org.semanticweb.owlapi.model.OWLAxiom>
    listOWLAxioms(org.semanticweb.owlapi.model.OWLPrimitive primitive)
     
    Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom>
    listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLClassExpression object)
     
    default Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom>
    listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLClassExpression object)
    Lists ClassAssertion Axioms by the given class-object.
    Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom>
    listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom>
    listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    Lists ClassAssertion Axioms by the given individual-subject.
    Stream<org.semanticweb.owlapi.model.OWLClass>
     
    Stream<org.semanticweb.owlapi.model.OWLClassExpression>
     
    Stream<org.semanticweb.owlapi.model.OWLDataProperty>
     
    Stream<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom>
    listOWLDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom>
    listOWLDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    Lists DataPropertyAssertion Axioms by the given individual-subject.
    default Stream<org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom>
    listOWLDataPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom>
    listOWLDataPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom>
    listOWLDatatypeDefinitionAxioms(org.semanticweb.owlapi.model.OWLDatatype datatype)
     
    Stream<org.semanticweb.owlapi.model.OWLDatatype>
     
    Stream<org.semanticweb.owlapi.model.OWLDeclarationAxiom>
    listOWLDeclarationAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
     
    default Stream<org.semanticweb.owlapi.model.OWLDeclarationAxiom>
    listOWLDeclarationAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
    Lists Declaration Axioms for the specified entity.
    default Stream<org.semanticweb.owlapi.model.OWLDifferentIndividualsAxiom>
    listOWLDifferentIndividualsAxioms(org.semanticweb.owlapi.model.OWLIndividual operand)
     
    Stream<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom>
    listOWLDisjointClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
     
    default Stream<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom>
    listOWLDisjointClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
    Lists DisjointClasses Axioms by the given class-component.
    default Stream<org.semanticweb.owlapi.model.OWLDisjointDataPropertiesAxiom>
    listOWLDisjointDataPropertiesAxioms(org.semanticweb.owlapi.model.OWLDataProperty operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom>
    listOWLDisjointObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLDisjointUnionAxiom>
    listOWLDisjointUnionAxioms(org.semanticweb.owlapi.model.OWLClass subject)
     
    Stream<org.semanticweb.owlapi.model.OWLEntity>
    listOWLEntities(org.semanticweb.owlapi.model.IRI iri)
     
    Stream<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom>
    listOWLEquivalentClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
     
    default Stream<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom>
    listOWLEquivalentClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
    Lists EquivalentClasses Axioms by the given class-component.
    default Stream<org.semanticweb.owlapi.model.OWLEquivalentDataPropertiesAxiom>
    listOWLEquivalentDataPropertiesAxioms(org.semanticweb.owlapi.model.OWLDataProperty operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLEquivalentObjectPropertiesAxiom>
    listOWLEquivalentObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLFunctionalDataPropertyAxiom>
    listOWLFunctionalDataPropertyAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom>
    listOWLFunctionalObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLHasKeyAxiom>
    listOWLHasKeyAxioms(org.semanticweb.owlapi.model.OWLClass subject)
     
    Stream<org.semanticweb.owlapi.model.OWLImportsDeclaration>
     
    default Stream<org.semanticweb.owlapi.model.OWLInverseFunctionalObjectPropertyAxiom>
    listOWLInverseFunctionalObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom>
    listOWLInverseObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom>
    listOWLIrreflexiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    Stream<org.semanticweb.owlapi.model.OWLLogicalAxiom>
     
    default <A extends org.semanticweb.owlapi.model.OWLNaryAxiom<? super K>, K extends org.semanticweb.owlapi.model.OWLObject>
    Stream<A>
     
    protected <A extends org.semanticweb.owlapi.model.OWLNaryAxiom<? super K>, K extends org.semanticweb.owlapi.model.OWLObject>
    Stream<A>
    listOWLNaryAxiomAxiomsByOperand(K operand, Class<A> type, ByObjectSearcher<A,K> searcher)
    Lists N-Ary Axioms by the given OWLObject operand.
    default Stream<org.semanticweb.owlapi.model.OWLNegativeDataPropertyAssertionAxiom>
    listOWLNegativeDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLNegativeObjectPropertyAssertionAxiom>
    listOWLNegativeObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
     
    Stream<org.semanticweb.owlapi.model.OWLObjectProperty>
     
    Stream<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom>
    listOWLObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom>
    listOWLObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    Lists ObjectPropertyAssertion Axioms by the given individual-subject.
    Stream<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom>
    listOWLObjectPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom>
    listOWLObjectPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    Lists ObjectPropertyDomain Axioms by the given property-subject.
    Stream<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom>
    listOWLObjectPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom>
    listOWLObjectPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    Lists ObjectPropertyRange Axioms by the given property-subject.
    protected Iterator<ONTObject<org.semanticweb.owlapi.model.OWLObject>>
    Lists all objects of the specified type.
    default <A extends org.semanticweb.owlapi.model.OWLAxiom & org.semanticweb.owlapi.model.HasProperty<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression>
    Stream<A>
    listOWLPropertyAxioms(Class<A> type, P property)
     
    default Stream<org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom>
    listOWLReflexiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLSameIndividualAxiom>
    listOWLSameIndividualAxioms(org.semanticweb.owlapi.model.OWLIndividual operand)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom>
    listOWLSubAnnotationPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLAnnotationProperty object)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom>
    listOWLSubAnnotationPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
     
    Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom>
    listOWLSubClassOfAxiomsByObject(org.semanticweb.owlapi.model.OWLClass object)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom>
    listOWLSubClassOfAxiomsByObject(org.semanticweb.owlapi.model.OWLClass object)
    Lists SubClassOf Axioms by the given super class.
    Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom>
    listOWLSubClassOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLClass subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom>
    listOWLSubClassOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLClass subject)
    Lists SubClassOf Axioms by the given sub class.
    default Stream<org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom>
    listOWLSubDataPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLDataProperty object)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom>
    listOWLSubDataPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLDataProperty subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom>
    listOWLSubObjectPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLObjectPropertyExpression object)
     
    default Stream<org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom>
    listOWLSubObjectPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default <A extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression>
    Stream<A>
     
    default <A extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression>
    Stream<A>
     
    default Stream<org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom>
    listOWLSymmetricObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    default Stream<org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom>
    listOWLTransitiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
     
    Stream<org.semanticweb.owlapi.model.IRI>
    listPunningIRIs(boolean withImports)
     
    org.apache.jena.ontapi.model.OntModel
     
    org.apache.jena.ontapi.model.OntModel
     
    org.apache.jena.ontapi.model.OntModel
    read(InputStream arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    read(InputStream arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    read(Reader arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    read(Reader arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    read(String arg0)
     
    org.apache.jena.ontapi.model.OntModel
    read(String arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    read(String arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    register(org.apache.jena.rdf.model.ModelChangedListener arg0)
     
    protected boolean
    remove(OWLTopObjectType key, org.semanticweb.owlapi.model.OWLObject container)
    Removes the given container from the corresponding cache and the model.
    org.apache.jena.ontapi.model.OntModel
    remove(List<org.apache.jena.rdf.model.Statement> arg0)
     
    org.apache.jena.ontapi.model.OntModel
    remove(org.apache.jena.rdf.model.Model arg0)
     
    org.apache.jena.ontapi.model.OntModel
    remove(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
     
    org.apache.jena.ontapi.model.OntModel
    remove(org.apache.jena.rdf.model.Statement arg0)
     
    org.apache.jena.ontapi.model.OntModel
    remove(org.apache.jena.rdf.model.Statement[] arg0)
     
    org.apache.jena.ontapi.model.OntModel
    remove(org.apache.jena.rdf.model.StmtIterator arg0)
     
    boolean
    remove(org.semanticweb.owlapi.model.OWLAnnotation annotation)
    Removes the given ontology header annotation from the model.
    boolean
    remove(org.semanticweb.owlapi.model.OWLAxiom axiom)
    Removes the given axiom from the model.
    The overridden jena method.
    org.apache.jena.ontapi.model.OntModel
    removeAll(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
     
    org.apache.jena.ontapi.model.OntModel
     
    <N extends org.apache.jena.rdf.model.RDFNode>
    N
    safeFindNodeAs(org.apache.jena.graph.Node node, Class<N> type)
     
    protected <R> Stream<R>
    Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
    protected Stream<ONTObject<org.semanticweb.owlapi.model.OWLObject>>
    Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
    protected Stream<org.semanticweb.owlapi.model.OWLObject>
    Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
    org.apache.jena.ontapi.model.OntModel
    setNsPrefix(String arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
     
    org.apache.jena.ontapi.model.OntModel
    setNsPrefixes(org.apache.jena.shared.PrefixMapping arg0)
     
    void
    setOntologyID(org.semanticweb.owlapi.model.OWLOntologyID id)
    Sets the OWL Ontology ID to the model.
    protected org.apache.jena.ontapi.model.OntModel
    toModel(ONTObject<? extends org.semanticweb.owlapi.model.OWLObject> o)
    Represents the given container as a OWL Graph Model.
     
    org.apache.jena.ontapi.model.OntModel
    unregister(org.apache.jena.rdf.model.ModelChangedListener arg0)
     
    protected boolean
    Answers true if there is a need to use ByObjectSearcher-search optimization instead of parsing cache.
    protected boolean
    Answers true if SearchModel optimization should be used to speed up content reading.
    protected boolean
    Answers true if ObjectsSearcher optimization should be used to fill the component cache for the specified type.
    protected boolean
    Answers true if the graph optimization for referencing axiom functionality is allowed and makes sense.
    org.apache.jena.ontapi.model.OntModel
    withDefaultMappings(org.apache.jena.shared.PrefixMapping arg0)
     
    org.apache.jena.ontapi.model.OntModel
    write(OutputStream arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    write(OutputStream arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    write(Writer arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    write(Writer arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
     
    org.apache.jena.ontapi.model.OntModel
    writeAll(OutputStream arg0, String arg1, String arg2)
     
    org.apache.jena.ontapi.model.OntModel
    writeAll(Writer arg0, String arg1)
     
    org.apache.jena.ontapi.model.OntModel
    writeAll(Writer arg0, String arg1, String arg2)
     

    Methods inherited from class org.apache.jena.ontapi.impl.OntGraphModelImpl

    add, add, add, add, add, add, add, add, add, addImport, addImportModel, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, ambiguousEntities, asInferenceModel, asOntList, asOntList, asStatement, checkCreate, checkFeature, clearNsPrefixMap, configValue, containsLocal, createBuiltInSWRLAtom, createClassSWRLAtom, createDataAllValuesFrom, createDataAllValuesFrom, createDataCardinality, createDataComplementOf, createDataHasValue, createDataIntersectionOf, createDataMaxCardinality, createDataMinCardinality, createDataOneOf, createDataPropertySWRLAtom, createDataRangeSWRLAtom, createDataRestriction, createDataSomeValuesFrom, createDataSomeValuesFrom, createDataUnionOf, createDifferentIndividuals, createDifferentIndividualsSWRLAtom, createDisjointClasses, createDisjointDataProperties, createDisjointObjectProperties, createFacetRestriction, createHasSelf, createIndividual, createObjectAllValuesFrom, createObjectCardinality, createObjectComplementOf, createObjectHasValue, createObjectIntersectionOf, createObjectMaxCardinality, createObjectMinCardinality, createObjectOneOf, createObjectPropertySWRLAtom, createObjectSomeValuesFrom, createObjectUnionOf, createOntEntity, createOntList, createOntList, createOntObject, createSameIndividualsSWRLAtom, createStatement, createSWRLImp, createSWRLVariable, deleteOntList, findImportAsRawModel, findNodeAs, getBaseGraph, getBaseModel, getDeductionsModel, getDerivation, getID, getInfGraph, getNodeAs, getNodeAsInternal, getOntEntity, getOntPersonality, getOWLBottomDataProperty, getOWLBottomObjectProperty, getOWLNothing, getOWLThing, getOWLTopDataProperty, getOWLTopObjectProperty, getPrefixMapping, getRawModel, getRDFDatatype, getRDFSComment, getRDFSLabel, getRDFSLiteral, getReasoner, getTopModel, hasImport, hasImport, hierarchyRoots, id, imports, imports, independent, individuals, isBuiltIn, listAnnotations, listHierarchyRoots, listImportGraphs, listImportModels, listIndividuals, listIndividuals, listLocalOntEntities, listLocalOntObjects, listLocalStatements, listOntEntities, listOntObjects, listOntObjects, listOntStatements, listStatements, listStatements, localStatements, lock, makeGraph, notifyEvent, ontEntities, ontObjects, prepare, read, read, read, read, read, read, read, rebind, register, remove, remove, remove, remove, remove, remove, removeAll, removeImport, removeImport, removeImportModel, removeNsPrefix, removeOntObject, removeOntStatement, reset, setDerivationLogging, setID, setNsPrefix, setNsPrefixes, setNsPrefixes, statements, statements, unregister, validate, withDefaultMappings, write, write, write, write, writeAll, writeAll, writeAll, writeAll

    Methods inherited from class org.apache.jena.rdf.model.impl.ModelCom

    abort, adapt, add, addCommon, addNamespaces, asModel, asNode, asRDFNode, asStatements, asStatements, asStatements, begin, calculateInTxn, close, commit, contains, contains, contains, contains, contains, contains, containsAll, containsAll, containsAllThenClose, containsAny, containsAny, containsAnyThenClose, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsResource, createAlt, createAlt, createBag, createBag, createList, createList, createList, createLiteral, createLiteral, createLiteral, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createProperty, createProperty, createResource, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatementTerm, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createWorkModel, difference, executeInTxn, expandPrefix, getAlt, getAlt, getBag, getBag, getGraph, getList, getList, getModelLock, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, getProperty, getProperty, getProperty, getProperty, getRDFNode, getReader, getRequiredProperty, getRequiredProperty, getResource, getResource, getSeq, getSeq, getWriter, hasNoMappings, intersect, intersection, isClosed, isEmpty, isIsomorphicWith, listBySubject, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listStatements, listStatements, listStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, numPrefixes, qnameFor, reifiedToString, samePrefixMappingAs, shortForm, size, statementsToString, supportsSetOperations, supportsTransactions, union, wrapAsResource

    Methods inherited from class org.apache.jena.enhanced.EnhGraph

    asGraph, equals, getPersonality, hashCode, isIsomorphicWith

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.github.owlcs.ontapi.internal.HasObjectFactory

    getDataFactory

    Methods inherited from interface org.apache.jena.shared.Lock

    enterCriticalSection, leaveCriticalSection

    Methods inherited from interface org.apache.jena.rdf.model.Model

    abort, begin, calculateInTxn, clearNsPrefixMap, close, commit, contains, contains, contains, containsAll, containsAll, containsAny, containsAny, containsResource, createList, createList, createList, createLiteral, createLiteral, createProperty, createReifier, createReifier, createResource, createResource, createResource, createStatement, createStatementTerm, createTypedLiteral, createTypedLiteral, createTypedLiteral, difference, equals, executeInTxn, getLock, getProperty, getProperty, getProperty, getReader, getRequiredProperty, getRequiredProperty, getResource, getResource, getWriter, independent, intersection, isClosed, isEmpty, isIsomorphicWith, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listResourcesWithProperty, listResourcesWithProperty, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, removeNsPrefix, setNsPrefix, setNsPrefixes, setNsPrefixes, size, supportsSetOperations, supportsTransactions, union, withDefaultMappings, write, write

    Methods inherited from interface org.apache.jena.rdf.model.ModelCon

    add, contains, contains, contains, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, containsLiteral, createAlt, createAlt, createBag, createBag, createLiteral, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createLiteralStatement, createProperty, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, getAlt, getAlt, getBag, getBag, getList, getList, getProperty, getRDFNode, getSeq, getSeq, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listLiteralStatements, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listResourcesWithProperty, listStatements, listStatements, listStatements, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty

    Methods inherited from interface org.apache.jena.rdf.model.ModelGraphInterface

    asRDFNode, getGraph, wrapAsResource

    Methods inherited from interface org.apache.jena.ontapi.common.OntEnhGraph

    canNodeAs, checkType, findNodeAs, getNodeAs, getOntPersonality, safeFindNodeAs

    Methods inherited from interface org.apache.jena.ontapi.model.OntModel

    addImport, annotationProperties, asInferenceModel, asStatement, classes, createAnnotationProperty, createDataProperty, createDatatype, createFacetRestriction, createIndividual, createIndividual, createObjectProperty, createOntClass, createOntEntity, createRDFProperty, dataProperties, datatypes, fetchOntEntity, getAnnotationProperty, getAnnotationProperty, getBaseGraph, getBaseModel, getDataProperty, getDataProperty, getDatatype, getDatatype, getDatatype, getID, getIndividual, getIndividual, getObjectProperty, getObjectProperty, getOntClass, getOntClass, getOntEntity, getOntEntity, getOWLBackwardCompatibleWith, getOWLBottomDataProperty, getOWLBottomObjectProperty, getOWLDeprecated, getOWLIncompatibleWith, getOWLNothing, getOWLPriorVersion, getOWLThing, getOWLTopDataProperty, getOWLTopObjectProperty, getOWLVersionInfo, getRDFSComment, getRDFSIsDefinedBy, getRDFSLabel, getRDFSLiteral, getRDFSSeeAlso, hasImport, hasImport, hierarchyRoots, id, imports, individuals, localStatements, localStatements, namedIndividuals, objectProperties, ontEntities, ontEntities, ontObjects, properties, removeImport, removeImport, removeOntObject, removeOntStatement, setID, statements, statements

    Methods inherited from interface org.apache.jena.shared.PrefixMapping

    expandPrefix, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, hasNoMappings, numPrefixes, qnameFor, samePrefixMappingAs, shortForm
  • Field Details

    • directListener

      protected final InternalGraphModelImpl.DirectListener directListener
      The direct listener, it monitors changes that occur through the main (Jena) interface.
    • cachedID

      protected volatile ID cachedID
      Ontology ID cache.
    • config

      protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,InternalConfig> config
      The configuration settings to control behaviour. As a container that contains an immutable snapshot, which should be reset on clearCache().
      See Also:
    • objectFactory

      protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,ModelObjectFactory> objectFactory
      An internal object factory, that is responsible for mapping ONT Jena Objects to OWL-API objects. It is used while collecting axioms, may be reset to release memory. Any change in the base graph must reset this cache. Designed as a SoftReference since it is mostly needed only to optimize reading operations and may contain huge number of objects.
      See Also:
    • searchModel

      protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,org.apache.jena.ontapi.impl.OntGraphModelImpl> searchModel
      A model for axiom/object's search optimizations, containing nodes cache. Any change in the base graph must also reset this cache. Designed as a SoftReference since it is mostly needed only to optimize reading operations and may contain huge number of objects.
      See Also:
    • content

      protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>>> content
      The main cache, which contains all axioms and the ontology header. It contains 40 key-value pairs, 39 for kinds of axioms and one for the ontology header.
      See Also:
    • components

      protected final InternalCache.Loading<com.github.owlcs.ontapi.internal.InternalReadGraphModel,Map<OWLComponentType,ObjectMap<org.semanticweb.owlapi.model.OWLObject>>> components
      OWL objects cache to work with OWL-API 'signature' methods. Currently, it is calculated from the content. Any direct (manual) change in the graph must also reset this cache.
      See Also:
    • byClass

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLClass> byClass
    • byDatatype

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLDatatype> byDatatype
    • byNamedIndividual

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLNamedIndividual> byNamedIndividual
    • byObjectProperty

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLObjectProperty> byObjectProperty
    • byDataProperty

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLDataProperty> byDataProperty
    • byAnnotationProperty

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLAnnotationProperty> byAnnotationProperty
    • byLiteral

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLLiteral> byLiteral
    • byAnonymousIndividual

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.OWLAnonymousIndividual> byAnonymousIndividual
    • byIRI

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAxiom,org.semanticweb.owlapi.model.IRI> byIRI
    • declarationsByEntity

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDeclarationAxiom,org.semanticweb.owlapi.model.OWLEntity> declarationsByEntity
    • annotationAssertionsBySubject

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom,org.semanticweb.owlapi.model.OWLAnnotationSubject> annotationAssertionsBySubject
    • dataAssertionsBySubject

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual> dataAssertionsBySubject
    • objectAssertionsBySubject

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual> objectAssertionsBySubject
    • objectPropertyRangeByProperty

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom,org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectPropertyRangeByProperty
    • objectPropertyDomainByProperty

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom,org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectPropertyDomainByProperty
    • subClassOfBySubject

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLSubClassOfAxiom,org.semanticweb.owlapi.model.OWLClass> subClassOfBySubject
    • subClassOfByObject

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLSubClassOfAxiom,org.semanticweb.owlapi.model.OWLClass> subClassOfByObject
    • equivalentClassesByClass

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom,org.semanticweb.owlapi.model.OWLClass> equivalentClassesByClass
    • disjointClassesByClass

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom,org.semanticweb.owlapi.model.OWLClass> disjointClassesByClass
    • classAssertionsByIndividual

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLClassAssertionAxiom,org.semanticweb.owlapi.model.OWLIndividual> classAssertionsByIndividual
    • classAssertionsByClass

      protected final ByObjectSearcher<org.semanticweb.owlapi.model.OWLClassAssertionAxiom,org.semanticweb.owlapi.model.OWLClassExpression> classAssertionsByClass
    • classSearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLClass> classSearcher
    • individualSearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLNamedIndividual> individualSearcher
    • datatypeSearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLDatatype> datatypeSearcher
    • objectPropertySearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLObjectProperty> objectPropertySearcher
    • annotationPropertySearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLAnnotationProperty> annotationPropertySearcher
    • dataPropertySearcher

      protected final ObjectsSearcher<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertySearcher
  • Constructor Details

    • InternalGraphModelImpl

      public InternalGraphModelImpl(org.apache.jena.graph.Graph base, org.apache.jena.ontapi.common.OntPersonality personality, InternalConfig config, DataFactory dataFactory, Map<Class<? extends org.semanticweb.owlapi.model.OWLPrimitive>,InternalCache<?,?>> fromManager)
      Constructs a model instance. For internal usage only.
      Parameters:
      base - Graph, not null, a primary and single data-storage
      personality - OntPersonality, not null, a facility to conduct Node to OntObject mappings
      config - InternalConfig, not null, to control caches and ontological views
      dataFactory - DataFactory, not null, to produce standard OWLObjects
      fromManager - Map or null, a possibility to share cache-data between different model instances
  • Method Details

    • getUnionGraph

      public org.apache.jena.ontapi.UnionGraph getUnionGraph()
      Description copied from interface: InternalGraphModel
      Answers the UnionGraph which this Model is presenting.
      Specified by:
      getUnionGraph in interface InternalGraphModel
      Overrides:
      getUnionGraph in class org.apache.jena.ontapi.impl.OntGraphModelImpl
      Returns:
      UnionGraph
    • setOntologyID

      public void setOntologyID(org.semanticweb.owlapi.model.OWLOntologyID id) throws IllegalArgumentException
      Description copied from interface: InternalGraphModel
      Sets the OWL Ontology ID to the model.
      Specified by:
      setOntologyID in interface InternalGraphModel
      Parameters:
      id - OWLOntologyID
      Throws:
      IllegalArgumentException - in case the given id is broken
      See Also:
      • OntModel.setID(String)
    • createDirectListener

      protected InternalGraphModelImpl.DirectListener createDirectListener()
      Creates a direct listener.
      Returns:
      InternalGraphModelImpl.DirectListener
    • disableDirectListening

      protected void disableDirectListening()
      Enables direct listening. Any change through RDF interface will be tracked out.
      See Also:
    • enableDirectListening

      protected void enableDirectListening()
      Disables direct listening.
      See Also:
    • add

      public boolean add(org.semanticweb.owlapi.model.OWLAxiom axiom)
      Description copied from interface: InternalGraphModel
      Adds the specified axiom to the model.
      Specified by:
      add in interface InternalGraphModel
      Parameters:
      axiom - OWLAxiom
      Returns:
      true if the axiom has been added to the graph
      See Also:
    • add

      public boolean add(org.semanticweb.owlapi.model.OWLAnnotation annotation)
      Description copied from interface: InternalGraphModel
      Adds the given annotation to the ontology header of the model.
      Specified by:
      add in interface InternalGraphModel
      Parameters:
      annotation - OWLAnnotation
      Returns:
      true if the annotation has been added to the graph
      See Also:
    • remove

      public boolean remove(org.semanticweb.owlapi.model.OWLAxiom axiom)
      Description copied from interface: InternalGraphModel
      Removes the given axiom from the model. Also, clears the cache for the entity type, if the entity has been belonged to the removed axiom.
      Specified by:
      remove in interface InternalGraphModel
      Parameters:
      axiom - OWLAxiom
      Returns:
      true if the axiom has been removed from the graph
      See Also:
    • remove

      public boolean remove(org.semanticweb.owlapi.model.OWLAnnotation annotation)
      Description copied from interface: InternalGraphModel
      Removes the given ontology header annotation from the model.
      Specified by:
      remove in interface InternalGraphModel
      Parameters:
      annotation - OWLAnnotation
      Returns:
      true if the annotation has been removed from the graph
      See Also:
    • add

      protected boolean add(OWLTopObjectType key, org.semanticweb.owlapi.model.OWLObject container) throws OntApiException
      Adds the specified OWLObject into the model.
      Parameters:
      key - OWLTopObjectType, not null
      container - either OWLAxiom or OWLAnnotation, that corresponds to the key, not null
      Returns:
      true if the graph has been changed
      Throws:
      OntApiException - in case the object cannot be added into the model
    • remove

      protected boolean remove(OWLTopObjectType key, org.semanticweb.owlapi.model.OWLObject container)
      Removes the given container from the corresponding cache and the model. In case some container's triple is associated with other object, it cannot be deleted from the graph. Example of such intersection in triples is reusing b-nodes: <A> rdfs:subClassOf _:b0 and <B> rdfs:subClassOf _:b0. Also, OWL-Entity declaration root-triples are shared between different axioms.
      Parameters:
      key - OWLTopObjectType, not null
      container - either OWLAxiom or OWLAnnotation, that corresponds to the key, not null
      Returns:
      true if the graph has been changed
      See Also:
    • getUsedTriples

      protected Set<org.apache.jena.graph.Triple> getUsedTriples(org.apache.jena.ontapi.model.OntModel model, org.semanticweb.owlapi.model.OWLObject container)
      Calculates and returns the triples, that belong to both the given content-container and some other one. There are three cases of triples intersections:
      • Shared entity declarations. Each ONT-API axiom is supplied with full triple set, that includes all used declarations, therefore two axioms that have some entity in common, also have the same triple-declaration for that entity in their triple sets.
      • Punned axiom definition. If punning is allowed it is possible to have same main triple shared between different axioms with distinguished type. E.g. rdfs:subPropertyOf-axiom for punned properties.
      • Shared component. Although, this case is prohibited for a good OWL2 ontology, in general it is possible to have non-entity shared components, e.g. class-expressions. For example SubClassOf(A, _:x) and SubClassOf(B, _:x) would have identical sets of triples for class expression _:x.
      Parameters:
      model - OntModel the model to traverse over, must correspond to the container, not null
      container - OWLObject - a content-container, for which this operation is performed, not null
      Returns:
      Set of Triples in intersection
    • toModel

      protected org.apache.jena.ontapi.model.OntModel toModel(ONTObject<? extends org.semanticweb.owlapi.model.OWLObject> o)
      Represents the given container as a OWL Graph Model.
      Parameters:
      o - ONTObject-wrapper
      Returns:
      OntModel
    • delete

      protected void delete(org.apache.jena.graph.Triple triple)
      Deletes a triple from the base graph and clears the standard jena model cache for it.
      Parameters:
      triple - Triple
    • removeAll

      public InternalGraphModelImpl removeAll()
      The overridden jena method. Makes this ontology empty given its caches.
      Specified by:
      removeAll in interface org.apache.jena.rdf.model.Model
      Overrides:
      removeAll in class org.apache.jena.ontapi.impl.OntGraphModelImpl
      Returns:
      Model
    • clearCacheIfNeeded

      public void clearCacheIfNeeded()
      Description copied from interface: InternalGraphModel
      Invalidates the cache if needed.

      The OWL-API serialization may not work correctly without explicit expansion of axioms into a strictly defined form. The cache cleaning encourages repeated reading of the encapsulated graph, and, thus, leads the axioms to a uniform view. Without this operation, the axiomatic representation would look slightly different and the reload test (loading/saving in different formats) would not be passed. Also, absence of uniformed axiomatic view may lead to exceptions, since some OWL-storers require explicit declarations, which may not be present, if the ontology was assembled manually. It is important to invalidate whole the cache, since user-defined axioms may content parts of other axioms, such as annotation assertions, declarations, data-range definitions, etc.

      Specified by:
      clearCacheIfNeeded in interface InternalGraphModel
    • clearCache

      public void clearCache()
      Description copied from interface: InternalGraphModel
      Invalidates all caches.
      Specified by:
      clearCache in interface InternalGraphModel
    • clearComponentsCaches

      protected void clearComponentsCaches()
      Invalidates InternalReadGraphModel.components, InternalReadGraphModel.objectFactory and InternalReadGraphModel.searchModel caches. Auxiliary method.
    • clearOtherCaches

      protected void clearOtherCaches()
      Invalidates search model and object factory caches. Auxiliary method.
    • clearComponents

      protected void clearComponents(org.semanticweb.owlapi.model.OWLObject container)
      Invalidates the cache for all components parsed from the given container. todo: is a smarter mechanism to invalidate the related components possible here?
      Parameters:
      container - OWLObject, not null
      See Also:
    • cacheComponents

      protected void cacheComponents(org.semanticweb.owlapi.model.OWLObject container)
      Extracts all components from the given container and puts them into the InternalReadGraphModel.components cache.
      Parameters:
      container - OWLObject, not null
      See Also:
    • forceLoad

      public void forceLoad()
      Description copied from interface: InternalGraphModel
      Forcibly loads the whole content cache.
      Specified by:
      forceLoad in interface InternalGraphModel
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Statement arg0)
      Specified by:
      add in interface org.apache.jena.rdf.model.Model
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
      Specified by:
      add in interface org.apache.jena.rdf.model.ModelCon
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Model arg0)
      Specified by:
      add in interface org.apache.jena.rdf.model.Model
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.StmtIterator arg0)
      Specified by:
      add in interface org.apache.jena.rdf.model.Model
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Statement[] arg0)
      Specified by:
      add in interface org.apache.jena.rdf.model.Model
    • add

      org.apache.jena.ontapi.model.OntModel add(List<org.apache.jena.rdf.model.Statement> arg0)
      Specified by:
      add in interface org.apache.jena.rdf.model.Model
    • remove

      org.apache.jena.ontapi.model.OntModel remove(org.apache.jena.rdf.model.Statement arg0)
      Specified by:
      remove in interface org.apache.jena.rdf.model.Model
    • remove

      org.apache.jena.ontapi.model.OntModel remove(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
      Specified by:
      remove in interface org.apache.jena.rdf.model.ModelCon
    • remove

      org.apache.jena.ontapi.model.OntModel remove(org.apache.jena.rdf.model.Model arg0)
      Specified by:
      remove in interface org.apache.jena.rdf.model.ModelCon
    • remove

      org.apache.jena.ontapi.model.OntModel remove(org.apache.jena.rdf.model.StmtIterator arg0)
      Specified by:
      remove in interface org.apache.jena.rdf.model.ModelCon
    • removeAll

      org.apache.jena.ontapi.model.OntModel removeAll(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.RDFNode arg2)
      Specified by:
      removeAll in interface org.apache.jena.rdf.model.Model
    • remove

      org.apache.jena.ontapi.model.OntModel remove(org.apache.jena.rdf.model.Statement[] arg0)
      Specified by:
      remove in interface org.apache.jena.rdf.model.Model
    • remove

      org.apache.jena.ontapi.model.OntModel remove(List<org.apache.jena.rdf.model.Statement> arg0)
      Specified by:
      remove in interface org.apache.jena.rdf.model.Model
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, boolean arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, long arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, int arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, char arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, float arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, double arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • addLiteral

      org.apache.jena.ontapi.model.OntModel addLiteral(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, org.apache.jena.rdf.model.Literal arg2)
      Specified by:
      addLiteral in interface org.apache.jena.rdf.model.ModelCon
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2)
      Specified by:
      add in interface org.apache.jena.rdf.model.ModelCon
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2, org.apache.jena.datatypes.RDFDatatype arg3)
      Specified by:
      add in interface org.apache.jena.rdf.model.ModelCon
    • add

      org.apache.jena.ontapi.model.OntModel add(org.apache.jena.rdf.model.Resource arg0, org.apache.jena.rdf.model.Property arg1, String arg2, String arg3)
      Specified by:
      add in interface org.apache.jena.rdf.model.ModelCon
    • register

      org.apache.jena.ontapi.model.OntModel register(org.apache.jena.rdf.model.ModelChangedListener arg0)
      Specified by:
      register in interface org.apache.jena.rdf.model.Model
    • unregister

      org.apache.jena.ontapi.model.OntModel unregister(org.apache.jena.rdf.model.ModelChangedListener arg0)
      Specified by:
      unregister in interface org.apache.jena.rdf.model.Model
    • notifyEvent

      org.apache.jena.ontapi.model.OntModel notifyEvent(Object arg0)
      Specified by:
      notifyEvent in interface org.apache.jena.rdf.model.Model
    • setNsPrefix

      org.apache.jena.ontapi.model.OntModel setNsPrefix(String arg0, String arg1)
      Specified by:
      setNsPrefix in interface org.apache.jena.shared.PrefixMapping
    • removeNsPrefix

      org.apache.jena.ontapi.model.OntModel removeNsPrefix(String arg0)
      Specified by:
      removeNsPrefix in interface org.apache.jena.shared.PrefixMapping
    • clearNsPrefixMap

      org.apache.jena.ontapi.model.OntModel clearNsPrefixMap()
      Specified by:
      clearNsPrefixMap in interface org.apache.jena.shared.PrefixMapping
    • setNsPrefixes

      org.apache.jena.ontapi.model.OntModel setNsPrefixes(org.apache.jena.shared.PrefixMapping arg0)
      Specified by:
      setNsPrefixes in interface org.apache.jena.shared.PrefixMapping
    • setNsPrefixes

      org.apache.jena.ontapi.model.OntModel setNsPrefixes(Map<String,String> arg0)
      Specified by:
      setNsPrefixes in interface org.apache.jena.shared.PrefixMapping
    • withDefaultMappings

      org.apache.jena.ontapi.model.OntModel withDefaultMappings(org.apache.jena.shared.PrefixMapping arg0)
      Specified by:
      withDefaultMappings in interface org.apache.jena.shared.PrefixMapping
    • lock

      org.apache.jena.ontapi.model.OntModel lock()
      Specified by:
      lock in interface org.apache.jena.shared.PrefixMapping
    • read

      org.apache.jena.ontapi.model.OntModel read(String arg0)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(InputStream arg0, String arg1)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(InputStream arg0, String arg1, String arg2)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(Reader arg0, String arg1)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(String arg0, String arg1)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(Reader arg0, String arg1, String arg2)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • read

      org.apache.jena.ontapi.model.OntModel read(String arg0, String arg1, String arg2)
      Specified by:
      read in interface org.apache.jena.rdf.model.Model
    • write

      org.apache.jena.ontapi.model.OntModel write(Writer arg0, String arg1)
      Specified by:
      write in interface org.apache.jena.rdf.model.Model
    • write

      org.apache.jena.ontapi.model.OntModel write(Writer arg0, String arg1, String arg2)
      Specified by:
      write in interface org.apache.jena.rdf.model.Model
    • write

      org.apache.jena.ontapi.model.OntModel write(OutputStream arg0, String arg1)
      Specified by:
      write in interface org.apache.jena.rdf.model.Model
    • write

      org.apache.jena.ontapi.model.OntModel write(OutputStream arg0, String arg1, String arg2)
      Specified by:
      write in interface org.apache.jena.rdf.model.Model
    • writeAll

      org.apache.jena.ontapi.model.OntModel writeAll(Writer arg0, String arg1, String arg2)
    • writeAll

      org.apache.jena.ontapi.model.OntModel writeAll(Writer arg0, String arg1)
    • writeAll

      org.apache.jena.ontapi.model.OntModel writeAll(OutputStream arg0, String arg1, String arg2)
    • writeAll

      org.apache.jena.ontapi.model.OntModel writeAll(OutputStream arg0, String arg1)
    • createObjectSomeValuesFrom

      org.apache.jena.ontapi.model.OntClass.ObjectSomeValuesFrom createObjectSomeValuesFrom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntClass arg1)
    • createDataSomeValuesFrom

      org.apache.jena.ontapi.model.OntClass.DataSomeValuesFrom createDataSomeValuesFrom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
    • createObjectAllValuesFrom

      org.apache.jena.ontapi.model.OntClass.ObjectAllValuesFrom createObjectAllValuesFrom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntClass arg1)
    • createDataAllValuesFrom

      org.apache.jena.ontapi.model.OntClass.DataAllValuesFrom createDataAllValuesFrom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
    • createObjectHasValue

      org.apache.jena.ontapi.model.OntClass.ObjectHasValue createObjectHasValue(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntIndividual arg1)
    • createDataHasValue

      org.apache.jena.ontapi.model.OntClass.DataHasValue createDataHasValue(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.rdf.model.Literal arg1)
    • createObjectMinCardinality

      org.apache.jena.ontapi.model.OntClass.ObjectMinCardinality createObjectMinCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
    • createDataMinCardinality

      org.apache.jena.ontapi.model.OntClass.DataMinCardinality createDataMinCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
    • createObjectMaxCardinality

      org.apache.jena.ontapi.model.OntClass.ObjectMaxCardinality createObjectMaxCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
    • createDataMaxCardinality

      org.apache.jena.ontapi.model.OntClass.DataMaxCardinality createDataMaxCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
    • createObjectCardinality

      org.apache.jena.ontapi.model.OntClass.ObjectCardinality createObjectCardinality(org.apache.jena.ontapi.model.OntObjectProperty arg0, int arg1, org.apache.jena.ontapi.model.OntClass arg2)
    • createDataCardinality

      org.apache.jena.ontapi.model.OntClass.DataCardinality createDataCardinality(org.apache.jena.ontapi.model.OntDataProperty arg0, int arg1, org.apache.jena.ontapi.model.OntDataRange arg2)
    • createHasSelf

      org.apache.jena.ontapi.model.OntClass.HasSelf createHasSelf(org.apache.jena.ontapi.model.OntObjectProperty arg0)
    • createObjectUnionOf

      org.apache.jena.ontapi.model.OntClass.UnionOf createObjectUnionOf(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
    • createObjectIntersectionOf

      org.apache.jena.ontapi.model.OntClass.IntersectionOf createObjectIntersectionOf(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
    • createObjectOneOf

      org.apache.jena.ontapi.model.OntClass.OneOf createObjectOneOf(Collection<org.apache.jena.ontapi.model.OntIndividual> arg0)
    • createObjectComplementOf

      org.apache.jena.ontapi.model.OntClass.ComplementOf createObjectComplementOf(org.apache.jena.ontapi.model.OntClass arg0)
    • createDataAllValuesFrom

      org.apache.jena.ontapi.model.OntClass.NaryDataAllValuesFrom createDataAllValuesFrom(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
    • createDataSomeValuesFrom

      org.apache.jena.ontapi.model.OntClass.NaryDataSomeValuesFrom createDataSomeValuesFrom(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0, org.apache.jena.ontapi.model.OntDataRange arg1)
    • createObjectIntersectionOf

      default org.apache.jena.ontapi.model.OntClass.IntersectionOf createObjectIntersectionOf(org.apache.jena.ontapi.model.OntClass... arg0)
    • createObjectUnionOf

      default org.apache.jena.ontapi.model.OntClass.UnionOf createObjectUnionOf(org.apache.jena.ontapi.model.OntClass... arg0)
    • createObjectOneOf

      default org.apache.jena.ontapi.model.OntClass.OneOf createObjectOneOf(org.apache.jena.ontapi.model.OntIndividual... arg0)
    • createDataOneOf

      org.apache.jena.ontapi.model.OntDataRange.OneOf createDataOneOf(Collection<org.apache.jena.rdf.model.Literal> arg0)
    • createDataRestriction

      org.apache.jena.ontapi.model.OntDataRange.Restriction createDataRestriction(org.apache.jena.ontapi.model.OntDataRange.Named arg0, Collection<org.apache.jena.ontapi.model.OntFacetRestriction> arg1)
    • createDataComplementOf

      org.apache.jena.ontapi.model.OntDataRange.ComplementOf createDataComplementOf(org.apache.jena.ontapi.model.OntDataRange arg0)
    • createDataUnionOf

      org.apache.jena.ontapi.model.OntDataRange.UnionOf createDataUnionOf(Collection<org.apache.jena.ontapi.model.OntDataRange> arg0)
    • createDataIntersectionOf

      org.apache.jena.ontapi.model.OntDataRange.IntersectionOf createDataIntersectionOf(Collection<org.apache.jena.ontapi.model.OntDataRange> arg0)
    • createDataOneOf

      default org.apache.jena.ontapi.model.OntDataRange.OneOf createDataOneOf(org.apache.jena.rdf.model.Literal... arg0)
    • createDataRestriction

      default org.apache.jena.ontapi.model.OntDataRange.Restriction createDataRestriction(org.apache.jena.ontapi.model.OntDataRange.Named arg0, org.apache.jena.ontapi.model.OntFacetRestriction... arg1)
    • createDataUnionOf

      default org.apache.jena.ontapi.model.OntDataRange.UnionOf createDataUnionOf(org.apache.jena.ontapi.model.OntDataRange... arg0)
    • createDataIntersectionOf

      default org.apache.jena.ontapi.model.OntDataRange.IntersectionOf createDataIntersectionOf(org.apache.jena.ontapi.model.OntDataRange... arg0)
    • createDisjointClasses

      org.apache.jena.ontapi.model.OntDisjoint.Classes createDisjointClasses(Collection<org.apache.jena.ontapi.model.OntClass> arg0)
    • createDifferentIndividuals

      org.apache.jena.ontapi.model.OntDisjoint.Individuals createDifferentIndividuals(Collection<org.apache.jena.ontapi.model.OntIndividual> arg0)
    • createDisjointObjectProperties

      org.apache.jena.ontapi.model.OntDisjoint.ObjectProperties createDisjointObjectProperties(Collection<org.apache.jena.ontapi.model.OntObjectProperty> arg0)
    • createDisjointDataProperties

      org.apache.jena.ontapi.model.OntDisjoint.DataProperties createDisjointDataProperties(Collection<org.apache.jena.ontapi.model.OntDataProperty> arg0)
    • createDisjointClasses

      default org.apache.jena.ontapi.model.OntDisjoint.Classes createDisjointClasses(org.apache.jena.ontapi.model.OntClass... arg0)
    • createDifferentIndividuals

      default org.apache.jena.ontapi.model.OntDisjoint.Individuals createDifferentIndividuals(org.apache.jena.ontapi.model.OntIndividual... arg0)
    • createDisjointObjectProperties

      default org.apache.jena.ontapi.model.OntDisjoint.ObjectProperties createDisjointObjectProperties(org.apache.jena.ontapi.model.OntObjectProperty... arg0)
    • createDisjointDataProperties

      default org.apache.jena.ontapi.model.OntDisjoint.DataProperties createDisjointDataProperties(org.apache.jena.ontapi.model.OntDataProperty... arg0)
    • createSWRLVariable

      org.apache.jena.ontapi.model.OntSWRL.Variable createSWRLVariable(String arg0)
    • createBuiltInSWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithBuiltin createBuiltInSWRLAtom(org.apache.jena.rdf.model.Resource arg0, Collection<org.apache.jena.ontapi.model.OntSWRL.DArg> arg1)
    • createClassSWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithClass createClassSWRLAtom(org.apache.jena.ontapi.model.OntClass arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
    • createDataRangeSWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithDataRange createDataRangeSWRLAtom(org.apache.jena.ontapi.model.OntDataRange arg0, org.apache.jena.ontapi.model.OntSWRL.DArg arg1)
    • createDataPropertySWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithDataProperty createDataPropertySWRLAtom(org.apache.jena.ontapi.model.OntDataProperty arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1, org.apache.jena.ontapi.model.OntSWRL.DArg arg2)
    • createObjectPropertySWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty createObjectPropertySWRLAtom(org.apache.jena.ontapi.model.OntObjectProperty arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1, org.apache.jena.ontapi.model.OntSWRL.IArg arg2)
    • createDifferentIndividualsSWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithDifferentIndividuals createDifferentIndividualsSWRLAtom(org.apache.jena.ontapi.model.OntSWRL.IArg arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
    • createSameIndividualsSWRLAtom

      org.apache.jena.ontapi.model.OntSWRL.Atom.WithSameIndividuals createSameIndividualsSWRLAtom(org.apache.jena.ontapi.model.OntSWRL.IArg arg0, org.apache.jena.ontapi.model.OntSWRL.IArg arg1)
    • createSWRLImp

      org.apache.jena.ontapi.model.OntSWRL.Imp createSWRLImp(Collection<org.apache.jena.ontapi.model.OntSWRL.Atom<?>> arg0, Collection<org.apache.jena.ontapi.model.OntSWRL.Atom<?>> arg1)
    • listOWLAxioms

      <A extends org.semanticweb.owlapi.model.OWLAxiom> Stream<A> listOWLAxioms(Class<A> type)
      Lists axioms of the given class-type.
      Type Parameters:
      A - subtype of OWLAxiom
      Parameters:
      type - Class
      Returns:
      a Stream of OWLAxioms
      See Also:
      • AxiomType
    • listOWLDeclarationAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDeclarationAxiom> listOWLDeclarationAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
      Lists Declaration Axioms for the specified entity. Note: method may return non-cached axioms.
      Parameters:
      entity - OWLEntity, not null
      Returns:
      a Stream of OWLDeclarationAxioms
    • listOWLAnnotationAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom> listOWLAnnotationAssertionAxioms(org.semanticweb.owlapi.model.OWLAnnotationSubject subject)
      Lists Annotation Assertion Axioms with the given subject. Note: method returns non-cached axioms.
      Parameters:
      subject - OWLAnnotationSubject, not null
      Returns:
      a Stream of OWLAnnotationAssertionAxioms
    • listOWLSubClassOfAxiomsBySubject

      default Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> listOWLSubClassOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLClass subject)
      Lists SubClassOf Axioms by the given sub class.
      Parameters:
      subject - OWLClass, not null
      Returns:
      a Stream of OWLSubClassOfAxioms
    • listOWLSubClassOfAxiomsByObject

      default Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> listOWLSubClassOfAxiomsByObject(org.semanticweb.owlapi.model.OWLClass object)
      Lists SubClassOf Axioms by the given super class.
      Parameters:
      object - OWLClass, not null
      Returns:
      Stream of OWLSubClassOfAxioms
    • listOWLEquivalentClassesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom> listOWLEquivalentClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
      Lists EquivalentClasses Axioms by the given class-component.
      Parameters:
      clazz - OWLClass, not null
      Returns:
      a Stream of OWLEquivalentClassesAxioms
    • listOWLDisjointClassesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom> listOWLDisjointClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
      Lists DisjointClasses Axioms by the given class-component.
      Parameters:
      clazz - OWLClass, not null
      Returns:
      a Stream of OWLDisjointClassesAxioms
    • listOWLDisjointUnionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDisjointUnionAxiom> listOWLDisjointUnionAxioms(org.semanticweb.owlapi.model.OWLClass subject)
    • listOWLHasKeyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLHasKeyAxiom> listOWLHasKeyAxioms(org.semanticweb.owlapi.model.OWLClass subject)
    • listOWLClassAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom> listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLClassExpression object)
      Lists ClassAssertion Axioms by the given class-object.
      Parameters:
      object - OWLClassExpression, not null
      Returns:
      a Stream of OWLClassAssertionAxioms
    • listOWLDatatypeDefinitionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom> listOWLDatatypeDefinitionAxioms(org.semanticweb.owlapi.model.OWLDatatype datatype)
    • listOWLClassAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom> listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
      Lists ClassAssertion Axioms by the given individual-subject.
      Parameters:
      subject - OWLIndividual, not null
      Returns:
      a Stream of OWLClassAssertionAxioms
    • listOWLSameIndividualAxioms

      default Stream<org.semanticweb.owlapi.model.OWLSameIndividualAxiom> listOWLSameIndividualAxioms(org.semanticweb.owlapi.model.OWLIndividual operand)
    • listOWLDifferentIndividualsAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDifferentIndividualsAxiom> listOWLDifferentIndividualsAxioms(org.semanticweb.owlapi.model.OWLIndividual operand)
    • listOWLObjectPropertyAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom> listOWLObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
      Lists ObjectPropertyAssertion Axioms by the given individual-subject.
      Parameters:
      subject - OWLIndividual, not null
      Returns:
      a Stream of OWLObjectPropertyAssertionAxioms
    • listOWLNegativeObjectPropertyAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLNegativeObjectPropertyAssertionAxiom> listOWLNegativeObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    • listOWLDataPropertyAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom> listOWLDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
      Lists DataPropertyAssertion Axioms by the given individual-subject.
      Parameters:
      subject - OWLIndividual, not null
      Returns:
      a Stream of OWLDataPropertyAssertionAxioms
    • listOWLNegativeDataPropertyAssertionAxioms

      default Stream<org.semanticweb.owlapi.model.OWLNegativeDataPropertyAssertionAxiom> listOWLNegativeDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    • listOWLEquivalentObjectPropertiesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLEquivalentObjectPropertiesAxiom> listOWLEquivalentObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
    • listOWLDisjointObjectPropertiesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom> listOWLDisjointObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
    • listOWLSubObjectPropertyOfAxiomsBySubject

      default Stream<org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom> listOWLSubObjectPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLSubObjectPropertyOfAxiomsByObject

      default Stream<org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom> listOWLSubObjectPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLObjectPropertyExpression object)
    • listOWLObjectPropertyDomainAxioms

      default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom> listOWLObjectPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
      Lists ObjectPropertyDomain Axioms by the given property-subject.
      Parameters:
      subject - OWLObjectPropertyExpression, not null
      Returns:
      a Stream of OWLObjectPropertyDomainAxioms
    • listOWLObjectPropertyRangeAxioms

      default Stream<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom> listOWLObjectPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
      Lists ObjectPropertyRange Axioms by the given property-subject.
      Parameters:
      subject - OWLObjectPropertyExpression, not null
      Returns:
      a Stream of OWLObjectPropertyRangeAxioms
    • listOWLInverseObjectPropertiesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom> listOWLInverseObjectPropertiesAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression operand)
    • listOWLFunctionalObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom> listOWLFunctionalObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLInverseFunctionalObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLInverseFunctionalObjectPropertyAxiom> listOWLInverseFunctionalObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLSymmetricObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom> listOWLSymmetricObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLAsymmetricObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom> listOWLAsymmetricObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLReflexiveObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom> listOWLReflexiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLIrreflexiveObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom> listOWLIrreflexiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLTransitiveObjectPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom> listOWLTransitiveObjectPropertyAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLEquivalentDataPropertiesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLEquivalentDataPropertiesAxiom> listOWLEquivalentDataPropertiesAxioms(org.semanticweb.owlapi.model.OWLDataProperty operand)
    • listOWLDisjointDataPropertiesAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDisjointDataPropertiesAxiom> listOWLDisjointDataPropertiesAxioms(org.semanticweb.owlapi.model.OWLDataProperty operand)
    • listOWLSubDataPropertyOfAxiomsBySubject

      default Stream<org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom> listOWLSubDataPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLDataProperty subject)
    • listOWLSubDataPropertyOfAxiomsByObject

      default Stream<org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom> listOWLSubDataPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLDataProperty object)
    • listOWLDataPropertyDomainAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom> listOWLDataPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
    • listOWLDataPropertyRangeAxioms

      default Stream<org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom> listOWLDataPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
    • listOWLFunctionalDataPropertyAxioms

      default Stream<org.semanticweb.owlapi.model.OWLFunctionalDataPropertyAxiom> listOWLFunctionalDataPropertyAxioms(org.semanticweb.owlapi.model.OWLDataProperty subject)
    • listOWLSubAnnotationPropertyOfAxiomsBySubject

      default Stream<org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom> listOWLSubAnnotationPropertyOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
    • listOWLSubAnnotationPropertyOfAxiomsByObject

      default Stream<org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom> listOWLSubAnnotationPropertyOfAxiomsByObject(org.semanticweb.owlapi.model.OWLAnnotationProperty object)
    • listOWLAnnotationPropertyDomainAxioms

      default Stream<org.semanticweb.owlapi.model.OWLAnnotationPropertyDomainAxiom> listOWLAnnotationPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
    • listOWLAnnotationPropertyRangeAxioms

      default Stream<org.semanticweb.owlapi.model.OWLAnnotationPropertyRangeAxiom> listOWLAnnotationPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLAnnotationProperty subject)
    • listOWLNaryAxiomAxiomsByOperand

      default <A extends org.semanticweb.owlapi.model.OWLNaryAxiom<? super K>, K extends org.semanticweb.owlapi.model.OWLObject> Stream<A> listOWLNaryAxiomAxiomsByOperand(Class<A> type, K operand)
    • listOWLPropertyAxioms

      default <A extends org.semanticweb.owlapi.model.OWLAxiom & org.semanticweb.owlapi.model.HasProperty<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression> Stream<A> listOWLPropertyAxioms(Class<A> type, P property)
    • listOWLSubPropertyOfAxiomsBySubject

      default <A extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression> Stream<A> listOWLSubPropertyOfAxiomsBySubject(Class<A> type, P subject)
    • listOWLSubPropertyOfAxiomsByObject

      default <A extends org.semanticweb.owlapi.model.OWLSubPropertyAxiom<P>, P extends org.semanticweb.owlapi.model.OWLPropertyExpression> Stream<A> listOWLSubPropertyOfAxiomsByObject(Class<A> type, P object)
    • getOntologyID

      public ID getOntologyID()
    • getConfig

      public InternalConfig getConfig()
      Returns the model's InternalConfig snapshot instance, which is an immutable object.
      Specified by:
      getConfig in interface HasConfig
      Returns:
      InternalConfig.Snapshot
    • getObjectFactory

      @Nonnull public ModelObjectFactory getObjectFactory()
      Returns the InternalDataFactory, a helper (possibly, with cache) to read OWL-API objects.
      Specified by:
      getObjectFactory in interface HasObjectFactory
      Returns:
      ModelObjectFactory
    • createObjectFactory

      protected ModelObjectFactory createObjectFactory(DataFactory df, Map<Class<? extends org.semanticweb.owlapi.model.OWLPrimitive>,InternalCache<?,?>> external)
      Creates a fresh Object Factory instance, which is responsible for mapping Node (and OntObject) to OWLObject. If the load objects cache is enabled, the method returns a CacheObjectFactory instance, that caches OWLObjects and, therefore, may take up a lot of memory. Otherwise, in case the load cache is disabled, the ModelObjectFactory will be returned.
      Parameters:
      df - DataFactory, not null
      external - a Map with shared outer caches, not null
      Returns:
      ModelObjectFactory
      See Also:
    • getSearchModel

      public org.apache.jena.ontapi.impl.OntGraphModelImpl getSearchModel()
      Returns an OntGraphModelImpl version with search optimizations. The return model must be used only to collect OWL-API stuff: OWL Axioms and OWL Objects. Retrieving jena Ont Objects and Ont Statements must be performed through the main (this) interface.
      Returns:
      OntGraphModelImpl with search optimizations
    • createSearchModel

      protected org.apache.jena.ontapi.impl.OntGraphModelImpl createSearchModel()
      Derives a model to be used in read operations. If the load nodes cache is enabled the method returns a SearchModel - a facility to optimize read operations, otherwise this same InternalReadGraphModel instance with no optimizations will be returned. A SearchModel contains a Nodes cache inside and, therefore, may take up a lot of memory.
      Returns:
      OntModel
      See Also:
    • useModelSearchOptimization

      protected boolean useModelSearchOptimization(InternalConfig config)
      Answers true if SearchModel optimization should be used to speed up content reading.
      Parameters:
      config - InternalConfig, not null
      Returns:
      boolean
    • safeFindNodeAs

      public <N extends org.apache.jena.rdf.model.RDFNode> N safeFindNodeAs(org.apache.jena.graph.Node node, Class<N> type)
      Specified by:
      safeFindNodeAs in interface org.apache.jena.ontapi.common.OntEnhGraph
      Overrides:
      safeFindNodeAs in class org.apache.jena.ontapi.impl.OntGraphModelImpl
    • getLock

      public org.apache.jena.shared.Lock getLock()
      Jena model method. Since in ONT-API we use another kind of lock, this method is disabled (i.e. R/W Lock inside manager).
      Specified by:
      getLock in interface org.apache.jena.rdf.model.Model
      Overrides:
      getLock in class org.apache.jena.rdf.model.impl.ModelCom
      See Also:
      • ReadWriteLockingGraph
    • enterCriticalSection

      public void enterCriticalSection(boolean requestReadLock)
      Jena model method to work with embedded lock-mechanism. Disabled since in OWL-API there is a different approach (i.e. R/W Lock inside manager).
      Specified by:
      enterCriticalSection in interface org.apache.jena.shared.Lock
      Overrides:
      enterCriticalSection in class org.apache.jena.rdf.model.impl.ModelCom
      See Also:
      • Model.getLock()
    • leaveCriticalSection

      public void leaveCriticalSection()
      Jena model method to work with embedded lock-mechanism. Disabled since in the OWL-API there is a different approach (i.e. R/W Lock inside manager).
      Specified by:
      leaveCriticalSection in interface org.apache.jena.shared.Lock
      Overrides:
      leaveCriticalSection in class org.apache.jena.rdf.model.impl.ModelCom
      See Also:
      • Model.getLock()
    • listOWLImportDeclarations

      public Stream<org.semanticweb.owlapi.model.OWLImportsDeclaration> listOWLImportDeclarations()
    • isOntologyEmpty

      public boolean isOntologyEmpty()
    • listOWLEntities

      public Stream<org.semanticweb.owlapi.model.OWLEntity> listOWLEntities(org.semanticweb.owlapi.model.IRI iri)
    • listPunningIRIs

      public Stream<org.semanticweb.owlapi.model.IRI> listPunningIRIs(boolean withImports)
    • containsOWLDeclaration

      public boolean containsOWLDeclaration(org.semanticweb.owlapi.model.OWLEntity e)
    • listComponentOWLAnonymousIndividuals

      public Stream<org.semanticweb.owlapi.model.OWLAnonymousIndividual> listComponentOWLAnonymousIndividuals()
    • listGraphOWLAnonymousIndividuals

      public Stream<org.semanticweb.owlapi.model.OWLAnonymousIndividual> listGraphOWLAnonymousIndividuals()
    • listOWLClassExpressions

      public Stream<org.semanticweb.owlapi.model.OWLClassExpression> listOWLClassExpressions()
    • listComponentOWLNamedIndividuals

      public Stream<org.semanticweb.owlapi.model.OWLNamedIndividual> listComponentOWLNamedIndividuals()
    • listGraphOWLNamedIndividuals

      public Stream<org.semanticweb.owlapi.model.OWLNamedIndividual> listGraphOWLNamedIndividuals()
    • listOWLClasses

      public Stream<org.semanticweb.owlapi.model.OWLClass> listOWLClasses()
    • listOWLDataProperties

      public Stream<org.semanticweb.owlapi.model.OWLDataProperty> listOWLDataProperties()
    • listOWLObjectProperties

      public Stream<org.semanticweb.owlapi.model.OWLObjectProperty> listOWLObjectProperties()
    • listOWLAnnotationProperties

      public Stream<org.semanticweb.owlapi.model.OWLAnnotationProperty> listOWLAnnotationProperties()
    • listOWLDatatypes

      public Stream<org.semanticweb.owlapi.model.OWLDatatype> listOWLDatatypes()
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLDatatype d)
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLClass c)
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLNamedIndividual i)
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLDataProperty p)
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLObjectProperty p)
    • containsOWLEntity

      public boolean containsOWLEntity(org.semanticweb.owlapi.model.OWLAnnotationProperty p)
    • listOWLAnnotations

      public Stream<org.semanticweb.owlapi.model.OWLAnnotation> listOWLAnnotations()
    • listOWLDeclarationAxioms

      public Stream<org.semanticweb.owlapi.model.OWLDeclarationAxiom> listOWLDeclarationAxioms(org.semanticweb.owlapi.model.OWLEntity entity)
    • listOWLAnnotationAssertionAxioms

      public Stream<org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom> listOWLAnnotationAssertionAxioms(org.semanticweb.owlapi.model.OWLAnnotationSubject subject)
    • listOWLDataPropertyAssertionAxioms

      public Stream<org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom> listOWLDataPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    • listOWLObjectPropertyAssertionAxioms

      public Stream<org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom> listOWLObjectPropertyAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    • listOWLObjectPropertyRangeAxioms

      public Stream<org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom> listOWLObjectPropertyRangeAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLObjectPropertyDomainAxioms

      public Stream<org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom> listOWLObjectPropertyDomainAxioms(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subject)
    • listOWLClassAssertionAxioms

      public Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom> listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLIndividual subject)
    • listOWLClassAssertionAxioms

      public Stream<org.semanticweb.owlapi.model.OWLClassAssertionAxiom> listOWLClassAssertionAxioms(org.semanticweb.owlapi.model.OWLClassExpression object)
    • listOWLSubClassOfAxiomsBySubject

      public Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> listOWLSubClassOfAxiomsBySubject(org.semanticweb.owlapi.model.OWLClass subject)
    • listOWLSubClassOfAxiomsByObject

      public Stream<org.semanticweb.owlapi.model.OWLSubClassOfAxiom> listOWLSubClassOfAxiomsByObject(org.semanticweb.owlapi.model.OWLClass object)
    • listOWLEquivalentClassesAxioms

      public Stream<org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom> listOWLEquivalentClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
    • listOWLDisjointClassesAxioms

      public Stream<org.semanticweb.owlapi.model.OWLDisjointClassesAxiom> listOWLDisjointClassesAxioms(org.semanticweb.owlapi.model.OWLClass clazz)
    • listOWLNaryAxiomAxiomsByOperand

      protected <A extends org.semanticweb.owlapi.model.OWLNaryAxiom<? super K>, K extends org.semanticweb.owlapi.model.OWLObject> Stream<A> listOWLNaryAxiomAxiomsByOperand(K operand, Class<A> type, ByObjectSearcher<A,K> searcher)
      Lists N-Ary Axioms by the given OWLObject operand.
      Type Parameters:
      A - - subtype of OWLNaryAxiom
      K - - subtype of OWLObject
      Parameters:
      operand - InternalReadGraphModel, not null
      type - - class-type of InternalReadGraphModel
      searcher - - ByObjectSearcher for InternalReadGraphModel and InternalReadGraphModel
      Returns:
      a Stream of InternalReadGraphModels
      See Also:
    • listOWLAxioms

      protected <A extends org.semanticweb.owlapi.model.OWLAxiom, K extends org.semanticweb.owlapi.model.OWLObject> Stream<A> listOWLAxioms(ByObjectSearcher<A,K> searcher, Class<A> type, K parameter, InternalConfig config)
      Auxiliary method to extract axioms from the graph. Note: the method returns non-cached axioms.
      Type Parameters:
      A - - OWLAxiom
      K - - OWLObject
      Parameters:
      searcher - - ByObjectSearcher
      type - - Class-type of InternalReadGraphModel
      parameter - - InternalReadGraphModel, to search by
      config - - InternalConfig
      Returns:
      a Stream of InternalReadGraphModels (it is distinct if default settings)
    • listOWLAxioms

      public Stream<org.semanticweb.owlapi.model.OWLAxiom> listOWLAxioms(org.semanticweb.owlapi.model.OWLPrimitive primitive)
    • useReferencingAxiomsSearchOptimization

      protected boolean useReferencingAxiomsSearchOptimization(OWLComponentType type, InternalConfig config)
      Answers true if the graph optimization for referencing axiom functionality is allowed and makes sense.
      Parameters:
      type - OWLComponentType
      config - InternalConfig
      Returns:
      boolean
      See Also:
    • useAxiomsSearchOptimization

      protected boolean useAxiomsSearchOptimization(InternalConfig config)
      Answers true if there is a need to use ByObjectSearcher-search optimization instead of parsing cache.
      Parameters:
      config - InternalConfig
      Returns:
      boolean
      See Also:
    • listOWLAxioms

      public Stream<org.semanticweb.owlapi.model.OWLAxiom> listOWLAxioms()
    • listOWLLogicalAxioms

      public Stream<org.semanticweb.owlapi.model.OWLLogicalAxiom> listOWLLogicalAxioms()
    • listOWLAxioms

      public Stream<org.semanticweb.owlapi.model.OWLAxiom> listOWLAxioms(Iterable<org.semanticweb.owlapi.model.AxiomType<?>> filter)
    • listOWLAxioms

      public <A extends org.semanticweb.owlapi.model.OWLAxiom> Stream<A> listOWLAxioms(Class<A> type)
    • listOWLAxioms

      public <A extends org.semanticweb.owlapi.model.OWLAxiom> Stream<A> listOWLAxioms(Class<A> type, org.semanticweb.owlapi.model.OWLObject object)
    • listOWLAxioms

      public <A extends org.semanticweb.owlapi.model.OWLAxiom> Stream<A> listOWLAxioms(org.semanticweb.owlapi.model.AxiomType<A> type)
    • getOWLAxiomCount

      public long getOWLAxiomCount()
    • contains

      public boolean contains(org.semanticweb.owlapi.model.OWLAxiom a)
    • contains

      public boolean contains(org.semanticweb.owlapi.model.OWLAnnotation a)
    • containsIgnoreAnnotations

      public boolean containsIgnoreAnnotations(org.semanticweb.owlapi.model.OWLAxiom a)
    • containsNoAnnotations

      protected boolean containsNoAnnotations(ObjectMap<? extends org.semanticweb.owlapi.model.OWLAxiom> map)
      Answers true if the specified map does not contain annotated axioms.
      Parameters:
      map - ObjectMap
      Returns:
      boolean
    • findUsedContentContainer

      protected Optional<org.semanticweb.owlapi.model.OWLObject> findUsedContentContainer(org.semanticweb.owlapi.model.OWLObject entity, org.semanticweb.owlapi.model.OWLObject... excludes)
      Finds the container object which contains the given component object somewhere in its depths.
      Parameters:
      entity - OWLObject to check, not null
      excludes - Array, with containers (that must be either OWLAxiom or OWLAnnotation) to exclude from consideration
      Returns:
      Optional around the container object
    • hasManuallyAddedAxioms

      protected boolean hasManuallyAddedAxioms()
      Answers whether there are manually added axioms in the cache. For optimization: if the axiomatic model has not been changed after last reading, then the cache is in a state strictly defined by the internal mechanisms, and so there is no need to reset the cache.
      Returns:
      boolean
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.jena.rdf.model.impl.ModelCom
    • createMapStore

      protected <K extends Enum<K>, V> Map<K,V> createMapStore(Class<K> type, Stream<K> keys, Function<K,V> loader)
      Creates a Map that has Enum-keys using the specified parameters.
      Type Parameters:
      K - subtype of Enum
      V - anything, a value type
      Parameters:
      type - Class-type of InternalReadGraphModel
      keys - Stream with InternalReadGraphModel-keys
      loader - Function to collect InternalReadGraphModel-values
      Returns:
      Map
    • listComponents

      protected <O extends org.semanticweb.owlapi.model.OWLObject> Stream<O> listComponents(OWLComponentType type)
      Lists all OWL-objects of the specified type.
      Type Parameters:
      O - type of owl-object
      Parameters:
      type - OWLComponentType, not null
      Returns:
      Stream of OWLObjects
      See Also:
    • containsComponent

      protected boolean containsComponent(OWLComponentType type, org.semanticweb.owlapi.model.OWLObject o)
      Tests if the given component-type pair is present in the signature.
      Parameters:
      type - OWLComponentType, not null
      o - OWLObject of the type
      Returns:
      boolean
      See Also:
    • getComponentCache

      protected <O extends org.semanticweb.owlapi.model.OWLObject> ObjectMap<O> getComponentCache(OWLComponentType type)
      Gets components for the given type in the form of ObjectMap.
      Type Parameters:
      O - OWLObject class-type that corresponds the type
      Parameters:
      type - OWLComponentType, not null
      Returns:
      a ObjectMap of InternalReadGraphModels
      See Also:
    • createComponentObjectMap

      protected ObjectMap<org.semanticweb.owlapi.model.OWLObject> createComponentObjectMap(OWLComponentType type)
      Creates a ObjectMap container for the given OWLComponentType.
      Parameters:
      type - OWLComponentType, not null
      Returns:
      ObjectMap
      See Also:
    • listOWLObjects

      protected Iterator<ONTObject<org.semanticweb.owlapi.model.OWLObject>> listOWLObjects(OWLComponentType type, InternalConfig conf)
      Lists all objects of the specified type.
      Parameters:
      type - OWLComponentType - owl object type, that is used in the object's cache
      conf - InternalConfig
      Returns:
      an Iterator of ONTObject with the given type
    • useObjectsSearchOptimization

      protected boolean useObjectsSearchOptimization(InternalConfig config)
      Answers true if ObjectsSearcher optimization should be used to fill the component cache for the specified type.
      Parameters:
      config - InternalConfig, not null
      Returns:
      boolean
      See Also:
    • createComponentStore

      protected Map<OWLComponentType,ObjectMap<org.semanticweb.owlapi.model.OWLObject>> createComponentStore()
      Creates a component store Map.
      Returns:
      Map
      See Also:
    • selectContentContainers

      protected Stream<ONTObject<org.semanticweb.owlapi.model.OWLObject>> selectContentContainers(OWLComponentType type)
      Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
      Parameters:
      type - OWLComponentType, not null
      Returns:
      Stream of ONTObject - containers from the content cache
    • selectContentObjects

      protected Stream<org.semanticweb.owlapi.model.OWLObject> selectContentObjects(OWLComponentType type)
      Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
      Parameters:
      type - OWLComponentType, not null
      Returns:
      Stream of OWLObject - containers from the content cache
    • selectContent

      protected <R> Stream<R> selectContent(OWLComponentType type, Function<OWLTopObjectType,Stream<R>> toStream, BiPredicate<OWLTopObjectType,R> withAnnotations)
      Selects the objects from the InternalReadGraphModel.content cache, that may hold a component of the given type.
      Type Parameters:
      R - anything
      Parameters:
      type - OWLComponentType, not null
      toStream - a Function to provide Stream of InternalReadGraphModel for a given OWLTopObjectType, not null
      withAnnotations - a BiPredicate to select only those InternalReadGraphModel, which have OWL annotations, not null
      Returns:
      Stream of InternalReadGraphModel - containers from the content cache
    • filteredAxiomsCaches

      protected Stream<ObjectMap<? extends org.semanticweb.owlapi.model.OWLAxiom>> filteredAxiomsCaches(Stream<OWLTopObjectType> keys)
      Maps the given Stream of OWLTopObjectType to ObjectMap. The input must contain only those elements for which the OWLTopObjectType.isAxiom() method returns true.
      Parameters:
      keys - Stream of OWLTopObjectType
      Returns:
      Stream of ObjectMap containing OWLAxioms
    • getAxiomsCache

      protected ObjectMap<org.semanticweb.owlapi.model.OWLAxiom> getAxiomsCache(OWLTopObjectType key)
      Gets the ObjectMap for the given OWLTopObjectType. The OWLTopObjectType.isAxiom() method for the input must return true.
      Parameters:
      key - OWLTopObjectType, not null
      Returns:
      ObjectMap
    • getHeaderCache

      protected ObjectMap<org.semanticweb.owlapi.model.OWLAnnotation> getHeaderCache()
      Gets an ontology header content cache-store.
      Returns:
      ObjectMap
    • getContentCache

      protected <X extends org.semanticweb.owlapi.model.OWLObject> ObjectMap<X> getContentCache(OWLTopObjectType key)
      Gets an ontology content ObjectMap-cache.
      Type Parameters:
      X - either OWLAxiom or OWLAnnotation
      Parameters:
      key - OWLTopObjectType, not null
      Returns:
      ObjectMap
      See Also:
    • getContentStore

      protected Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>> getContentStore()
      Gets a content store Map.
      Returns:
      Map
    • contentCaches

      protected Stream<ObjectMap<?>> contentCaches()
      Returns:
      a Stream of ObjectMaps
    • createContentStore

      protected Map<OWLTopObjectType,ObjectMap<? extends org.semanticweb.owlapi.model.OWLObject>> createContentStore()
      Creates a content store Map.
      Returns:
      Map
      See Also:
    • createContentObjectMap

      protected ObjectMap<org.semanticweb.owlapi.model.OWLObject> createContentObjectMap(OWLTopObjectType key)
      Creates a ObjectMap container for the given OWLTopObjectType.
      Parameters:
      key - OWLTopObjectType
      Returns:
      ObjectMap
      See Also: