Skip to content

Context overflow. #381

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

Merged
merged 9 commits into from
Apr 9, 2020
Merged

Context overflow. #381

merged 9 commits into from
Apr 9, 2020

Conversation

davidlehn
Copy link
Member

  • Add support for context overflow tests: Context overflow. w3c/json-ld-api#416
  • Attempt to support older 1.0 error code. Is this needed? (It required passing some activeCtx around to get to processing mode)
  • Note: The MAX value only detects depth of recursion, not total number of remote contexts. This may be inline with the former "recursion" error code, but seems the "context overflow" should now check total remote contexts loaded (which would also handle depth). Unsure how to change the code to track that.

@gkellogg gkellogg mentioned this pull request Mar 27, 2020
@gkellogg
Copy link
Collaborator

gkellogg commented Apr 2, 2020

@davidlehn it would be nice to merge this, as other branches will fail until rebased on this work. (of course, it would be nice to get some of those merged too).

Copy link
Member

@dlongley dlongley left a comment

Choose a reason for hiding this comment

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

I trust you guys -- let's get this merged.

davidlehn and others added 8 commits April 9, 2020 17:33
- Support 1.0 recursion error code.
- Support 1.1 "context overflow" error code.
- Allow recursion in scoped contexts.
(cherry picked from commit 020e51b57236f5496bceea6d3429a265fb4c836f)
FIXME: hard-codes version number.

(cherry picked from commit 811f16c6ddd1e618de9306bd100e9c88634b82da)
Don't set `@base` in initial context and don't resolve a relative IRI
when setting `@base` in a context, so that the document location can be
kept separate from the context itself.

This makes the initial context the same for all processingModes,
allowing much more cachability of remote and resolved contexts.
@davidlehn davidlehn merged commit 07e5cd5 into master Apr 9, 2020
@davidlehn davidlehn deleted the context-overflow branch April 9, 2020 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants