Class ConstructQuery
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.Query<ConstructQuery>
org.eclipse.rdf4j.sparqlbuilder.core.query.OuterQuery<ConstructQuery>
org.eclipse.rdf4j.sparqlbuilder.core.query.ConstructQuery
- All Implemented Interfaces:
QueryElement
-
Field Summary
Fields inherited from class OuterQuery
base, prefixesFields inherited from class Query
bnodeCount, from, groupBy, having, limit, LIMIT, offset, OFFSET, orderBy, values, varCount, whereModifier and TypeFieldDescriptionprotected intprotected intprotected static final Stringprotected intprotected static final Stringprotected intprotected QueryPattern -
Method Summary
Modifier and TypeMethodDescriptionconstruct(GraphTemplate construct) Set this query's graph templateconstruct(TriplePattern... patterns) Add triples to this query's graph templateprotected StringMethods inherited from class OuterQuery
base, base, base, getQueryString, prefix, prefix, prefixModifier and TypeMethodDescriptionSet the base IRI of this querySet the Base clause of this querySet the base IRI of this queryAdd prefix declarations to this queryAdd prefix declarations to this queryprefix(PrefixDeclarations prefixes) Set the Prefix declarations of this queryMethods inherited from class Query
bNode, from, from, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, values, var, where, whereModifier and TypeMethodDescriptionbNode()A shortcut.Set the Dataset clause for this queryAdd datasets to this queryAdd grouping specifiers for the query results.Set this query's Group By clausehaving(Expression<?>... constraints) Specify constraints for this query's Having clause.Set this query's Having clauselimit(int limit) Set a limit on the number of results returned by this query.offset(int offset) Specify an offset in query results.Specify orderings for the query resultsSet this query's Order By clausevalues(Consumer<Values.VariablesBuilder> valuesConfigurer) var()A shortcut.where(QueryPattern where) Set the query pattern of this querywhere(GraphPattern... queryPatterns) Add graph patterns to this query's query pattern
-
Method Details
-
construct
Add triples to this query's graph template- Parameters:
patterns- the triples to include in the graph template- Returns:
- this
-
construct
Set this query's graph template- Parameters:
construct- theGraphTemplateto set- Returns:
- this
-
getQueryActionString
- Specified by:
getQueryActionStringin classQuery<ConstructQuery>
-