Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playground bug when aliasing @id #55

Closed
lanthaler opened this issue Jan 12, 2012 · 0 comments
Closed

Playground bug when aliasing @id #55

lanthaler opened this issue Jan 12, 2012 · 0 comments

Comments

@lanthaler
Copy link
Member

If I alias @id expansion produces some strange outputs in the playground when @id is used in the JSON-LD document. It nests an @id within @id, see http://bit.ly/zKljJE

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

"@id": "http://www.markus-lanthaler.com/#me" is correct as I used @iri in the input document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants