I am using Jena TDB to persist RDF data. Before this I searched how to persist data in TDB and I came through the question at this link. Answer provided by Ryan clearly mentions the difference between various concepts, and one of the point I got about datasets is:
"A Dataset is like a DataSource, but its triples are static - you don't expect new ones to be added or existing ones to be deleted. These guys are read-only"
Keeping this in mind, I stored some rdf data in a named model within dataset. Now when I try to store/append some new data to this it clearly overwrites the previous one. So, this is doing clearly opposite to what Ryan has mentioned, i.e, read only nature. So the various points for which I need clarification include:
- Is Ryan correct about what he has discussed about dataset?
- If answer to point # 1 is yes, then why I am able to overwrite?
- Does TDB check for duplication before persisting data. I am asking this because I tried to insert a couple of duplicate RDF statements and I was expecting an increase in the count of rdf statements but there was no increase in count!