org.gcube.resources.discovery.client.queries.api
Interface SimpleQuery

All Superinterfaces:
Query
All Known Implementing Classes:
XQuery

public interface SimpleQuery
extends Query

A Query that can be customised with namespace declarations, conditions on results, and result expressions.


Method Summary
 SimpleQuery addCondition(String condition)
          Adds a free-form condition on query results.
 SimpleQuery addNamespace(String prefix, URI uri)
          Adds a namespace to the query.
 SimpleQuery addVariable(String name, String range)
          Adds a variable to the query.
 SimpleQuery setResult(String expression)
          Adds a result expression to the query.
 
Methods inherited from interface org.gcube.resources.discovery.client.queries.api.Query
expression
 

Method Detail

addVariable

SimpleQuery addVariable(String name,
                        String range)
Adds a variable to the query.

Parameters:
name - the name of the variable
range - the range of the variable
Returns:
the query

addCondition

SimpleQuery addCondition(String condition)
Adds a free-form condition on query results.

Parameters:
condition - the condition
Returns:
the query

addNamespace

SimpleQuery addNamespace(String prefix,
                         URI uri)
Adds a namespace to the query.

Parameters:
prefix - the namespace prefix
uri - the namespace URI
Returns:
the query

setResult

SimpleQuery setResult(String expression)
Adds a result expression to the query.

Parameters:
expression - the result expression
Returns:
the query


Copyright © 2013. All Rights Reserved.