Re: [Specifications] Adding already existing resources as collection members

JSON-LD 1.1 should include `"@container": "@graph"` construct (just implemented in jsonld.js https://github.com/json-ld/json-ld.org/issues/195#issuecomment-328984904) which would enable expressing collections like in Vimeo API as follows:

```json
{
  "@context": {
    ...
    "member": { "@id": "hydra:member", "@container": "@graph" }
  }
}
```
```json
{
  "@id": "/users/elfpavlik/likes",
  "manages": {
    "subject": "/users/elfpavlik",
    "property": "sor:likes"
  },
  "member": {
    "/users/elfpavlik/likes/144522067": "/videos/144522067",
    ...
  }
}
```
```json
{
  "@id": "/videos/144522067/likes",
  "manages": {
    "property": "sor:likes",
    "object": "/videos/144522067"
  },
  "member": {
    "/users/elfpavlik/likes/144522067": "/users/elfpavlik",
    ...
  }
}
```



-- 
GitHub Notification of comment by elf-pavlik
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/134#issuecomment-333393649 using your GitHub account

Received on Sunday, 1 October 2017 17:46:57 UTC