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< OWLClass > | getTypes () |
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< OWLClass > | types |
Definition at line 13 of file OWLIndividual.java.
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.
iri | Identifier of this thing. |
label | Optional natural-language label. |
Definition at line 40 of file OWLIndividual.java.
edu.tum.cs.ias.knowrob.owl.OWLIndividual.OWLIndividual | ( | OWLThing | ind | ) | [inline, protected] |
Copy constructor: create OWLIndividual from more generic OWLThing
ind | OWLIndividual to be copied into this OWLThing |
Definition at line 54 of file OWLIndividual.java.
void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addDataPropValue | ( | String | property, |
String | value | ||
) | [inline] |
Add a data property-value pair to the properties map.
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.
property | |
value |
Definition at line 269 of file OWLIndividual.java.
void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addType | ( | OWLClass | type | ) | [inline] |
type |
Definition at line 132 of file OWLIndividual.java.
void edu.tum.cs.ias.knowrob.owl.OWLIndividual.addTypes | ( | Collection< OWLClass > | t | ) | [inline] |
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.
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.
property | Identifier of the property to be retrieved. |
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.
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.
property | Identifier of the property to be retrieved. |
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.
iri | Identifier of this thing. |
label | Optional natural-language label. |
Definition at line 68 of file OWLIndividual.java.
static OWLIndividual edu.tum.cs.ias.knowrob.owl.OWLIndividual.getOWLIndividual | ( | String | iri | ) | [inline, static] |
OWLIndividual factory. Return existing instance, if available, and create new OWLIndividual instance if necessary. Avoids duplicate instances with the same IRI.
iri | Identifier of this thing. |
Definition at line 89 of file OWLIndividual.java.
static OWLIndividual edu.tum.cs.ias.knowrob.owl.OWLIndividual.getOWLIndividualOfClass | ( | String | cl | ) | [inline, static] |
OWLIndividual factory. Create new individual for class cl, creating a new unique identifier. Adds cl to the types of the created individual.
cl | OWL class of this thing. |
Definition at line 102 of file OWLIndividual.java.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLIndividual.getTypes | ( | ) | [inline] |
boolean edu.tum.cs.ias.knowrob.owl.OWLIndividual.hasDataProperty | ( | String | property | ) | [inline] |
Check whether a data property is defined for this individual.
property | Identifier of the property to be checked. |
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.
property | Identifier of the property to be checked. |
Definition at line 223 of file OWLIndividual.java.
boolean edu.tum.cs.ias.knowrob.owl.OWLIndividual.hasType | ( | OWLClass | type | ) | [inline] |
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).
properties | New 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).
properties | New 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] |
types |
Definition at line 123 of file OWLIndividual.java.
void edu.tum.cs.ias.knowrob.owl.OWLIndividual.writeToProlog | ( | ) | [inline] |
Reimplemented in edu.tum.cs.ias.knowrob.owl.ObjectInstance, and edu.tum.cs.ias.knowrob.owl.JointInstance.
Definition at line 279 of file OWLIndividual.java.
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.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLIndividual.types [protected] |
List of strings representing the object types (OWL classes)
Definition at line 19 of file OWLIndividual.java.