You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If the active property is @list or its container mapping is set to @list, the expanded item must not be an array or a list object, otherwise a list of lists error has been detected and processing is aborted.
# If expanded property is @graph, set expanded value to the result of using this algorithm recursively passing active context, @graph for active property, and value for element.
# If expanded property is @value and value is not a scalar or null, an invalid value object value error has been detected and processing is aborted. Otherwise, set expanded value to value. If expanded value is null, set the @value member of result to null and continue with the next key from element. Null values need to be preserved in this case as the meaning of an @type member depends on the existence of an @value member.
# Otherwise, initialize expanded value to the result of using this algorithm recursively passing active context, active property, and value for element.
# If expanded property is @set, set expanded value to the result of using this algorithm recursively, passing active context, active property, and value for element.
# If expanded property is @reverse and value is not a JSON object, an invalid @reverse value error has been detected and processing is aborted.
150
157
raiseJsonLdError::InvalidReverseValue,
151
158
"@reverse value must be an object: #{value.inspect}"unlessvalue.is_a?(Hash)
152
159
153
160
# Otherwise
154
161
# Initialize expanded value to the result of using this algorithm recursively, passing active context, @reverse as active property, and value as element.
# If expanded value contains an @reverse member, i.e., properties that are reversed twice, execute for each of its property and item the following steps:
# Initialize index value to the result of using this algorithm recursively, passing active context, key as active property, and index value as element.
# Otherwise, initialize expanded value to the result of using this algorithm recursively, passing active context, key for active property, and value for element.
0 commit comments