Interface SimpleQuery
- All Superinterfaces:
Query
- All Known Implementing Classes:
XQuery
A
Query that can be customised with namespace declarations, conditions on results, and result expressions.-
Method Summary
Modifier and TypeMethodDescriptionaddCondition(String condition) Adds a free-form condition on query results.addNamespace(String prefix, URI uri) Adds a namespace to the query.addVariable(String name, String range) Adds a variable to the query.Adds a result expression to the query.Methods inherited from interface org.gcube.resources.discovery.client.queries.api.Query
expression
-
Method Details
-
addVariable
Adds a variable to the query.- Parameters:
name- the name of the variablerange- the range of the variable- Returns:
- the query
-
addCondition
Adds a free-form condition on query results.- Parameters:
condition- the condition- Returns:
- the query
-
addNamespace
Adds a namespace to the query.- Parameters:
prefix- the namespace prefixuri- the namespace URI- Returns:
- the query
-
setResult
Adds a result expression to the query.- Parameters:
expression- the result expression- Returns:
- the query
-