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
75 stars 42 forks source link

prov:hadPrimarySource does not convert properly #37

Closed lucmoreau closed 11 years ago

lucmoreau commented 11 years ago

qualified primary source not properly converted from rdf, as illustrated by:

http://dvcs.w3.org/hg/prov/file/5495d990f17b/testcases/provo/prov-o-property-hadPrimarySource-PASS.ttl

mikejewell commented 11 years ago

Hm, is it not? The result from importing/exporting is slightly different in structure - i.e.:

http://www.gutenberg.org/ebooks/996 prov:qualifiedDerivation :node17e9v6qb3x1 . :node17e9v6qb3x1 a prov:Derivation ; prov:entity ns1:XX2197892 . _:node17e9v6qb3x1 prov:type "prov:PrimarySource"^^xsd:QName .

But doesn't that correspond to a hadPrimarySource ns1:XX2197892? Should there be a method that checks if the Derivation has >1 property, and creates a binary hadPrimarySource if not?

lucmoreau commented 11 years ago

are you saying the problem is in the converter?

Luc

On 12/13/2012 11:36 AM, mikejewell wrote:

Hm, is it not? The result from importing/exporting is slightly different in structure - i.e.:

http://www.gutenberg.org/ebooks/996 prov:qualifiedDerivation :node17e9v6qb3x1 . :node17e9v6qb3x1 a prov:Derivation ; prov:entity ns1:XX2197892 . _:node17e9v6qb3x1 prov:type "prov:PrimarySource"^^xsd:QName .

But doesn't that correspond to a hadPrimarySource ns1:XX2197892? Should there be a method that checks if the Derivation has >1 property, and creates a binary hadPrimarySource if not?

— Reply to this email directly or view it on GitHub https://github.com/lucmoreau/ProvToolbox/issues/37#issuecomment-11331384.

Web Bug from https://github.com/notifications/beacon/01TjUgCG2lQmnJmL236AvfuiS7wn5hJJjRI78ffX9zAUNiYOQcnxKKWYkDX1XrGn.gif

Professor Luc Moreau Electronics and Computer Science tel: +44 23 8059 4487 University of Southampton fax: +44 23 8059 2865 Southampton SO17 1BJ email: l.moreau@ecs.soton.ac.uk United Kingdom http://www.ecs.soton.ac.uk/~lavm

mikejewell commented 11 years ago

I'm not sure it's an issue as such - at least, assuming:

ex:a prov:qualifiedDerivation _:n1

_:n1 a prov:Derivation; prov:entity ex:b; prov:type "prov:PrimarySource"^^xsd:QName.

Conveys the same as:

ex:a prov:hadPrimarySource ex:b ?

lucmoreau commented 11 years ago

OK, translation is good, I believe. Issue solved!