Skip to content

Commit 2e186b3

Browse files
committed
Improving the rationale for sealed context.
1 parent 7f35bee commit 2e186b3

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

index.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,15 +3106,17 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
31063106
</section>
31073107

31083108
<section class="informative changed"><h2>Sealed Contexts</h2>
3109-
<p>Many JSON-LD contexts are designed to reflect the semantics of a specification,
3110-
written in prose, and intended for Web developers.
3111-
It is expected that some implementations of such a specification will rely on JSON-LD and use the context,
3112-
while other implementations will solely rely on the specification prose.
3113-
In particular, the latter will ignore embedded and scoped contexts that may locally override the terms defined in the specification.
3114-
So the interpretation of JSON-LD based implementations, on the one hand,
3115-
and the interpretation of "prose-based" implementations, on the other hand,
3116-
may diverge in some situations.
3117-
To prevent this, JSON-LD 1.1 allows a context to be sealed.
3109+
<p>JSON-LD is used in many specifications as the specified data format.
3110+
However, there is also a desire to allow some JSON-LD contents to be processed as plain JSON,
3111+
without using any of the JSON-LD algorithms.
3112+
Because JSON-LD is very flexible,
3113+
some terms from the original format may be locally overridden
3114+
through the use of embedded contexts,
3115+
and take a different meaning for JSON-LD based implementations.
3116+
On the other hand, "plain JSON" implementations may not be able to interpret these embedded contexts,
3117+
and hence will still interpret those terms with their original meaning.
3118+
To prevent this divergence of interpretation,
3119+
JSON-LD 1.1 allows a context to be sealed.
31183120
</p>
31193121
<p>A <dfn>sealed context</dfn> is a context with a member <code>@sealed</code> set to <code>true</code>.
31203122
It prevents further contexts to override its term definitions.

0 commit comments

Comments
 (0)