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

List of all members.

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< OWLClassgetSubclasses ()
Vector< OWLClassgetSuperClasses ()
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< OWLClasssubclasses
Vector< OWLClasssuperclasses

Detailed Description

Definition at line 16 of file OWLClass.java.


Constructor & Destructor Documentation

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.

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

Definition at line 55 of file OWLClass.java.

Copy constructor: create OWLClass from more generic OWLThing

Parameters:
indOWLClass to be copied into this OWLThing

Definition at line 72 of file OWLClass.java.


Member Function Documentation

void edu.tum.cs.ias.knowrob.owl.OWLClass.addAllValuesFrom ( String  prop,
String  classdef 
) [inline]

Add a allValuesFrom definition

Parameters:
propProperty to be used in restriction
classdefClass 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

Parameters:
propProperty to be used in restriction
valueIndividuals 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

Parameters:
propProperty to be used in restriction
classdefClass definition for restriction

Definition at line 193 of file OWLClass.java.

Add a subclass definition. Complementary to addParentClass.

Parameters:
subSubclass

Definition at line 128 of file OWLClass.java.

Add a superclass definition. Complementary to addSubclass.

Parameters:
pSuperclass

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

Returns:
allValuesFrom definitions

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

Returns:
hasValue definitions

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.

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

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.

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

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

Returns:
someValuesFrom definitions

Definition at line 206 of file OWLClass.java.

Get all subclasses defined for this OWL class.

Returns:
Vector of subclasses

Definition at line 118 of file OWLClass.java.

Get the superclasses of this class

Returns:

Definition at line 170 of file OWLClass.java.

Recursively read all properties of an OWL class into its internal data structures.

Definition at line 288 of file OWLClass.java.

Remove a subclass from this class

Parameters:
subSubclass 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

Parameters:
allValuesFromMap 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

Parameters:
hasValueMap 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

Parameters:
someValuesFromMap with the defined restrictions

Definition at line 182 of file OWLClass.java.

Set the superclasses of this class

Parameters:
pParent class

Definition at line 149 of file OWLClass.java.

Write all properties of this class to Prolog.

Definition at line 405 of file OWLClass.java.


Member Data Documentation

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 of subclasses

Definition at line 22 of file OWLClass.java.

Reference to the parent / superclass

Definition at line 27 of file OWLClass.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