Skip to content

Reference to lists #75

Closed
Closed
@lanthaler

Description

@lanthaler

_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 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 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",
  "@list": [
     "Song 1",
     "Song 2", 
     "..."
   ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions