Acceptable values for @container:@language fields?

Dear all,

In the spec, it seems reasonably clear that if a key is defined in the
context as being @container: @language, then the value in the JSON MUST be
an object, with the keys of BCP47 language strings.  However the playground
also accepts the following:

* Just a string (does the expected thing of subj pred "string")
* Array of strings (does the expected thing of multiple predicates)
* Object with empty string as key (does the expected thing)

It does not error on an array of strings and objects, but does not do the
expected language thing according to the above points -- instead it treats
the object as a blank node.  Which is probably better ... but not
consistent with the spec.

So ... are these oversights in the algorithm and intended not to work, or
are they oversights in the documentation and intended to work?

Playground examples:

* Single string: http://tinyurl.com/j666mtl
* Array of strings: http://tinyurl.com/hrhwcpb
* Object with empty key: http://tinyurl.com/h3ecgzt
* Array of string, object: http://tinyurl.com/jbzugno

Thoughts?

Can we rely on, especially, the three patterns that do the right thing to
be understood, despite the spec?

Rob

-- 
Rob Sanderson
Information Standards Advocate
Digital Library Systems and Services
Stanford, CA 94305

Received on Friday, 11 March 2016 01:04:13 UTC