Linked Data Notifications | |
Status: | W3C Recommendation |
Year Started: | [1] [2] |
Version: | W3C Recommendation |
Preview: | Editor's Draft |
Committee: | Social Web Working Group |
Domain: | Semantic Web, communications protocol |
Abbreviation: | LDN |
Linked Data Notifications (LDN) [3] is a W3C Recommendation that describes a communications protocol based on HTTP, URI, and RDF on how servers (receivers) can receive messages pushed to them by applications (senders), as well as how other applications (consumers) may retrieve those messages. Any web resource (like a HTML page) can advertise a receiving endpoint (inbox) for notification messages. Messages are expressed in RDF, and can contain arbitrary data.
The web is a decentralized system of web resources, published by multiple organizations and individuals. Web resources, such as web pages and more formally structured linked data, frequently include links to other resources across the web, and may comment or describe them in various ways. The receiving end, however, are not generally notified of such link creation, and thus are unable to provide backlinks without manual intervention. Interactions within social media platforms, such as comments on a news article, are currently "locked" within the platform and hard to access across the web.
Several linkback mechanisms exists, and are commonly used between blog systems, e.g. a "response" post in blog B about a post in blog A causes B's platform to send a pingback to be shown on the original blog A. These mechanisms are, however, generally limited in which structured information can be sent, and the notifications themselves do not form part of the decentralized web and may be difficult to consume by any third party application.
A key motivation for LDN is to support notifications between decentralized Web applications,[4] including web browsers who - not having their own HTTP server - are unable to generate a HTTP link for their reply messages. Another motivation is to structure notifications as RDF statements using any Controlled vocabulary - so that any consuming application can select the particular information they understand.
GET
or HEAD
to an existing HTTP resource. Its inbox URI is discovered from either:Link:
relation in the HTTP response headers of type <nowiki>http://www.w3.org/ns/ldp#inbox</nowiki>
<nowiki>http://www.w3.org/ns/ldp#inbox</nowiki>
POST
s to the inbox URI.201 Created
and the created URI.GET
, then:<nowiki>http://www.w3.org/ns/ldp#contains</nowiki>
. The object of these statements give the URIs to the accepted LDN notifications.GET
and process their RDF in an application-specific manner.At each stage, the sender and consumer may perform content negotiation to send or receive in any mutually agreed RDF serialization format, but a compliant LDN receiver must support at least JSON-LD.
A sender or consumer discovers the inbox for a given URI, in this example using the HEAD
method:
A sender sends a notification to the discovered inbox, in this example using the Schema.org vocabulary:
A consumer lists the content of the discovered inbox to find 3 notifications:
Note that the URIs of the original resource, inbox and notifications are not required to be hosted on the same HTTP server (e.g. they may be on a CDN). The consumer follows the links for any notifications they wish to retrieve.
In this example, the consumer retrieves the new f44f3f11
notification, with content negotiation to prefer the Turtle RDF format:
@prefix schema:
Several LDN implementations exists,[5] covering senders, consumers and receivers, including:
Any Linked Data Platform (LDP) implementations are also conforming Linked Data Notification receivers as LDN is a strict subset of LDP.