What I do is load the new Nt file into an updates graph and then use
capabilities of the triple store to compare.   For me, that's virtuoso, so
SQL queries are also available.

On Nov 24, 2017 9:53 AM, "Dan Davis" <[email protected]> wrote:

> Rdflib has a graph_diff method that returns common, triples, only in left,
> only in right.   It is in IsonorpgicGraph class, so it should handle blank
> nodes.
>
> On Nov 24, 2017 7:19 AM, "Laura Morales" <[email protected]> wrote:
>
>> > What about simply deleting the old graph and loading the triples of the
>> > .nt file into the graph afterwards? I don't see any benefit of such a
>> > "tool" - you could just write your own bash script for this if you need
>> > this quite often.
>>
>> The advantage is with large graphs, such as wikidata. If I download their
>> dumps once a week, it's much more efficient to only change a few triples
>> instead of deleting the entire graph and recreating the whole TDB store.
>>
>

Reply via email to