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 label strings and qualified names #104

Closed heatherpacker closed 9 years ago

heatherpacker commented 9 years ago

Using the provtoolbox to convert the following into provn:

document prefix cas http://smartsociety-project.github.io/cas/# prefix var http://openprovenance.org/var#

entity(var:view, [prov:type='cas:View', prov:label='cas:View'])

endDocument

produces:

document prefix cas http://smartsociety-project.github.io/cas/# prefix xsd http://www.w3.org/2001/XMLSchema prefix var http://openprovenance.org/var# entity(var:view,[prov:type = 'cas:View', prov:label = "'cas:{http://smartsociety-project.github.io/cas/#}View'"]) endDocument

Prov DM says that labels only supports strings, so should this create an error. Will labels be able to support qualified names in the future?

lucmoreau commented 9 years ago

You need to provide a string. No plan to support qualified names.

On 05/02/2015 12:42, heatherpacker wrote:

Using the provtoolbox to convert the following into provn:

document prefix cas http://smartsociety-project.github.io/cas/# prefix var http://openprovenance.org/var#

entity(var:view, [prov:type='cas:View', prov:label='cas:View'])

endDocument

produces:

document prefix cas http://smartsociety-project.github.io/cas/# prefix xsd http://www.w3.org/2001/XMLSchema prefix var http://openprovenance.org/var# entity(var:view,[prov:type = 'cas:View', prov:label = "'cas:{http://smartsociety-project.github.io/cas/#}View http://smartsociety-project.github.io/cas/#%7DView'"]) endDocument

Prov DM says that labels only supports strings, so should this create an error. Will labels be able to support qualified names in the future?

— Reply to this email directly or view it on GitHub https://github.com/lucmoreau/ProvToolbox/issues/104.Web Bug from https://github.com/notifications/beacon/AAIrw0l8n8Z9pPNEU8jk8tis_gI1jvlNks5no1zDgaJpZM4DcKVY.gif

Professor Luc Moreau Head of the Web and Internet Science Group Electronics and Computer Science tel: +44 23 8059 4487 University of Southampton twitter: @lucmoreau Southampton SO17 1BJ, UK http://www.ecs.soton.ac.uk/~lavm

lucmoreau commented 9 years ago

There is now a warning printed by provconvert in this situation.

14:46:46,731 WARN ProvFactory:147 - label value is not a string 'cas:{http://smartsociety-project.github.io/cas/#}View'

lucmoreau commented 9 years ago

Created a new issue to handle strict mode.

137