@@ -142,8 +142,7 @@ def __init__(self, identifier=None, configuration=None, engine=None,
142
142
143
143
# XXX For backward compatibility we still support getting the connection string in constructor
144
144
# TODO: deprecate this once refactoring is more mature
145
- if configuration :
146
- self .open (configuration )
145
+ super (SQLAlchemy , self ).__init__ (configuration )
147
146
148
147
def __repr__ (self ):
149
148
"""Readable serialisation."""
@@ -315,6 +314,7 @@ def destroy(self, configuration):
315
314
316
315
def add (self , triple , context = None , quoted = False ):
317
316
"""Add a triple to the store of triples."""
317
+ super (SQLAlchemy , self ).add (triple , context , quoted )
318
318
subject , predicate , obj = triple
319
319
_ , statement , params = self ._get_build_command (
320
320
(subject , predicate , obj ),
@@ -335,7 +335,9 @@ def add(self, triple, context=None, quoted=False):
335
335
def addN (self , quads ):
336
336
"""Add a list of triples in quads form."""
337
337
commands_dict = {}
338
+ add_event = super (SQLAlchemy , self ).add
338
339
for subject , predicate , obj , context in quads :
340
+ add_event ((subject , predicate , obj ), context )
339
341
command_type , statement , params = self ._get_build_command (
340
342
(subject , predicate , obj ),
341
343
context ,
@@ -367,6 +369,7 @@ def _add_ignore_on_conflict(self, statement):
367
369
368
370
def remove (self , triple , context ):
369
371
"""Remove a triple from the store."""
372
+ super (SQLAlchemy , self ).remove (triple , context )
370
373
subject , predicate , obj = triple
371
374
372
375
if context is not None :
0 commit comments