xml/experimental/extensions/dictionary.xsd
author Stian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Thu, 06 Dec 2012 16:51:27 +0000
changeset 5310 6113b10ac714
parent 5309 60d1dbc7145e
permissions -rw-r--r--
xsd:any switched for prov:extraRecord
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://www.w3.org/ns/prov#" xmlns:prov="http://www.w3.org/ns/prov#"
	elementFormDefault="qualified">
	<xsd:include schemaLocation="prov.xsd" />

	<!-- 
	Note: This is only an *example* of how dictionary membership could be expressed
	as an extension of prov.xsd	
	 -->

	<xsd:complexType name="Membership">
		<xsd:sequence>
			<xsd:element name="collection" type="prov:EntityRef" />
			<xsd:element name="member" type="prov:EntityRef" />
			<xsd:element name="key" type="xsd:string" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="dictionary" type="prov:Entity" substitutionGroup="prov:extraRecord" />
	<xsd:element name="hasMember" type="prov:Membership" substitutionGroup="prov:extraDependency" />
	
	
</xsd:schema>