Is there possible duplicated triples in TDB2?

27 Views Asked by At

I'm using Jena TDB2 and I loaded a TDB dataset. I want to know whether TDB will contain two same triples or the loaded triples had been deduplicated when it build the TDB database.

1

There are 1 best solutions below

0
Ortomala Lokni On

As stated in the comments, the question:

Is there possible duplicated triples in TDB2?

as been asked as an issue on the Apache Jena Github, the answer is:

An RDF graph is a set of triples - there are no duplicates in a graph.

A triple can be in several graphs. If you use the union default graph feature (make the default graph for query be the union of all the named graphs), there will still only be one triple in the default graph.