json-ld / json-ld-star

CG Note on JSON-LD*
https://json-ld.github.io/json-ld-star
Other
24 stars 7 forks source link

Expansion Algorithm: step 13.4.14 #20

Closed filip26 closed 3 years ago

filip26 commented 3 years ago

Hi, the spec draft states:

After step 13.4.14 add the following step:

  1. If expanded property is @annotation:
    1. Continue with the next key from element if the rdfstar flag is not set.
    2. Set expanded value to the result of using this algorithm recursively passing active context, @annotation for active property, value for element, base URL, and the frameExpansion and ordered flags.

Shouldn't step 1.II require to assure that the result of expansion is an array? If I don't do that then the result is:

"@annotation" : {...}

but tests expect:

"@annotation" : [
   { ... }
]