RDFLib / rdflib-sqlalchemy

RDFLib store using SQLAlchemy dbapi as back-end
Other
148 stars 34 forks source link

Allow re-inserting triples in SQLite #42

Closed mwatts15 closed 5 years ago

mwatts15 commented 5 years ago

Currently, you get an exception if you try to insert a triple or more than once with this store, at least using a SQLite db backend. Rather than this, the user should not get an error, but should have duplicate triples insertions silently replaced.

mwatts15 commented 5 years ago

Tests: https://gist.github.com/mwatts15/8e9fe80af47111942a6fe13a0c39a95f

mwatts15 commented 5 years ago

In the actual resolution, duplicate triples are ignored rather than replaced.