Class GraphTemplate
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.GraphTemplate
- All Implemented Interfaces:
QueryElement
A SPARQL Graph Template, used in Construct queries
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconstruct
(TriplesTemplate triplesTemplate) Set, rather than augment, this graph template's triples templateconstruct
(TriplePattern... triples) Add triple patterns to this graph template
-
Method Details
-
construct
Add triple patterns to this graph template- Parameters:
triples
- the patterns to add- Returns:
- this
-
construct
Set, rather than augment, this graph template's triples template- Parameters:
triplesTemplate
- theTriplesTemplate
instance to set- Returns:
- this graph template
-
getQueryString
- Specified by:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-