Class ONTAnonymousClassExpressionImpl.WithObjectProperty<ONT extends OntClass.RestrictionCE<OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>
- java.lang.Object
-
- com.github.owlcs.ontapi.owlapi.OWLObjectImpl
-
- com.github.owlcs.ontapi.internal.objects.ONTObjectImpl
-
- com.github.owlcs.ontapi.internal.objects.ONTResourceImpl
-
- com.github.owlcs.ontapi.internal.objects.ONTExpressionImpl<ONT>
-
- com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl<ONT,OWL>
-
- com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl.Simple<ONT,OWL>
-
- com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl.Restriction<ONT,OWL>
-
- com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl.WithObjectProperty<ONT,OWL>
-
- Type Parameters:
ONT
- - a subtype ofOntClass.RestrictionCE
OWL
- - a subtype ofOWLRestriction
that matchesONTAnonymousClassExpressionImpl.WithObjectProperty
- All Implemented Interfaces:
AsNode
,AsRDFNode
,HasObjectFactory
,ModelObject<OWL>
,ONTComposite
,WithContent<ONTExpressionImpl<ONT>>
,ONTObject<OWL>
,Serializable
,Comparable<org.semanticweb.owlapi.model.OWLObject>
,org.semanticweb.owlapi.model.AsOWLClass
,org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
,org.semanticweb.owlapi.model.HasAnonymousIndividuals
,org.semanticweb.owlapi.model.HasClassesInSignature
,org.semanticweb.owlapi.model.HasComponents
,org.semanticweb.owlapi.model.HasContainsEntityInSignature
,org.semanticweb.owlapi.model.HasDataPropertiesInSignature
,org.semanticweb.owlapi.model.HasDatatypesInSignature
,org.semanticweb.owlapi.model.HasHashIndex
,org.semanticweb.owlapi.model.HasIndex
,org.semanticweb.owlapi.model.HasIndividualsInSignature
,org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
,org.semanticweb.owlapi.model.HasSignature
,org.semanticweb.owlapi.model.IsAnonymous
,org.semanticweb.owlapi.model.OWLAnonymousClassExpression
,org.semanticweb.owlapi.model.OWLClassExpression
,org.semanticweb.owlapi.model.OWLObject
,org.semanticweb.owlapi.model.OWLPropertyRange
,org.semanticweb.owlapi.model.SWRLPredicate
- Direct Known Subclasses:
ONTAnonymousClassExpressionImpl.OHS
,ONTAnonymousClassExpressionImpl.OHV
,ONTAnonymousClassExpressionImpl.WithClassAndObjectProperty
- Enclosing class:
- ONTAnonymousClassExpressionImpl<ONT extends OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>
protected abstract static class ONTAnonymousClassExpressionImpl.WithObjectProperty<ONT extends OntClass.RestrictionCE<OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction> extends ONTAnonymousClassExpressionImpl.Restriction<ONT,OWL>
Represents a class expression with a reference to an object property expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl
ONTAnonymousClassExpressionImpl.CF, ONTAnonymousClassExpressionImpl.DAVF, ONTAnonymousClassExpressionImpl.DEC, ONTAnonymousClassExpressionImpl.DHV, ONTAnonymousClassExpressionImpl.DMAC, ONTAnonymousClassExpressionImpl.DMIC, ONTAnonymousClassExpressionImpl.DSVF, ONTAnonymousClassExpressionImpl.IF, ONTAnonymousClassExpressionImpl.NDAVF, ONTAnonymousClassExpressionImpl.NDSVF, ONTAnonymousClassExpressionImpl.OAVF, ONTAnonymousClassExpressionImpl.OEC, ONTAnonymousClassExpressionImpl.OF, ONTAnonymousClassExpressionImpl.OHS, ONTAnonymousClassExpressionImpl.OHV, ONTAnonymousClassExpressionImpl.OMAC, ONTAnonymousClassExpressionImpl.OMIC, ONTAnonymousClassExpressionImpl.OSVF, ONTAnonymousClassExpressionImpl.Restriction<ONT extends OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.Simple<ONT extends OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.UF, ONTAnonymousClassExpressionImpl.WithClassAndObjectProperty<ONT extends OntClass.ComponentRestrictionCE<OntClass,OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithClassAndObjectPropertyAndCardinality<ONT extends OntClass.CardinalityRestrictionCE<OntClass,OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithClassMembers<ONT extends OntClass.ComponentsCE<OntClass>,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends OntClass.RestrictionCE<OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends OntClass.RestrictionCE<OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyAndCardinality<ONT extends OntClass.CardinalityRestrictionCE<OntDataRange,OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyNary<ONT extends OntClass.NaryRestrictionCE<OntDataRange,OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyUnary<ONT extends OntClass.ComponentRestrictionCE<OntDataRange,OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithMembers<ONT_M extends OntObject,ONT_C extends OntClass.ComponentsCE<ONT_M>,OWL_M extends org.semanticweb.owlapi.model.OWLObject,OWL_C extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.WithObjectProperty<ONT extends OntClass.RestrictionCE<OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>
-
-
Field Summary
-
Fields inherited from class com.github.owlcs.ontapi.internal.objects.ONTExpressionImpl
content
-
Fields inherited from class com.github.owlcs.ontapi.internal.objects.ONTResourceImpl
node
-
Fields inherited from class com.github.owlcs.ontapi.internal.objects.ONTObjectImpl
model
-
Fields inherited from class com.github.owlcs.ontapi.owlapi.OWLObjectImpl
DEFAULT_COMPARATOR, hashCode, NO_ANNOTATIONS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithObjectProperty(org.apache.jena.graph.BlankNodeId n, Supplier<OntModel> m)
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description protected Object[]
collectContent(ONT ce, ONTObjectFactory factory)
Collects the cache Array.protected ONTObject<? extends org.semanticweb.owlapi.model.OWLObjectPropertyExpression>
findOPE(ModelObjectFactory factory)
ONTObject<? extends org.semanticweb.owlapi.model.OWLObjectPropertyExpression>
getONTObjectPropertyExpression()
org.semanticweb.owlapi.model.OWLObjectPropertyExpression
getProperty()
protected Object[]
initContent(ONT ce, ONTObjectFactory factory)
Initializes the object's content and calculates its hashcode.default boolean
isAnnotationProperty()
Answerstrue
iff this is anOWL Annotation Property
.default boolean
isAnonymousIndividual()
Answerstrue
iff this is anOWL Anonymous Individual
.default boolean
isDataProperty()
Answerstrue
iff this is anOWL Data Property
.default boolean
isDatatype()
Answerstrue
iff this is anOWL Datatype
.default boolean
isNamedClass()
Answerstrue
iff this is anOWL Class
.default boolean
isNamedIndividual()
Answerstrue
iff this is anOWL Named Individual
.default boolean
isObjectProperty()
Answerstrue
iff this is anOWL Object Property
.Stream<ONTObject<? extends org.semanticweb.owlapi.model.OWLObject>>
objects()
Lists all components in the form ofStream
.-
Methods inherited from class com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl
asConjunctSet, asDisjunctSet, canContainAnnotationProperties, conjunctSet, containsConjunct, create, create, disjunctSet, getComplementNNF, getNNF, getNNFClassVisitor, getObjectComplementOf, getOWLObject, isClassExpression, isOWLNothing, isOWLThing
-
Methods inherited from class com.github.owlcs.ontapi.internal.objects.ONTExpressionImpl
asNode, asRDFNode, collectContent, equals, getBlankNodeId, getContentCache, toCE, toContentItem, toContentItem, toContentItem, toContentItem, toContentItem, toContentItem, toDR, toIndividual, toLiteral, toNDP, toOPE, triples
-
Methods inherited from class com.github.owlcs.ontapi.internal.objects.ONTResourceImpl
as, getLiteralLabel, getURI, sameAs
-
Methods inherited from class com.github.owlcs.ontapi.internal.objects.ONTObjectImpl
containsAnnotationProperty, containsDataProperty, containsDatatype, containsEntity, containsEntityInSignature, containsNamedClass, containsNamedIndividual, containsObjectProperty, createContentSet, eraseModel, getAnnotationPropertySet, getAnonymousIndividualSet, getClassExpressionSet, getDataPropertySet, getDatatypeSet, getModel, getNamedClassSet, getNamedIndividualSet, getObjectFactory, getObjectPropertySet, getPersonalityModel, getSignatureSet, toString
-
Methods inherited from class com.github.owlcs.ontapi.owlapi.OWLObjectImpl
annotationPropertiesInSignature, anonymousIndividuals, classesInSignature, compareIterators, compareTo, createSet, createSet, createSortedSet, createSortedSet, dataPropertiesInSignature, datatypesInSignature, equalIterators, equalStreams, forOutput, getAnnotationPropertiesInSignature, getAnonymousIndividuals, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, hashCode, individualsInSignature, mergeAnnotations, nestedClassExpressions, notSame, objectPropertiesInSignature, prepareAnnotations, signature, toContentList
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasAnonymousIndividuals
anonymousIndividuals, getAnonymousIndividuals
-
Methods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasComponents
components, componentsAnnotationsFirst, componentsWithoutAnnotations
-
Methods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignature
-
Methods inherited from interface com.github.owlcs.ontapi.internal.HasObjectFactory
getDataFactory
-
Methods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
-
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
-
Methods inherited from interface com.github.owlcs.ontapi.internal.objects.ModelObject
eraseModel, getModel
-
Methods inherited from interface com.github.owlcs.ontapi.internal.objects.ONTComposite
canContainAnonymousIndividuals, canContainClassExpressions, canContainDataProperties, canContainDatatypes, canContainNamedClasses, canContainNamedIndividuals, canContainObjectProperties
-
Methods inherited from interface org.semanticweb.owlapi.model.OWLClassExpression
accept, accept, getClassExpressionType, isClassExpressionLiteral
-
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
accept, accept, getNestedClassExpressions, hasSharedStructure, initHashCode, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressions
-
Methods inherited from interface com.github.owlcs.ontapi.internal.objects.WithContent
clearContent, createContentCache, getContent, hasContent, putContent
-
-
-
-
Method Detail
-
objects
public Stream<ONTObject<? extends org.semanticweb.owlapi.model.OWLObject>> objects()
Description copied from interface:ONTComposite
Lists all components in the form ofStream
. Neither this object nor parts of its components are not included in the result: it content only top-level direct components. Note thatHasComponents.components()
may also contain non-OWLObject
things: integers (e.g. cardinality),List
s (e.g.ObjectOneOf
), etc, while this method is only forOWLObject
s which are represented asONTObject
s.- Returns:
Stream
ofONTObject
s- See Also:
ONTComposite.objects()
,HasComponents.components()
,HasOperands.operands()
-
getProperty
public org.semanticweb.owlapi.model.OWLObjectPropertyExpression getProperty()
-
getONTObjectPropertyExpression
public ONTObject<? extends org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getONTObjectPropertyExpression()
-
findOPE
protected ONTObject<? extends org.semanticweb.owlapi.model.OWLObjectPropertyExpression> findOPE(ModelObjectFactory factory)
-
collectContent
protected Object[] collectContent(ONT ce, ONTObjectFactory factory)
Description copied from class:ONTExpressionImpl
Collects the cache Array. The array was chosen as the best option in sense of memory consumption and access speed.- Specified by:
collectContent
in classONTExpressionImpl<ONT extends OntClass.RestrictionCE<OntObjectProperty>>
- Parameters:
ce
-ONTExpressionImpl
, notnull
factory
-ONTObjectFactory
, notnull
- Returns:
- an
Array
ofObject
s (content items) - See Also:
ONTExpressionImpl.initContent(OntObject, ONTObjectFactory)
-
initContent
protected Object[] initContent(ONT ce, ONTObjectFactory factory)
Description copied from class:ONTExpressionImpl
Initializes the object's content and calculates its hashcode. Together, this must be faster.- Specified by:
initContent
in classONTExpressionImpl<ONT extends OntClass.RestrictionCE<OntObjectProperty>>
- Parameters:
ce
-ONTExpressionImpl
the source Jena resource, notnull
factory
-ONTObjectFactory
, notnull
- Returns:
- an
Array
ofObject
s (content items) - See Also:
ONTExpressionImpl.collectContent(OntObject, ONTObjectFactory)
,OWLObject.initHashCode()
-
isAnonymousIndividual
public default boolean isAnonymousIndividual()
Answerstrue
iff this is anOWL Anonymous Individual
.- Returns:
- boolean
-
isNamedClass
public default boolean isNamedClass()
Answerstrue
iff this is anOWL Class
.- Returns:
- boolean
-
isNamedIndividual
public default boolean isNamedIndividual()
Answerstrue
iff this is anOWL Named Individual
.- Returns:
- boolean
-
isDatatype
public default boolean isDatatype()
Answerstrue
iff this is anOWL Datatype
.- Returns:
- boolean
-
isObjectProperty
public default boolean isObjectProperty()
Answerstrue
iff this is anOWL Object Property
.- Returns:
- boolean
-
isDataProperty
public default boolean isDataProperty()
Answerstrue
iff this is anOWL Data Property
.- Returns:
- boolean
-
isAnnotationProperty
public default boolean isAnnotationProperty()
Answerstrue
iff this is anOWL Annotation Property
.- Returns:
- boolean
-
-