Public Member Functions | |
void | addAllValuesFrom (String prop, String classdef) |
void | addHasValue (String prop, String value) |
void | addSomeValuesFrom (String prop, String classdef) |
void | addSubclass (OWLClass sub) |
void | addSuperClass (OWLClass p) |
Map< String, Vector< String > > | getAllValuesFrom () |
Map< String, Vector< String > > | getHasValue () |
Map< String, Vector< String > > | getSomeValuesFrom () |
Vector< OWLClass > | getSubclasses () |
Vector< OWLClass > | getSuperClasses () |
void | readFromProlog () |
void | removeSubclass (OWLClass sub) |
void | setAllValuesFrom (Map< String, Vector< String >> allValuesFrom) |
void | setHasValue (Map< String, Vector< String >> hasValue) |
void | setSomeValuesFrom (Map< String, Vector< String >> someValuesFrom) |
void | setSuperClasses (Vector< OWLClass > p) |
void | writeToProlog () |
Static Public Member Functions | |
static OWLClass | getOWLClass (String iri, String label) |
static OWLClass | getOWLClass (String iri) |
Protected Member Functions | |
OWLClass (String iri, String label) | |
OWLClass (OWLThing ind) | |
Protected Attributes | |
Map< String, Vector< String > > | all_values_from |
Map< String, Vector< String > > | has_value |
Map< String, Vector< String > > | some_values_from |
Vector< OWLClass > | subclasses |
Vector< OWLClass > | superclasses |
Definition at line 16 of file OWLClass.java.
edu.tum.cs.ias.knowrob.owl.OWLClass.OWLClass | ( | 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 55 of file OWLClass.java.
edu.tum.cs.ias.knowrob.owl.OWLClass.OWLClass | ( | OWLThing | ind | ) | [inline, protected] |
void edu.tum.cs.ias.knowrob.owl.OWLClass.addAllValuesFrom | ( | String | prop, |
String | classdef | ||
) | [inline] |
Add a allValuesFrom definition
prop | Property to be used in restriction |
classdef | Class definition for restriction |
Definition at line 229 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.addHasValue | ( | String | prop, |
String | value | ||
) | [inline] |
Add a hasValue definition
prop | Property to be used in restriction |
value | Individuals or values to be used for the restriction |
Definition at line 266 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.addSomeValuesFrom | ( | String | prop, |
String | classdef | ||
) | [inline] |
Add a someValuesFrom definition
prop | Property to be used in restriction |
classdef | Class definition for restriction |
Definition at line 193 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.addSubclass | ( | OWLClass | sub | ) | [inline] |
Add a subclass definition. Complementary to addParentClass.
sub | Subclass |
Definition at line 128 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.addSuperClass | ( | OWLClass | p | ) | [inline] |
Add a superclass definition. Complementary to addSubclass.
p | Superclass |
Definition at line 159 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.getAllValuesFrom | ( | ) | [inline] |
Get the allValuesFrom definitions of this class
Definition at line 243 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.getHasValue | ( | ) | [inline] |
Get the hasValue definitions of this class
Definition at line 279 of file OWLClass.java.
static OWLClass edu.tum.cs.ias.knowrob.owl.OWLClass.getOWLClass | ( | String | iri, |
String | label | ||
) | [inline, static] |
OWLClass factory. Return existing instance, if available, and create new OWLClass instance if necessary. Avoids duplicate instances with the same IRI.
iri | Identifier of this thing. |
label | Optional natural-language label. |
Definition at line 86 of file OWLClass.java.
static OWLClass edu.tum.cs.ias.knowrob.owl.OWLClass.getOWLClass | ( | String | iri | ) | [inline, static] |
OWLClass factory. Return existing instance, if available, and create new OWLClass instance if necessary. Avoids duplicate instances with the same IRI.
iri | Identifier of this thing. |
Definition at line 106 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.getSomeValuesFrom | ( | ) | [inline] |
Get the someValuesFrom definitions of this class
Definition at line 206 of file OWLClass.java.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLClass.getSubclasses | ( | ) | [inline] |
Get all subclasses defined for this OWL class.
Definition at line 118 of file OWLClass.java.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLClass.getSuperClasses | ( | ) | [inline] |
void edu.tum.cs.ias.knowrob.owl.OWLClass.readFromProlog | ( | ) | [inline] |
Recursively read all properties of an OWL class into its internal data structures.
Definition at line 288 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.removeSubclass | ( | OWLClass | sub | ) | [inline] |
Remove a subclass from this class
sub | Subclass to be removed |
Definition at line 138 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.setAllValuesFrom | ( | Map< String, Vector< String >> | allValuesFrom | ) | [inline] |
Set the allValuesFrom restrictions
allValuesFrom | Map with the defined restrictions |
Definition at line 218 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.setHasValue | ( | Map< String, Vector< String >> | hasValue | ) | [inline] |
Set the hasValue restrictions
hasValue | Map with the defined restrictions |
Definition at line 255 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.setSomeValuesFrom | ( | Map< String, Vector< String >> | someValuesFrom | ) | [inline] |
Set the someValuesFrom restrictions
someValuesFrom | Map with the defined restrictions |
Definition at line 182 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.setSuperClasses | ( | Vector< OWLClass > | p | ) | [inline] |
Set the superclasses of this class
p | Parent class |
Definition at line 149 of file OWLClass.java.
void edu.tum.cs.ias.knowrob.owl.OWLClass.writeToProlog | ( | ) | [inline] |
Write all properties of this class to Prolog.
Definition at line 405 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.all_values_from [protected] |
Map of universal restrictions (allValuesFrom)
Definition at line 38 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.has_value [protected] |
Map of value restrictions (hasValue)
Definition at line 43 of file OWLClass.java.
Map<String, Vector<String> > edu.tum.cs.ias.knowrob.owl.OWLClass.some_values_from [protected] |
Map of existential restrictions (someValuesFrom)
Definition at line 33 of file OWLClass.java.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLClass.subclasses [protected] |
Vector of subclasses
Definition at line 22 of file OWLClass.java.
Vector<OWLClass> edu.tum.cs.ias.knowrob.owl.OWLClass.superclasses [protected] |
Reference to the parent / superclass
Definition at line 27 of file OWLClass.java.