lucmoreau / ProvToolbox

Java toolkit to create and convert W3C PROV data model representations, and build provenance-enabled applications in a variety of programming languages (java, python, typescript, javascript)
Other
74 stars 42 forks source link

prov-template: vargen issue #121

Closed dtm closed 9 years ago

dtm commented 9 years ago

The spec seems to suggest that a uuid is only generated for a vargen: if its unbound. But its generating them regardless:

~ 165% cat binding1.provn
document
prefix tmpl <http://openprovenance.org/tmpl#>
prefix var <http://openprovenance.org/var#>
prefix ex <http://example.com/>
entity(var:a,[tmpl:value_0 = 'ex:foo'])
endDocument
~ 166% cat template1.provn
document
bundle vargen:b
prefix vargen <http://openprovenance.org/vargen#>
prefix tmpl <http://openprovenance.org/tmpl#>
prefix var <http://openprovenance.org/var#>

entity(vargen:a)
endBundle
endDocument
~ 167% provconvert -infile template1.provn -bindings binding1.provn -outfile - -outformat provn
expander: Found groupings [['vargen:{http://openprovenance.org/vargen#}a']]
document
bundle uuid:0c3825ee-e5ce-4565-b9fd-b17f9ffd4839
prefix xsd <http://www.w3.org/2001/XMLSchema>
prefix uuid <urn:uuid:>

entity(uuid:011fa6f3-73a0-44bb-b2f5-943e92356bad)
endBundle
endDocument
dtm commented 9 years ago

Oops - realised the bindings were wrong (var:a instead of vargen:a).