Skip to content

Commit 6a08510

Browse files
LongChat
1 parent 1279d89 commit 6a08510

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

Documentation/conventions.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,27 @@ To add a message in the chat conversation, for instance where you say "hi", gene
139139
Note that for historical reasons, for the chat conversation as a whole, we use `dc:created` and `dc:author`, whereas for the individual chat messages we use `dct:created` and `foaf:maker`.
140140

141141
## LongChat
142-
// TODO
142+
LongChat is similar to Chat, except that it uses LDP containers to discover the triples that describe the chat conversation,
143+
instead of having all the triples in one chat.ttl doc.
144+
To create a chat conversation, pick a timestamp, e.g. 1555491215455, create an LDP container, for instance /long-chat/, and in there, create an index document, e.g. /long-chat/index.ttl. To the index document, add the following triples:
145+
* </long-chat/index.ttl#this> a mee:LongChat
146+
* </long-chat/index.ttl#this> dc:author </profile/card#me>
147+
* </long-chat/index.ttl#this> dc:created "2018-07-06T21:36:04Z"^^XML:dateTime
148+
* </long-chat/index.ttl#this> dc:title "Chat channel"
149+
* </long-chat/index.ttl#this> flow:participation :id1555491215455
150+
* </long-chat/index.ttl#this> ui:sharedPreferences :SharedPreferences
151+
* </long-chat/index.ttl#id1555491215455> ic:dtstart "2019-04-17T08:53:35Z"^^XML:dateTime
152+
* </long-chat/index.ttl#id1555491215455> flow:participant </profile/card#me>
153+
* </long-chat/index.ttl#id1555491215455> ui:backgroundColor "#c0d2fe"
154+
155+
To add a message in the LongChat conversation, for instance where you say "hi", pick a filename, for instance /long-chat/2019/04/17/chat.ttl, generate a timestamp like 1555487418787 and add the following triples to /long-chat/2019/04/17/chat.ttl:
156+
* </long-chat/2019/04/17/chat.ttl#Msg1555487418787> dct:created "2019-04-17T07:50:18Z"^^XML:dateTime
157+
* </long-chat/2019/04/17/chat.ttl#Msg1555487418787> sioc:content "hi"
158+
* </long-chat/2019/04/17/chat.ttl#Msg1555487418787> foaf:maker </profile/card#me>
159+
* </long-chat/index.ttl#this> flow:message </long-chat/2019/04/17/chat.ttl#Msg1555487418787>
160+
161+
Note that there is no need to make /long-chat/2019/04/17/chat.ttl discoverable from /long-chat/index.ttl, since it can be discovered by following the LDP Container member listings for /long-chat/, /long-chat/2019/, /long-chat/2019/04/, and /2019/04/17/.
162+
Also note that here too, for the chat conversation as a whole, we use `dc:created` and `dc:author`, whereas for the individual chat messages we use `dct:created` and `foaf:maker`.
143163

144164
## Meeting
145165
// TODO

0 commit comments

Comments
 (0)