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

Add similar id protected term redefinition test. #570

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

davidlehn
Copy link
Contributor

  • Add test of redefining equivalent protected id terms in different forms:
    • "foo": {"@id": "ex:foo"}
    • "foo": "ex:foo"

This currently fails in jsonld.js and with the distiller. Should implementations be considering these forms equivalent as far as protected redefinition checks are concerned?

- Add test of redefining equivalent id terms in different forms:
  - `"foo": {"@id": "ex:foo"}`
  - `"foo": "ex:foo"`
Copy link
Member

@gkellogg gkellogg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this depends on what it means to be the "same as the previous", which is what is in step 27.1. Currently, my implementation does not pass this.

@dlongley
Copy link
Contributor

@gkellogg,

I suppose this depends on what it means to be the "same as the previous", which is what is in step 27.1.

Yes, though surely the "same as the previous" was not intended to trigger errors on meaningless differences due to syntactic sugar. It seems we have an oversight here where we need to clarify that processors must de-sugar things to properly compare for "sameness".

gkellogg added a commit to ruby-rdf/json-ld that referenced this pull request Jul 17, 2023
@gkellogg gkellogg merged commit 1cb8dfe into main Jul 20, 2023
@gkellogg gkellogg deleted the protected-id-test branch July 20, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants