From daa3f15aa48a63ed66d0d9322c0024bcc2d2d6ae Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Wed, 13 Nov 2024 03:56:05 +0530 Subject: [PATCH 1/3] fix: `id` and `state` in Data Model + `id` is a IRI or bnode (not string). + `notify:state` (not `id`) can be used to set `Last-Event-ID`. + Add prefixes to properties in Data Model. --- src/sections/conformance.md | 5 ++++- src/sections/data-model.md | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/sections/conformance.md b/src/sections/conformance.md index 7e3d281..00789ad 100644 --- a/src/sections/conformance.md +++ b/src/sections/conformance.md @@ -35,11 +35,14 @@ This document uses the following RDF vocabularies and corresponding namespace pr Namespace Description + + rdf + https://www.w3.org/1999/02/22-rdf-syntax-ns# + [[!RDF-SCHEMA]] xs http://www.w3.org/2001/XMLSchema# [[!XMLSCHEMA11-1]] - as https://www.w3.org/ns/activitystreams# diff --git a/src/sections/data-model.md b/src/sections/data-model.md index b549dbc..1bb364e 100644 --- a/src/sections/data-model.md +++ b/src/sections/data-model.md @@ -8,13 +8,13 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] MUST have the f
-
*id* <xs:string> -
an opaque identifier for the notification. Can be used to set `Last-Event-ID` in a subsequent [PREP] notifications request. +
*id* <rdfs:subject> +
an unique identifier for a notification. -
*type* <as:Activity> +
*as:type* <as:Activity>
the [[ACTIVITYSTREAMS-VOCABULARY#activity-types|type of activity]] that triggered the notification. -
*published* <xs:dateTime> +
*as:published* <xs:dateTime>
the date and time of the notification.
@@ -23,8 +23,8 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] SHOULD have the
-
*state* <xs:string> -
an opaque identifier for the last known state of the resource. +
*notify:state* <xs:string> +
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.
From 684edd85ff746b925a54f9dd8b2fa68fbd85168d Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Wed, 13 Nov 2024 05:12:13 +0530 Subject: [PATCH 2/3] Fix typo Co-authored-by: Sarven Capadisli --- src/sections/data-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sections/data-model.md b/src/sections/data-model.md index 1bb364e..af08300 100644 --- a/src/sections/data-model.md +++ b/src/sections/data-model.md @@ -9,7 +9,7 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] MUST have the f
*id* <rdfs:subject> -
an unique identifier for a notification. +
a unique identifier for a notification.
*as:type* <as:Activity>
the [[ACTIVITYSTREAMS-VOCABULARY#activity-types|type of activity]] that triggered the notification. From 0c75bc5a0e77600f04a6c13fb49a7f986016bea7 Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Mon, 30 Dec 2024 04:53:14 +0530 Subject: [PATCH 3/3] fix!: Identifier MUST be an IRI Set the notification identifier to be an IRI. --- src/sections/conformance.md | 4 ---- src/sections/data-model.md | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sections/conformance.md b/src/sections/conformance.md index 00789ad..c624f3e 100644 --- a/src/sections/conformance.md +++ b/src/sections/conformance.md @@ -35,10 +35,6 @@ This document uses the following RDF vocabularies and corresponding namespace pr Namespace Description - - rdf - https://www.w3.org/1999/02/22-rdf-syntax-ns# - [[!RDF-SCHEMA]] xs http://www.w3.org/2001/XMLSchema# diff --git a/src/sections/data-model.md b/src/sections/data-model.md index af08300..565ed40 100644 --- a/src/sections/data-model.md +++ b/src/sections/data-model.md @@ -8,8 +8,8 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] MUST have the f
-
*id* <rdfs:subject> -
a unique identifier for a notification. +
*id* +
an absolute IRI (Internationalized Resource Identifier) that uniquely identifies the notification.
*as:type* <as:Activity>
the [[ACTIVITYSTREAMS-VOCABULARY#activity-types|type of activity]] that triggered the notification.