|
4 | 4 | * @prefix acl: <http://www.w3.org/ns/auth/acl#>. |
5 | 5 | * @prefix dc: <http://purl.org/dc/elements/1.1/>. |
6 | 6 | * @prefix dct: <http://purl.org/dc/terms/>. |
| 7 | +* @prefix flow: <http://www.w3.org/2005/01/wf/flow#>. |
7 | 8 | * @prefix foaf: <http://xmlns.com/foaf/0.1/>. |
| 9 | +* @prefix ical: <http://www.w3.org/2002/12/cal/ical#>. |
8 | 10 | * @prefix ldp: <http://www.w3.org/ns/ldp#>. |
9 | 11 | * @prefix mee: <http://www.w3.org/ns/pim/meeting#>. |
10 | 12 | * @prefix pim: <http://www.w3.org/ns/pim/space#>. |
11 | 13 | * @prefix schema: <http://schema.org/>. |
12 | 14 | * @prefix sioc: <http://rdfs.org/sioc/ns#>. |
13 | 15 | * @prefix solid: <http://www.w3.org/ns/solid/terms#>. |
| 16 | +* @prefix ui: <http://www.w3.org/ns/ui#>. |
14 | 17 | * @prefix vcard: <http://www.w3.org/2006/vcard/ns#>. |
15 | 18 | * @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. |
16 | 19 |
|
@@ -74,4 +77,54 @@ To add a message in the chat conversation, for instance where you say "hi", gene |
74 | 77 | * </chat.ttl#Msg1555487418787> sioc:content "hi" |
75 | 78 | * </chat.ttl#Msg1555487418787> foaf:maker </profile/card#me> |
76 | 79 |
|
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`. |
| 80 | +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`. |
| 81 | + |
| 82 | +# Notepad |
| 83 | +To create a new notepad at /notepad.ttl, add the following triples into it: |
| 84 | +* </notepad.ttl#this> a pim:Notepad |
| 85 | +* </notepad.ttl#this> dc:author </profile/card#me> |
| 86 | +* </notepad.ttl#this> dc:created "2019-04-17T08:05:19Z"^^XML:dateTime |
| 87 | +* </notepad.ttl#this> dc:title "Shared Notes" |
| 88 | + |
| 89 | +Now to indicate that his notepad is empty, add an empty first line to it: |
| 90 | +* </notepad.ttl#this> pim:next </notepad.ttl#this_line0> |
| 91 | +* </notepad.ttl#line0> dc:author </profile/card#me> |
| 92 | +* </notepad.ttl#line0> dc:content "" |
| 93 | + |
| 94 | +Now indicate that this is the last line, set this line's pim:next to the notepad itself: |
| 95 | +* </notepad.ttl#line0> pim:next </notepad.ttl#this> |
| 96 | + |
| 97 | +To add a line to the notepad, for instance 'first line', first update the content of the first line, by replacing |
| 98 | +* </notepad.ttl#line0> dc:content "" |
| 99 | +with |
| 100 | +* </notepad.ttl#line0> dc:content "first line" |
| 101 | +and then add a new participation-line below it, where the user can type their next line; pick a timestamp, for instance 1555488949899, and add the following triples: |
| 102 | +* </notepad.ttl#this> flow:participation </notepad.ttl#id1555488949899> |
| 103 | +* </notepad.ttl#id1555488949899> flow:participant </profile/card#me> |
| 104 | +* </notepad.ttl#id1555488949899> ical:dtstart "2019-04-17T08:05:22Z"^^XML:dateTime |
| 105 | +* </notepad.ttl#id1555488949899> ui:backgroundColor "#c0d2fe" |
| 106 | + |
| 107 | +Note that the first line still is the only line in the document, apart from the participation line. To add a second line, start making proper use of the pim:next attribute, by linking the first line to the second line, and then linking the second line back up to the notepad as a whole. The participation line stays as it is. The result will then look like this: |
| 108 | + |
| 109 | +### Main notepad |
| 110 | +* </notepad.ttl#this> a pim:Notepad |
| 111 | +* </notepad.ttl#this> dc:author </profile/card#me> |
| 112 | +* </notepad.ttl#this> dc:created "2019-04-17T08:05:19Z"^^XML:dateTime |
| 113 | +* </notepad.ttl#this> dc:title "Shared Notes" |
| 114 | +* </notepad.ttl#this> pim:next </notepad.ttl#this_line0> |
| 115 | +* </notepad.ttl#this> flow:participation :id1555488949899 |
| 116 | + |
| 117 | +### Participation |
| 118 | +* </notepad.ttl#id1555488949899> flow:participant </profile/card#me> |
| 119 | +* </notepad.ttl#id1555488949899> ical:dtstart "2019-04-17T08:05:22Z"^^XML:dateTime |
| 120 | +* </notepad.ttl#id1555488949899> ui:backgroundColor "#c0d2fe" |
| 121 | + |
| 122 | +### First line |
| 123 | +* </notepad.ttl#line0> dc:author </profile/card#me> |
| 124 | +* </notepad.ttl#line0> dc:content "first line" |
| 125 | +* </notepad.ttl#line0> pim:next :id1555489499814 |
| 126 | + |
| 127 | +### Second line |
| 128 | +* </notepad.ttl#id1555489499814> dc:author </profile/card#me> |
| 129 | +* </notepad.ttl#id1555489499814> dc:content "second line" |
| 130 | +* </notepad.ttl#id1555489499814> pim:next :</notepad.ttl#this> |
0 commit comments