add prov-extended-elements.xsd to redefine documentElements adding extensions
authorCurt Tilmes <Curt.Tilmes@nasa.gov>
Wed, 30 Jan 2013 13:55:42 -0500
changeset 5456 d4bb1838c7e2
parent 5455 f39187ed5490
child 5457 86eaaca67451
add prov-extended-elements.xsd to redefine documentElements adding extensions
xml/schema/extensions/prov-extended-elements.xsd
xml/schema/prov.xsd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xml/schema/extensions/prov-extended-elements.xsd	Wed Jan 30 13:55:42 2013 -0500
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://www.w3.org/ns/prov#" xmlns:prov="http://www.w3.org/ns/prov#"
+	elementFormDefault="qualified">
+
+  <xs:redefine schemaLocation="../prov-core.xsd">
+  <xs:group name="documentElements">
+    <xs:sequence>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="prov:entity"/>
+        <xs:element ref="prov:activity"/>
+        <xs:element ref="prov:wasGeneratedBy"/>
+        <xs:element ref="prov:used"/>
+        <xs:element ref="prov:wasInformedBy"/>
+        <xs:element ref="prov:wasStartedBy"/>
+        <xs:element ref="prov:wasEndedBy"/>
+        <xs:element ref="prov:wasInvalidatedBy"/>
+        <xs:element ref="prov:wasDerivedFrom"/>
+        <xs:element ref="prov:wasRevisionOf"/>
+        <xs:element ref="prov:wasQuotedFrom"/>
+        <xs:element ref="prov:hadPrimarySource"/>
+        <xs:element ref="prov:agent"/>
+        <xs:element ref="prov:person"/>
+        <xs:element ref="prov:organization"/>
+        <xs:element ref="prov:softwareAgent"/>
+        <xs:element ref="prov:wasAttributedTo"/>
+        <xs:element ref="prov:wasAssociatedWith"/>
+        <xs:element ref="prov:actedOnBehalfOf"/>
+        <xs:element ref="prov:wasInfluencedBy"/>
+        <xs:element ref="prov:bundle"/>
+        <xs:element ref="prov:specializationOf"/>
+        <xs:element ref="prov:alternateOf"/>
+        <xs:element ref="prov:collection"/>
+        <xs:element ref="prov:emptyCollection"/>
+        <xs:element ref="prov:hadMember"/>
+        <xs:element ref="prov:plan"/>
+
+        <!-- PROV-DICTIONARY -->
+        <xs:element ref="prov:keyValuePair"/> 
+        <xs:element ref="prov:hadDictionaryMember"/>
+        <xs:element ref="prov:hadDictionaryMember"/>
+        <xs:element ref="prov:derivedByInsertionFrom"/>
+        <xs:element ref="prov:derivedByRemovalFrom"/>
+
+        <xs:any namespace="##other"/>
+      </xs:choice>
+      <xs:element ref="prov:abstractElement" minOccurs="0" maxOccurs="unbounded" />
+    </xs:sequence>
+  </xs:group>
+  </xs:redefine>
+
+</xs:schema>
+
--- a/xml/schema/prov.xsd	Tue Jan 29 16:48:01 2013 +0100
+++ b/xml/schema/prov.xsd	Wed Jan 30 13:55:42 2013 -0500
@@ -8,5 +8,6 @@
 	<xs:include schemaLocation="prov-core.xsd"/>
 	<xs:include schemaLocation="extensions/prov-dictionary.xsd"/>
 	<xs:include schemaLocation="extensions/prov-links.xsd"/>
-	
+	<xs:include schemaLocation="extensions/prov-extended-elements.xsd"/>
+
 </xs:schema>