changed attribute element definitions on complexTypes to references
authorStephan Zednik <zednis@rpi.edu>
Wed, 03 Oct 2012 16:59:32 -0600
changeset 4506 1cba636b2d77
parent 4505 0bb532d70a1b
child 4507 0ba3e4ec6d99
changed attribute element definitions on complexTypes to references
xml/schema/prov.xsd
--- a/xml/schema/prov.xsd	Mon Oct 01 13:15:56 2012 -0600
+++ b/xml/schema/prov.xsd	Wed Oct 03 16:59:32 2012 -0600
@@ -36,10 +36,10 @@
   <xs:complexType name="Entity">
     <xs:sequence>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="value"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:value"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -51,9 +51,9 @@
       <xs:element name="startTime"    type="xs:dateTime" minOccurs="0"/> 
       <xs:element name="endTime"      type="xs:dateTime" minOccurs="0"/> 
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -66,10 +66,10 @@
       <xs:element name="activity" type="prov:ActivityRef" minOccurs="0"/>
       <xs:element name="time"     type="xs:dateTime" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -82,10 +82,10 @@
       <xs:element name="entity"   type="prov:EntityRef" minOccurs="0"/>
       <xs:element name="time"     type="xs:dateTime" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -97,8 +97,8 @@
       <xs:element name="informed"  type="prov:ActivityRef"/>
       <xs:element name="informant" type="prov:ActivityRef"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -112,10 +112,10 @@
       <xs:element name="starter"  type="prov:ActivityRef" minOccurs="0"/>
       <xs:element name="time"     type="xs:dateTime" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -129,10 +129,10 @@
       <xs:element name="ender"    type="prov:ActivityRef" minOccurs="0"/>
       <xs:element name="time"     type="xs:dateTime" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -145,10 +145,10 @@
       <xs:element name="activity" type="prov:ActivityRef" minOccurs="0"/>
       <xs:element name="time"     type="xs:dateTime" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -165,8 +165,8 @@
       <xs:element name="generation"       type="prov:GenerationRef" minOccurs="0"/>
       <xs:element name="usage"            type="prov:UsageRef" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -178,9 +178,9 @@
   <xs:complexType name="Agent">
     <xs:sequence>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="location"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:location"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -192,8 +192,8 @@
       <xs:element name="entity" type="prov:EntityRef"/>
       <xs:element name="agent"    type="prov:AgentRef"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -206,9 +206,9 @@
       <xs:element name="agent"    type="prov:AgentRef" minOccurs="0"/>
       <xs:element name="plan"     type="prov:EntityRef" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="role"/>
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:role"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -221,8 +221,8 @@
       <xs:element name="responsible" type="prov:AgentRef"/>
       <xs:element name="activity"    type="prov:ActivityRef" minOccurs="0"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>
@@ -234,8 +234,8 @@
       <xs:element name="influencee"     type="prov:AnyRef"/>
       <xs:element name="influencer"     type="prov:AnyRef"/>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="label"/>
-        <xs:element name="type"/>
+        <xs:element ref="prov:label"/>
+        <xs:element ref="prov:type"/>
         <xs:any namespace="##other"/>
       </xs:choice>
     </xs:sequence>