|
3 | 3 | * @prefix ab: <http://www.w3.org/ns/pim/ab#>. |
4 | 4 | * @prefix acl: <http://www.w3.org/ns/auth/acl#>. |
5 | 5 | * @prefix dc: <http://purl.org/dc/elements/1.1/>. |
| 6 | +* @prefix dct: <http://purl.org/dc/terms/>. |
6 | 7 | * @prefix foaf: <http://xmlns.com/foaf/0.1/>. |
7 | 8 | * @prefix ldp: <http://www.w3.org/ns/ldp#>. |
| 9 | +* @prefix mee: <http://www.w3.org/ns/pim/meeting#>. |
8 | 10 | * @prefix pim: <http://www.w3.org/ns/pim/space#>. |
9 | 11 | * @prefix schema: <http://schema.org/>. |
| 12 | +* @prefix sioc: <http://rdfs.org/sioc/ns#>. |
10 | 13 | * @prefix solid: <http://www.w3.org/ns/solid/terms#>. |
11 | 14 | * @prefix vcard: <http://www.w3.org/2006/vcard/ns#>. |
12 | 15 | * @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. |
@@ -59,3 +62,16 @@ To publish some of your generic preferences to apps, use: |
59 | 62 | * <https://example.com/profile/card#me> solid:publicTypeIndex </settings/publicTypeIndex.ttl> |
60 | 63 | * <https://example.com/profile/card#me> solid:privateTypeIndex </settings/privateTypeIndex.ttl> |
61 | 64 |
|
| 65 | +# Chat |
| 66 | +To create a chat conversation, create a document, e.g. chat.ttl, and add the following triples to it: |
| 67 | +* <chat.ttl#this> a mee:LongChat |
| 68 | +* <chat.ttl#this> dc:author <https://example.com/profile/card#me> |
| 69 | +* <chat.ttl#this> dc:created "2018-07-06T21:36:04Z"^^XML:dateTime |
| 70 | +* <chat.ttl#this> dc:title "Chat channel" |
| 71 | + |
| 72 | +To add a message in the chat conversation, for instance where you say "hi", generate a timestamp like 1555487418787 and add the following triples to chat.ttl: |
| 73 | +* <chat.ttl#Msg1555487418787> dct:created "2019-04-17T07:50:18Z"^^XML:dateTime |
| 74 | +* <chat.ttl#Msg1555487418787> sioc:content "hi" |
| 75 | +* <chat.ttl#Msg1555487418787> foaf:maker <https://example.com/profile/card#me> |
| 76 | + |
| 77 | +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`. |
0 commit comments