added section for prov:other and updated inline schema to reflect prov:other updates
--- a/xml/prov-xml.html Thu Apr 04 02:41:39 2013 -0600
+++ b/xml/prov-xml.html Thu Apr 04 02:42:42 2013 -0600
@@ -1764,8 +1764,7 @@
<pre class="schema-type">
<xs:complexType name="BundleConstructor">
<xs:sequence maxOccurs="unbounded">
- <xs:group ref="prov:documentElements"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0"/>
+ <-- references to standard non-PROV attribute PROV elements -->
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
@@ -1775,9 +1774,8 @@
<pre>
<xs:complexType name="Document">
<xs:sequence maxOccurs="unbounded">
- <xs:group ref="prov:documentElements" minOccurs="0"/>
+ <!-- references to standard non-PROV attribute PROV elements -->
<xs:element name="bundleContent" type="prov:BundleConstructor" minOccurs="0"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</pre>
@@ -2228,15 +2226,14 @@
<pre class="schema-type">
<xs:complexType name="Document">
<xs:sequence maxOccurs="unbounded">
- <xs:group ref="prov:documentElements" minOccurs="0"/>
+ <!-- references to standard non-PROV attribute PROV elements -->
<xs:element name="bundleContent" type="prov:BundleConstructor" minOccurs="0"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</pre>
<p>The element <code>prov:document</code> may only be used as the root element of a a PROV-XML document.</p>
-<pre class="schema-element" element="prov:document" schemaType="prov:Document" ignore>
+<pre>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="document" type="prov:Document"/>
</pre>
<pre class="example" title="prov:document">
@@ -2252,6 +2249,41 @@
</pre>
</section> <!-- end term-Document-->
+<section id="term-Other">
+<h4>Other</h4>
+<p>The <code>prov:other</code> element provides a place to include non-PROV XML elements inside a <code>prov:document</code> or <code>prov:bundleContent</code>.</p>
+<pre class="schema-type">
+<xs:complexType name="Other">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+</xs:complexType>
+</pre>
+<p>The element <code>prov:other</code> may be used in a <code>prov:document</code> or a <code>prov:bundleContent</code> but may not be used inside a relation, entity, or activity element.</p>
+<pre>
+<xs:element name="other" type="prov:Other"/>
+</pre>
+<pre class="example" title="prov:other">
+<prov:document
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:prov="http://www.w3.org/ns/prov#"
+ xmlns:ex="http://example.com/ns/ex#">
+
+ <!-- prov statements go here -->
+
+ <b><prov:other>
+ <ex:foo>
+ <ex:content>bar</ex:content>
+ </ex:foo>
+ </prov:other></b>
+
+ <!-- more prov statements can go here -->
+
+</prov:document>
+</pre>
+</section> <!-- end term-Other -->
+
</section> <!-- end structural-elements -->
</section> <!-- end schema-components -->
@@ -2347,9 +2379,9 @@
elementFormDefault="qualified"
attributeFormDefault="unqualified">
- <xs:include schemaLocation="prov-core.xsd"/>
- <xs:include schemaLocation="prov-dictionary.xsd"/>
- <xs:include schemaLocation="prov-links.xsd"/>
+ <xs:include schemaLocation="prov-core.xsd"/>
+ <xs:include schemaLocation="prov-dictionary.xsd"/>
+ <xs:include schemaLocation="prov-links.xsd"/>
</xs:schema>
</pre>
@@ -2359,6 +2391,13 @@
<h3>prov-core.xsd</h3>
<pre class="prov-core-schema">
<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ In PROV-DM, all ids are qualified names, specified as prov:QualifiedName in PROV-N.
+ In this schema, all ids are instead defined as xsd:QNames.
+ -->
+
+
<xs:schema targetNamespace="http://www.w3.org/ns/prov#"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:prov="http://www.w3.org/ns/prov#"
@@ -2377,114 +2416,114 @@
<xs:complexType name="Entity">
<xs:sequence>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:value" minOccurs="0"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:value" minOccurs="0"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Activity">
<xs:sequence>
- <xs:element name="startTime" type="xs:dateTime" minOccurs="0"/>
- <xs:element name="endTime" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="startTime" type="xs:dateTime" minOccurs="0"/>
+ <xs:element name="endTime" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Generation">
<xs:sequence>
- <xs:element name="entity" type="prov:IDRef"/>
- <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="entity" type="prov:IDRef"/>
+ <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Usage">
<xs:sequence>
- <xs:element name="activity" type="prov:IDRef"/>
- <xs:element name="entity" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="activity" type="prov:IDRef"/>
+ <xs:element name="entity" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Communication">
<xs:sequence>
- <xs:element name="informed" type="prov:IDRef"/>
- <xs:element name="informant" type="prov:IDRef"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="informed" type="prov:IDRef"/>
+ <xs:element name="informant" type="prov:IDRef"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Start">
<xs:sequence>
- <xs:element name="activity" type="prov:IDRef"/>
- <xs:element name="trigger" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="starter" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="activity" type="prov:IDRef"/>
+ <xs:element name="trigger" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="starter" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="End">
<xs:sequence>
- <xs:element name="activity" type="prov:IDRef"/>
- <xs:element name="trigger" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="ender" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="activity" type="prov:IDRef"/>
+ <xs:element name="trigger" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="ender" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Invalidation">
<xs:sequence>
- <xs:element name="entity" type="prov:IDRef"/>
- <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="entity" type="prov:IDRef"/>
+ <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="time" type="xs:dateTime" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
@@ -2493,15 +2532,15 @@
<xs:complexType name="Derivation">
<xs:sequence>
- <xs:element name="generatedEntity" type="prov:IDRef"/>
- <xs:element name="usedEntity" type="prov:IDRef"/>
- <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="generation" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="usage" type="prov:IDRef" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="generatedEntity" type="prov:IDRef"/>
+ <xs:element name="usedEntity" type="prov:IDRef"/>
+ <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="generation" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="usage" type="prov:IDRef" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
@@ -2531,11 +2570,11 @@
<xs:complexType name="Agent">
<xs:sequence>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:location" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
@@ -2563,70 +2602,97 @@
<xs:complexType name="Attribution">
<xs:sequence>
- <xs:element name="entity" type="prov:IDRef"/>
- <xs:element name="agent" type="prov:IDRef"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="entity" type="prov:IDRef"/>
+ <xs:element name="agent" type="prov:IDRef"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Association">
<xs:sequence>
- <xs:element name="activity" type="prov:IDRef"/>
- <xs:element name="agent" type="prov:IDRef" minOccurs="0"/>
- <xs:element name="plan" type="prov:IDRef" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="activity" type="prov:IDRef"/>
+ <xs:element name="agent" type="prov:IDRef" minOccurs="0"/>
+ <xs:element name="plan" type="prov:IDRef" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:role" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Delegation">
<xs:sequence>
- <xs:element name="delegate" type="prov:IDRef"/>
- <xs:element name="responsible" type="prov:IDRef"/>
- <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="delegate" type="prov:IDRef"/>
+ <xs:element name="responsible" type="prov:IDRef"/>
+ <xs:element name="activity" type="prov:IDRef" minOccurs="0"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<xs:complexType name="Influence">
<xs:sequence>
- <xs:element name="influencee" type="prov:IDRef"/>
- <xs:element name="influencer" type="prov:IDRef"/>
- <!-- prov attributes -->
- <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="influencee" type="prov:IDRef"/>
+ <xs:element name="influencer" type="prov:IDRef"/>
+ <!-- prov attributes -->
+ <xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
<!-- Component 4 -->
- <!-- Is there a way to have this still extend prov:Entity? -->
-
<xs:complexType name="Bundle">
<xs:complexContent>
<xs:extension base="prov:Entity">
</xs:extension>
</xs:complexContent>
</xs:complexType>
-
+
+ <!-- bundle container and allowable PROV elements -->
+
<xs:complexType name="BundleConstructor">
<xs:sequence maxOccurs="unbounded">
- <xs:group ref="prov:documentElements"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0"/>
+ <xs:element ref="prov:entity" minOccurs="0"/>
+ <xs:element ref="prov:activity" minOccurs="0"/>
+ <xs:element ref="prov:wasGeneratedBy" minOccurs="0"/>
+ <xs:element ref="prov:used" minOccurs="0"/>
+ <xs:element ref="prov:wasInformedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasStartedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasEndedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasInvalidatedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasDerivedFrom" minOccurs="0"/>
+ <xs:element ref="prov:wasRevisionOf" minOccurs="0"/>
+ <xs:element ref="prov:wasQuotedFrom" minOccurs="0"/>
+ <xs:element ref="prov:hadPrimarySource" minOccurs="0"/>
+ <xs:element ref="prov:agent" minOccurs="0"/>
+ <xs:element ref="prov:person" minOccurs="0"/>
+ <xs:element ref="prov:organization" minOccurs="0"/>
+ <xs:element ref="prov:softwareAgent" minOccurs="0"/>
+ <xs:element ref="prov:wasAttributedTo" minOccurs="0"/>
+ <xs:element ref="prov:wasAssociatedWith" minOccurs="0"/>
+ <xs:element ref="prov:actedOnBehalfOf" minOccurs="0"/>
+ <xs:element ref="prov:wasInfluencedBy" minOccurs="0"/>
+ <xs:element ref="prov:bundle" minOccurs="0"/>
+ <xs:element ref="prov:specializationOf" minOccurs="0"/>
+ <xs:element ref="prov:alternateOf" minOccurs="0"/>
+ <xs:element ref="prov:collection" minOccurs="0"/>
+ <xs:element ref="prov:emptyCollection" minOccurs="0"/>
+ <xs:element ref="prov:hadMember" minOccurs="0"/>
+ <xs:element ref="prov:plan" minOccurs="0"/>
+ <xs:element ref="prov:other" minOccurs="0"/>
+ <xs:element ref="prov:internalElement" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="prov:id"/>
</xs:complexType>
@@ -2754,56 +2820,61 @@
<xs:element name="plan" type="prov:Plan"/>
- <!-- document elements -->
-
- <xs:group name="documentElements">
- <xs:sequence>
- <xs:element ref="prov:entity" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:activity" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasGeneratedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:used" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasInformedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasStartedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasEndedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasInvalidatedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasDerivedFrom" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasRevisionOf" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasQuotedFrom" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:hadPrimarySource" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:agent" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:person" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:organization" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:softwareAgent" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasAttributedTo" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasAssociatedWith" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:actedOnBehalfOf" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:wasInfluencedBy" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:bundle" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:specializationOf" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:alternateOf" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:collection" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:emptyCollection" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:hadMember" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:plan" minOccurs="0" maxOccurs="unbounded"/>
- <xs:element ref="prov:internalElement" minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:group>
+ <!-- document container and allowable PROV elements -->
<xs:element name="document" type="prov:Document" />
+
<xs:complexType name="Document">
<xs:sequence maxOccurs="unbounded">
- <xs:group ref="prov:documentElements" minOccurs="0"/>
+ <xs:element ref="prov:entity" minOccurs="0"/>
+ <xs:element ref="prov:activity" minOccurs="0"/>
+ <xs:element ref="prov:wasGeneratedBy" minOccurs="0"/>
+ <xs:element ref="prov:used" minOccurs="0"/>
+ <xs:element ref="prov:wasInformedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasStartedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasEndedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasInvalidatedBy" minOccurs="0"/>
+ <xs:element ref="prov:wasDerivedFrom" minOccurs="0"/>
+ <xs:element ref="prov:wasRevisionOf" minOccurs="0"/>
+ <xs:element ref="prov:wasQuotedFrom" minOccurs="0"/>
+ <xs:element ref="prov:hadPrimarySource" minOccurs="0"/>
+ <xs:element ref="prov:agent" minOccurs="0"/>
+ <xs:element ref="prov:person" minOccurs="0"/>
+ <xs:element ref="prov:organization" minOccurs="0"/>
+ <xs:element ref="prov:softwareAgent" minOccurs="0"/>
+ <xs:element ref="prov:wasAttributedTo" minOccurs="0"/>
+ <xs:element ref="prov:wasAssociatedWith" minOccurs="0"/>
+ <xs:element ref="prov:actedOnBehalfOf" minOccurs="0"/>
+ <xs:element ref="prov:wasInfluencedBy" minOccurs="0"/>
+ <xs:element ref="prov:bundle" minOccurs="0"/>
+ <xs:element ref="prov:specializationOf" minOccurs="0"/>
+ <xs:element ref="prov:alternateOf" minOccurs="0"/>
+ <xs:element ref="prov:collection" minOccurs="0"/>
+ <xs:element ref="prov:emptyCollection" minOccurs="0"/>
+ <xs:element ref="prov:hadMember" minOccurs="0"/>
+ <xs:element ref="prov:plan" minOccurs="0"/>
+ <xs:element ref="prov:other" minOccurs="0"/>
+ <xs:element ref="prov:internalElement" minOccurs="0"/>
<xs:element name="bundleContent" type="prov:BundleConstructor" minOccurs="0"/>
- <xs:any namespace="##other" processContents="lax" minOccurs="0" />
</xs:sequence>
</xs:complexType>
-
- <!-- abstract element used by extensions -->
+ <!-- abstract element used by PROV extensions -->
<xs:element name="internalElement" abstract="true" />
+ <!-- 'others' element used to contain non-PROV elements -->
+
+ <xs:element name="other" type="prov:Other"/>
+
+ <xs:complexType name="Other">
+ <xs:sequence>
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
</xs:schema>
+
</pre>
</section> <!-- end prov-core-schema -->
@@ -2817,17 +2888,17 @@
targetNamespace="http://www.w3.org/ns/prov#" xmlns:prov="http://www.w3.org/ns/prov#"
elementFormDefault="qualified">
- <xs:include schemaLocation="prov-core.xsd" />
+ <xs:include schemaLocation="prov-core.xsd" />
- <xs:complexType name="Mention">
- <xs:sequence>
- <xs:element name="specificEntity" type="prov:IDRef" />
- <xs:element name="generalEntity" type="prov:IDRef" />
- <xs:element name="bundle" type="prov:IDRef" />
- </xs:sequence>
- </xs:complexType>
+ <xs:complexType name="Mention">
+ <xs:sequence>
+ <xs:element name="specificEntity" type="prov:IDRef" />
+ <xs:element name="generalEntity" type="prov:IDRef" />
+ <xs:element name="bundle" type="prov:IDRef" />
+ </xs:sequence>
+ </xs:complexType>
- <xs:element name="mentionOf" type="prov:Mention" substitutionGroup="prov:internalElement" />
+ <xs:element name="mentionOf" type="prov:Mention" substitutionGroup="prov:internalElement" />
</xs:schema>
</pre>
@@ -2840,6 +2911,9 @@
<section>
<h3>Change Log Since WD Working Draft 12 March 2013</h3>
<ul>
+<li>Updated inline schema</li>
+<li>Updated BundleConstructor and Document sections to reflect changes to schema</li>
+<li>Added Other section for prov:other element and type</li>
<li>Updated the Status of this Document section</li>
<li>Added a note about potential OXM issues to Schema Modularization section, referenced FAQ entry on subject.</li>
</ul>