|
From: <joh...@us...> - 2013-09-28 11:57:50
|
Revision: 16959
http://sourceforge.net/p/gate/code/16959
Author: johann_p
Date: 2013-09-28 11:57:47 +0000 (Sat, 28 Sep 2013)
Log Message:
-----------
Add methods to set bindings from ONodeID and Literal
Modified Paths:
--------------
gate/trunk/src/gate/creole/ontology/OntologyBooleanQuery.java
Modified: gate/trunk/src/gate/creole/ontology/OntologyBooleanQuery.java
===================================================================
--- gate/trunk/src/gate/creole/ontology/OntologyBooleanQuery.java 2013-09-28 11:49:04 UTC (rev 16958)
+++ gate/trunk/src/gate/creole/ontology/OntologyBooleanQuery.java 2013-09-28 11:57:47 UTC (rev 16959)
@@ -28,7 +28,7 @@
/**
* Re-assign a query variable to a new value. This will let you
* query the triple store with the same query but a different value
- * for the variable. Depending on the implemenation, this might avoid
+ * for the variable. Depending on the implementation, this might avoid
* the necessity to recompile the whole query.
*
* @param varName - the name of the variable to be reassigned
@@ -38,6 +38,28 @@
*/
public void setBinding(String varName, LiteralOrONodeID value);
/**
+ * Re-assign a query variable to a new value. This will let you
+ * query the triple store with the same query but a different value
+ * for the variable. Depending on the implementation, this might avoid
+ * the necessity to recompile the whole query.
+ *
+ * @param varName - the name of the variable to be reassigned
+ * @param value - a ONodeID object (usually a OURI object)
+ *
+ */
+ public void setBinding(String varName, ONodeID value);
+ /**
+ * Re-assign a query variable to a new value. This will let you
+ * query the triple store with the same query but a different value
+ * for the variable. Depending on the implementation, this might avoid
+ * the necessity to recompile the whole query.
+ *
+ * @param varName - the name of the variable to be reassigned
+ * @param value - a Literal object
+ *
+ */
+ public void setBinding(String varName, Literal value);
+ /**
* Evaluate the boolean query and return whether it evaluates to true
* or false;
*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|