Aliasing @id creates results in typed literals for IRIs

Hi,

I not sure if this is an issue or a desired behavior - at least it's not
wrong. When I alias @id to, e.g. @iri in the JSON-LD playground @id gets
replaced with @iri as expected when used to define the subject, but it
yields to a typed literal for objects. See example below
(http://bit.ly/x1Qmfy):

{
    "@iri": "#me",
    "http://xmlns.com/foaf/0.1/knows": [{
        "@iri": "http://example/bob#me",
        "http://xmlns.com/foaf/0.1/name": "Bob",
        "http://xmlns.com/foaf/0.1/homepage": {
            "@type": "@iri",
            "@literal": "http://example.com/bob"
        }
    }, {
        "@iri": "http://www.markus-lanthaler.com/#me",
        "http://xmlns.com/foaf/0.1/name": "Markus",
        "http://xmlns.com/foaf/0.1/homepage": {
            "@type": "@iri",
            "@literal": "http://www.markus-lanthaler.com/"
        }
    }]
}


--
Markus Lanthaler
@markuslanthaler

Received on Tuesday, 10 January 2012 11:20:19 UTC