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.
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.
then it is all right. The missing of the subject (c:me) ist just a short hand from turtle, the second line is a full tuple actually.
Be also aware that the second component in the tuple should be a predicate from some ontology or vocabulary. You should look for an appropriated vocabulary for representing messages. Then the message text would be probably the third component in the tuple, the object or value.