W3C home > Mailing lists > Public > public-linked-json@w3.org > February 2013

Issue with context in the playground?

From: Alexandre Passant <alex@seevl.net>
Date: Thu, 14 Feb 2013 12:56:19 +0000
Message-ID: <CALF6uCkVV+_Mp7mvt_0WVVy8PxsOZAdBge+HYPj2Q6cB3JULmw@mail.gmail.com>
To: "public-linked-json@w3.org" <public-linked-json@w3.org>
Hi,

Non-prefixed elements do not seem to work in the playground.

Using the spec example.

## Input:

{
  "name": "Manu Sporny",
  "homepage": "http://manu.sporny.org/",
  "image": "http://manu.sporny.org/images/manu.png"
}

## Context:

{
  "@context":
  {
    "name": "http://schema.org/name",
    "image": {
      "@id": "http://schema.org/image",
      "@type": "@id"
    },
    "homepage": {
      "@id": "http://schema.org/url",
      "@type": "@id"
    }
  }
}

Returns [] in the expanded form. When adding something like foaf:name (and
foaf URI) in the context, that element is correctly translated.

Is that a bug or do I miss something?

Best,

Alex.

-- 
Dr. Alexandre Passant - @terraces
Founder, CEO - http://seevl.net & http://mdg.io
http://facebook.com/seevl <http://facebook.com/seevl.net> -
http://twitter.com/seevl
Received on Thursday, 14 February 2013 12:56:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:39 GMT