Class GraphTemplate
- java.lang.Object
-
- org.eclipse.rdf4j.sparqlbuilder.core.GraphTemplate
-
- All Implemented Interfaces:
QueryElement
public class GraphTemplate extends java.lang.Object implements QueryElement
A SPARQL Graph Template, used in Construct queries- See Also:
- SPARQL CONSTRUCT Query
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCONSTRUCTprivate TriplesTemplatetriplesTemplate
-
Constructor Summary
Constructors Constructor Description GraphTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphTemplateconstruct(TriplesTemplate triplesTemplate)Set, rather than augment, this graph template's triples templateGraphTemplateconstruct(TriplePattern... triples)Add triple patterns to this graph templatejava.lang.StringgetQueryString()
-
-
-
Field Detail
-
CONSTRUCT
private static final java.lang.String CONSTRUCT
- See Also:
- Constant Field Values
-
triplesTemplate
private TriplesTemplate triplesTemplate
-
-
Method Detail
-
construct
public GraphTemplate construct(TriplePattern... triples)
Add triple patterns to this graph template- Parameters:
triples- the patterns to add- Returns:
- this
-
construct
public GraphTemplate construct(TriplesTemplate triplesTemplate)
Set, rather than augment, this graph template's triples template- Parameters:
triplesTemplate- theTriplesTemplateinstance to set- Returns:
- this graph template
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryStringin interfaceQueryElement- Returns:
- the String representing the SPARQL syntax of this element
-
-