Package org.semanticweb.owlapi.model
Interface OWLInverseObjectPropertiesAxiom
- All Superinterfaces:
Comparable<OWLObject>
,HasAnnotationPropertiesInSignature
,HasAnnotations
,HasAnonymousIndividuals
,HasClassesInSignature
,HasComponents
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasHashIndex
,HasIndex
,HasIndividualsInSignature
,HasObjectPropertiesInSignature
,HasOperands<OWLObjectPropertyExpression>
,HasSignature
,IsAnonymous
,OWLAxiom
,OWLLogicalAxiom
,OWLNaryAxiom<OWLObjectPropertyExpression>
,OWLNaryPropertyAxiom<OWLObjectPropertyExpression>
,OWLObject
,OWLObjectPropertyAxiom
,OWLPropertyAxiom
,Serializable
- All Known Implementing Classes:
OWLInverseObjectPropertiesAxiomImpl
public interface OWLInverseObjectPropertiesAxiom
extends OWLNaryPropertyAxiom<OWLObjectPropertyExpression>, OWLObjectPropertyAxiom
Represents an
InverseObjectProperties axiom in the OWL 2 Specification.
Represents a statement that two properties are the inverse of each other. This property axiom contains a set of two properties. inverseOf(P, Q) is considered to be equal to inverseOf(Q, P) - i.e. the order in which the properties are specified isn't important.
Represents a statement that two properties are the inverse of each other. This property axiom contains a set of two properties. inverseOf(P, Q) is considered to be equal to inverseOf(Q, P) - i.e. the order in which the properties are specified isn't important.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(OWLAxiomVisitor visitor) default <O> O
accept
(OWLAxiomVisitorEx<O> visitor) default void
accept
(OWLObjectVisitor visitor) Accepts a visitordefault <O> O
accept
(OWLObjectVisitorEx<O> visitor) Accepts a visitorGets this axiom as a set of pairwise axioms; if the axiom contains only two operands, the axiom itself is returned unchanged, including its annotations.default AxiomType<?>
Gets the axiom type for this axiom.Gets an axiom that is structurally equivalent to this axiom without annotations.default int
Splits this axiom to pairs, including annotations.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.HasAnnotations
annotations, annotations, annotations, annotationsAsList, getAnnotations, getAnnotations
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.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 org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
Methods inherited from interface org.semanticweb.owlapi.model.HasOperands
getOperandsAsList
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, signature, unsortedSignature
Methods inherited from interface org.semanticweb.owlapi.model.IsAnonymous
isAnonymous, isNamed
Methods inherited from interface org.semanticweb.owlapi.model.OWLAxiom
equalsIgnoreAnnotations, getAnnotatedAxiom, getAnnotatedAxiom, getAnnotatedAxiom, getAxiomWithoutAnnotations, getNNF, isAnnotated, isAnnotationAxiom, isAxiom, isIndividual, isOfType, isOfType, isOfType, typeIndex
Methods inherited from interface org.semanticweb.owlapi.model.OWLLogicalAxiom
isLogicalAxiom
Methods inherited from interface org.semanticweb.owlapi.model.OWLNaryAxiom
allMatch, allMatchAllPairs, anyMatch, anyMatchAllPairs, forEach, forEachAllPairs, walkAllPairwise, walkPairwise
Methods inherited from interface org.semanticweb.owlapi.model.OWLNaryPropertyAxiom
components, componentsAnnotationsFirst, componentsWithoutAnnotations, getProperties, getPropertiesMinus, initHashCode, operands, properties
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isBottomEntity, isIRI, isOntology, isTopEntity, nestedClassExpressions
-
Method Details
-
getAxiomWithoutAnnotations
OWLInverseObjectPropertiesAxiom getAxiomWithoutAnnotations()Description copied from interface:OWLAxiom
Gets an axiom that is structurally equivalent to this axiom without annotations. This essentially returns a version of this axiom stripped of any annotations.- Specified by:
getAxiomWithoutAnnotations
in interfaceOWLAxiom
- Returns:
- The axiom without annotations
-
hashIndex
default int hashIndex()- Specified by:
hashIndex
in interfaceHasHashIndex
- Returns:
- index for this type. This is not a hashcode for instances, rather a hashcode for the types.
-
asPairwiseAxioms
Collection<OWLInverseObjectPropertiesAxiom> asPairwiseAxioms()Description copied from interface:OWLNaryAxiom
Gets this axiom as a set of pairwise axioms; if the axiom contains only two operands, the axiom itself is returned unchanged, including its annotations. Note that, aside from this exception, annotations on this axiom will not be copied to each axiom returned in the set of pairwise axioms.
Note: This will contain all pairs, i.e., for the set "a, b, c" the pairs "a, b", "a, c", "b, c" will be returned. For some applications, only "a, b", "b, c" are required.- Specified by:
asPairwiseAxioms
in interfaceOWLNaryAxiom<OWLObjectPropertyExpression>
- Returns:
- This axiom as a set of pairwise axioms.
-
splitToAnnotatedPairs
Collection<OWLInverseObjectPropertiesAxiom> splitToAnnotatedPairs()Description copied from interface:OWLNaryAxiom
Splits this axiom to pairs, including annotations. This method implements the process described at http://www.w3.org/TR/owl2-mapping-to-rdf/# Axioms_that_are_Translated_to_Multiple_Triples which is used, for example, in serializing EquivalentProperty axioms with three operands. Note that annotations on this axiom will be copied to each axiom returned in the set of pairwise axioms. Note: This will contain only the "An, An+1" pairs, i.e., for the set "a, b, c" the pairs "a, b" and "b, c" will be returned, but not "a, c".- Specified by:
splitToAnnotatedPairs
in interfaceOWLNaryAxiom<OWLObjectPropertyExpression>
- Returns:
- This axiom as a set of pairwise axioms, annotations included.
-
getFirstProperty
OWLObjectPropertyExpression getFirstProperty()- Returns:
- the first of the two object properties.
-
getSecondProperty
OWLObjectPropertyExpression getSecondProperty()- Returns:
- the second of the two object properties.
-
asSubObjectPropertyOfAxioms
Collection<OWLSubObjectPropertyOfAxiom> asSubObjectPropertyOfAxioms()- Returns:
- the set of subproperty axioms equivalent
-
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
-
accept
-
getAxiomType
Description copied from interface:OWLAxiom
Gets the axiom type for this axiom.- Specified by:
getAxiomType
in interfaceOWLAxiom
- Returns:
- The axiom type that corresponds to the type of this axiom.
-