Skip to content

@type as an array allowed for literals #568

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

Open
Tpt opened this issue Mar 12, 2025 · 0 comments
Open

@type as an array allowed for literals #568

Tpt opened this issue Mar 12, 2025 · 0 comments

Comments

@Tpt
Copy link

Tpt commented Mar 12, 2025

[Sorry, this might be duplicated, I have not read the list of open issues carefully]

When given the following JSON-Ld, jsonld.js returns an invalid RDF triple, contenating the two literal datatypes with a ,:

{
  "@id": "http://example.com/s",
  "http://example.com/s": {
    "@value": "foo",
    "@type": ["http://example.com/bar", "http://example.com/baz"]
  }
}
<http://example.com/s> <http://example.com/s> "foo"^^<http://example.com/bar,http://example.com/baz> .

Json-ld.org playground

I guess it should be a syntax error instead.

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

No branches or pull requests

1 participant