-
Notifications
You must be signed in to change notification settings - Fork 34
Relax the colliding keywords constraint for @type #4
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
Comments
I don't know of any reason why this wouldn't work for |
I'm probably just expressing my ignorance of the history here, but why was this restriction instituted? It's not obvious to me (yet) what's being guarded against... |
There was discussion in the 1.0 timeframe here, with related issues json-ld/json-ld.org#91 and json-ld/json-ld.org#102. These were getting a slightly different issues, but worth the read to go over the history of the subject. |
Thanks @gkellogg, I'll read up and get educated! |
Resolution on WG call of 2018-08-17: We propose using scoped contexts rather than multiple top level aliases for |
This issue was discussed in a meeting.
View the transcriptRelax the colliding keywords constraint for @typeRob Sanderson: ref: #4 Gregg Kellogg: there is no identified use case for this Rob Sanderson: the complications outweigh any benefit Proposed resolution: Close api#4 wontfix, use case is covered with scoped contexts, and no other known use cases to justify the complexity (Rob Sanderson) Gregg Kellogg: +1 Ivan Herman: +1 Rob Sanderson: +1 Jeff Mixter: +1 Adam Soroka: +! Harold Solbrig: +1 Benjamin Young: +1 Simon Steyskal: +1 David I. Lehn: +1 David Newbury: +1 Resolution #10: Close api#4 wontfix, use case is covered with scoped contexts, and no other known use cases to justify the complexity {: #resolution10 .resolution} |
I want the following:
However this is not allowed. The playground says "Invalid JSON-LD syntax; colliding keywords detected".
However, this one works:
I understand that this restriction probably makes sense for other keywords, but could it do any harm for
@type
?Original issue Relax the colliding keywords constraint for @type #402.
The text was updated successfully, but these errors were encountered: