Public Member Functions | |
String | convertHowtoToOWLFile (String howto) |
String | convertHowtoToOWLOntology (String howto) |
OWLExporter () | |
Static Public Member Functions | |
static OWLNamedClass | getSpatialPostconditions (ObjectX obj, OWLModel owlModel) |
static void | main (String[] args) |
Static Public Attributes | |
static final String | ABSTRACT_ACTION_CLASS = "knowrob:Action" |
static final String | ABSTRACT_OBJECT_CLASS = "knowrob:SpatialThing-Localized" |
static final String | ABSTRACT_OBJECT_PROPERTY = "knowrob:spatiallyRelated" |
static final String | KITCHEN_ONTOLOGY_URI = ConfigurationManager.getPathKnowRob() |
Static Package Functions | |
[static initializer] | |
Private Member Functions | |
String | convertInstructionsToOWL (List< Instruction > inst, Instruction title, String howtoName) throws InstructionException |
PlanImporter | initOWLConverter () throws InstructionException, Exception, UnknownHostException, IOException |
Static Private Member Functions | |
static void | readAvailableActions () throws InstructionException |
static void | readAvailableObjectProperties () throws InstructionException |
static void | readAvailableObjects () throws InstructionException |
Private Attributes | |
PlanImporter | importer |
Static Private Attributes | |
static Map< String, OWLNamedClass > | actionStore = new HashMap<String, OWLNamedClass>() |
static int | locationCounter = 1 |
static Map< String, OWLNamedClass > | objectStore = new HashMap<String, OWLNamedClass>() |
static Map< String, OWLObjectProperty > | propertyStore = new HashMap<String, OWLObjectProperty>() |
Definition at line 37 of file OWLExporter.java.
instruction.exporter.owl.OWLExporter.OWLExporter | ( | ) | [inline] |
Definition at line 56 of file OWLExporter.java.
instruction.exporter.owl.OWLExporter.[static initializer] | ( | ) | [inline, static, package] |
String instruction.exporter.owl.OWLExporter.convertHowtoToOWLFile | ( | String | howto | ) | [inline] |
Look up instructions for the command 'howto' and translate them into a formal OWL representation
Save the result to a file and return the file name (required for the Prolog integration)
howto | Command like 'set a table' |
Definition at line 122 of file OWLExporter.java.
String instruction.exporter.owl.OWLExporter.convertHowtoToOWLOntology | ( | String | howto | ) | [inline] |
Look up instructions for the command 'howto' and translate them into a formal OWL representation
howto | Command like 'set a table' |
Definition at line 79 of file OWLExporter.java.
String instruction.exporter.owl.OWLExporter.convertInstructionsToOWL | ( | List< Instruction > | inst, |
Instruction | title, | ||
String | howtoName | ||
) | throws InstructionException [inline, private] |
Convert a list of instructions into OWL
inst | List of Instruction instances to be converted |
title | Title of the howto |
howtoName | Name of the howto |
InstructionException |
Definition at line 212 of file OWLExporter.java.
static OWLNamedClass instruction.exporter.owl.OWLExporter.getSpatialPostconditions | ( | ObjectX | obj, |
OWLModel | owlModel | ||
) | [inline, static] |
Return spatial post-conditions for the ObjectX obj
obj | |
owlModel |
Definition at line 425 of file OWLExporter.java.
PlanImporter instruction.exporter.owl.OWLExporter.initOWLConverter | ( | ) | throws InstructionException, Exception, UnknownHostException, IOException [inline, private] |
Initialize the converter, including initialization of the OpenCyc interface and parsing the WordNet ontology.
InstructionException | |
Exception | |
UnknownHostException | |
IOException |
Definition at line 167 of file OWLExporter.java.
static void instruction.exporter.owl.OWLExporter.main | ( | String[] | args | ) | [inline, static] |
Definition at line 499 of file OWLExporter.java.
static void instruction.exporter.owl.OWLExporter.readAvailableActions | ( | ) | throws InstructionException [inline, static, private] |
Read action classes from the KnowRob ontology
InstructionException |
Definition at line 330 of file OWLExporter.java.
static void instruction.exporter.owl.OWLExporter.readAvailableObjectProperties | ( | ) | throws InstructionException [inline, static, private] |
Read object properties from the KnowRob ontology
InstructionException |
Definition at line 395 of file OWLExporter.java.
static void instruction.exporter.owl.OWLExporter.readAvailableObjects | ( | ) | throws InstructionException [inline, static, private] |
Read object classes from the KnowRob ontology
InstructionException |
Definition at line 362 of file OWLExporter.java.
final String instruction.exporter.owl.OWLExporter.ABSTRACT_ACTION_CLASS = "knowrob:Action" [static] |
Definition at line 44 of file OWLExporter.java.
final String instruction.exporter.owl.OWLExporter.ABSTRACT_OBJECT_CLASS = "knowrob:SpatialThing-Localized" [static] |
Definition at line 45 of file OWLExporter.java.
final String instruction.exporter.owl.OWLExporter.ABSTRACT_OBJECT_PROPERTY = "knowrob:spatiallyRelated" [static] |
Definition at line 46 of file OWLExporter.java.
Map<String, OWLNamedClass> instruction.exporter.owl.OWLExporter.actionStore = new HashMap<String, OWLNamedClass>() [static, private] |
Definition at line 48 of file OWLExporter.java.
Definition at line 54 of file OWLExporter.java.
final String instruction.exporter.owl.OWLExporter.KITCHEN_ONTOLOGY_URI = ConfigurationManager.getPathKnowRob() [static] |
Definition at line 43 of file OWLExporter.java.
int instruction.exporter.owl.OWLExporter.locationCounter = 1 [static, private] |
Definition at line 52 of file OWLExporter.java.
Map<String, OWLNamedClass> instruction.exporter.owl.OWLExporter.objectStore = new HashMap<String, OWLNamedClass>() [static, private] |
Definition at line 49 of file OWLExporter.java.
Map<String, OWLObjectProperty> instruction.exporter.owl.OWLExporter.propertyStore = new HashMap<String, OWLObjectProperty>() [static, private] |
Definition at line 50 of file OWLExporter.java.