Current Slide

Small screen detected. You are viewing the mobile version of SlideWiki. If you wish to edit slides you will need to use a larger device.

JSON-LD Contexts

  • @context is a special keyword to make explicit the semantic context in which some JSON data is communicated.
  • The context includes, e.g., name-to-IRI mappings.
  • The @id keyword assigns IRIs to things.
{ "@context":
  { "name": "",
    "born": { "@id": "",
              "@type": "" },
    "spouse": { "@id": "",
                "@type": "@id" } }
  "@id": "",
  "name": "John Lennon",
  "born": "1940-10-09",
  "spouse": "" }
  • Note that the remaining JSON remained unchanged.
  • It is possible to centralise context definitions in external locations and point to them:
{ "@context": "",
  "@id": "",
  "name": "John Lennon", ... }

Content Tools


There are currently no sources for this slide.