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) |
Definition at line 13 of file PrologInterface.java.
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.
str | String with or without 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
rest |
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
query | A query string in common SWI Prolog syntax |
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
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.
str | String with or 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 '#'
iri | IRI of the form http://...#value |
Definition at line 159 of file PrologInterface.java.