Class ONTSWRLAtomImpl.OPB
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<org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty>
com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl<org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty,org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>
com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl.Binary<org.apache.jena.ontapi.model.OntObjectProperty,org.apache.jena.ontapi.model.OntSWRL.IArg,org.apache.jena.ontapi.model.OntSWRL.IArg,org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty,org.semanticweb.owlapi.model.OWLObjectPropertyExpression,org.semanticweb.owlapi.model.SWRLIArgument,org.semanticweb.owlapi.model.SWRLIArgument,org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>
com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl.ObjectBinary<org.apache.jena.ontapi.model.OntObjectProperty,org.semanticweb.owlapi.model.OWLObjectPropertyExpression,org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty,org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>
com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl.OPB
- All Implemented Interfaces:
AsNode,AsRDFNode,HasObjectFactory,ModelObject<org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>,ONTComposite,WithContent<ONTExpressionImpl<org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty>>,ONTObject<org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>,Serializable,Comparable<org.semanticweb.owlapi.model.OWLObject>,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.OWLObject,org.semanticweb.owlapi.model.SWRLAtom,org.semanticweb.owlapi.model.SWRLBinaryAtom<org.semanticweb.owlapi.model.SWRLIArgument,,org.semanticweb.owlapi.model.SWRLIArgument> org.semanticweb.owlapi.model.SWRLObject,org.semanticweb.owlapi.model.SWRLObjectPropertyAtom
- Enclosing class:
ONTSWRLAtomImpl<ONT extends org.apache.jena.ontapi.model.OntSWRL.Atom<?>,OWL extends org.semanticweb.owlapi.model.SWRLAtom>
public static class ONTSWRLAtomImpl.OPB
extends ONTSWRLAtomImpl.ObjectBinary<org.apache.jena.ontapi.model.OntObjectProperty,org.semanticweb.owlapi.model.OWLObjectPropertyExpression,org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty,org.semanticweb.owlapi.model.SWRLObjectPropertyAtom>
implements org.semanticweb.owlapi.model.SWRLObjectPropertyAtom
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl
ONTSWRLAtomImpl.Binary<ONT_P extends org.apache.jena.ontapi.model.OntObject,ONT_F extends org.apache.jena.ontapi.model.OntSWRL.Arg, ONT_S extends org.apache.jena.ontapi.model.OntSWRL.Arg, ONT_R extends org.apache.jena.ontapi.model.OntSWRL.Atom.Binary<ONT_P, ONT_F, ONT_S>, OWL_P extends org.semanticweb.owlapi.model.OWLObject & org.semanticweb.owlapi.model.SWRLPredicate, OWL_F extends org.semanticweb.owlapi.model.SWRLArgument, OWL_S extends org.semanticweb.owlapi.model.SWRLArgument, OWL_R extends org.semanticweb.owlapi.model.SWRLBinaryAtom<OWL_F, OWL_S>>, ONTSWRLAtomImpl.BN, ONTSWRLAtomImpl.CU, ONTSWRLAtomImpl.DIB, ONTSWRLAtomImpl.DPB, ONTSWRLAtomImpl.DU, ONTSWRLAtomImpl.ObjectBinary<ONT_P extends org.apache.jena.ontapi.model.OntObjectProperty, OWL_P extends org.semanticweb.owlapi.model.OWLObjectPropertyExpression, ONT_R extends org.apache.jena.ontapi.model.OntSWRL.Atom.Binary<ONT_P, org.apache.jena.ontapi.model.OntSWRL.IArg, org.apache.jena.ontapi.model.OntSWRL.IArg>, OWL_R extends org.semanticweb.owlapi.model.SWRLBinaryAtom<org.semanticweb.owlapi.model.SWRLIArgument, org.semanticweb.owlapi.model.SWRLIArgument>>, ONTSWRLAtomImpl.OPB, ONTSWRLAtomImpl.SIB, ONTSWRLAtomImpl.Unary<ONT_P extends org.apache.jena.ontapi.model.OntObject, ONT_A extends org.apache.jena.ontapi.model.OntSWRL.Arg, ONT_R extends org.apache.jena.ontapi.model.OntSWRL.Atom.Unary<ONT_P, ONT_A>, OWL_P extends org.semanticweb.owlapi.model.OWLObject & org.semanticweb.owlapi.model.SWRLPredicate, OWL_A extends org.semanticweb.owlapi.model.SWRLArgument, OWL_R extends org.semanticweb.owlapi.model.SWRLUnaryAtom<OWL_A>> -
Field Summary
Fields inherited from class com.github.owlcs.ontapi.internal.objects.ONTExpressionImpl
contentFields inherited from class com.github.owlcs.ontapi.internal.objects.ONTResourceImpl
nodeFields inherited from class com.github.owlcs.ontapi.internal.objects.ONTObjectImpl
modelFields inherited from class com.github.owlcs.ontapi.owlapi.OWLObjectImpl
DEFAULT_COMPARATOR, hashCode, NO_ANNOTATIONS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOPB(BlankNodeId n, Supplier<org.apache.jena.ontapi.model.OntModel> m) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectPropertyAnswers theRDFNodeassociated with this object.protected Object[]collectContent(org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty obj, ONTObjectFactory factory) Collects the cache Array.org.semanticweb.owlapi.model.SWRLObjectPropertyAtomdefault booleanAnswerstrueiff this is anOWL Annotation Property.default booleanAnswerstrueiff this is anOWL Anonymous Individual.default booleanAnswerstrueiff this is anOWL Class Expression.default booleanAnswerstrueiff this is anOWL Data Property.default booleanAnswerstrueiff this is anOWL Datatype.default booleanAnswerstrueiff this is anOWL Class.default booleanAnswerstrueiff this is anOWL Named Individual.default booleanAnswerstrueiff this is anOWL Object Property.Methods inherited from class com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl.ObjectBinary
canContainClassExpressions, canContainDataProperties, canContainDatatypes, canContainNamedClasses, containsNamedIndividual, containsObjectProperty, getAnonymousIndividualSet, getNamedIndividualSet, getObjectPropertySet, getSignatureSet, individualsMethods inherited from class com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl.Binary
allArguments, eraseModel, findONTFirstArgument, findONTPredicate, findONTSecondArgument, getFirstArgument, getFirstONTArgument, getONTPredicate, getPredicate, getSecondArgument, getSecondONTArgument, initContent, objectsMethods inherited from class com.github.owlcs.ontapi.internal.objects.ONTSWRLAtomImpl
canContainAnnotationProperties, create, create, datatypes, fromDArgument, fromIArgument, getOWLObject, toDArgument, toIArgumentMethods inherited from class com.github.owlcs.ontapi.internal.objects.ONTExpressionImpl
asNode, collectContent, equals, getBlankNodeId, getContentCache, toCE, toContentItem, toContentItem, toContentItem, toContentItem, toContentItem, toContentItem, toDR, toIndividual, toLiteral, toNDP, toOPE, triplesMethods inherited from class com.github.owlcs.ontapi.internal.objects.ONTResourceImpl
as, getLiteralLabel, getURI, sameAsMethods inherited from class com.github.owlcs.ontapi.internal.objects.ONTObjectImpl
containsAnnotationProperty, containsDataProperty, containsDatatype, containsEntity, containsEntityInSignature, containsNamedClass, createContentSet, eraseModel, getAnnotationPropertySet, getClassExpressionSet, getDataPropertySet, getDatatypeSet, getModel, getNamedClassSet, getObjectFactory, getPersonalityModel, toStringMethods 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, toContentListMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature
annotationPropertiesInSignature, getAnnotationPropertiesInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasAnonymousIndividuals
anonymousIndividuals, getAnonymousIndividualsMethods inherited from interface org.semanticweb.owlapi.model.HasClassesInSignature
classesInSignature, getClassesInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasComponents
componentsAnnotationsFirst, componentsWithoutAnnotationsMethods inherited from interface org.semanticweb.owlapi.model.HasContainsEntityInSignature
containsEntityInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasDataPropertiesInSignature
dataPropertiesInSignature, getDataPropertiesInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasDatatypesInSignature
datatypesInSignature, getDatatypesInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasIndividualsInSignature
getIndividualsInSignature, individualsInSignatureMethods inherited from interface com.github.owlcs.ontapi.internal.HasObjectFactory
getDataFactoryMethods inherited from interface org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignatureMethods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignatureMethods inherited from interface org.semanticweb.owlapi.model.IsAnonymous
isAnonymous, isNamedMethods inherited from interface com.github.owlcs.ontapi.internal.objects.ModelObject
getModelMethods inherited from interface com.github.owlcs.ontapi.internal.objects.ONTComposite
canContainAnonymousIndividuals, canContainNamedIndividuals, canContainObjectPropertiesMethods inherited from interface org.semanticweb.owlapi.model.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressionsMethods inherited from interface org.semanticweb.owlapi.model.SWRLAtom
allArguments, getAllArgumentsMethods inherited from interface org.semanticweb.owlapi.model.SWRLBinaryAtom
components, getFirstArgument, getSecondArgument, initHashCodeMethods inherited from interface org.semanticweb.owlapi.model.SWRLObjectPropertyAtom
accept, accept, accept, accept, getPredicate, hashIndex, typeIndexMethods inherited from interface com.github.owlcs.ontapi.internal.objects.WithContent
clearContent, createContentCache, getContent, hasContent, putContent
-
Constructor Details
-
OPB
-
-
Method Details
-
asRDFNode
public org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty asRDFNode()Description copied from interface:AsRDFNodeAnswers theRDFNodeassociated with this object.- Specified by:
asRDFNodein interfaceAsRDFNode- Specified by:
asRDFNodein classONTExpressionImpl<org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty>- Returns:
RDF Model Node, cannot benull
-
getSimplified
public org.semanticweb.owlapi.model.SWRLObjectPropertyAtom getSimplified()- Specified by:
getSimplifiedin interfaceorg.semanticweb.owlapi.model.SWRLObjectPropertyAtom
-
collectContent
protected Object[] collectContent(org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty obj, ONTObjectFactory factory) Description copied from class:ONTExpressionImplCollects the cache Array. The array was chosen as the best option in sense of memory consumption and access speed.- Overrides:
collectContentin classONTSWRLAtomImpl.Binary<org.apache.jena.ontapi.model.OntObjectProperty,org.apache.jena.ontapi.model.OntSWRL.IArg, org.apache.jena.ontapi.model.OntSWRL.IArg, org.apache.jena.ontapi.model.OntSWRL.Atom.WithObjectProperty, org.semanticweb.owlapi.model.OWLObjectPropertyExpression, org.semanticweb.owlapi.model.SWRLIArgument, org.semanticweb.owlapi.model.SWRLIArgument, org.semanticweb.owlapi.model.SWRLObjectPropertyAtom> - Parameters:
obj-ONTExpressionImpl, notnullfactory-ONTObjectFactory, notnull- Returns:
- an
ArrayofObjects (content items) - See Also:
-
isClassExpression
default boolean isClassExpression()Answerstrueiff this is anOWL Class Expression.- Returns:
- boolean
-
isAnonymousIndividual
default boolean isAnonymousIndividual()Answerstrueiff this is anOWL Anonymous Individual.- Returns:
- boolean
-
isNamedClass
default boolean isNamedClass()Answerstrueiff this is anOWL Class.- Returns:
- boolean
-
isNamedIndividual
default boolean isNamedIndividual()Answerstrueiff this is anOWL Named Individual.- Returns:
- boolean
-
isDatatype
default boolean isDatatype()Answerstrueiff this is anOWL Datatype.- Returns:
- boolean
-
isObjectProperty
default boolean isObjectProperty()Answerstrueiff this is anOWL Object Property.- Returns:
- boolean
-
isDataProperty
default boolean isDataProperty()Answerstrueiff this is anOWL Data Property.- Returns:
- boolean
-
isAnnotationProperty
default boolean isAnnotationProperty()Answerstrueiff this is anOWL Annotation Property.- Returns:
- boolean
-