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

RE: Issue with context in the playground?

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Thu, 14 Feb 2013 17:31:05 +0100
To: "'Alexandre Passant'" <alex@seevl.net>, <public-linked-json@w3.org>
Message-ID: <01ca01ce0ad0$b0a3c040$11eb40c0$@lanthaler@gmx.net>
Hi Alexandre,

 

The problem is that your input has no context. So none of the properties is
mapped to an IRI. As soon as you click on the "Expanded" tab the Context
input field should disappear. It's there to compact the expanded input using
a different context. HTH

 

Cheers,

Markus

 

 

--

Markus Lanthaler

@markuslanthaler

 

 

 

From: Alexandre Passant [mailto:alex@seevl.net] 
Sent: Thursday, February 14, 2013 1:56 PM
To: public-linked-json@w3.org
Subject: Issue with context in the playground?

 

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 16:31:43 GMT

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