update
Code for carrying out Update Operations
Functions:
-
evalAdd–add all triples from src to dst
-
evalClear–http://www.w3.org/TR/sparql11-update/#clear
-
evalCopy–remove all triples from dst
-
evalCreate–http://www.w3.org/TR/sparql11-update/#create
-
evalDeleteData–http://www.w3.org/TR/sparql11-update/#deleteData
-
evalDeleteWhere–http://www.w3.org/TR/sparql11-update/#deleteWhere
-
evalDrop–http://www.w3.org/TR/sparql11-update/#drop
-
evalInsertData–http://www.w3.org/TR/sparql11-update/#insertData
-
evalLoad–http://www.w3.org/TR/sparql11-update/#load
-
evalModify– -
evalMove–remove all triples from dst
-
evalUpdate–http://www.w3.org/TR/sparql11-update/#updateLanguage
evalAdd
evalAdd(ctx: QueryContext, u: CompValue) -> None
add all triples from src to dst
http://www.w3.org/TR/sparql11-update/#add
Source code in rdflib/plugins/sparql/update.py
evalClear
evalClear(ctx: QueryContext, u: CompValue) -> None
evalCopy
evalCopy(ctx: QueryContext, u: CompValue) -> None
remove all triples from dst add all triples from src to dst
http://www.w3.org/TR/sparql11-update/#copy
Source code in rdflib/plugins/sparql/update.py
evalCreate
evalCreate(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#create
Source code in rdflib/plugins/sparql/update.py
evalDeleteData
evalDeleteData(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#deleteData
Source code in rdflib/plugins/sparql/update.py
evalDeleteWhere
evalDeleteWhere(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#deleteWhere
Source code in rdflib/plugins/sparql/update.py
evalDrop
evalDrop(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#drop
Source code in rdflib/plugins/sparql/update.py
evalInsertData
evalInsertData(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#insertData
Source code in rdflib/plugins/sparql/update.py
evalLoad
evalLoad(ctx: QueryContext, u: CompValue) -> None
http://www.w3.org/TR/sparql11-update/#load
Source code in rdflib/plugins/sparql/update.py
evalModify
evalModify(ctx: QueryContext, u: CompValue) -> None
Source code in rdflib/plugins/sparql/update.py
evalMove
evalMove(ctx: QueryContext, u: CompValue) -> None
remove all triples from dst add all triples from src to dst remove all triples from src
http://www.w3.org/TR/sparql11-update/#move
Source code in rdflib/plugins/sparql/update.py
evalUpdate
evalUpdate(graph: Graph, update: Update, initBindings: Optional[Mapping[str, Identifier]] = None) -> None
http://www.w3.org/TR/sparql11-update/#updateLanguage
‘A request is a sequence of operations […] Implementations MUST ensure that operations of a single request are executed in a fashion that guarantees the same effects as executing them in lexical order.
Operations all result either in success or failure.
If multiple operations are present in a single request, then a result of failure from any operation MUST abort the sequence of operations, causing the subsequent operations to be ignored.’
This will return None on success and raise Exceptions on error
Security Considerations
This method can access indirectly requested network endpoints, for
example, query processing will attempt to access network endpoints
specified in SERVICE directives.
When processing untrusted or potentially malicious queries, measures should be taken to restrict network and file access.
For information on available security measures, see the RDFLib Security Considerations documentation.