Skip to content

Commit bd0fce5

Browse files
describe Chat
1 parent cbe59f4 commit bd0fce5

6 files changed

Lines changed: 16 additions & 104 deletions

File tree

Documentation/Shapes.html

Lines changed: 0 additions & 43 deletions
This file was deleted.

Documentation/conventions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
* @prefix ab: <http://www.w3.org/ns/pim/ab#>.
44
* @prefix acl: <http://www.w3.org/ns/auth/acl#>.
55
* @prefix dc: <http://purl.org/dc/elements/1.1/>.
6+
* @prefix dct: <http://purl.org/dc/terms/>.
67
* @prefix foaf: <http://xmlns.com/foaf/0.1/>.
78
* @prefix ldp: <http://www.w3.org/ns/ldp#>.
9+
* @prefix mee: <http://www.w3.org/ns/pim/meeting#>.
810
* @prefix pim: <http://www.w3.org/ns/pim/space#>.
911
* @prefix schema: <http://schema.org/>.
12+
* @prefix sioc: <http://rdfs.org/sioc/ns#>.
1013
* @prefix solid: <http://www.w3.org/ns/solid/terms#>.
1114
* @prefix vcard: <http://www.w3.org/2006/vcard/ns#>.
1215
* @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@@ -59,3 +62,16 @@ To publish some of your generic preferences to apps, use:
5962
* <https://example.com/profile/card#me> solid:publicTypeIndex </settings/publicTypeIndex.ttl>
6063
* <https://example.com/profile/card#me> solid:privateTypeIndex </settings/privateTypeIndex.ttl>
6164

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`.

Documentation/shape-examples/address-book/groups.ttl

Whitespace-only changes.

Documentation/shape-examples/address-book/index.ttl

Lines changed: 0 additions & 29 deletions
This file was deleted.

Documentation/shape-examples/address-book/people.ttl

Lines changed: 0 additions & 7 deletions
This file was deleted.

Documentation/shape-examples/profile-card.ttl

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)