Don't omit `name` and `description` from context
Created by: absoludity
Currently throughout the UNTP models, we have [jsonld.contextOmit]=true
set for all name
and description
properties of our models, since the default output with those terms included in the context would break the JSON-LD syntax.
The reason that it would break the JSON-LD syntax is because:
- these are already defined as protected terms in the VCDM context, and
- by default, Jargon would output the nested term definitions with different ids (untp-specific ids, rather than "https://schema.org/name" for example.
So omitting them from the context works, but leads to less re-usable definitions, so that for example, in the SVC domain where we import untp-core's Criterion
, we have to ensure name
, description
(and type
and id
aliases) are all defined globally in the context there, since we're not importing or using the VCDM context where they'd normally be defined.
A better solution is not to omit them from the context but rather just ensure their definitions are identical to that in the VCDM (which should be possible with Jargon's tags). That would avoid the redefinition error and also avoid needing to handle them specially when used outside of a credential (and it would be neater).