RE: Issue with context in the playground?

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 UTC