Management Schema

The following schema are for discussion only and almost certainly contain errors, omissions and plain nonsense. However, I hope they provide a focal point for further definition.

Registry Configuration


RegistryConfiguration.gif

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="registry">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="regElements"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="name">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="type">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="FULL"/>
                <xsd:enumeration value="SPECIALIST"/>
                <xsd:enumeration value="PUBLISHER"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="queryable">
        <xsd:simpleType>
            <xsd:restriction base="xsd:boolean"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="referer">
        <xsd:simpleType>
            <xsd:restriction base="xsd:anyURI"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="referers">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="referer"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="regElements">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="name"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="type"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="queryable"/>
            <xsd:group maxOccurs="1" minOccurs="1" ref="referers"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>

Registry Management Call


RegistryManagement.gif

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="registryManagement">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="operations"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="publish">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="harvest">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="resources"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="replicate">
        <xsd:simpleType>
            <xsd:restriction base="xsd:dateTime"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="administer">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="DATA"/>
                <xsd:enumeration value="SPACE"/>
                <xsd:enumeration value="REGISTRY"/>
                <xsd:enumeration value="PROCESSING"/>
                <xsd:enumeration value="USER"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="userMetadata">
        <xsd:complexType>
            <xsd:sequence/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="dataRsrcMetadata">
        <xsd:complexType>
            <xsd:sequence/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="processingRsrcMetadata">
        <xsd:complexType>
            <xsd:sequence/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="registryRsrcMetadata">
        <xsd:complexType>
            <xsd:sequence/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="spaceRsrcMetadata">
        <xsd:complexType>
            <xsd:sequence/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="resource">
        <xsd:simpleType>
            <xsd:restriction base="xsd:anyURI"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="operations">
        <xsd:choice>
            <xsd:element maxOccurs="1" minOccurs="1" ref="publish"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="harvest"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="replicate"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="administer"/>
        </xsd:choice>
    </xsd:group>
    <xsd:group name="admin">
        <xsd:choice>
            <xsd:element maxOccurs="1" minOccurs="1" ref="userMetadata"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="dataRsrcMetadata"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="processingRsrcMetadata"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="registryRsrcMetadata"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="spaceRsrcMetadata"/>
        </xsd:choice>
    </xsd:group>
    <xsd:group name="resources">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="1" ref="resource"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>

Registry Harvest/Replicate response


harvestReplicateResponse.gif

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="hrResponse">
        <xsd:simpleType>
            <xsd:restriction base="xsd:long"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="resourceMetadata">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="resource">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="resources">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="resource"/>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="resourceMetadata"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>


-- KeithNoddle - 08 May 2003

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-05-09 - KeithNoddle
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback