|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.derivo.sparqldlapi.Query
public abstract class Query
The Query class represents a SPARQL-DL query and mainly contains query atoms.
Constructor Summary | |
---|---|
Query()
|
Method Summary | |
---|---|
static Query |
create(java.lang.String query)
A factory method to create a query from string. |
abstract java.util.List<QueryAtomGroup> |
getAtomGroups()
Get an unodifiable list of all query atom groups. |
abstract java.util.Set<QueryArgument> |
getResultVars()
Get an unodifiable set of all result variables. |
abstract QueryType |
getType()
Get the type of the query. |
abstract boolean |
isAsk()
Check whether the query is of type ASK |
abstract boolean |
isEmpty()
Check whether there are any atoms in the query. |
abstract boolean |
isResultVar(QueryArgument arg)
Check whether the given query argument is a result variable. |
abstract boolean |
isSelect()
Check whether the query is of type SELECT. |
abstract boolean |
isSelectDistinct()
Check whether the query is of type SELECT DISTINCT. |
abstract int |
numResultVars()
Get the number of result variables. |
abstract java.lang.String |
toString()
Print the SPARQL-DL query as string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Query()
Method Detail |
---|
public abstract boolean isEmpty()
public abstract QueryType getType()
public abstract boolean isResultVar(QueryArgument arg)
public abstract int numResultVars()
public abstract java.util.Set<QueryArgument> getResultVars()
public abstract java.util.List<QueryAtomGroup> getAtomGroups()
public abstract boolean isAsk()
public abstract boolean isSelect()
public abstract boolean isSelectDistinct()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public static Query create(java.lang.String query) throws QueryParserException
query
-
QueryParserException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |