Skip to content

Commit 362d019

Browse files
authored
fix: id and state in Data Model (#17)
* fix!: `id` and `state` in Data Model + `id` is a IRI. + `notify:state` (not `id`) can be used to set `Last-Event-ID`. + Add prefixes to properties in Data Model. Co-authored-by: Sarven Capadisli <info@csarven.ca>
1 parent 7aa4c37 commit 362d019

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/sections/conformance.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ This document uses the following RDF vocabularies and corresponding namespace pr
3939
<td> <code>xs
4040
<td> <samp>http://www.w3.org/2001/XMLSchema#
4141
<td> [[!XMLSCHEMA11-1]]
42-
<tbody>
4342
<tr>
4443
<td> <code>as
4544
<td> <samp>https://www.w3.org/ns/activitystreams#

src/sections/data-model.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] MUST have the f
88

99
<dl>
1010

11-
<dt id="notification-property-id"><code>*id* &lt;xs:string></code>
12-
<dd> an opaque identifier for the notification. Can be used to set `Last-Event-ID` in a subsequent [PREP] notifications request.
11+
<dt id="notification-property-id"><code>*id*</code>
12+
<dd> an absolute IRI (Internationalized Resource Identifier) that uniquely identifies the notification.
1313

14-
<dt id="notification-property-type"><code>*type* &lt;as:Activity></code>
14+
<dt id="notification-property-type"><code>*as:type* &lt;as:Activity></code>
1515
<dd> the [[ACTIVITYSTREAMS-VOCABULARY#activity-types|type of activity]] that triggered the notification.
1616

17-
<dt id="notification-property-published"><code>*published* &lt;xs:dateTime></code>
17+
<dt id="notification-property-published"><code>*as:published* &lt;xs:dateTime></code>
1818
<dd> the date and time of the notification.
1919

2020
</dl>
@@ -23,8 +23,8 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] SHOULD have the
2323

2424
<dl>
2525

26-
<dt id="notification-property-state"><code>*state* &lt;xs:string></code>
27-
<dd> an opaque identifier for the last known state of the resource.
26+
<dt id="notification-property-state"><code>*notify:state* &lt;xs:string></code>
27+
<dd> an opaque identifier for the last known state of the resource. Can be used to set `Last-Event-ID` in a subsequent [PREP] notifications request.
2828

2929
</dl>
3030

0 commit comments

Comments
 (0)