Difference between revisions of "Schemas for Annotation Exchange"

From Gcube Wiki
Jump to: navigation, search
(Annotation Exchange Schema)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Annotation-specific Metadata Extension Schema==
+
==Metadata Extension Schema==
  
 
<pre>
 
<pre>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abe="http://diligentproject.org/namespaces/annotationmanagement/abe/model"  
+
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abe="http://gcube-project.org/namespaces/annotationmanagement/abe/model"  
                 xmlns:tns="http://diligentproject.org/namespaces/metadatamanagement/mc/model"  
+
                 xmlns:tns="http://gcube-project.org/namespaces/metadatamanagement/mc/model"  
                 targetNamespace="http://diligentproject.org/namespaces/metadatamanagement/mc/model">
+
                 targetNamespace="http://gcube-project.org/namespaces/metadatamanagement/mc/model">
  
<import namespace="http://diligentproject.org/namespaces/annotationmanagement/abe/model"/>
+
<import namespace="http://diligentproject.org/namespaces/annotationmanagement/abe/model"
 +
                      schemaLocation="http://gcube-project.org/namespaces/annotationmanagement/abe/model"/>
  
<redefine schemaLocation="MCschemav3.xsd">
+
<redefine schemaLocation="http://gcube-project.org/namespaces/metadatamanagement/mc/model" >
 
<complexType name="bodyType">
 
<complexType name="bodyType">
 
<complexContent>
 
<complexContent>
 
<restriction base="tns:bodyType">
 
<restriction base="tns:bodyType">
 
<sequence>
 
<sequence>
<element ref="abe:diligentannotation"/>
+
<element ref="abe:annotation"/>
 
</sequence>
 
</sequence>
 
</restriction>
 
</restriction>
Line 20: Line 21:
 
</redefine>
 
</redefine>
 
 
<redefine schemaLocation="MCschema.xsd">
+
<redefine schemaLocation="http://gcube-project.org/namespaces/metadatamanagement/mc/model">
 
<complexType name="MetadataObject">
 
<complexType name="MetadataObject">
 
<complexContent>
 
<complexContent>
Line 33: Line 34:
  
 
</schema>
 
</schema>
 +
</pre>
 +
 +
==Annotation Exchange Schema==
 +
 +
<pre>
 +
<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>
 +
 
</pre>
 
</pre>

Latest revision as of 16:20, 8 September 2008

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>