diff --git a/index.html b/index.html index 26c6dcba..2bdeca6c 100644 --- a/index.html +++ b/index.html @@ -264,6 +264,24 @@ text-decoration: none; color: #666; } + + .algorithm summary::before { + content: "// "; + } + + .algorithm summary { + padding-left: 2em; + font-style: italic; + } + + /* required if we chose to put OLs *outside* the details, + to force them visible when printing */ + @media screen { + .algorithm details:not([open]) + ol { + display: none; + } + } + @@ -1125,6 +1143,7 @@

Algorithm

For each item context in local context:
  1. If context is null: +
    clear context (unless protected)
    1. If override protected is false and active context contains any protected term definitions, @@ -1138,10 +1157,10 @@

      Algorithm

      In [[[JSON-LD]]], the base IRI was given a default value here; this is now described conditionally in .
    2. -
    +
-
  • If context is a string, -
      +
    1. If context is a string: +
      dereference and process
      1. Set context to the result of resolving value against the base IRI which is established as specified in section 5.1 Establishing a Base URI @@ -1180,14 +1199,14 @@

        Algorithm

        passing result for active context, context for local context, and a copy of remote contexts.
      2. Continue with the next context.
      3. -
      +
  • If context is not a map, an invalid local context error has been detected and processing is aborted.
  • Otherwise, context is a context definition.
  • If context has an @version entry: -
      +
      set processing mode
      1. If the associated value is not 1.1, an invalid @version value has been detected, and processing is aborted.
      2. @@ -1197,10 +1216,10 @@

        Algorithm

        error has been detected and processing is aborted.
      3. Set processing mode, to json-ld-1.1, if not already set.
      4. -
      +
  • If context has an @import entry: -
      +
      merge imported context
      1. If processing mode is json-ld-1.0, an invalid context entry error has been detected and processing is aborted.
      2. @@ -1241,11 +1260,11 @@

        Algorithm

      3. Set context to the result of merging context into import context, replacing common entries with those from context.
      4. -
      +
  • If context has an @base entry and remote contexts is empty, i.e., the currently being processed context is not a remote context: -
      +
      reset base IRI
      1. Initialize value to the value associated with the @base entry.
      2. If value is null, remove the @@ -1260,10 +1279,10 @@

        Algorithm

      3. Otherwise, an invalid base IRI error has been detected and processing is aborted.
      4. -
      +
  • If context has an @vocab entry: -
      +
      reset vocabulary mapping
      1. Initialize value to the value associated with the @vocab entry.
      2. If value is null, remove @@ -1284,10 +1303,10 @@

        Algorithm

        error has been detected and processing is aborted.
        The use of blank node identifiers to value for @vocab is obsolete, and may be removed in a future version of JSON-LD.
      3. -
      +
  • If context has an @language entry: -
      +
      reset default language
      1. Initialize value to the value associated with the @language entry.
      2. If value is null, remove @@ -1297,10 +1316,10 @@

        Algorithm

        lowercased value. If it is not a string, an invalid default language error has been detected and processing is aborted.
      3. -
      +
  • If context has an @propagate entry: -
      +
      check its validity
      1. If processing mode is json-ld-1.0, an invalid context entry error has been detected and processing is aborted.
      2. @@ -1309,7 +1328,7 @@

        Algorithm

        error has been detected and processing is aborted.
      3. Otherwise, previous context was determined before, and no further processing is necessary.
      4. -
      +
  • Create a map defined to keep track of whether or not a term has already been defined