diff --git a/index.html b/index.html index 42d3995e..2de8e37e 100644 --- a/index.html +++ b/index.html @@ -264,7 +264,80 @@ text-decoration: none; color: #666; } + + .algorithm summary::before { + content: "// "; + } + + .algorithm summary { + padding-left: 2em; + font-style: italic; + } + @@ -343,6 +416,20 @@

Contributing

Typographical conventions

+ +
+

Summarized algorithm sections

+

In order to make the algorithms easier to read, + some parts of them are initially hidden and replaced by a short summary. + Clicking on that summary will toggle between detailed and summarised view. + Using the buttons below, you can display or hide the details in all algorithms at once. + Note that, when printing, all details are always shown. +

+

+ + +

+
@@ -1073,7 +1160,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, an invalid context nullification @@ -1086,10 +1173,10 @@

        Algorithm

        In [[[JSON-LD]]], the base IRI was given a default value here; this is now described conditionally in .
      2. -
      +
  2. -
  3. 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 @@ -1129,14 +1216,14 @@

        Algorithm

        passing result for active context, context for local context, and a copy of remote contexts.
      2. Continue with the next context.
      3. -
      +
  4. If context is not a map, an invalid local context error has been detected and processing is aborted.
  5. Otherwise, context is a context definition.
  6. 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. @@ -1146,10 +1233,10 @@

        Algorithm

        error has been detected and processing is aborted.
      3. Set processing mode, to json-ld-1.1, if not already set.
      4. -
      +
  7. 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. @@ -1191,11 +1278,11 @@

        Algorithm

      3. Set context to the result of merging context into import context, replacing common entries with those from context.
      4. -
      +
  8. 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 @@ -1210,10 +1297,10 @@

        Algorithm

      3. Otherwise, an invalid base IRI error has been detected and processing is aborted.
      4. -
      +
  9. 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 @@ -1234,10 +1321,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. -
      +
  10. 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 @@ -1247,10 +1334,10 @@

        Algorithm

        lowercased value. If it is not a string, an invalid default language error has been detected and processing is aborted.
      3. -
      +
  11. 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. @@ -1259,7 +1346,7 @@

        Algorithm

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