Closed AtesComp closed 4 years ago
Yes, we did say that framing was the right way to do this, but the framing algorithm doesn't presently allow for this.
Defaults are added in 4.7.4 of the Framing Algorithm which iterates over non-keywords, and thus ignores a default for @type
. It is probably sufficient to update the algorithm to also include @type
.
This issue was discussed in a meeting.
RESOLVED: Accept framing #74 as an oversight to be fixed for <code>@type</code> on node objects
@default
for @type
@default
for is @type.
@id.
@type
to allow more functionality and context, such as @container
and @set.
@type
with @default
would set the type on node object or value objects, or any of them?@direction
and @value.
@type
on node objects (Rob Sanderson)@type
on node objectsResolved, closing :)
Currently, @type cannot accept @default in the playground. For framing, the documentation seems to indicate that @type (a keyword) must be a definitive resource for matching and not definable.
So, how is type added via framing?
I assume the answer would be either:
Since "@type": "@id" is the usual specification, 2 seems redundant.
NOTE: I know, I've bugged about this quite a bit in the main JSON-LD area. Since framing was proposed as the solution, I'm officially posting the issue here.