Schemas for Annotation Exchange

From Gcube Wiki
Jump to: navigation, search

Annotation-specific Metadata Extension Schema

<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abe="http://diligentproject.org/namespaces/annotationmanagement/abe/model" 
                 xmlns:tns="http://diligentproject.org/namespaces/metadatamanagement/mc/model" 
                 targetNamespace="http://diligentproject.org/namespaces/metadatamanagement/mc/model">

	<import namespace="http://diligentproject.org/namespaces/annotationmanagement/abe/model"/>

	<redefine schemaLocation="MCschemav3.xsd">
		<complexType name="bodyType">
			<complexContent>
				<restriction base="tns:bodyType">
					<sequence>
						<element ref="abe:diligentannotation"/>
					</sequence>
				</restriction>
			</complexContent>
		</complexType>
	</redefine>
	
	<redefine schemaLocation="MCschema.xsd">
		<complexType name="MetadataObject">
			<complexContent>
				<restriction base="tns:MetadataObject">
					<sequence>
						<element name="body" type="tns:bodyType" />
					</sequence>
				</restriction>
			</complexContent>
		</complexType>
	</redefine>

</schema>