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

Context namespace does not exist #136

Open
ubamrein opened this issue Dec 16, 2024 · 4 comments
Open

Context namespace does not exist #136

ubamrein opened this issue Dec 16, 2024 · 4 comments
Assignees
Labels
editorial This item is editorial in nature. ready for pr This issue is ready to have a pull request created for it.

Comments

@ubamrein
Copy link

In this commit the context string was changed from "../controller/.." to "../cid/..", but the document is not available under the new URL (so all examples provided fail) (and also not under the old one). Funny enough, the controller seems to be defined under the https://www.w3.org/ns/did/v1 namespace (according to https://w3c.github.io/vc-data-integrity/vocab/security/vocabulary.html#controller).

@msporny msporny added ready for pr This issue is ready to have a pull request created for it. editorial This item is editorial in nature. labels Dec 18, 2024
@msporny
Copy link
Member

msporny commented Dec 18, 2024

Yes, good catch. The current context URL is broken because we're in the middle of a specification rename and publication, which has gotten caught up in a month+ long administrative process. The URL will eventually resolve, and when it does, we'll note that in this issue.

@ubamrein
Copy link
Author

Is there any preferred way, how to handle such cases (renaming/removing those context urls) when relaying on Json-LD expansion? Is it best to have local versions of the relevant documents?

@dlongley
Copy link
Contributor

@ubamrein,

Is there any preferred way, how to handle such cases (renaming/removing those context urls) when relaying on Json-LD expansion? Is it best to have local versions of the relevant documents?

Yes, for well-defined and eventually immutable contexts (such as those in this specification and others produced by the VCWG), local copies of the contexts should absolutely be installed in software (similar to library "imports") and treated as if "already resolved" (i.e., always use a JSON-LD document loader that loads from your local copy) when performing JSON-LD API operations such as expansion.

Note that once the specs are finalized, the contexts identified by specific URLs in the specifications are expected to be immutable such that local copies made at that point should never change.

@ubamrein
Copy link
Author

Thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial This item is editorial in nature. ready for pr This issue is ready to have a pull request created for it.
Projects
None yet
Development

No branches or pull requests

4 participants