$search

edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport Class Reference

List of all members.

Public Member Functions

OWLNamedIndividual createDirVector (Vector3d dir_vec, OWLOntology ontology)
OWLNamedIndividual createObjectInst (MapObject map_obj, OWLOntology ontology)
OWLOntology createOWLMapDescription (String map_id, ArrayList< MapObject > map)
OWLNamedIndividual createPerceptionInst (String type, OWLNamedIndividual obj_inst, OWLNamedIndividual pose_inst, OWLNamedIndividual timestamp, OWLOntology ontology)
OWLNamedIndividual createPoseInst (Matrix4d pose, OWLOntology ontology)
OWLNamedIndividual createSemMapInst (OWLOntology ontology)
OWLNamedIndividual createSemMapObjectDescription (MapObject map_obj, OWLNamedIndividual timestamp, OWLOntology ontology)
OWLNamedIndividual createTimePointInst (ros.communication.Time stamp, OWLOntology ontology)
 OWLImportExport ()

Static Public Member Functions

static HashMap< String, MapObjectreadMapObjectFromOWL (String filename)

Static Public Attributes

static final String IAS_MAP = "http://ias.cs.tum.edu/kb/ias_semantic_map.owl#"
static final String KNOWROB = "http://ias.cs.tum.edu/kb/knowrob.owl#"
static final String KNOWROB_OWL = "owl/knowrob.owl"
static final String KNOWROB_PKG = "ias_knowledge_base"
static final String OWL = "http://www.w3.org/2002/07/owl#"
static final DefaultPrefixManager PREFIX_MANAGER = new DefaultPrefixManager(KNOWROB)
static final String RDFS = "http://www.w3.org/2000/01/rdf-schema#"

Protected Member Functions

String instForClass (String cl)

Static Protected Member Functions

static void printObjectTypes ()
static void readKnowRobObjectClasses ()

Static Protected Attributes

static final HashMap< String,
String > 
rosToKnowrob = new HashMap<String, String>()

Static Package Functions

 [static initializer]

Package Attributes

OWLDataFactory factory
int inst_counter = 0
OWLOntologyManager manager
DefaultPrefixManager pm

Detailed Description

Utilities for the import and export of OWL files from/to Java data structures

Author:
Moritz Tenorth, tenorth@cs.tum.edu
Lars Kunze, kunzel@cs.tum.edu

Definition at line 34 of file OWLImportExport.java.


Constructor & Destructor Documentation

edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::OWLImportExport (  )  [inline]

Definition at line 76 of file OWLImportExport.java.


Member Function Documentation

edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::[static initializer] (  )  [inline, static, package]
OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createDirVector ( Vector3d  dir_vec,
OWLOntology  ontology 
) [inline]

Create a Vector with all i components set according to the direction of the map_joint

Parameters:
dir_vec Input data vector
ontology Ontology to which the axioms are to be added
Returns:
Created instance of a Vector

Definition at line 343 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createObjectInst ( MapObject  map_obj,
OWLOntology  ontology 
) [inline]

Generate an instance of the object class indicated by map_obj.type and link it to its parent object

Parameters:
map_obj MapObject input data
ontology Ontology to which the axioms are to be added
Returns:
Created instance of the respective object

Definition at line 246 of file OWLImportExport.java.

OWLOntology edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createOWLMapDescription ( String  map_id,
ArrayList< MapObject map 
) [inline]

Build a complete semantic map, including name spaces, all contained objects, and the links between them.

Parameters:
map 
Returns:

Definition at line 88 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createPerceptionInst ( String  type,
OWLNamedIndividual  obj_inst,
OWLNamedIndividual  pose_inst,
OWLNamedIndividual  timestamp,
OWLOntology  ontology 
) [inline]

Create an instance of a SemanticMapPerception linking objects to poses and times

Parameters:
type Type of the perception, e.g. "knowrob:SemanticMapPerception"
obj_inst The object that was detected
pose_inst Pose where the object was detected
timestamp Time when the object was detected
ontology Ontology to which the axioms are to be added
Returns:
Created instance of SemanticMapPerception

Definition at line 372 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createPoseInst ( Matrix4d  pose,
OWLOntology  ontology 
) [inline]

Create a RotationMatrix3D with all m_ij components set according to the pose of the map_obj

Parameters:
map_obj MapObject input data
ontology Ontology to which the axioms are to be added
Returns:
Created instance of a RotationMatrix3D

Definition at line 317 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createSemMapInst ( OWLOntology  ontology  )  [inline]

Create an instance of a knowrob:SemanticEnvironmentMap

Parameters:
ontology Ontology to which the axioms are to be added
Returns:
Created instance of a SemanticEnvironmentMap

Definition at line 227 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createSemMapObjectDescription ( MapObject  map_obj,
OWLNamedIndividual  timestamp,
OWLOntology  ontology 
) [inline]

Create the OWL description for an object, including the object instance with its dimension, a pose instance where the object has been detected, and a SemanticMapPerception instance linking object, pose, and detection time

Parameters:
map_obj MapObject input data
timestamp OWLIndividual for the time when map_obj has been perceived
ontology Ontology to which the axioms are to be added

Definition at line 205 of file OWLImportExport.java.

OWLNamedIndividual edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::createTimePointInst ( ros.communication.Time  stamp,
OWLOntology  ontology 
) [inline]

Create an instance of a knowrob:TimePoint for time t

Parameters:
t Time to be translated into a TimePoint
ontology Ontology to which the axioms are to be added
Returns:
Created instance of a TimePoint

Definition at line 299 of file OWLImportExport.java.

String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::instForClass ( String  cl  )  [inline, protected]

Create a unique instance identifier from a class string

Parameters:
cl Class string
Returns:
Instance identifier (class string plus index)

Definition at line 722 of file OWLImportExport.java.

static void edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::printObjectTypes (  )  [inline, static, protected]

Debug method: print all object types imported from KnowRob

Definition at line 730 of file OWLImportExport.java.

static void edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::readKnowRobObjectClasses (  )  [inline, static, protected]

Initialization of the mapping between object types that are sent via the ROS service and concepts of the KnowRob ontology.

Definition at line 672 of file OWLImportExport.java.

static HashMap<String, MapObject> edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::readMapObjectFromOWL ( String  filename  )  [inline, static]

Read a semantic map from an OWL file into a HashMap representation, using the object identifier as key and the object pose description as value.

Parameters:
filename Name of the OWL file to be imported
Returns:
HashMap with the object identifiers as key and the MapObject data structures as values

Definition at line 403 of file OWLImportExport.java.


Member Data Documentation

Definition at line 70 of file OWLImportExport.java.

final String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::IAS_MAP = "http://ias.cs.tum.edu/kb/ias_semantic_map.owl#" [static]

Definition at line 51 of file OWLImportExport.java.

Definition at line 74 of file OWLImportExport.java.

final String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::KNOWROB = "http://ias.cs.tum.edu/kb/knowrob.owl#" [static]

Definition at line 42 of file OWLImportExport.java.

Definition at line 57 of file OWLImportExport.java.

final String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::KNOWROB_PKG = "ias_knowledge_base" [static]

Definition at line 54 of file OWLImportExport.java.

Definition at line 71 of file OWLImportExport.java.

final String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::OWL = "http://www.w3.org/2002/07/owl#" [static]

Definition at line 45 of file OWLImportExport.java.

Definition at line 72 of file OWLImportExport.java.

final DefaultPrefixManager edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::PREFIX_MANAGER = new DefaultPrefixManager(KNOWROB) [static]

Definition at line 60 of file OWLImportExport.java.

final String edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::RDFS = "http://www.w3.org/2000/01/rdf-schema#" [static]

Definition at line 48 of file OWLImportExport.java.

final HashMap<String, String> edu::tum::cs::ias::knowrob::utils::owl::OWLImportExport::rosToKnowrob = new HashMap<String, String>() [static, protected]

Definition at line 68 of file OWLImportExport.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


mod_semantic_map
Author(s): Moritz Tenorth
autogenerated on Tue Dec 4 04:48:15 2012