RE: @graph usage questions

On Wednesday, June 05, 2013 9:04 PM, Marian, Radu wrote:
> 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"
>     },
> 
> [...]
> 
> "The @graph keyword collects such nodes in an 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?

It's 2: a node object or an array of zero or more node objects.


> 3.  What are other good examples of graph usage?

Provenance


Btw. sorry for the terseness. I'm rather busy at the moment but wanted to
answer your main question nevertheless.


--
Markus Lanthaler
@markuslanthaler

Received on Thursday, 6 June 2013 11:33:45 UTC