Skip to content

Undefined name: INVALID_CONTEXT_ENTRY #1440

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion rdflib/plugins/shared/jsonld/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
VERSION,
VOCAB,
)
from .errors import INVALID_REMOTE_CONTEXT, RECURSIVE_CONTEXT_INCLUSION
from .errors import (
INVALID_CONTEXT_ENTRY,
INVALID_REMOTE_CONTEXT,
RECURSIVE_CONTEXT_INCLUSION,
)
from .util import source_to_json, urljoin, urlsplit, split_iri, norm_url


Expand Down
3 changes: 2 additions & 1 deletion rdflib/plugins/shared/jsonld/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ class JSONLDException(ValueError):


# http://www.w3.org/TR/json-ld-api/#idl-def-JsonLdErrorCode.{code-message}
RECURSIVE_CONTEXT_INCLUSION = JSONLDException("recursive context inclusion")
INVALID_CONTEXT_ENTRY = JSONLDException("invalid context entry")
INVALID_REMOTE_CONTEXT = JSONLDException("invalid remote context")
RECURSIVE_CONTEXT_INCLUSION = JSONLDException("recursive context inclusion")