Class ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,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.WithDataProperty<ONT,OWL>
-
- com.github.owlcs.ontapi.internal.objects.ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT,OWL>
-
- Type Parameters:
ONT
- - a subtype ofOntClass
OWL
- - a subtype ofOWLRestriction
that matchesONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty
- 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.WithDataRangeAndDataPropertyNary
,ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyUnary
- Enclosing class:
- ONTAnonymousClassExpressionImpl<ONT extends com.github.sszuev.jena.ontapi.model.OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>
protected abstract static class ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,OWL extends org.semanticweb.owlapi.model.OWLRestriction> extends ONTAnonymousClassExpressionImpl.WithDataProperty<ONT,OWL>
Represents a data property restriction that has a reference to a data range.- 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 com.github.sszuev.jena.ontapi.model.OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.Simple<ONT extends com.github.sszuev.jena.ontapi.model.OntClass,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.UF, ONTAnonymousClassExpressionImpl.WithClassAndObjectProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.ComponentRestriction<com.github.sszuev.jena.ontapi.model.OntClass,com.github.sszuev.jena.ontapi.model.OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithClassAndObjectPropertyAndCardinality<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.CardinalityRestriction<com.github.sszuev.jena.ontapi.model.OntClass,com.github.sszuev.jena.ontapi.model.OntObjectProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithClassMembers<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.CollectionOf<com.github.sszuev.jena.ontapi.model.OntClass>,OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataPropertyUnary<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.UnaryRestriction<com.github.sszuev.jena.ontapi.model.OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyAndCardinality<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.CardinalityRestriction<com.github.sszuev.jena.ontapi.model.OntDataRange,com.github.sszuev.jena.ontapi.model.OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyNary<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.NaryRestriction<com.github.sszuev.jena.ontapi.model.OntDataRange,com.github.sszuev.jena.ontapi.model.OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyUnary<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.ComponentRestriction<com.github.sszuev.jena.ontapi.model.OntDataRange,com.github.sszuev.jena.ontapi.model.OntDataProperty>,OWL extends org.semanticweb.owlapi.model.OWLRestriction>, ONTAnonymousClassExpressionImpl.WithMembers<ONT_M extends com.github.sszuev.jena.ontapi.model.OntObject,ONT_C extends com.github.sszuev.jena.ontapi.model.OntClass.CollectionOf<ONT_M>,OWL_M extends org.semanticweb.owlapi.model.OWLObject,OWL_C extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>, ONTAnonymousClassExpressionImpl.WithObjectProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.UnaryRestriction<com.github.sszuev.jena.ontapi.model.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
WithDataRangeAndDataProperty(org.apache.jena.graph.BlankNodeId n, Supplier<com.github.sszuev.jena.ontapi.model.OntModel> m)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Default Methods Modifier and Type Method Description protected Object[]
collectContent(ONT ce, ONTObjectFactory factory)
Collects the cache Array.OWL
eraseModel()
Answers with an object that equals to theONTObject.getOWLObject()
, but without any model information inside.protected ONTObject<? extends org.semanticweb.owlapi.model.OWLDataRange>
findDR(ModelObjectFactory factory)
protected abstract OWL
fromFactory(org.semanticweb.owlapi.model.OWLDataProperty p, org.semanticweb.owlapi.model.OWLDataRange d)
org.semanticweb.owlapi.model.OWLDataRange
getFiller()
ONTObject<? extends org.semanticweb.owlapi.model.OWLDataRange>
getONTDataRange()
protected abstract com.github.sszuev.jena.ontapi.model.OntDataRange
getValue(ONT ce)
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.WithDataProperty
canContainAnonymousIndividuals, canContainNamedClasses, canContainNamedIndividuals, canContainObjectProperties, findNDP, getClassExpressionSet, getOntDataProperty, getONTDataProperty, getProperty
-
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, 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
getModel
-
Methods inherited from interface com.github.owlcs.ontapi.internal.objects.ONTComposite
canContainClassExpressions, canContainDataProperties, canContainDatatypes
-
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
-
-
-
-
Constructor Detail
-
WithDataRangeAndDataProperty
protected WithDataRangeAndDataProperty(org.apache.jena.graph.BlankNodeId n, Supplier<com.github.sszuev.jena.ontapi.model.OntModel> m)
-
-
Method Detail
-
getValue
protected abstract com.github.sszuev.jena.ontapi.model.OntDataRange getValue(ONT ce)
-
getFiller
public org.semanticweb.owlapi.model.OWLDataRange getFiller()
-
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.- Specified by:
objects
in interfaceONTComposite
- Overrides:
objects
in classONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,OWL extends org.semanticweb.owlapi.model.OWLRestriction>
- Returns:
Stream
ofONTObject
s- See Also:
ONTComposite.objects()
,HasComponents.components()
,HasOperands.operands()
-
getONTDataRange
public ONTObject<? extends org.semanticweb.owlapi.model.OWLDataRange> getONTDataRange()
-
findDR
protected ONTObject<? extends org.semanticweb.owlapi.model.OWLDataRange> findDR(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.- Overrides:
collectContent
in classONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,OWL extends org.semanticweb.owlapi.model.OWLRestriction>
- 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.- Overrides:
initContent
in classONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,OWL extends org.semanticweb.owlapi.model.OWLRestriction>
- 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()
-
fromFactory
protected abstract OWL fromFactory(org.semanticweb.owlapi.model.OWLDataProperty p, org.semanticweb.owlapi.model.OWLDataRange d)
-
eraseModel
public OWL eraseModel()
Description copied from interface:ModelObject
Answers with an object that equals to theONTObject.getOWLObject()
, but without any model information inside.Such unattached object can be used in whatever way, while the object
ONTObject.getOWLObject()
requires more attention: it will not allow GC to dispose of the model, as there is a strong reference (or a facility to get such reference) to the model inside that object.- Returns:
ModelObject
- See Also:
ONTObject.getOWLObject()
-
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
-
-