Skip to content

Issue with @container arrays #242

@kasei

Description

@kasei

Test t0080 uses a @container array value:

"@container": ["@graph", "@set"]

The changelog seems to suggest that this is OK:

The value for @container in an expanded term definition can also be an array containing any appropriate container keyword along with @set (other than @list). This allows a way to ensure that such entry values will always be expressed in array form.

However, Create Term Definition step 21.1 is not written in a way that supports this combination of container values:

Initialize container to the value associated with the @container entry, which MUST be either @graph, @id, @index, @language, @list, @set, @type, or an array containing exactly any one of those keywords, an array containing @graph and either @id or @index optionally including @set, or an array containing a combination of @set and any of @index, @id, @type, @language in any order . Otherwise, an invalid container mapping has been detected and processing is aborted.

I read this as indicating that ["@graph", "@set"] is an invalid container mapping, and processing will be aborted. Is that correct? Can this text and/or the test suite be updated to clarify this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions