edu::tum::cs::ias::knowrob::prolog::PrologInterface Class Reference

List of all members.

Static Public Member Functions

static String addSingleQuotes (String str)
static ArrayList< String[]> dottedPairsToArrayList (String rest)
static HashMap< String, Vector
< String > > 
executeQuery (String query)
static void initJPLProlog (String initPackage)
static String removeSingleQuotes (String str)
static String valueFromIRI (String iri)

Detailed Description

Definition at line 13 of file PrologInterface.java.


Member Function Documentation

static String edu::tum::cs::ias::knowrob::prolog::PrologInterface::addSingleQuotes ( String  str  )  [inline, static]

Adds single quotes at the start and end of a string if applicable.

Useful when dealing with OWL IRI identifiers that need to be in single quotes in Prolog.

Parameters:
str String with or without single quotes at the beginning and end
Returns:
String with single quotes at the beginning and end

Definition at line 147 of file PrologInterface.java.

static ArrayList<String[]> edu::tum::cs::ias::knowrob::prolog::PrologInterface::dottedPairsToArrayList ( String  rest  )  [inline, static]

Convert Prolog list (dotted pairs) into a Java ArrayList

Parameters:
rest 
Returns:

Definition at line 97 of file PrologInterface.java.

static HashMap<String, Vector<String> > edu::tum::cs::ias::knowrob::prolog::PrologInterface::executeQuery ( String  query  )  [inline, static]

Wrapper around the JPL Prolog query interface. Assumes a Prolog engine to be initialized, e.g. using initJPLProlog

Parameters:
query A query string in common SWI Prolog syntax
Returns:
A HashMap<VariableName, ResultsVector>

Definition at line 50 of file PrologInterface.java.

static void edu::tum::cs::ias::knowrob::prolog::PrologInterface::initJPLProlog ( String  initPackage  )  [inline, static]

Initialize a local Prolog engine with the ROS package given as argument

Parameters:
initPackage String with the name of the package to be used for initialization

Definition at line 22 of file PrologInterface.java.

static String edu::tum::cs::ias::knowrob::prolog::PrologInterface::removeSingleQuotes ( String  str  )  [inline, static]

Removes single quotes at the start and end of a string if applicable.

Useful when dealing with OWL IRI identifiers that need to be in single quotes in Prolog.

Parameters:
str String with or without single quotes at the beginning and end
Returns:
String without single quotes at the beginning and end

Definition at line 128 of file PrologInterface.java.

static String edu::tum::cs::ias::knowrob::prolog::PrologInterface::valueFromIRI ( String  iri  )  [inline, static]

Splits an IRI to extract the identifier part after the hash sign '#'

Parameters:
iri IRI of the form http://...#value
Returns:
The identifier value

Definition at line 159 of file PrologInterface.java.


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


knowrob_common
Author(s): Moritz Tenorth
autogenerated on Fri Jan 11 09:51:24 2013