Closed aweinert closed 3 years ago
You should specify var:startTime
and var:endTime
as the values for the attributes tmpl:startTime
and tmpl:endTime
in a template, respectively. (See https://openprovenance.org/prov-template/#variable-table)
An example can be found here: https://github.com/openprov/templates/tree/master/org/openprovenance/picaso/project
PROV-DM and, hence, PROV-N specified that those arguments must have dateTime values. Therefore, putting a qualified name in those places will make the statement invalid.
Thanks for the help and the explanation, using the following template works as expected:
document
prefix var <http://openprovenance.org/var#>
activity(-, -, -, [tmpl:startTime='var:startTime', tmpl:endTime='var:endTime'])
endDocument
The following template fails to parse using
InteropFramework#readDocument(_, ProvFormat.PROVN, _)
:The error log indicates
We would like to bind start- and end-times to templated activities, but this parsing error prevents us from doing so. The error also occurs when parsing that template at
openprovenance.org
.