org.apache.clerezza.rdf.core.sparql.query.impl
Class SimpleDescribeQuery
java.lang.Object
org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery
org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQueryWithSolutionModifier
org.apache.clerezza.rdf.core.sparql.query.impl.SimpleDescribeQuery
- All Implemented Interfaces:
- DescribeQuery, Query, QueryWithSolutionModifier
public class SimpleDescribeQuery
- extends SimpleQueryWithSolutionModifier
- implements DescribeQuery
- Author:
- hasan
SimpleDescribeQuery
public SimpleDescribeQuery()
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.