W3C home > Mailing lists > Public > public-linked-json@w3.org > January 2012

Aliasing @id creates results in typed literals for IRIs

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Tue, 10 Jan 2012 19:19:09 +0800
To: <public-linked-json@w3.org>
Message-ID: <015101cccf89$aec70710$0c551530$@lanthaler@gmx.net>

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

    "@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
Received on Tuesday, 10 January 2012 11:20:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:19 UTC