Gunnar Bittersmann: Zirkelbezüge in JSON-LD

Beitrag lesen

Wie gibt man Zirkelbezüge in JSON-LD an? Ist das richtig so?

{
  "@context": {
    "@vocab": "http://xmlns.com/foaf/0.1/"
  },
  "@type": "Group",
  "name": "crew of the USS Enterprise",
  "member": [
    {
      "@id": "http://starfleet.example/ncc1701/crew/kirk",
      "@type": "Person",
      "name": "James T. Kirk",
      "knows": [
        { "@id": "http://starfleet.example/ncc1701/crew/spock" },
        { "@id": "http://starfleet.example/ncc1701/crew/mccoy" }
      ]
    },
    {
      "@id": "http://starfleet.example/ncc1701/crew/spock",
      "@type": "Person",
      "name": "Spock",
      "knows": [
        { "@id": "http://starfleet.example/ncc1701/crew/kirk" },
        { "@id": "http://starfleet.example/ncc1701/crew/mccoy" }
      ]
    },
    {
      "@id": "http://starfleet.example/ncc1701/crew/mccoy",
      "@type": "Person",
      "title": "Dr.",
      "name": "Leonard McCoy",
      "nick": "Bones",
      "knows": [
        { "@id": "http://starfleet.example/ncc1701/crew/kirk" },
        { "@id": "http://starfleet.example/ncc1701/crew/spock" }
      ]
    }
  ]
}

😷 LLAP

--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon