-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Milestone
Description
Recently we changed the behavior of expansion to expand basically everything to object form, except @type
which remains (becomes) a string. I would be fine with that if we don't accept an input in the form of "@type": { "@id": "ex:type" }
but in the last telecon there seemed to be agreement that we should allow that form.
I think it would thus just be consequent to treat @type
as every other property and expand it to object form. This would us allow to eliminate some code in expansion, compaction, and probably also in framing.
As we already opened this door, I think we should go even further and allow what @niklasl wanted to have some time ago, i.e., support things like:
...
"@type": {
"@id": "http://example.com/type",
"label": "Type name",
}
(This issue was originally raised in #115 were we changed expansion)