Closed mchlrch closed 4 years ago
There is no validation for the template value - is this feature or bug? One could think about validating for URL (EDIT: ah, here it is #57 ). And now when reusing the template, maybe one would like to validate the number of parameters.
Tested and works well. Proposals only include templates from the same file, which makes sense. Scoping is not narrowed, so it is possible (if needed) to also reference templates declared in other files.
Avoid duplication of IRI templates when multiple mappings involve the same resource.
~~Modify the grammar to allow
LinkedResourceTerm
forsubjectIriMapping
as well. Current grammar:subjectIriMapping=TemplateValuedTerm
This also needs a validation rule to detect circular dependencies between mappings~~Introduce
template
s as top-level elements that can be referenced from within mappings for re-use. Using inline templates is still possible, pulling-out templates for re-use is optional.Example for
template
definition and re-use:This obsoletes the
LinkedResourceTerm
, that can be removed from the grammar.