Package org.semanticweb.owlapi.model
Interface OWLObjectInverseOf
- All Superinterfaces:
AsOWLAnnotationProperty
,AsOWLDataProperty
,AsOWLObjectProperty
,Comparable<OWLObject>
,HasAnnotationPropertiesInSignature
,HasAnonymousIndividuals
,HasClassesInSignature
,HasComponents
,HasContainsEntityInSignature
,HasDataPropertiesInSignature
,HasDatatypesInSignature
,HasHashIndex
,HasIndex
,HasIndividualsInSignature
,HasObjectPropertiesInSignature
,HasSignature
,IsAnonymous
,OWLObject
,OWLObjectPropertyExpression
,OWLPropertyExpression
,Serializable
,SWRLPredicate
- All Known Implementing Classes:
OWLObjectInverseOfImpl
Represents a
ObjectInverseOf Represents the inverse of a property expression. This can be used to refer to
the inverse of a property, without actually naming the property. For example, consider the
property hasPart, the inverse property of hasPart (isPartOf) can be referred to using this
interface inverseOf(hasPart), which can be used in restrictions e.g. inverseOf(hasPart) some Car
refers to the set of things that are part of at least one car.
- Since:
- 2.0.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(OWLObjectVisitor visitor) Accepts a visitordefault <O> O
accept
(OWLObjectVisitorEx<O> visitor) Accepts a visitordefault void
accept
(OWLPropertyExpressionVisitor visitor) default <O> O
accept
(OWLPropertyExpressionVisitorEx<O> visitor) default Stream<?>
Gets the property expression that this is the inverse of.default OWLObjectPropertyExpression
Obtains the property that corresponds to the inverse of this property.default int
default int
default int
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLAnnotationProperty
asOWLAnnotationProperty, isOWLAnnotationProperty
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLDataProperty
asOWLDataProperty, isOWLDataProperty
Methods inherited from interface org.semanticweb.owlapi.model.AsOWLObjectProperty
asOWLObjectProperty, isOWLObjectProperty
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
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 org.semanticweb.owlapi.model.HasObjectPropertiesInSignature
getObjectPropertiesInSignature, objectPropertiesInSignature
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.OWLObject
getNestedClassExpressions, hasSharedStructure, isAnonymousExpression, isAxiom, isBottomEntity, isIndividual, isIRI, isOntology, isTopEntity, nestedClassExpressions
Methods inherited from interface org.semanticweb.owlapi.model.OWLObjectPropertyExpression
getNamedProperty, getSimplified, isObjectPropertyExpression
Methods inherited from interface org.semanticweb.owlapi.model.OWLPropertyExpression
asDataPropertyExpression, asObjectPropertyExpression, isDataPropertyExpression, isOWLBottomDataProperty, isOWLBottomObjectProperty, isOWLTopDataProperty, isOWLTopObjectProperty
-
Method Details
-
components
- Specified by:
components
in interfaceHasComponents
- Returns:
- components as a stream. The stream is ordered (by visit order) but not sorted. Implementations that override components() must ensure the order is compatible with equals() and hashCode().
-
initHashCode
default int initHashCode()- Specified by:
initHashCode
in interfaceOWLObject
- Returns:
- hash code for the object; called on first use, cached by OWLObjectImpl in the default implementation.
-
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.
-
typeIndex
default int typeIndex() -
getInverseProperty
Description copied from interface:OWLObjectPropertyExpression
Obtains the property that corresponds to the inverse of this property.- Specified by:
getInverseProperty
in interfaceOWLObjectPropertyExpression
- Returns:
- The inverse of this property. Note that this property will not necessarily be in the simplest form.
-
getInverse
OWLObjectPropertyExpression getInverse()Gets the property expression that this is the inverse of.- Returns:
- The object property expression such that this object property expression is an inverse of it.
-
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
Description copied from interface:OWLObject
Accepts a visitor -
accept
- Specified by:
accept
in interfaceOWLPropertyExpression
- Parameters:
visitor
- visitor to accept
-
accept
- Specified by:
accept
in interfaceOWLPropertyExpression
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- visitor to accept- Returns:
- visitor value
-