clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1457921 - /clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java
Date Mon, 18 Mar 2013 19:09:31 GMT
Author: reto
Date: Mon Mar 18 19:09:30 2013
New Revision: 1457921

URL: http://svn.apache.org/r1457921
Log:
CLEREZZA-468: Added interface for TcProviders that support fastlane

Added:
    clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java
      - copied, changed from r1454883, clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/WeightedTcProvider.java

Copied: clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java
(from r1454883, clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/WeightedTcProvider.java)
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java?p2=clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java&p1=clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/WeightedTcProvider.java&r1=1454883&r2=1457921&rev=1457921&view=diff
==============================================================================
--- clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/WeightedTcProvider.java
(original)
+++ clerezza/trunk/rdf.core/src/main/java/org/apache/clerezza/rdf/core/access/QueryableTcProvider.java
Mon Mar 18 19:09:30 2013
@@ -16,21 +16,25 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.clerezza.rdf.core.access;
-
-/**
- * This interface is implemented by providers to which {@link TcManagerImpl}
- * delegates.
- *
- * @author reto
- */
-public interface WeightedTcProvider extends TcProvider {
-
-	/**
-	 * Get the weight of this provider. {@link TcManager} will prioritize
-	 * <code>TcProvider</code>s with greater weight.
-	 * 
-	 * @return a positive number indicating the weight of the provider
-	 */
-	int getWeight();
-}
+package org.apache.clerezza.rdf.core.access;
+
+import org.apache.clerezza.rdf.core.TripleCollection;
+
+/**
+ * Extends the TcProvider interface for providers that support sparql queries.
+ */
+public interface QueryableTcProvider extends TcProvider {
+
+	/**
+	 * Executes any sparql query. The type of the result object will vary
+	 * depending on the type of the query.
+	 * 
+	 * @param query
+	 *            the sparql query to execute
+	 * @param defaultGraph
+	 *            the default graph against which to execute the query if not
+	 *            FROM clause is present
+	 * @return the resulting ResultSet, Graph or Boolean value
+	 */
+	public Object executeSparqlQuery(String query, TripleCollection defaultGraph);
+}



Mime
View raw message