Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Linked Data Notifications

From Wikipedia, the free encyclopedia
W3C Recommendation that describes a communications protocol
Linked Data Notifications
AbbreviationLDN
StatusW3C Recommendation
Year started2016; 9 years ago (2016)[1][2]
First publishedJuly 26, 2016; 9 years ago (2016-07-26)[1][2]
Latest versionW3C Recommendation
May 2, 2017; 8 years ago (2017-05-02)[3]
Preview versionEditor's Draft
April 30, 2017; 8 years ago (2017-04-30)
Organization
CommitteeSocial Web Working Group
Editors
Base standards
Related standards
DomainSemantic Web,communications protocol
Websitewww.w3.org/TR/ldn/

Linked Data Notifications (LDN)[3] is aW3CRecommendation that describes acommunications protocol based onHTTP,URI, andRDF 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 aHTML page) can advertise a receiving endpoint (inbox) for notification messages. Messages are expressed in RDF, and can contain arbitrary data.

Motivation

[edit]

Theweb is a decentralized system of web resources, published by multiple organizations and individuals. Web resources, such as web pages and more formally structuredlinked 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 providebacklinks without manual intervention. Interactions withinsocial media platforms, such as comments on a news article, are currently "locked" within the platform and hard to access across the web.

Severallinkback mechanisms exists, and are commonly used betweenblog systems, e.g. a "response" post in blog B about a post in blog A causes B's platform to send apingback 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 anyControlled vocabulary - so that any consuming application can select the particular information they understand.

Protocol

[edit]
  • Asender orreceiver performs aGET orHEAD to an existing HTTP resource. Itsinbox URI is discovered from either:
    • ALink: relation in the HTTP response headers of typehttp://www.w3.org/ns/ldp#inbox
    • An RDF statement embedded in the HTTP body using the RDF propertyhttp://www.w3.org/ns/ldp#inbox
  • Asender creates a new notification (e.g. asJSON-LD), which itPOSTs to theinbox URI.
    • Thereceiver creates a new HTTP resource containing the posted notification and responds with201 Created and the created URI.
  • Aconsumer retrieves RDF from the discoveredinbox URI usingGET, then:
    • Theconsumer parses the response body to find RDF statements with the propertyhttp://www.w3.org/ns/ldp#contains. The object of these statements give the URIs to the accepted LDN notifications.
    • Theconsumer retrieve any of the linked notification usingGET and process their RDF in an application-specific manner.
    • Notifications remain accessible, and can therefore be linked to and described in other web resources.

At each stage, the sender and consumer may performcontent negotiation to send or receive in any mutually agreedRDF serialization format, but a compliant LDN receiver must support at leastJSON-LD.

Examples

[edit]

Asender orconsumer discovers the inbox for a given URI, in this example using theHEAD method:

HEADhttps://example.org/article/5HTTP/1.1
HTTP/1.1200OKLink:<https://example.org/inbox/7>; rel="http://www.w3.org/ns/ldp#inbox"

Asender sends a notification to the discovered inbox, in this example using theSchema.org vocabulary:

POSThttps://example.org/inbox/7HTTP/1.1Content-Type:application/ld+json{"@context":"http://schema.org","@type":"ReviewAction","object":{"@id":"https://example.org/article/5"},"agent":{"@type":"Person","name":"Alice"},"result":{"@type":"Review","reviewBody":"This article is the best I've ever seen!"}}
HTTP/1.1201CreatedLocation:http://example.org/inbox/f44f3f11

Aconsumer lists the content of the discovered inbox to find 3 notifications:

GEThttps://example.org/inbox/7HTTP/1.1Content-Type:application/ld+json
HTTP/1.1200OKContent-Type:application/ld+json{"@context":"http://www.w3.org/ns/ldp","@id":"https://example.org/inbox/7","contains":["https://example.org/inbox/5c6ca040","https://cdn.example.org/inbox/92d72f00","https://example.org/inbox/f44f3f11",]}

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 aCDN). Theconsumer follows the links for any notifications they wish to retrieve.

In this example, theconsumer retrieves the newf44f3f11 notification, with content negotiation to prefer theTurtle RDF format:

GEThttps://example.org/inbox/f44f3f11HTTP/1.1Accept:application/ld+json;q=0.9, text/turtle;q=1.5
HTTP/1.1200OKContent-Type:text/turtle@prefixschema:<http://schema.org/>.[aschema:ReviewAction;schema:agent[aschema:Person;schema:name"Alice"];schema:object<https://example.org/article/5>;schema:result[aschema:Review;schema:reviewBody"This article is the best I've ever seen!"]].

Implementations

[edit]

SeveralLDN implementations exists,[4][5] covering senders, consumers and receivers, including:

AnyLinked Data Platform (LDP) implementations are also conforming Linked Data Notificationreceivers as LDN is a strict subset of LDP.[4]

References

[edit]
  1. ^ab"Linked Data Notifications Publication History - W3C".W3C. n.d. Retrieved2021-04-21.
  2. ^abCapadisli, Sarven; Guy, Amy, eds. (2016-07-26)."Linked Data Notifications".W3C. Social Web Working Group.https://www.w3.org/TR/ldn/. Retrieved2021-04-21.
  3. ^abcdCapadisli, Sarven; Guy, Amy, eds. (2017-05-02)."Linked Data Notifications".W3C. Social Web Working Group.https://www.w3.org/TR/ldn/. Retrieved2021-04-21.
  4. ^abcCapadisli, Sarven; Guy, Amy; Lange, Christoph; Auer, Sören; Sambra, Andrei;Berners-Lee, Tim (2017-05-28). "Linked Data Notifications: A Resource-Centric Communication Protocol".The Semantic Web. Lecture Notes in Computer Science. Vol. 10249. pp. 537–553.doi:10.1007/978-3-319-58068-5_33.ISBN 978-3-319-58067-8.http://csarven.ca/linked-data-notifications.{{cite book}}:|journal= ignored (help)
  5. ^"LDN Test Reports and Summary".linkedresearch.org. 2016-09-18. Retrieved2017-05-26.
Products,
standards
Recommendations
Notes
Working drafts
Guidelines
Initiative
Deprecated
Obsoleted
Groups,
organizations
Elected
Working
Community, business
Closed
Software
Browsers
Conferences
Retrieved from "https://en.wikipedia.org/w/index.php?title=Linked_Data_Notifications&oldid=1171913963"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp