org.dllearner.core.owl
Class Individual
java.lang.Object
org.dllearner.core.owl.Individual
- All Implemented Interfaces:
- Serializable, Comparable<Individual>, Entity, KBElement, NamedKBElement
- Direct Known Subclasses:
- FuzzyIndividual
public class Individual
- extends Object
- implements Entity, NamedKBElement, Comparable<Individual>, Serializable
Represents an invididual in a knowledge base / ontology.
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
Individual
public Individual(String name)
getName
public String getName()
- Specified by:
getName in interface NamedKBElement
getURI
public URI getURI()
- Specified by:
getURI in interface Entity
getLength
public int getLength()
- Description copied from interface:
KBElement
- Gets the length of this knowledge base element. For instance,
A AND B should have length 3 (as three constructs are involved).
There are different ways to define the length of an axiom,
class description etc., but this method provides a straightforward
definition of it.
- Specified by:
getLength in interface KBElement
- Returns:
- The syntactic length of the KB element, defined as the
number of syntactic constructs not including brackets.
compareTo
public int compareTo(Individual o)
- Specified by:
compareTo in interface Comparable<Individual>
toString
public String toString()
- Overrides:
toString in class Object
toString
public String toString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toString in interface KBElement
toKBSyntaxString
public String toKBSyntaxString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toKBSyntaxString in interface KBElement
toManchesterSyntaxString
public String toManchesterSyntaxString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toManchesterSyntaxString in interface KBElement
accept
public void accept(KBElementVisitor visitor)
- Specified by:
accept in interface KBElement
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann