Skip to content

Commit

Permalink
Clarify "known contexts" in Context Validation section.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallTed authored Aug 3, 2024
1 parent 26ca22f commit 3aeba2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,7 @@ <h3>Context Validation</h3>
executed business rules specific to the input in the document. For more
rationale related to this algorithm, see Section [[[#validating-contexts]]].
This algorithm takes inputs of a document ([=map=] |inputDocument|), a set of
approved JSON-LD Contexts ([=map=] |expectedContext|), and a boolean to
known JSON-LD Contexts ([=array=] |knownContext|), and a boolean to
recompact when unknown contexts are detected ([=boolean=] |recompact|), and
returns a [=map=] that contains the following:
</p>
Expand Down Expand Up @@ -2354,7 +2354,7 @@ <h3>Context Validation</h3>
which might be undefined.
</li>
<li>
If |contextValue| does not deeply equal |expectedContext|, any subtree in
If |contextValue| does not deeply equal |knownContext|, any subtree in
|result|.|document| contains an `@context` property, or any URI in
|contextValue| dereferences to a JSON-LD Context file that does not match a
known good value or cryptographic hash, then perform the applicable action:
Expand All @@ -2363,7 +2363,7 @@ <h3>Context Validation</h3>
If |recompact| is `true`, set |result|.|document| to the result
of running the <a data-cite="JSON-LD11-API#compaction-algorithm">
JSON-LD Compaction Algorithm</a> with the |inputDocument| and
|expectedContext| as inputs. If the compaction fails, add at least one error
|knownContext| as inputs. If the compaction fails, add at least one error
to |result|.|errors|.
</li>
<li>
Expand Down

0 comments on commit 3aeba2c

Please sign in to comment.