You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so the URI for name is taken from the type-scoped context and is ...typed-name
Error:
Once I @nest the @type definition in __metadata wrapper object, the typed-context is not applied anymore and thus the name is not mapped to an IRI, even though @type is extracted:
It looks like type-scoped contexts are applied before @nesting, but maybe I missed the part of the specification that states this processing order explicitly.
As for me the spec states the opposite and should behave as I expect:
Semantically, nesting is treated as if the properties and values were declared directly within the containing node object.
grenik
changed the title
@type-scoped local context is not applied if the @type definition is @nested
type-scoped local context is not applied if the @type property is @nested
Dec 14, 2023
The following example works as expected (playground permalink)
is expanded to:
so the URI for
name
is taken from the type-scoped context and is...typed-name
Error:
Once I @nest the @type definition in
__metadata
wrapper object, the typed-context is not applied anymore and thus thename
is not mapped to an IRI, even though@type
is extracted:Example 1:
Playground permalinks: with and without @nest for @type.
results in typed context not being applied and the
name
being not mapped anymore:same if I specify @nest for the @type as well:
I expect the same result as in the original example on top, with
name
being mapped tohttp://example.com/vocab#typed-name
The text was updated successfully, but these errors were encountered: