Class ModifyQuery
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.ModifyQuery
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 querydelete
(TriplePattern... triples) Specify triples to delete (or leave empty for DELETE WHERE shortcut)Specify the graph to delete triples fromprotected String
insert
(TriplePattern... triples) Specify triples to insertSpecify the graph to insert triples intoAdd prefix declarations to this queryAdd prefix declarations to this queryprefix
(PrefixDeclarations prefixes) Set the Prefix declarations of this querySpecify the graph used when evaluating the WHERE clauseSpecify the graph used when evaluating the WHERE clauseusingNamed
(IRI iri) Specify a named graph to use to when evaluating the WHERE clauseusingNamed
(Iri iri) Specify a named graph to use to when evaluating the WHERE clausewhere
(GraphPattern... patterns) Add graph patterns to this query's query patternDefine the graph that will be modified or matched against in the absence of more explicit graph definitionsDefine the graph that will be modified or matched against in the absence of more explicit graph definitions
-
Method Details
-
with
Define the graph that will be modified or matched against in the absence of more explicit graph definitions- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
with
Define the graph that will be modified or matched against in the absence of more explicit graph definitions- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
delete
Specify triples to delete (or leave empty for DELETE WHERE shortcut)- Parameters:
triples
- the triples to delete- Returns:
- this modify query instance
- See Also:
-
from
Specify the graph to delete triples from- Parameters:
graphName
- the identifier of the graph- Returns:
- this modify query instance
-
insert
Specify triples to insert- Parameters:
triples
- the triples to insert- Returns:
- this modify query instance
-
into
Specify the graph to insert triples into- Parameters:
graphName
- the identifier of the graph- Returns:
- this modify query instance
-
using
Specify the graph used when evaluating the WHERE clause- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
using
Specify the graph used when evaluating the WHERE clause- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
usingNamed
Specify a named graph to use to when evaluating the WHERE clause- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
usingNamed
Specify a named graph to use to when evaluating the WHERE clause- Parameters:
iri
- the IRI identifying the desired graph- Returns:
- this modify query instance
-
where
Add graph patterns to this query's query pattern- Parameters:
patterns
- the patterns to add- Returns:
- this modify query instance
-
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)
-