Re: Notes on PROV-XML schema

Stephan -

Please see below -

[Stephan]
Should Person, Organization, SoftwareAgent, Collection be complexTypes?
[Reza]
Yes.  That'd be my vote.

[Stephan]
I think we should move dictionary elements/types into a separate schema
[Reza]
Agreed.  This is in-line with my understanding of XSD.

Best.
*
*On 8/15/12 1:09 PM, Stephan Zednik wrote:
> Here are some notes from a review of the XML schema
>
>  1. Does prov.xsd validate?
>      1. xmllint returned errors when trying to parse the schema (see
>         https://www.w3.org/2011/prov/track/issues/480)
>  2. I think we should move dictionary elements/types into a separate
>     schema (prov-dictionary.xsd?)
>      1. This list includes
>          1. complexType DictionaryMemberOf
>          2. complexType DerivedByInsertionFrom
>          3. complexType DerivedByRemovalFrom
>          4. complexType Entry
>          5. element key
>          6. element dictionaryMemberOf
>          7. element derivedByInsertionFrom
>          8. element derivedByRemovalFrom
>  3. Should Person, Organization, SoftwareAgent, Collection be
>     complexTypes?
>  4. Should the type of prov:type be xs:QName?
>      1. Currently has type xs:AnySimpleType in the schema
>          1. so <prov:type>42</prov:type> is legal
>          2. as is <prov:type>2001-08-15</prov:type>
>          3. and <prov:type>true</prov:type>
>      2. It's defined as a Value
>         (http://www.w3.org/TR/prov-dm/#concept-value) in PROV-DM
>          1. A value^ ◊ <http://www.w3.org/TR/prov-dm/#concept-value>
>              is a constant such as a string, number, time, qualified
>             name, IRI, and encoded binary data, whose interpretation
>             is outside the scope of PROV.
>
> I've started an example xml file for Agent based on example 33 from 
> the PROV-DM (http://www.w3.org/TR/prov-dm/#term-agent)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <prov:Agent prov:id="e1" xmlns:prov="http://www.w3.org/ns/prov#" 
> xmlns:ex="http://www.example.com/ns/ex/">
> <prov:type>prov:Person</prov:type>
> <ex:name>Alice</ex:name>
> <ex:employee>1234</ex:employee>
> </prov:Agent>
>
> I think this is correct, but I have been unable to validate it against 
> the schema yet (https://www.w3.org/2011/prov/track/issues/480).
>
> I'll look into the schema parsing error and then generate some more 
> example xml serializations and commit them to the repository.
>
> --Stephan

Received on Monday, 20 August 2012 04:14:45 UTC