- From: Alexandre Passant <alex@seevl.net>
- Date: Wed, 18 Jan 2012 17:10:50 +0000
- To: Dave Longley <dlongley@digitalbazaar.com>
- Cc: KANZAKI Masahide <mkanzaki@gmail.com>, public-linked-json@w3.org
Hi Dave, It seems that @value is not rendered properly, e.g. { "@context": { "name": "http://xmlns.com/foaf/0.1/name" }, "name": {"@value" : "Manu Sporny"}} Renders _:c14n0 <http://xmlns.com/foaf/0.1/name> undefined. Best, Alex. On Tue, Jan 17, 2012 at 9:04 PM, Dave Longley <dlongley@digitalbazaar.com> wrote: > 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. > > -- Dr. Alexandre Passant - @terraces Founder, CEO - http://seevl.net - @seevl http://facebook.com/seevl.net - http://angel.co/seevl
Received on Wednesday, 18 January 2012 17:11:27 UTC