Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGTupleQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractOperation
      extended by org.openrdf.query.impl.AbstractQuery
          extended by com.franz.agraph.repository.AGQuery
              extended by com.franz.agraph.repository.AGTupleQuery
All Implemented Interfaces:
org.openrdf.query.Operation, org.openrdf.query.Query, org.openrdf.query.TupleQuery
Direct Known Subclasses:
AGStreamTupleQuery

public class AGTupleQuery
extends AGQuery
implements org.openrdf.query.TupleQuery

Implements the Sesame TupleQuery interface for AllegroGraph.


Field Summary
 
Fields inherited from class com.franz.agraph.repository.AGQuery
RDFS_PLUS_PLUS, RESTRICTION, SPARQL_COVERAGE_PLANNER, SPARQL_IDENTITY_PLANNER
 
Constructor Summary
AGTupleQuery(AGRepositoryConnection con, org.openrdf.query.QueryLanguage ql, String queryString, String baseURI)
           
 
Method Summary
 long count()
          Evaluates the query and returns only the number of results to the client (counting is done on the server, the results are not returned).
 org.openrdf.query.TupleQueryResult evaluate()
           
 void evaluate(org.openrdf.query.TupleQueryResultHandler handler)
           
 
Methods inherited from class com.franz.agraph.repository.AGQuery
analyze, getBaseURI, getBindingsArray, getEngine, getEntailmentRegime, getLanguage, getLimit, getName, getOffset, getPlanner, getQueryString, isCheckVariables, isLoggingEnabled, isPrepared, setCheckVariables, setEngine, setEntailmentRegime, setIncludeInferred, setLimit, setLoggingEnabled, setOffset, setPlanner, setPrepared, setSaveName, toString
 
Methods inherited from class org.openrdf.query.impl.AbstractQuery
getMaxQueryTime, setMaxQueryTime
 
Methods inherited from class org.openrdf.query.impl.AbstractOperation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Query
getMaxQueryTime, setMaxQueryTime
 
Methods inherited from interface org.openrdf.query.Operation
clearBindings, getBindings, getDataset, getIncludeInferred, removeBinding, setBinding, setDataset, setIncludeInferred
 

Constructor Detail

AGTupleQuery

public AGTupleQuery(AGRepositoryConnection con,
                    org.openrdf.query.QueryLanguage ql,
                    String queryString,
                    String baseURI)
Method Detail

evaluate

public org.openrdf.query.TupleQueryResult evaluate()
                                            throws org.openrdf.query.QueryEvaluationException
Specified by:
evaluate in interface org.openrdf.query.TupleQuery
Throws:
org.openrdf.query.QueryEvaluationException

evaluate

public void evaluate(org.openrdf.query.TupleQueryResultHandler handler)
              throws org.openrdf.query.QueryEvaluationException,
                     org.openrdf.query.TupleQueryResultHandlerException
Specified by:
evaluate in interface org.openrdf.query.TupleQuery
Throws:
org.openrdf.query.QueryEvaluationException
org.openrdf.query.TupleQueryResultHandlerException

count

public long count()
           throws org.openrdf.query.QueryEvaluationException
Evaluates the query and returns only the number of results to the client (counting is done on the server, the results are not returned).

Returns:
the number of results
Throws:
org.openrdf.query.QueryEvaluationException

Copyright © 2008-2012 Franz Inc.