W3C home > Mailing lists > Public > public-prov-wg@w3.org > November 2012

Re: ISSUE-595: Prov-xml subtyping needs to be marked in the document

From: Luc Moreau <L.Moreau@ecs.soton.ac.uk>
Date: Tue, 20 Nov 2012 00:39:20 +0000
To: Stephan Zednik <zednis@rpi.edu>
CC: Provenance Working Group <public-prov-wg@w3.org>
Message-ID: <D4176192-7094-49FD-A8AA-35BD00214F13@ecs.soton.ac.uk>
And a further question: is the previous use of prov:type disallowed? If yes, how?
If nit, don't we have to support two encodings of these subtypes?

Professor Luc Moreau
Electronics and Computer Science
University of Southampton 
Southampton SO17 1BJ
United Kingdom

On 20 Nov 2012, at 00:02, "Stephan Zednik" <zednis@rpi.edu> wrote:

> I have made notes in the PROV-XML Note document that examples of sub-typing are under discussion and may change in the future.
> 
> https://dvcs.w3.org/hg/prov/rev/78a059d12dd2
> 
> I have also created a copy of the existing schema with new complexTypes and elements for Person, Organization, SoftwareAgent, Collection, EmptyCollection, Plan, Revision, Quotation, and PrimarySource.
> 
> https://dvcs.w3.org/hg/prov/raw-file/49d63187fb7f/xml/schema/prov.alt.xsd
> 
> This is to address feedback raised on reliance on prov:type to express the above entity and derivation sub-typing.
> 
> The new complex types use xs:extension to extend existing complexTypes.  
> 
> Two examples:
> 
>  <xs:complexType name="Person">
>    <xs:complexContent>
>      <xs:extension base="prov:Agent">
>      </xs:extension>
>    </xs:complexContent>
>  </xs:complexType>
> 
> ...
> 
>  <xs:complexType name="Revision">
>    <xs:complexContent>
>      <xs:extension base="prov:Derivation">
>        <!-- add any additional properties here -->
>      </xs:extension>
>    </xs:complexContent>
>  </xs:complexType>
> 
> These changes lead to the following simplifications on our XML serialization:
> 
>  <prov:agent prov:id="ex:Paolo">
>    <prov:type xsi:type="xsd:QName">prov:Person</prov:type>
>  </prov:agent>
> 
> could now be modeled as
> 
>  <prov:person prov:id="ex:Paolo" />
> 
> and
> 
>  <prov:wasDerivedFrom>
>    <prov:generatedEntity prov:ref="tr:WD-prov-dm-20111215"/>
>    <prov:usedEntity prov:ref="tr:WD-prov-dm-20111018"/>
>    <prov:type xsi:type="xsd:QName">prov:Revision</prov:type>
>  </prov:wasDerivedFrom>
> 
> could now be modeled as
> 
>  <prov:wasRevisionOf>
>    <prov:generatedEntity prov:ref="tr:WD-prov-dm-20111215"/>
>    <prov:usedEntity prov:ref="tr:WD-prov-dm-20111018"/>
>  </prov:wasRevisionOf>
> 
> What does the group think of this approach?
> 
> --Stephan
> 
> On Nov 9, 2012, at 11:53 AM, Provenance Working Group Issue Tracker <sysbot+tracker@w3.org> wrote:
> 
>> ISSUE-595: Prov-xml subtyping needs to be marked in the document
>> 
>> http://www.w3.org/2011/prov/track/issues/595
>> 
>> Raised by: 
>> On product: 
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
Received on Tuesday, 20 November 2012 00:39:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 November 2012 00:39:54 GMT