@@ -2954,13 +2954,13 @@ <h3>Algorithm</h3>
29542954 < li > If < var > container</ var > includes < code > @graph</ code > and < code > @id</ code > :
29552955 < ol >
29562956 < li > Initialize < var > map object</ var > to the value of < var > item active property</ var >
2957- in < var class =" changed " > nest result</ var > .</ li >
2957+ in < var > nest result</ var > .</ li >
29582958 < li > Initialize < var > map key</ var > to the result of calling the
29592959 < a href ="#iri-compaction "> IRI Compaction algorithm</ a >
29602960 passing < var > active context</ var > , < var > inverse context</ var > , and the value of < code > @id</ code > in < var > expanded item</ var >
29612961 or < code > @none</ code > if no such value exists as < var > var</ var > , with < var > vocab</ var > set to < code > true</ code >
29622962 if there is no < code > @id</ code > < a > entry</ a > in < var > expanded item</ var > .</ li >
2963- < li class =" changed " > If < var > compacted item</ var > is not an
2963+ < li > If < var > compacted item</ var > is not an
29642964 < a > array</ a > and < var > as array</ var > is < code > true</ code > ,
29652965 set < var > compacted item</ var > to an < a > array</ a > containing that value.</ li >
29662966 < li > If < var > map key</ var > is not an < a > entry</ a > in < var > map object</ var > ,
@@ -2975,11 +2975,11 @@ <h3>Algorithm</h3>
29752975 and < var > expanded item</ var > is a < a > simple graph object</ a > :
29762976 < ol >
29772977 < li > Initialize < var > map object</ var > to the value of < var > item active property</ var >
2978- in < var class =" changed " > nest result</ var > .</ li >
2978+ in < var > nest result</ var > .</ li >
29792979 < li > Initialize < var > map key</ var > the value of < code > @index</ code > in
29802980 < var > expanded item</ var > or < code > @none</ code > , if no such
29812981 value exists.</ li >
2982- < li class =" changed " > If < var > compacted item</ var > is not an
2982+ < li > If < var > compacted item</ var > is not an
29832983 < a > array</ a > and < var > as array</ var > is < code > true</ code > ,
29842984 set < var > compacted item</ var > to an < a > array</ a > containing that value.</ li >
29852985 < li > If < var > map key</ var > is not an < a > entry</ a > in < var > map object</ var > ,
@@ -2991,17 +2991,27 @@ <h3>Algorithm</h3>
29912991 </ ol >
29922992 </ li >
29932993 < li > Otherwise, if < var > container</ var > includes < code > @graph</ code >
2994- and < var > expanded item</ var > is a < a > simple graph
2995- object</ a > the value cannot be represented as a map
2996- object. If < var > compacted item</ var > is not an < a > array</ a >
2997- and < var > as array</ var > is < code > true</ code > , set
2998- < var > compacted item</ var > to an < a > array</ a > containing
2999- that value. If the value of an < var > item active property</ var > < a > entry</ a > in
3000- < var class ="changed "> nest result</ var > is not an < a > array</ a > ,
3001- set it to a new < a > array</ a > containing only the value.
3002- Then append < var > compacted item</ var > to the value if
3003- < var > compacted item</ var > is not an < a > array</ a > ,
3004- otherwise, concatenate it.
2994+ and < var > expanded item</ var > is a < a > simple graph object</ a >
2995+ the value cannot be represented as a map object.
2996+ < ol >
2997+ < li > If < var > compacted item</ var > is not an < a > array</ a >
2998+ and < var > as array</ var > is < code > true</ code > ,
2999+ set < var > compacted item</ var > to an < a > array</ a > containing that value.</ li >
3000+ < li > If < var > compacted item</ var > is an < a > array</ a >
3001+ with more than one value, it cannot be directly represented,
3002+ as multiple objects would be interpreted as different named graphs.
3003+ Set < var > compacted item</ var > to a new < a > map</ a > ,
3004+ containing the key created by calling the < a href ="#iri-compaction "> IRI Compaction algorithm</ a >
3005+ passing < var > active context</ var > , < var > inverse context</ var > , `@included` as
3006+ < var > var</ var > , and `true` for
3007+ < var > vocab</ var > and the original < var > compacted item</ var > as the value. </ li >
3008+ < li > If the value of an < var > item active property</ var > < a > entry</ a > in < var > nest result</ var >
3009+ is not an < a > array</ a > ,
3010+ set it to a new < a > array</ a > containing only the value.</ li >
3011+ < li > Then append < var > compacted item</ var > to the value if
3012+ < var > compacted item</ var > is not an < a > array</ a > ,
3013+ otherwise, concatenate it.</ li >
3014+ </ ol >
30053015 </ li >
30063016 < li > Otherwise, < var > container</ var > does not include < code > @graph</ code >
30073017 or otherwise does not match one of the previous cases, redo < var > compacted item</ var > .
0 commit comments