diff --git a/protocol.html b/protocol.html index 735b1b7..bfcf170 100644 --- a/protocol.html +++ b/protocol.html @@ -410,22 +410,22 @@
This specification defines the following terms. These terms are referenced throughout this specification.
- +The following properties are used for the discovery of a notification channel and its capabilities:
+When a server wants to enable applications to discover Notification Channels available to a given resource, the server MUST advertise the associated resources describing the channel information by responding to an HTTP request including a Link
header with the rel
value of describedby
[POWDER-DR] and the Description Resource as link target [RFC8288].
feature
predicate denotes a particular feature of a notification channel (Notification Features).notificationChannel
predicate denotes that a resource has a notification channel.subscription
predicate denotes a subscription resource associated with a notification channel (Subscription).type
predicate (rdf:type
) denotes the subscription type (Subscription).When a server wants to enable applications to discover Notification Channels available to a storage in which a given resource is in, the server MUST advertise the associated resources describing the channel information by responding to an HTTP request including a Link
header with the rel
value of http://www.w3.org/ns/solid#storageDescription
[SOLID-PROTOCOL] and the Description Resource as link target [RFC8288].
The specific mechanism defining the discovery of the Notification Subscription Metadata Resource is under consideration: issues/58.
+
+
+
+ Servers
+ MUST accept requests on the Notification Channel Resource when the value of the Accept
header indicates a preferred representation in application/ld+json
[JSON-LD11].
+
+
+
The following properties are used for the discovery of a notification channel and its capabilities:
+ +feature
predicate denotes a particular feature of a notification channel (Notification Features).notificationChannel
predicate denotes that a resource has a notification channel.subscription
predicate denotes a subscription resource associated with a notification channel (Subscription).type
predicate (rdf:type
) denotes the notification channel type (Notification Channel).Servers MUST include the @context
field as an array containing the value https://www.w3.org/ns/solid/notification/v1
in the JSON-LD representation of a Notification Channel Resource.
- - - The server - MUST be capable of serializing the - Notification Subscription Metadata Resource as - Turtle [TURTLE] - or JSON-LD [JSON-LD11]. - - -
+A Notification Channel has the following properties:
-
-
- When serializing the Notification Subscription Metadata Resource as Turtle,
- every notify:notificationChannel
definition
- MUST
- materialize an rdf:type
triple, indicating the channel type.
-
-
notify:notificationChannel
property whose object describes a notification channel.rdf:type
property whose object is notify:NotificationChannel
.notify:feature
property values (Notification Features).notify:subscription
property value (Notification Subscription).- A sample representation of this resource might include the following: -
++ Sample representations of the Notification Channel Resource might include the following: +
- -+ Example: Representation of a Notification Channel Resource. +
-
-
- When serializing the Notification Subscription Metadata Resource as JSON-LD,
- the @context
field MUST
- be an array containing the value https://www.w3.org/ns/solid/notification/v1
.
- In addition, for every notificationChannel
definition,
- the Subscription Metadata Resource MUST
- materialize a type
field, indicating the channel type.
-
-
- Example: Representation of a Notification Subscription Metadata Resource. -
- -Content-Type: application/ld+json
+-Content-Type: application/ld+json
{
"@context": [
@@ -609,8 +599,10 @@JSON-LD Serialization
}]
}
- JSON-LD
serialization of a Notification Subscription Metadata Resource
JSON-LD
serialization of resource including notification channel information.