Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return ListLoad AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq NameLoad Str body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr orelse Return ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body For NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr AugAssignSub NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignSub NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr AugAssignSub NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignSub NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return AugAssignAdd NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad TryExcept body If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad handlers ExceptHandler body If UnaryOpNot AttributeLoad NameLoad attr body Raise decorator_list
N/A N/A 

Code for carrying out Update Operations

 rdflib Graph Variable rdflib.plugins.sparql.sparql QueryContext rdflib.plugins.sparql.evalutils _fillTemplate _join rdflib.plugins.sparql.evaluate evalBGP evalPart _graphOrDefault N/A N/A ctx g N/A N/A N/A N/A g DEFAULT N/A N/A N/A ctx graph N/A N/A N/A N/A N/A ctx dataset get_context g N/A _graphAll N/A N/A ctx g N/A N/A N/A 
    return a list of graphs
     N/A N/A g DEFAULT N/A N/A N/A N/A ctx graph N/A N/A N/A g NAMED N/A N/A N/A c N/A c N/A N/A N/A ctx dataset contexts N/A N/A c identifier N/A N/A ctx graph identifier N/A N/A N/A g ALL N/A N/A N/A list N/A N/A N/A ctx dataset contexts N/A N/A N/A N/A N/A N/A ctx dataset get_context g N/A evalLoad N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#load
     N/A N/A u graphiri N/A N/A N/A N/A ctx load N/A u iri default False publicID N/A u graphiri N/A N/A N/A N/A ctx load N/A u iri default True N/A evalCreate N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#create
     N/A g N/A N/A N/A ctx datset get_context N/A u graphiri N/A N/A N/A len g 0 N/A N/A N/A Exception N/A Graph %s already exists. N/A g identifier N/A N/A Exception Create not implemented! N/A evalClear N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#clear
     N/A g N/A _graphAll ctx N/A u graphiri N/A N/A N/A N/A g remove N/A None None None N/A evalDrop N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#drop
     N/A N/A N/A N/A ctx dataset store graph_aware N/A N/A g N/A _graphAll ctx N/A u graphiri N/A N/A N/A N/A N/A N/A ctx dataset store remove_graph g N/A N/A N/A evalClear ctx u N/A evalInsertData N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#insertData
     N/A g N/A ctx graph N/A g N/A u triples N/A g N/A u quads N/A N/A cg N/A N/A N/A ctx dataset get_context g N/A cg N/A N/A u quads N/A g N/A evalDeleteData N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#deleteData
     N/A g N/A ctx graph N/A g N/A u triples N/A g N/A u quads N/A N/A cg N/A N/A N/A ctx dataset get_context g N/A cg N/A N/A u quads N/A g N/A evalDeleteWhere N/A N/A ctx u N/A N/A N/A 
    http://www.w3.org/TR/sparql11-update/#deleteWhere
     N/A res N/A evalBGP ctx N/A u triples N/A g N/A u quads N/A N/A cg N/A N/A N/A ctx dataset get_context g N/A c N/A N/A ctx pushGraph cg N/A res N/A _join res N/A list N/A evalBGP c N/A N/A u quads N/A g N/A c res N/A N/A g N/A ctx graph N/A g N/A _fillTemplate N/A u triples c N/A g N/A u quads N/A N/A cg N/A N/A N/A ctx dataset get_context N/A N/A c get g N/A cg N/A _fillTemplate N/A N/A u quads N/A g c N/A evalModify N/A N/A ctx u N/A N/A N/A originalctx ctx N/A N/A u using N/A N/A otherDefault False N/A d N/A u using N/A N/A N/A d default N/A N/A N/A otherDefault N/A N/A dg N/A Graph N/A ctx N/A N/A ctx pushGraph dg N/A otherDefault True N/A N/A N/A ctx load N/A d default default True N/A N/A N/A d named N/A N/A g N/A d named N/A N/A N/A ctx load g default False N/A N/A N/A N/A u using N/A u withClause N/A N/A g N/A N/A N/A ctx dataset get_context N/A u withClause N/A ctx N/A N/A ctx pushGraph g N/A res N/A evalPart ctx N/A u where N/A N/A u using N/A N/A otherDefault N/A N/A ctx originalctx N/A N/A u withClause N/A N/A g N/A N/A N/A ctx dataset get_context N/A u withClause N/A ctx N/A N/A ctx pushGraph g N/A c res N/A N/A dg N/A ctx graph N/A N/A u delete N/A N/A dg N/A _fillTemplate N/A N/A u delete triples c N/A N/A g q N/A N/A N/A N/A u delete quads iteritems N/A N/A cg N/A N/A N/A ctx dataset get_context N/A N/A c get g N/A cg N/A _fillTemplate q c N/A N/A u insert N/A N/A dg N/A _fillTemplate N/A N/A u insert triples c N/A N/A g q N/A N/A N/A N/A u insert quads iteritems N/A N/A cg N/A N/A N/A ctx dataset get_context N/A N/A c get g N/A cg N/A _fillTemplate q c N/A evalAdd N/A N/A ctx u N/A N/A N/A 

    add all triples from src to dst

    http://www.w3.org/TR/sparql11-update/#add
     N/A N/A src dst N/A u graph N/A srcg N/A _graphOrDefault ctx src N/A dstg N/A _graphOrDefault ctx dst N/A N/A N/A srcg identifier N/A dstg identifier N/A N/A N/A dstg srcg N/A evalMove N/A N/A ctx u N/A N/A N/A 

    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
     N/A N/A src dst N/A u graph N/A srcg N/A _graphOrDefault ctx src N/A dstg N/A _graphOrDefault ctx dst N/A N/A N/A srcg identifier N/A dstg identifier N/A N/A N/A N/A N/A dstg remove N/A None None None N/A dstg srcg N/A N/A N/A N/A ctx dataset store graph_aware N/A N/A N/A N/A N/A N/A ctx dataset store remove_graph srcg N/A N/A N/A N/A srcg remove N/A None None None N/A evalCopy N/A N/A ctx u N/A N/A N/A 

    remove all triples from dst
    add all triples from src to dst

    http://www.w3.org/TR/sparql11-update/#copy
     N/A N/A src dst N/A u graph N/A srcg N/A _graphOrDefault ctx src N/A dstg N/A _graphOrDefault ctx dst N/A N/A N/A srcg identifier N/A dstg identifier N/A N/A N/A N/A N/A dstg remove N/A None None None N/A dstg srcg N/A evalUpdate N/A N/A graph update initBindings N/A None N/A N/A 

    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

     N/A u update N/A N/A ctx N/A QueryContext graph N/A N/A ctx prologue N/A u prologue N/A initBindings N/A N/A N/A k v N/A N/A initBindings iteritems N/A N/A N/A N/A isinstance k Variable N/A N/A k N/A Variable k N/A N/A ctx N/A k v N/A N/A N/A N/A N/A u name Load N/A N/A N/A evalLoad ctx u N/A N/A N/A N/A u name Clear N/A N/A N/A evalClear ctx u N/A N/A N/A N/A u name Drop N/A N/A N/A evalDrop ctx u N/A N/A N/A N/A u name Create N/A N/A N/A evalCreate ctx u N/A N/A N/A N/A u name Add N/A N/A N/A evalAdd ctx u N/A N/A N/A N/A u name Move N/A N/A N/A evalMove ctx u N/A N/A N/A N/A u name Copy N/A N/A N/A evalCopy ctx u N/A N/A N/A N/A u name InsertData N/A N/A N/A evalInsertData ctx u N/A N/A N/A N/A u name DeleteData N/A N/A N/A evalDeleteData ctx u N/A N/A N/A N/A u name DeleteWhere N/A N/A N/A evalDeleteWhere ctx u N/A N/A N/A N/A u name Modify N/A N/A N/A evalModify ctx u N/A N/A N/A Exception N/A Unknown update operation: %s N/A u N/A N/A N/A N/A N/A N/A u silent N/A N/A N/A