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
# Otherwise, if key's container mapping in active context is @language and value is a JSON object then value is expanded from a language map as follows:
# Otherwise, if key's container mapping in active context is @index, @id, @type, an IRI or Blank Node and value is a JSON object then value is expanded from an index map as follows:
# Otherwise, if key's container mapping in active context contains @index, @id, @type and value is a JSON object then value is expanded from an index map as follows:
380
380
381
381
# Set ary to an empty array.
382
-
container,ary=container.to_s,[]
382
+
ary=[]
383
383
384
384
# For each key-value in the object:
385
385
keys=ordered ? value.keys.sort : value.keys
386
386
keys.eachdo |k|
387
-
# If container mapping in the active context is @type, and k is a term in the active context having a local context, use that context when expanding values
# If container mapping in the active context includes @type, and k is a term in the active context having a local context, use that context when expanding values
# Initialize index value to the result of using this algorithm recursively, passing active context, key as active property, and index value as element.
# If the container mapping associated to key in active context is @list and expanded value is not already a list object, convert expanded value to a list object by first setting it to an array containing only expanded value if it is not already an array, and then by setting it to a JSON object containing the key-value pair @list-expanded value.
0 commit comments