Difference between revisions of "Schemas for Annotation Exchange"
From Gcube Wiki
m (Annotationextensionschema moved to Schemas for Annotation Exchange) |
(→Annotation-specific Metadata Extension Schema) |
||
Line 1: | Line 1: | ||
− | == | + | ==Metadata Extension Schema== |
<pre> | <pre> | ||
− | <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abe="http:// | + | <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:abe="http://gcube-project.org/namespaces/annotationmanagement/abe/model" |
− | xmlns:tns="http:// | + | xmlns:tns="http://gcube-project.org/namespaces/metadatamanagement/mc/model" |
− | targetNamespace="http:// | + | 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=" | + | <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: | + | <element ref="abe:gcubeannotation"/> |
</sequence> | </sequence> | ||
</restriction> | </restriction> | ||
Line 20: | Line 21: | ||
</redefine> | </redefine> | ||
− | <redefine schemaLocation=" | + | <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="gcubeannotation" 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> |
Revision as of 16:17, 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:gcubeannotation"/> </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="gcubeannotation" 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>