Class ModifyQuery
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.query.UpdateQuery<ModifyQuery>
org.eclipse.rdf4j.sparqlbuilder.core.query.ModifyQuery
- All Implemented Interfaces:
QueryElement
The SPARQL Modify Queries
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private Optional
<TriplesTemplate> private static final String
private Optional
<TriplesTemplate> private static final String
private static final String
private boolean
private final QueryPattern
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete
(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 intoSpecify 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 definitionsMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.query.UpdateQuery
appendNamedTriplesTemplates, base, base, base, getQueryString, prefix, prefix, prefix
-
Field Details
-
INSERT
- See Also:
-
DELETE
- See Also:
-
WITH
- See Also:
-
USING
- See Also:
-
NAMED
- See Also:
-
with
-
using
-
usingNamed
private boolean usingNamed -
deleteTriples
-
insertTriples
-
deleteGraph
-
insertGraph
-
where
-
-
Constructor Details
-
ModifyQuery
ModifyQuery()
-
-
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
- Specified by:
getQueryActionString
in classUpdateQuery<ModifyQuery>
-