Notes on PROV-XML schema

Here are some notes from a review of the XML schema
Does prov.xsd validate?
xmllint returned errors when trying to parse the schema (see https://www.w3.org/2011/prov/track/issues/480)
I think we should move dictionary elements/types into a separate schema (prov-dictionary.xsd?)
This list includes
complexType DictionaryMemberOf
complexType DerivedByInsertionFrom
complexType DerivedByRemovalFrom
complexType Entry
element key
element dictionaryMemberOf
element derivedByInsertionFrom
element derivedByRemovalFrom
Should Person, Organization, SoftwareAgent, Collection be complexTypes?
Should the type of prov:type be xs:QName?
Currently has type xs:AnySimpleType in the schema
so <prov:type>42</prov:type> is legal
as is <prov:type>2001-08-15</prov:type>
and <prov:type>true</prov:type>
It's defined as a Value (http://www.w3.org/TR/prov-dm/#concept-value) in PROV-DM
A 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 Wednesday, 15 August 2012 20:10:25 UTC