W3C home > Mailing lists > Public > public-linked-json@w3.org > July 2012

Can json-ld convert identifiers to IRIs?

From: Kuno Woudt <kuno@frob.nl>
Date: Tue, 10 Jul 2012 17:47:52 +0200
Message-ID: <4FFC4EA8.6030204@frob.nl>
To: "public-linked-json@w3.org" <public-linked-json@w3.org>

As I am writing the JSON for musicbrainz, I realized it could be a 
problem that our identifiers aren't IRIs.

I'll give you an example.  A request to


can in the future return something like this (some properties omitted to 
keep the example short):

     "id": "fcbcdc39-8851-4efc-a02a-ab0e13be224f",
     "title": "LAST ANGEL",
     "length": 228106,
     "releases": [
             "id": "abcd76db-7d5f-3eb7-b386-051c97bfe2e4",
             "title": "Kingdom"

Depending on what you pass in the inc= argument, deeper parts of the 
graph may be returned.

To turn this into linked data the ids would somehow have to be turned 
into full IRIs.  So fcbcdc39-8851-4efc-a02a-ab0e13be224f, which is a 
recording would need to become:


And abcd76db-7d5f-3eb7-b386-051c97bfe2e4 should become


I fear this is a transformation which cannot be described in a 
"@context", is that correct?  Any suggestions?

-- kuno / warp.

ps. for those interested, the proposal is at [1], and is currently being 
discussed on our developer mailinglist [2].
[1] http://wiki.musicbrainz.org/User:kuno/Web_Service/JSON
[2] http://wiki.musicbrainz.org/Mailing_Lists#Developers.27_Mailing_List
Received on Tuesday, 10 July 2012 15:48:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:20 UTC