edu::tum::cs::probcog::prolog::PrologInterface Class Reference

List of all members.

Static Public Member Functions

static String[] evidenceForPredciate (Model model, String moduleName, String predicate)
static Map< String, Vector
< Object > > 
executeQuery (String query, String plFile)
static String[] getArgsForPredicate (String predicate, String modelName)
static String getLocalClassName (String uri)
static String[][] getMissingObjectsOnTable ()
static String[] getPredicatesForModel (String modelName)
static String inferObjectClass (String instanceName)
static String inferObjectType (String instanceName)
static void main (String[] args)
static String[][][] performInference (String modelName, String moduleName, String[] query)
static void queryObjectTypes ()
static void reset ()
static void setModelName (String modelName)
static void setModelPool (String modelPool)
static void setObjectsOnTable (String[] objs)
static void setPerception (String owlFile)

Static Public Attributes

static final String UNKNOWN_TYPE = "TYPE_UNKNOWN"

Static Private Member Functions

static Server getServer ()
static void initProlog ()

Static Private Attributes

static String modelName = "tableSetting_fall10"
static String modelPool = "/tmp/buildd/ros-diamondback-knowrob-0.2.0/debian/ros-diamondback-knowrob/opt/ros/diamondback/stacks/knowrob/srldb/models/models.xml"
static Map< String, String > objectTypes = new HashMap<String, String>()
static Server server = null

Detailed Description

Interface to the Prolog system for figuring out which objects are missing on the table.

Author:
Daniel Nyga, Moritz Tenorth

Definition at line 27 of file PrologInterface.java.


Member Function Documentation

static String [] edu::tum::cs::probcog::prolog::PrologInterface::evidenceForPredciate ( Model  model,
String  moduleName,
String  predicate 
) [inline, static]

Reads the evidence for a particular predicate and returns all evidence predicates resulting from this query.

Parameters:
modelName 
predicate 
Returns:

Definition at line 317 of file PrologInterface.java.

static Map<String, Vector<Object> > edu::tum::cs::probcog::prolog::PrologInterface::executeQuery ( String  query,
String  plFile 
) [inline, static]

Execute the given query. Assert the given premises and retract them after querying.

Parameters:
query the query.
Returns:
the HashMap representing the bindings of the variables.

Definition at line 76 of file PrologInterface.java.

static String [] edu::tum::cs::probcog::prolog::PrologInterface::getArgsForPredicate ( String  predicate,
String  modelName 
) [inline, static]

Definition at line 535 of file PrologInterface.java.

static String edu::tum::cs::probcog::prolog::PrologInterface::getLocalClassName ( String  uri  )  [inline, static]

Retrieves the local class name of a class specified by the given URI, e.g. uri="http://www9.in.tum.de/~tenorth/ontology/kitchen.owl#Cup" will return "Cup".

Parameters:
url 
Returns:

Definition at line 163 of file PrologInterface.java.

static String [][] edu::tum::cs::probcog::prolog::PrologInterface::getMissingObjectsOnTable (  )  [inline, static]

Definition at line 234 of file PrologInterface.java.

static String [] edu::tum::cs::probcog::prolog::PrologInterface::getPredicatesForModel ( String  modelName  )  [inline, static]

Definition at line 523 of file PrologInterface.java.

static Server edu::tum::cs::probcog::prolog::PrologInterface::getServer (  )  [inline, static, private]

Definition at line 511 of file PrologInterface.java.

static String edu::tum::cs::probcog::prolog::PrologInterface::inferObjectClass ( String  instanceName  )  [inline, static]

Retrieves the URI of the class of the object given by the instance instanceName.

Parameters:
instanceName 
Returns:

Definition at line 207 of file PrologInterface.java.

static String edu::tum::cs::probcog::prolog::PrologInterface::inferObjectType ( String  instanceName  )  [inline, static]

Retrieves the URI of the class of the object given by the instance instanceName.

Parameters:
instanceName 
Returns:

Definition at line 185 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::initProlog (  )  [inline, static, private]

Definition at line 44 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::main ( String[]  args  )  [inline, static]

Definition at line 558 of file PrologInterface.java.

static String [][][] edu::tum::cs::probcog::prolog::PrologInterface::performInference ( String  modelName,
String  moduleName,
String[]  query 
) [inline, static]

Definition at line 387 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::queryObjectTypes (  )  [inline, static]

Retrieves the concepts for all object instances that are stored in objectTypes.

Definition at line 141 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::reset (  )  [inline, static]

Reset the Prolog interface

Definition at line 63 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::setModelName ( String  modelName  )  [inline, static]

Definition at line 226 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::setModelPool ( String  modelPool  )  [inline, static]

Definition at line 230 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::setObjectsOnTable ( String[]  objs  )  [inline, static]

Put all objects that are located on the kitchen table into the objectTypes.

Definition at line 131 of file PrologInterface.java.

static void edu::tum::cs::probcog::prolog::PrologInterface::setPerception ( String  owlFile  )  [inline, static]

Definition at line 221 of file PrologInterface.java.


Member Data Documentation

String edu::tum::cs::probcog::prolog::PrologInterface::modelName = "tableSetting_fall10" [static, private]

Definition at line 39 of file PrologInterface.java.

String edu::tum::cs::probcog::prolog::PrologInterface::modelPool = "/tmp/buildd/ros-diamondback-knowrob-0.2.0/debian/ros-diamondback-knowrob/opt/ros/diamondback/stacks/knowrob/srldb/models/models.xml" [static, private]

Definition at line 37 of file PrologInterface.java.

Map<String, String> edu::tum::cs::probcog::prolog::PrologInterface::objectTypes = new HashMap<String, String>() [static, private]

Maps object instances (in particular the objects located on the table) to their concepts

Definition at line 35 of file PrologInterface.java.

Definition at line 41 of file PrologInterface.java.

final String edu::tum::cs::probcog::prolog::PrologInterface::UNKNOWN_TYPE = "TYPE_UNKNOWN" [static]

Definition at line 29 of file PrologInterface.java.


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


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:43 2013