- From: Dave Longley <dlongley@digitalbazaar.com>
- Date: Tue, 17 Jan 2012 16:04:36 -0500
- To: KANZAKI Masahide <mkanzaki@gmail.com>
- CC: public-linked-json@w3.org
On 01/14/2012 02:53 AM, KANZAKI Masahide wrote: > Hello Dave, thanks for the hard works. Happy to help :) > The updated playground seems to have a problem with handling "4.5 IRI > Expansion within Context" of the spec. Given the following input > (arranged from the second example in 4.5): > { "@context": { "foaf": "http://xmlns.com/foaf/0.1/", "xsd": > "http://www.w3.org/2001/XMLSchema#", "name": "foaf:name", "age": > {"@id": "foaf:age", "@type": "xsd:integer"}, "homepage": {"@id": > "foaf:homepage", "@type": "@id"} }, "name": "Manu Sporny", > "homepage": "http://manu.sporny.org/"} > the playground generates the following Turtle: > _:c14n0<foaf:homepage> <http://manu.sporny.org/>;<foaf:name> > "Manu Sporny". > Notice the "foaf:" prefix is not expanded to the namespace URI. > I'm not sure if this is a known bug, but hope this feedback will help. > cheers, I haven't gotten around to implementing recursion and cycle detection in the IRI expansion algorithm just yet -- so that's why this bug exists. Good catch though. -- Dave Longley CTO Digital Bazaar, Inc.
Received on Tuesday, 17 January 2012 21:05:05 UTC