Schemas for Annotation Exchange

From Gcube Wiki
(Redirected from Annotationextensionschema)
Jump to: navigation, search

Metadata Extension Schema

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

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

	<redefine schemaLocation="http://gcube-project.org/namespaces/metadatamanagement/mc/model" >
		<complexType name="bodyType">
			<complexContent>
				<restriction base="tns:bodyType">
					<sequence>
						<element ref="abe:annotation"/>
					</sequence>
				</restriction>
			</complexContent>
		</complexType>
	</redefine>
	
	<redefine schemaLocation="http://gcube-project.org/namespaces/metadatamanagement/mc/model">
		<complexType name="MetadataObject">
			<complexContent>
				<restriction base="tns:MetadataObject">
					<sequence>
						<element name="body" type="tns:bodyType" />
					</sequence>
				</restriction>
			</complexContent>
		</complexType>
	</redefine>

</schema>

Annotation Exchange Schema

<schema xmlns="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://gcube-project.org/namespaces/annotationmanagement/abe/model"
	xmlns:tns="http://http://gcube-project.org/namespaces/annotationmanagement/abe/model">


	<element name="annotation" type="tns:annotationType"/>

	<complexType name="annotationType">
		<sequence>
			<element name="header" type="tns:headerType" />
			<element name="body" type="tns:bodyType" />
		</sequence>
	</complexType>
	
	<complexType name="headerType">
		<sequence>
			<element name="replies-to" type="string"/>
		</sequence>
	</complexType>
	
	<complexType name="bodyType">
		<sequence>
			<any namespace="##any" minOccurs="1"
				maxOccurs="1" processContents="lax"/>
		</sequence>
	</complexType>
	
</schema>