| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 3 |
targetNamespace="http://www.w3.org/ns/prov#" xmlns:prov="http://www.w3.org/ns/prov#" |
| 4 |
elementFormDefault="qualified"> |
| 5 |
|
| 6 |
<xs:include schemaLocation="prov-core.xsd" /> |
| 7 |
|
| 8 |
<!-- Dictionary --> |
| 9 |
<xs:complexType name="Dictionary"> |
| 10 |
<xs:complexContent> |
| 11 |
<xs:extension base="prov:Collection"> |
| 12 |
</xs:extension> |
| 13 |
</xs:complexContent> |
| 14 |
</xs:complexType> |
| 15 |
|
| 16 |
<xs:element name="dictionary" type="prov:Dictionary" substitutionGroup="prov:internalElement" /> |
| 17 |
|
| 18 |
<!-- Empty Dictionary --> |
| 19 |
<xs:complexType name="EmptyDictionary"> |
| 20 |
<xs:complexContent> |
| 21 |
<xs:extension base="prov:Dictionary"> |
| 22 |
</xs:extension> |
| 23 |
</xs:complexContent> |
| 24 |
</xs:complexType> |
| 25 |
|
| 26 |
<xs:element name="emptyDictionary" type="prov:EmptyDictionary" substitutionGroup="prov:internalElement" /> |
| 27 |
|
| 28 |
<!-- Key-Entity Pair --> |
| 29 |
<xs:complexType name="KeyEntityPair"> |
| 30 |
<xs:sequence> |
| 31 |
<xs:element name="key" type="xs:anySimpleType" /> |
| 32 |
<xs:element name="entity" type="prov:IDRef" /> |
| 33 |
</xs:sequence> |
| 34 |
</xs:complexType> |
| 35 |
|
| 36 |
<!-- do we need to have this use the substitutionGroup? --> |
| 37 |
<xs:element name="keyEntityPair" type="prov:KeyEntityPair" substitutionGroup="prov:internalElement"/> |
| 38 |
|
| 39 |
<!-- Dictionary Membership --> |
| 40 |
<xs:complexType name="DictionaryMembership"> |
| 41 |
<xs:sequence> |
| 42 |
<xs:element name="dictionary" type="prov:IDRef"/> |
| 43 |
<xs:element name="keyEntityPair" type="prov:KeyEntityPair" minOccurs="1" maxOccurs="unbounded"/> |
| 44 |
</xs:sequence> |
| 45 |
</xs:complexType> |
| 46 |
|
| 47 |
<xs:element name="hadDictionaryMember" type="prov:DictionaryMembership" substitutionGroup="prov:internalElement"/> |
| 48 |
|
| 49 |
<!-- Insertion --> |
| 50 |
<xs:complexType name="Insertion"> |
| 51 |
<xs:sequence> |
| 52 |
<xs:element name="newDictionary" type="prov:IDRef"/> |
| 53 |
<xs:element name="oldDictionary" type="prov:IDRef"/> |
| 54 |
<xs:element name="keyEntityPair" type="prov:KeyEntityPair" minOccurs="1" maxOccurs="unbounded"/> |
| 55 |
<!-- prov attributes --> |
| 56 |
<xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/> |
| 57 |
<xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/> |
| 58 |
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> |
| 59 |
</xs:sequence> |
| 60 |
<xs:attribute ref="prov:id"/> |
| 61 |
<xs:anyAttribute namespace="##other" processContents="lax"/> |
| 62 |
</xs:complexType> |
| 63 |
|
| 64 |
<xs:element name="derivedByInsertionFrom" type="prov:Insertion" substitutionGroup="prov:internalElement"/> |
| 65 |
|
| 66 |
<!-- Removal --> |
| 67 |
<xs:complexType name="Removal"> |
| 68 |
<xs:sequence> |
| 69 |
<xs:element name="newDictionary" type="prov:IDRef"/> |
| 70 |
<xs:element name="oldDictionary" type="prov:IDRef"/> |
| 71 |
<xs:element name="key" type="xs:anySimpleType" minOccurs="1" maxOccurs="unbounded" /> |
| 72 |
<!-- prov attributes --> |
| 73 |
<xs:element ref="prov:label" minOccurs="0" maxOccurs="unbounded"/> |
| 74 |
<xs:element ref="prov:type" minOccurs="0" maxOccurs="unbounded"/> |
| 75 |
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> |
| 76 |
</xs:sequence> |
| 77 |
<xs:attribute ref="prov:id"/> |
| 78 |
<xs:anyAttribute namespace="##other" processContents="lax"/> |
| 79 |
</xs:complexType> |
| 80 |
|
| 81 |
<xs:element name="derivedByRemovalFrom" type="prov:Removal" substitutionGroup="prov:internalElement"/> |
| 82 |
|
| 83 |
</xs:schema> |