Franz Inc, AllegroGraph

com.franz.agraph.jena
Class AGQuery

java.lang.Object
  extended by com.franz.agraph.jena.AGQuery

public class AGQuery
extends Object

The class of queries that can be posed to AllegroGraph via Jena.


Constructor Summary
AGQuery(org.openrdf.query.QueryLanguage language, String queryString)
           
 
Method Summary
 org.openrdf.query.QueryLanguage getLanguage()
           
 int getLimit()
          Gets the limit on the number of solutions for this query.
 int getOffset()
          Gets the offset, the number of solutions to skip for this query.
 String getQueryString()
           
 boolean isCheckVariables()
          Gets the flag for checkVariables.
 void setCheckVariables(boolean checkVariables)
          A boolean that defaults to false, indicating whether an error should be raised when a SPARQL query selects variables that are not mentioned in the query body.
 void setLimit(int limit)
          Sets the limit on the number of solutions for this query.
 void setOffset(int offset)
          Sets the offset, the number of solutions to skip for this query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGQuery

public AGQuery(org.openrdf.query.QueryLanguage language,
               String queryString)
Method Detail

getLanguage

public org.openrdf.query.QueryLanguage getLanguage()

getQueryString

public String getQueryString()

isCheckVariables

public boolean isCheckVariables()
Gets the flag for checkVariables.

Returns:
the checkVariables flag.

setCheckVariables

public void setCheckVariables(boolean checkVariables)
A boolean that defaults to false, indicating whether an error should be raised when a SPARQL query selects variables that are not mentioned in the query body.

Parameters:
checkVariables - the checkVariables flag.

getLimit

public int getLimit()
Gets the limit on the number of solutions for this query.

Returns:
limit

setLimit

public void setLimit(int limit)
Sets the limit on the number of solutions for this query. By default, the value is -1, meaning no constraint is imposed.


getOffset

public int getOffset()
Gets the offset, the number of solutions to skip for this query.

Returns:
offset

setOffset

public void setOffset(int offset)
Sets the offset, the number of solutions to skip for this query. By default, the value is -1, meaning no constraint is imposed.


Copyright © 2008-2012 Franz Inc.