Package org.semanticweb.owlapi.reasoner
Enum Class IndividualNodeSetPolicy
- All Implemented Interfaces:
Serializable
,Comparable<IndividualNodeSetPolicy>
,java.lang.constant.Constable
The policy of how a reasoner will return
NodeSet
s of individuals for queries that return
node sets of named individuals such as
OWLReasoner.getTypes(org.semanticweb.owlapi.model.OWLNamedIndividual, boolean)
or
OWLReasoner.getInstances(org.semanticweb.owlapi.model.OWLClassExpression, boolean)
.- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates thatNodeSet
s of named individuals will always contain singletonNode
s and individuals that are the same as each other will not be grouped together in oneNode
within theNodeSet
.For example, ifi
,j
andk
are individuals, and they are instances ofC
, andi
is entailed to be the same asj
then asking for the instances ofA
will return aNodeSet
containing threeNode
s, one containingi
, one containingj
and the third containingk
.Indicates thatNodeSet
s of named individuals returned by the reasoner will containNode
s that group individuals which are entailed to be the same as each other. -
Method Summary
Modifier and TypeMethodDescriptionabstract Stream
<OWLNamedIndividual> filter
(NodeSet<OWLNamedIndividual> nodes) static IndividualNodeSetPolicy
Returns the enum constant of this class with the specified name.static IndividualNodeSetPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
BY_SAME_AS
Indicates thatNodeSet
s of named individuals returned by the reasoner will containNode
s that group individuals which are entailed to be the same as each other. For example, ifi
,j
andk
are individuals, and they are instances ofC
, andi
is entailed to be the same asj
then asking for the instances ofA
will return aNodeSet
containing twoNode
s, one containingi
andj
and the other containingk
. -
BY_NAME
Indicates thatNodeSet
s of named individuals will always contain singletonNode
s and individuals that are the same as each other will not be grouped together in oneNode
within theNodeSet
.For example, ifi
,j
andk
are individuals, and they are instances ofC
, andi
is entailed to be the same asj
then asking for the instances ofA
will return aNodeSet
containing threeNode
s, one containingi
, one containingj
and the third containingk
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
filter
- Parameters:
nodes
- node set to filter- Returns:
- filtered individual stream
-