I am working in a project to develop a decentralized chat and I have found a problem when using rdflib and how to store my data in turtle format.
What I do now is as follows:
store.add(sender, text, "my friend", doc); fetcher.putBack(doc);
I am trying this with just 1 POD as to try to get the correct functioning with turtle before jumping into having two users or more but thats for a further discussion.
Right now my problem is that whenever the first I try add a message all works fine, and the tuple is created as expected in my .ttl file.
@prefix : <#>. @prefix c: </profile/card#>. c:me "Testing message" "my friend".
But the second time I try to add another message it just adds it to the first tuple, over creating a second tuple with the second message.
I am not sure if it has to do with my knowledge about turtle which is pretty basic, or the way I am working with rdflib and handling the updates on the POD.
Thanks in advance