Difference: RWP04QuerySchema1 (1 vs. 3)

Revision 32012-06-26 - root

 
META TOPICPARENT name="RWP04DesignDocs"

Query Schema

These schema are not intended to be definitive but to provide a basis for discussion...

Registry Query


RegistryQuery.gif

RegistryQuery.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="regQuery">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="contents"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="userID">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="query">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="criteria"/>
                <xsd:group maxOccurs="1" minOccurs="1" ref="return"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="operator">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="AND"/>
                <xsd:enumeration value="OR"/>
                <xsd:enumeration value="NOT"/>
                <xsd:enumeration value="LESSTHAN"/>
                <xsd:enumeration value="GREATERTHAN"/>
                <xsd:enumeration value="DIFFERENCE"/>
                <xsd:enumeration value="AVERAGE"/>
                <xsd:enumeration value="CONE"/>
                <xsd:enumeration value="EQUALS"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="field">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="value">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="contents">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="userID"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="query"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="nameValuePairs">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="field"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="value"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="criteria">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="operator"/>
            <xsd:group maxOccurs="1" minOccurs="1" ref="nameValuePairs"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="return">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="field"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>

Registry Query Response


RegistryQueryResponse.gif

RegistryResponse.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="registryResponse">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="contains"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="queryID">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="resources">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="resourceList"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="resource">
        <xsd:simpleType>
            <xsd:restriction base="xsd:anyURI"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="contains">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="queryID"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="resources"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="resourceList">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="resource"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>


-- KeithNoddle - 08 May 2003

META FILEATTACHMENT attr="h" comment="" date="1052486997" name="RegistryQuery.gif" path="RegistryQuery.gif" size="5735" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487030" name="RegistryQuery.xsd" path="RegistryQuery.xsd" size="2604" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487118" name="RegistryQueryResponse.gif" path="RegistryQueryResponse.gif" size="3814" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487149" name="RegistryResponse.xsd" path="RegistryResponse.xsd" size="1309" user="KeithNoddle" version="1.1"

Revision 22003-05-09 - KeithNoddle

 
META TOPICPARENT name="RWP04DesignDocs"
Deleted:
<
<



 

Query Schema

Added:
>
>
These schema are not intended to be definitive but to provide a basis for discussion...
 
Added:
>
>

Registry Query


RegistryQuery.gif

RegistryQuery.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="regQuery">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="contents"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="userID">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="query">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="criteria"/>
                <xsd:group maxOccurs="1" minOccurs="1" ref="return"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="operator">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="AND"/>
                <xsd:enumeration value="OR"/>
                <xsd:enumeration value="NOT"/>
                <xsd:enumeration value="LESSTHAN"/>
                <xsd:enumeration value="GREATERTHAN"/>
                <xsd:enumeration value="DIFFERENCE"/>
                <xsd:enumeration value="AVERAGE"/>
                <xsd:enumeration value="CONE"/>
                <xsd:enumeration value="EQUALS"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="field">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="value">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="contents">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="userID"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="query"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="nameValuePairs">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="field"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="value"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="criteria">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="operator"/>
            <xsd:group maxOccurs="1" minOccurs="1" ref="nameValuePairs"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="return">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="field"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>

Registry Query Response


RegistryQueryResponse.gif

RegistryResponse.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="registryResponse">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="contains"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="queryID">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:element name="resources">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:group maxOccurs="1" minOccurs="1" ref="resourceList"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="resource">
        <xsd:simpleType>
            <xsd:restriction base="xsd:anyURI"/>
        </xsd:simpleType>
    </xsd:element>
    <xsd:group name="contains">
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" ref="queryID"/>
            <xsd:element maxOccurs="1" minOccurs="1" ref="resources"/>
        </xsd:sequence>
    </xsd:group>
    <xsd:group name="resourceList">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" minOccurs="0" ref="resource"/>
        </xsd:sequence>
    </xsd:group>
</xsd:schema>
 

-- KeithNoddle - 08 May 2003

<--  
-->
Added:
>
>
META FILEATTACHMENT attr="h" comment="" date="1052486997" name="RegistryQuery.gif" path="RegistryQuery.gif" size="5735" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487030" name="RegistryQuery.xsd" path="RegistryQuery.xsd" size="2604" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487118" name="RegistryQueryResponse.gif" path="RegistryQueryResponse.gif" size="3814" user="KeithNoddle" version="1.1"
META FILEATTACHMENT attr="h" comment="" date="1052487149" name="RegistryResponse.xsd" path="RegistryResponse.xsd" size="1309" user="KeithNoddle" version="1.1"
 

Revision 12003-05-08 - KeithNoddle

 
META TOPICPARENT name="RWP04DesignDocs"



Query Schema


-- KeithNoddle - 08 May 2003

<--  
-->
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback