JSON-LD Context Generator: Generate "@type": "@id"
when appropriate.
#65
Labels
enhancement
New feature or request
scope:gen:json-ld-context
Related to the JSON-LD context generator
In a JSON-LD context term definition, the binding
"@type": "@id"
is used to specify that any string literal as value of this term should be interpreted as a node identifier. For TreeLDR, this is when the layout of a field can be a reference.For instance:
This should generate the following LD context:
This should also work with a union layout where one of the term is a reference:
The text was updated successfully, but these errors were encountered: