Class InsertDataQuery
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.InsertDataQuery
- All Implemented Interfaces:
QueryElement
The SPARQL Insert Data Query
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected InsertDataQuery
addTriples
(TriplePattern... triples) protected void
appendNamedTriplesTemplates
(StringBuilder queryString, Optional<GraphName> graphName, TriplesTemplate triples) Set the base IRI of this querySet the Base clause of this querySet the base IRI of this queryprotected String
insertData
(TriplesTemplate triplesTemplate) Set this query's triples templateinsertData
(TriplePattern... triples) Add triples to be insertedSpecify a graph to insert the data intoAdd prefix declarations to this queryAdd prefix declarations to this queryprefix
(PrefixDeclarations prefixes) Set the Prefix declarations of this queryprotected InsertDataQuery
setTriplesTemplate
(TriplesTemplate triplesTemplate)
-
Field Details
-
triplesTemplate
-
graphName
-
-
Constructor Details
-
InsertDataQuery
public InsertDataQuery()
-
-
Method Details
-
insertData
Add triples to be inserted- Parameters:
triples
- the triples to add to this insert data query- Returns:
- this Insert Data query instance
-
insertData
Set this query's triples template- Parameters:
triplesTemplate
- theTriplesTemplate
instance to set- Returns:
- this instance
-
into
Specify a graph to insert the data into- Parameters:
graph
- the identifier of the graph- Returns:
- this Insert Data query instance
-
getPrefix
-
addTriples
-
setTriplesTemplate
-
graph
-
getQueryActionString
-
base
Set the base IRI of this query- Parameters:
iri
- the base IRI- Returns:
- this
-
base
Set the base IRI of this query- Parameters:
iri
- the base IRI- Returns:
- this
-
base
Set the Base clause of this query- Parameters:
base
- theBase
clause to set- Returns:
- this
-
prefix
Add prefix declarations to this query- Parameters:
prefixes
- the prefixes to add- Returns:
- this
-
prefix
Add prefix declarations to this query- Parameters:
namespaces
- the namespaces to use for prefixes- Returns:
-
prefix
Set the Prefix declarations of this query- Parameters:
prefixes
- thePrefixDeclarations
to set- Returns:
- this
-
getQueryString
- Specified by:
getQueryString
in interfaceQueryElement
- Returns:
- the String representing the SPARQL syntax of this element
-
appendNamedTriplesTemplates
protected void appendNamedTriplesTemplates(StringBuilder queryString, Optional<GraphName> graphName, TriplesTemplate triples)
-