Difference between revisions of "Schemas for Annotation Exchange"
From Gcube Wiki
(→Metadata Extension Schema) |
(→Annotation Exchange Schema) |
||
Line 44: | Line 44: | ||
− | <element name=" | + | <element name="annotation" type="tns:annotationType"/> |
<complexType name="annotationType"> | <complexType name="annotationType"> |
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>