Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.swrl.bridge
Class IndividualInfo

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.swrl.bridge.Info
      extended by edu.stanford.smi.protegex.owl.swrl.bridge.PropertyValueInfo
          extended by edu.stanford.smi.protegex.owl.swrl.bridge.IndividualInfo
All Implemented Interfaces:
Argument, IndividualArgument, ObjectValue, ResultValue, Comparable

public class IndividualInfo
extends PropertyValueInfo
implements IndividualArgument, ObjectValue

Info object representing an OWL individual.


Constructor Summary
IndividualInfo(OWLIndividual individual)
          Constructor used when creating an info object from an OWL individual.
IndividualInfo(OWLModel owlModel, String individualName)
          Constructor used when creating an info object from an individual name.
IndividualInfo(String individualName)
          Constructor used when creating an individual to pass as an argument to a built-in or to return as an argument from a built-in.
IndividualInfo(String individualName, String className)
          Constructor used when asserting new individual class membership information from an assertion made in a target rule engine.
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 Set<String> getDefiningClassNames()
           
 Set<String> getDefiningEquivalentClassNames()
           
 Set<String> getDefiningSuperClassNames()
           
 String getIndividualName()
           
 int hashCode()
           
 String toString()
           
 void write2OWL(OWLModel owlModel)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndividualInfo

public IndividualInfo(OWLIndividual individual)
               throws SWRLRuleEngineBridgeException
Constructor used when creating an info object from an OWL individual. We construct lists containing names of its direct defining classes, its indirect defining classes, and classes that are equivalent to the classes that define it. These names may be used by a rule engine to assert class membership information for individuals.

Throws:
SWRLRuleEngineBridgeException

IndividualInfo

public IndividualInfo(OWLModel owlModel,
                      String individualName)
               throws SWRLRuleEngineBridgeException
Constructor used when creating an info object from an individual name. We construct lists containing names of its direct defining classes, its indirect defining classes, and classes that are equivalent to the classes that define it. These names may be used by a rule engine to assert class membership information for individuals.

Throws:
SWRLRuleEngineBridgeException

IndividualInfo

public IndividualInfo(String individualName,
                      String className)
Constructor used when asserting new individual class membership information from an assertion made in a target rule engine. Only the individual name and the class that it is asserted to be a member of is recorded.


IndividualInfo

public IndividualInfo(String individualName)
Constructor used when creating an individual to pass as an argument to a built-in or to return as an argument from a built-in. Only the name of the individual is recorded.

Method Detail

getIndividualName

public String getIndividualName()
Specified by:
getIndividualName in interface IndividualArgument
Specified by:
getIndividualName in interface ObjectValue

getDefiningClassNames

public Set<String> getDefiningClassNames()

getDefiningSuperClassNames

public Set<String> getDefiningSuperClassNames()

getDefiningEquivalentClassNames

public Set<String> getDefiningEquivalentClassNames()

write2OWL

public void write2OWL(OWLModel owlModel)
               throws SWRLRuleEngineBridgeException
Throws:
SWRLRuleEngineBridgeException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.