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

Notes on PROV-XML schema

From: Stephan Zednik <zednis@rpi.edu>
Date: Wed, 15 Aug 2012 14:09:56 -0600
Message-Id: <ECEA2816-DFF4-414D-B955-B7DC42614D7D@rpi.edu>
To: "public-prov-wg@w3.org" <public-prov-wg@w3.org>
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/">

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.

Received on Wednesday, 15 August 2012 20:10:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:51:19 UTC