@@ -2954,13 +2954,13 @@ <h3>Algorithm</h3>
2954
2954
< li > If < var > container</ var > includes < code > @graph</ code > and < code > @id</ code > :
2955
2955
< ol >
2956
2956
< 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 >
2958
2958
< li > Initialize < var > map key</ var > to the result of calling the
2959
2959
< a href ="#iri-compaction "> IRI Compaction algorithm</ a >
2960
2960
passing < var > active context</ var > , < var > inverse context</ var > , and the value of < code > @id</ code > in < var > expanded item</ var >
2961
2961
or < code > @none</ code > if no such value exists as < var > var</ var > , with < var > vocab</ var > set to < code > true</ code >
2962
2962
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
2964
2964
< a > array</ a > and < var > as array</ var > is < code > true</ code > ,
2965
2965
set < var > compacted item</ var > to an < a > array</ a > containing that value.</ li >
2966
2966
< li > If < var > map key</ var > is not an < a > entry</ a > in < var > map object</ var > ,
@@ -2975,11 +2975,11 @@ <h3>Algorithm</h3>
2975
2975
and < var > expanded item</ var > is a < a > simple graph object</ a > :
2976
2976
< ol >
2977
2977
< 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 >
2979
2979
< li > Initialize < var > map key</ var > the value of < code > @index</ code > in
2980
2980
< var > expanded item</ var > or < code > @none</ code > , if no such
2981
2981
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
2983
2983
< a > array</ a > and < var > as array</ var > is < code > true</ code > ,
2984
2984
set < var > compacted item</ var > to an < a > array</ a > containing that value.</ li >
2985
2985
< li > If < var > map key</ var > is not an < a > entry</ a > in < var > map object</ var > ,
@@ -2991,17 +2991,27 @@ <h3>Algorithm</h3>
2991
2991
</ ol >
2992
2992
</ li >
2993
2993
< 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 >
3005
3015
</ li >
3006
3016
< li > Otherwise, < var > container</ var > does not include < code > @graph</ code >
3007
3017
or otherwise does not match one of the previous cases, redo < var > compacted item</ var > .
0 commit comments