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

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:01:09 UTC