Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGGraphQuery

java.lang.Object
  extended by org.openrdf.query.impl.AbstractQuery
      extended by com.franz.agraph.repository.AGQuery
          extended by com.franz.agraph.repository.AGGraphQuery
All Implemented Interfaces:
GraphQuery, Query

public class AGGraphQuery
extends AGQuery
implements GraphQuery

Implements the Sesame GraphQuery 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
AGGraphQuery(AGRepositoryConnection con, QueryLanguage ql, String queryString, String baseURI)
          Creates an AGGraphQuery instance for the given connection.
 
Method Summary
 GraphQueryResult evaluate()
          Evaluates the query and returns a GraphQueryResult.
 void evaluate(RDFHandler handler)
          Evaluates the query and uses handler to process the result.
 
Methods inherited from class com.franz.agraph.repository.AGQuery
analyze, getBindingsArray, getEntailmentRegime, getLanguage, getName, getPlanner, getQueryString, isCheckVariables, isPrepared, setCheckVariables, setEntailmentRegime, setIncludeInferred, setPlanner, setPrepared, setSaveName, toString
 
Methods inherited from class org.openrdf.query.impl.AbstractQuery
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxQueryTime, removeBinding, setBinding, setDataset, setMaxQueryTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.query.Query
clearBindings, getBindings, getDataset, getIncludeInferred, getMaxQueryTime, removeBinding, setBinding, setDataset, setIncludeInferred, setMaxQueryTime
 

Constructor Detail

AGGraphQuery

public AGGraphQuery(AGRepositoryConnection con,
                    QueryLanguage ql,
                    String queryString,
                    String baseURI)
Creates an AGGraphQuery instance for the given connection.

Parameters:
con - the connection.
ql - the query language.
queryString - the query.
baseURI - the base URI for the query.
Method Detail

evaluate

public GraphQueryResult evaluate()
                          throws QueryEvaluationException
Evaluates the query and returns a GraphQueryResult.

Specified by:
evaluate in interface GraphQuery
Throws:
QueryEvaluationException

evaluate

public void evaluate(RDFHandler handler)
              throws QueryEvaluationException,
                     RDFHandlerException
Evaluates the query and uses handler to process the result.

Specified by:
evaluate in interface GraphQuery
Throws:
QueryEvaluationException
RDFHandlerException

Copyright © 2008-2010 Franz Inc.