Mapping xsd:boolean xsd:integer xsd:double to native JSON type in @context

Hi There,
 
Reading the spec it is not immediately obvious to me if it is possible to get
the native JSON types (number, true and false) in the output when
compacting/flattening/framing against a context.
 
For example my JSON-LD input document is:
 
{
  "@id": "http://example.com/id/Spain",
  "http://example.com/def/isInWorldCup": {
    "@type": "http://www.w3.org/2001/XMLSchema#boolean",
    "@value": "false"
  }
}

As output I'd like to get:
 
{
  "@context": { ... the new context ... }
  "@id": "http://example.com/id/Spain",
  "http://example.com/def/isInWorldCup": false
}

Is there a way to specify in the context that native JSON types should be used?

Cheers,
John

Received on Thursday, 19 June 2014 08:44:44 UTC