W3C home > Mailing lists > Public > public-linked-json@w3.org > June 2013

@graph usage questions

From: Marian, Radu <radu.marian@baml.com>
Date: Wed, 05 Jun 2013 19:03:57 +0000
To: "'Linked JSON'" <public-linked-json@w3.org>
Message-id: <8EB326E198A85A409CDBB4297857CACB01399A02@smtp_mail.bankofamerica.com>
Trying to understand the spec portion about graph.  I see this example:
{
  "@context": ...,
  "@graph":
  [
    {
      "@id": "http://manu.sporny.org/i/public",
      "@type": "foaf:Person",
      "name": "Manu Sporny",
      "knows": "http://greggkellogg.net/foaf#me"
    },
    {
      "@id": "http://greggkellogg.net/foaf#me",
      "@type": "foaf:Person",
      "name": "Gregg Kellogg",
      "knows": "http://manu.sporny.org/i/public"
    }
  ]
}
"The @graph keyword collects such nodes in an array<http://json-ld.org/spec/latest/json-ld/#dfn-array> and allows the use of a shared context."

Does this mean:

1.      Graph content is always an array of nodes?

2.      Or graph content can have just one node (a root node) and its subnodes?

3.      What are other good examples of graph usage?

Thanks,
Radu

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended recipient, please delete this message.
Received on Wednesday, 5 June 2013 19:04:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:37 UTC