ArticleslgStudy

science

Linked Data Notifications

Linked Data Notifications is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Linked Data Notifications rather than just read about it. In short: Linked Data Notifications (LDN) 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.

Key takeaways

  • Linked Data Notifications belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Linked Data Notifications to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Linked Data Notifications from memory before moving on to harder problems.

Reference excerpt

Linked Data Notifications (LDN) 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.

Motivation 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, 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.

Protocol A sender or receiver performs a GET or HEAD to an existing HTTP resource. Its inbox URI is discovered from either: A Link: relation in the HTTP response headers of type http://www.w3.org/ns/ldp#inbox An RDF statement embedded in the HTTP body using the RDF property http://www.w3.org/ns/ldp#inbox A sender creates a new notification (e.g. as JSON-LD), which it POSTs to the inbox URI. The receiver creates a new HTTP resource containing the posted notification and responds with 201 Created and the created URI. A consumer retrieves RDF from the discovered inbox URI using GET, then: The consumer parses the response body to find RDF statements with the property http://www.w3.org/ns/ldp#contains. The object of these statements give the URIs to the accepted LDN notifications. The consumer retrieve any of the linked notification using GET 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 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.

Examples 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:

Implementations Several LDN implementations exists, covering senders, consumers and receivers, including:

dokieli (sender, consumer) errol (sender) Fedora Commons (receiver) Apache Marmotta (receiver) Carbon LDP (receiver) Linked Edit Rules (sender) Solid (sender, receiver, consumer) Virtuoso Universal Server (receiver, consumer) Any Linked Data Platform (LDP) implementations are also conforming Linked Data Notification receivers as LDN is a strict subset of LDP.

References

Worked examples

Example 1 — a first encounter with Linked Data Notifications

Start with the simplest possible case. Write down what Linked Data Notifications claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Linked Data Notifications before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Linked Data Notifications ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Linked Data Notifications

In research
Linked Data Notifications appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Linked Data Notifications in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Linked Data Notifications is common in secondary-school and first-year university syllabi. It links to neighbouring topics World Wide Web Consortium standards, so understanding it makes those chapters shorter.
In everyday life
Look for Linked Data Notifications outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Linked Data Notifications” →

How to study Linked Data Notifications in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Linked Data Notifications means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Linked Data Notifications out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Linked Data Notifications in simple terms?

Linked Data Notifications (LDN) 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 r…

Why does Linked Data Notifications matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Linked Data Notifications?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Linked Data Notifications.

Tags

  • World Wide Web Consortium standards

Keep exploring