Enum Class IndividualNodeSetPolicy

java.lang.Object
java.lang.Enum<IndividualNodeSetPolicy>
org.semanticweb.owlapi.reasoner.IndividualNodeSetPolicy
All Implemented Interfaces:
Serializable, Comparable<IndividualNodeSetPolicy>, java.lang.constant.Constable

public enum IndividualNodeSetPolicy extends Enum<IndividualNodeSetPolicy>
The policy of how a reasoner will return NodeSets 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 Constants
    Enum Constant
    Description
    Indicates that NodeSets of named individuals will always contain singleton Nodes and individuals that are the same as each other will not be grouped together in one Node within the NodeSet.For example, if i, j and k are individuals, and they are instances of C, and i is entailed to be the same as j then asking for the instances of A will return a NodeSet containing three Nodes, one containing i, one containing j and the third containing k.
    Indicates that NodeSets of named individuals returned by the reasoner will contain Nodes that group individuals which are entailed to be the same as each other.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BY_SAME_AS

      public static final IndividualNodeSetPolicy BY_SAME_AS
      Indicates that NodeSets of named individuals returned by the reasoner will contain Nodes that group individuals which are entailed to be the same as each other. For example, if i, j and k are individuals, and they are instances of C, and i is entailed to be the same as j then asking for the instances of A will return a NodeSet containing two Nodes, one containing i and j and the other containing k.
    • BY_NAME

      public static final IndividualNodeSetPolicy BY_NAME
      Indicates that NodeSets of named individuals will always contain singleton Nodes and individuals that are the same as each other will not be grouped together in one Node within the NodeSet.For example, if i, j and k are individuals, and they are instances of C, and i is entailed to be the same as j then asking for the instances of A will return a NodeSet containing three Nodes, one containing i, one containing j and the third containing k.
  • Method Details

    • values

      public static IndividualNodeSetPolicy[] 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

      public static IndividualNodeSetPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • filter

      public abstract Stream<OWLNamedIndividual> filter(NodeSet<OWLNamedIndividual> nodes)
      Parameters:
      nodes - node set to filter
      Returns:
      filtered individual stream