org.apache.clerezza.rdf.core.sparql.query.impl
Class SimpleDescribeQuery

java.lang.Object
  extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
      extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQueryWithSolutionModifier
          extended by org.apache.clerezza.rdf.core.sparql.query.impl.SimpleDescribeQuery
All Implemented Interfaces:
DescribeQuery, Query, QueryWithSolutionModifier

public class SimpleDescribeQuery
extends SimpleQueryWithSolutionModifier
implements DescribeQuery

Author:
hasan

Constructor Summary
SimpleDescribeQuery()
           
 
Method Summary
 void addResourceToDescribe(ResourceOrVariable node)
           
 List<ResourceOrVariable> getResourcesToDescribe()
          Gets the list of ResourceOrVariables to describe.
 boolean isDescribeAll()
          Tests if all variables in the query should be described.
 void setDescribeAll()
           
 String toString()
           
 
Methods inherited from class org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQueryWithSolutionModifier
addOrderCondition, getLimit, getOffset, getOrderConditions, setLimit, setOffset
 
Methods inherited from class org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
addDefaultGraph, addNamedGraph, getDataSet, getQueryPattern, setQueryPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.QueryWithSolutionModifier
getLimit, getOffset, getOrderConditions
 
Methods inherited from interface org.apache.clerezza.rdf.core.sparql.query.Query
getDataSet, getQueryPattern
 

Constructor Detail

SimpleDescribeQuery

public SimpleDescribeQuery()
Method Detail

isDescribeAll

public boolean isDescribeAll()
Description copied from interface: DescribeQuery

Tests if all variables in the query should be described.

Specified by:
isDescribeAll in interface DescribeQuery
Returns:
true if the query should return all variables.
See Also:
SPARQL Query Language: 10.4 DESCRIBE (Informative)

getResourcesToDescribe

public List<ResourceOrVariable> getResourcesToDescribe()
Description copied from interface: DescribeQuery

Gets the list of ResourceOrVariables to describe. If DescribeQuery.isDescribeAll() returns true then this list contains all the variables from the query.

Specified by:
getResourcesToDescribe in interface DescribeQuery
Returns:
A list of ResourceOrVariables to describe.
See Also:
SPARQL Query Language: 10.4 DESCRIBE (Informative)

setDescribeAll

public void setDescribeAll()

addResourceToDescribe

public void addResourceToDescribe(ResourceOrVariable node)

toString

public String toString()
Specified by:
toString in interface Query
Specified by:
toString in class SimpleQuery
Returns:
A valid String representation of the query.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.