Closed
Description
In order to fully support language-map round-tripping, we need to be able to express that a particular piece of markup in expanded form was specified using a language map. So, in order to round-trip this language map:
{
tags: {
en: {
'@id': 'http://example.com/tags/foo', 'label': ' Foo'}
de: {
'@id': 'http://example.com/tags/baz', 'label': ' Baz'}
}
}
We need to support this in expanded form:
{
'http://example.org/vocab#tags': [{
'@language': 'en', '@id': 'http://example.com/tags/foo', 'label': ' Foo'
}, {
'@language': 'de', '@id': 'http://example.com/tags/baz', 'label': ' Baz'
}]
}
To get back to this in compacted form:
{
tags: {
en: {
'@id': 'http://example.com/tags/foo', 'label': ' Foo'}
de: {
'@id': 'http://example.com/tags/baz', 'label': ' Baz'}
}
}