json-ld/json-ld.org — Issue #75: Reference to lists (or sets)
Author: lanthaler
Created: 2012-01-31 16:55:14+00:00
State: open

***This is more or less a note to myself at this point in time as I'm not sure yet what to think about it. I put it up here since I think it's an imporant use case. Feedback is appreciated***

The issue is how to reference large lists (or sets) in another document. This is a use case which affects almost every web service I know.

First idea that was discussed at the [2012-01-31](http://json-ld.org/minutes/2012-01-31/) telecon:

```
{
"@context": "somecontext.json",
"@id": "/album1",
"artist": "A. Artist",
"playlist": "/album1/playlist"
}
```

Currently, `/album1/playlist/` would have to be declared by using `"@type": "rdf:list"` to create a linked list (with two properties `rdf:first` and `rdf:next`). This would resolve in a deeply nested object.

An alternative could be to allow a syntax similar to the following in */album1/playlist*:

```
{
"@context": "someothercontext.json",
"@id": "/album1/playlist",
"@type": "@list",
"@value": [
"Song 1",
"Song 2",
"..."
]
}
```