Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
edu.tum.cs.ias.knowrob.owl.OWLIndividual Class Reference
Inheritance diagram for edu.tum.cs.ias.knowrob.owl.OWLIndividual:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addDataPropValue (String property, String value)
void addObjPropValue (String property, String value)
void addType (OWLClass type)
void addTypes (Collection< OWLClass > t)
Map< String, Vector< String > > getDataProperties ()
Vector< String > getDataPropValues (String property)
Map< String, Vector< String > > getObjProperties ()
Vector< String > getObjPropValues (String property)
Vector< OWLClassgetTypes ()
boolean hasDataProperty (String property)
boolean hasObjProperty (String property)
boolean hasType (OWLClass type)
boolean hasType (String type_iri)
void setDataProperties (Map< String, Vector< String >> properties)
void setObjProperties (Map< String, Vector< String >> properties)
void setTypes (Vector< OWLClass > types)
void writeToProlog ()

Static Public Member Functions

static OWLIndividual getOWLIndividual (String iri, String label)
static OWLIndividual getOWLIndividual (String iri)
static OWLIndividual getOWLIndividualOfClass (String cl)

Protected Member Functions

 OWLIndividual (String iri, String label)
 OWLIndividual (OWLThing ind)

Protected Attributes

Map< String, Vector< String > > data_props
Map< String, Vector< String > > obj_props
Vector< OWLClasstypes

Detailed Description

Definition at line 13 of file OWLIndividual.java.


Constructor & Destructor Documentation

edu.tum.cs.ias.knowrob.owl.OWLIndividual.OWLIndividual ( String  iri,
String  label 
) [inline, protected]

Constructor. Set the IRI and optionally a label. If none is given, it is initialized with the IRI's short name.

Parameters:
iriIdentifier of this thing.
labelOptional natural-language label.

Definition at line 40 of file OWLIndividual.java.

Copy constructor: create OWLIndividual from more generic OWLThing

Parameters:
indOWLIndividual to be copied into this OWLThing

Definition at line 54 of file OWLIndividual.java.


Member Function Documentation

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addDataPropValue ( String  property,
String  value 
) [inline]

Add a data property-value pair to the properties map.

Parameters:
property
value

Definition at line 255 of file OWLIndividual.java.

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addObjPropValue ( String  property,
String  value 
) [inline]

Add an object property-value pair to the properties map.

Parameters:
property
value

Definition at line 269 of file OWLIndividual.java.

Parameters:
type

Definition at line 132 of file OWLIndividual.java.

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addTypes ( Collection< OWLClass t) [inline]
Parameters:
type

Definition at line 140 of file OWLIndividual.java.

Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLIndividual.getDataProperties ( ) [inline]

Get the data properties defined for this individual.

Returns:
Map from property identifiers to a Vector with their values.

Definition at line 171 of file OWLIndividual.java.

Vector<String> edu.tum.cs.ias.knowrob.owl.OWLIndividual.getDataPropValues ( String  property) [inline]

Get a Vector of all values defined for a data property.

Parameters:
propertyIdentifier of the property to be retrieved.
Returns:
Vector with the defined values.

Definition at line 235 of file OWLIndividual.java.

Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLIndividual.getObjProperties ( ) [inline]

Get the object properties defined for this individual.

Returns:
Map from property identifiers to a Vector with their values.

Definition at line 180 of file OWLIndividual.java.

Vector<String> edu.tum.cs.ias.knowrob.owl.OWLIndividual.getObjPropValues ( String  property) [inline]

Get a Vector of all values defined for an object property.

Parameters:
propertyIdentifier of the property to be retrieved.
Returns:
Vector with the defined values.

Definition at line 245 of file OWLIndividual.java.

static OWLIndividual edu.tum.cs.ias.knowrob.owl.OWLIndividual.getOWLIndividual ( String  iri,
String  label 
) [inline, static]

OWLIndividual factory. Return existing instance, if available, and create new OWLIndividual instance if necessary. Avoids duplicate instances with the same IRI.

Parameters:
iriIdentifier of this thing.
labelOptional natural-language label.
Returns:
Instance of an OWLIndividual with the specified IRI

Definition at line 68 of file OWLIndividual.java.

OWLIndividual factory. Return existing instance, if available, and create new OWLIndividual instance if necessary. Avoids duplicate instances with the same IRI.

Parameters:
iriIdentifier of this thing.
Returns:
Instance of an OWLIndividual with the specified IRI

Definition at line 89 of file OWLIndividual.java.

OWLIndividual factory. Create new individual for class cl, creating a new unique identifier. Adds cl to the types of the created individual.

Parameters:
clOWL class of this thing.
Returns:
Instance of an OWLIndividual of the specified class

Definition at line 102 of file OWLIndividual.java.

Get

Returns:

Definition at line 115 of file OWLIndividual.java.

boolean edu.tum.cs.ias.knowrob.owl.OWLIndividual.hasDataProperty ( String  property) [inline]

Check whether a data property is defined for this individual.

Parameters:
propertyIdentifier of the property to be checked.
Returns:
true if this property exists

Definition at line 211 of file OWLIndividual.java.

boolean edu.tum.cs.ias.knowrob.owl.OWLIndividual.hasObjProperty ( String  property) [inline]

Check whether an object property is defined for this individual.

Parameters:
propertyIdentifier of the property to be checked.
Returns:
true if this property exists

Definition at line 223 of file OWLIndividual.java.

Parameters:
type
Returns:

Definition at line 149 of file OWLIndividual.java.

boolean edu.tum.cs.ias.knowrob.owl.OWLIndividual.hasType ( String  type_iri) [inline]

Definition at line 157 of file OWLIndividual.java.

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.setDataProperties ( Map< String, Vector< String >>  properties) [inline]

Set the internal data properties map to the given one (after resetting it first).

Parameters:
propertiesNew map of data properties to be used.

Definition at line 189 of file OWLIndividual.java.

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.setObjProperties ( Map< String, Vector< String >>  properties) [inline]

Set the internal object properties map to the given one (after resetting it first).

Parameters:
propertiesNew map of object properties to be used.

Definition at line 199 of file OWLIndividual.java.

void edu.tum.cs.ias.knowrob.owl.OWLIndividual.setTypes ( Vector< OWLClass types) [inline]
Parameters:
types

Definition at line 123 of file OWLIndividual.java.


Member Data Documentation

Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLIndividual.data_props [protected]

Map of data properties that are defined for this individual to their respective values.

Definition at line 24 of file OWLIndividual.java.

Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLIndividual.obj_props [protected]

Map of object properties that are defined for this individual to their respective values.

Definition at line 29 of file OWLIndividual.java.

List of strings representing the object types (OWL classes)

Definition at line 19 of file OWLIndividual.java.


The documentation for this class was generated from the following file:


knowrob_common
Author(s): Moritz Tenorth
autogenerated on Sat Dec 28 2013 17:09:28