Sunday, May 25, 2025

JSON-LD: JSON + RDF (Semantic Web), ActivityPub protocol

SE Radio 657: Hong Minhee on ActivityPub and the Fediverse – Software Engineering Radio

This is not new, I have mentioned JSON-LD format on this blog 11 years ago.
But it is also not widely used, while it is powerful. 
It is apparently used, not always "correctly", for social-media servers like Mastodon.

ActivityPub - Wikipedia

ActivityPub is a protocol and open standard for decentralized social networking. It provides a client-to-server (C2S) API for creating and modifying content, as well as a federated server-to-server (S2S) protocol for delivering notifications and content to other servers

ActivityPub Rocks!


JSON-LD - Wikipedia

JSON-LD (JavaScript Object Notation for Linked Data) is a method of encoding linked data using JSON. One goal for JSON-LD was to require as little effort as possible from developers to transform their existing JSON to JSON-LD.[1] JSON-LD allows data to be serialized in a way that is similar to traditional JSON.

JSON-LD - JSON for Linking Data

{
  "@context": "https://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

No comments: