Support lookup tables?
Idea is to specify a lookup
/declaration
(?) list of permissible key-value pairs where the key is typically a label and the value an IRI, and let template
instructions use the label instead of the IRI.
This serves different purposes:
- labels are easier to read than IRIs
- referential integrity: all IRIs must be declared in the loookup table to be available to other instructions.
Could implement this as a type
, i.e., instead of iri
use the name given to the the lookup-instruction.
The lookup instruction should also be a template instruction, as the key-value pairs (which need not be restricted to pairs, but can have more columns) are likely to be likely template instances.
The instruction must therefore have
- a (type) name, e.g., myClasses
- a template IRI
- and specify the key-value pair
@johanw , your 2cc?