[tdwg-tapir] Schema modification: r520 - trunk/protocol/examples
Author: javier Date: 2006-04-29 00:13:05 +0200 (Sat, 29 Apr 2006) New Revision: 520
Added: trunk/protocol/examples/schema_used_in_output_model.xsd trunk/protocol/examples/search_request.xml trunk/protocol/examples/search_response.xml Log: search example added
Added: trunk/protocol/examples/schema_used_in_output_model.xsd =================================================================== --- trunk/protocol/examples/schema_used_in_output_model.xsd 2006-04-28 21:38:03 UTC (rev 519) +++ trunk/protocol/examples/schema_used_in_output_model.xsd 2006-04-28 22:13:05 UTC (rev 520) @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsd:schema targetNamespace="http://example.net/simple_specimen" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + elementFormDefault="qualified" attributeFormDefault="unqualified"> + <xsd:element name="dataset"> + xsd:complexType + xsd:sequence + <xsd:element name="specimen" minOccurs="0" maxOccurs="unbounded"> + xsd:complexType + xsd:sequence + <xsd:element name="identification" maxOccurs="unbounded" minOccurs="0"> + xsd:complexType + xsd:sequence + <xsd:element name="name"> + xsd:complexType + xsd:simpleContent + <xsd:extension base="xsd:string"> + <xsd:attribute name="family" type="xsd:string" + /> + </xsd:extension> + </xsd:simpleContent> + </xsd:complexType> + </xsd:element> + <xsd:element name="identifier" type="xsd:string" minOccurs="0" + /> + </xsd:sequence> + <xsd:attribute name="date" type="xsd:string" use="optional"/> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + <xsd:attribute name="catnum" type="xsd:int" use="required"/> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + </xsd:element> +</xsd:schema>
Added: trunk/protocol/examples/search_request.xml =================================================================== --- trunk/protocol/examples/search_request.xml 2006-04-28 21:38:03 UTC (rev 519) +++ trunk/protocol/examples/search_request.xml 2006-04-28 22:13:05 UTC (rev 520) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<request xmlns="http://res.tdwg.org/tapir/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://res.tdwg.org/tapir/1.0 + file:/Users/javi/workspace/tapirProtocol/protocol/tapir.xsd"> + <header> + <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00"/> + </header> + <search> + <outputModel + location="http://ww2.biocase.org/svn/tapir/trunk/protocol/examples/output_model1.xml%2... + <filter> + <like> + <concept id="dwc:/ScientificName"/> + <literal value="Luzu*"/> + </like> + </filter> + <orderBy> + <concept id="dwc:/Family"/> + <concept id="dwc:/ScientificName"/> + </orderBy> + </search> +</request>
Added: trunk/protocol/examples/search_response.xml =================================================================== --- trunk/protocol/examples/search_response.xml 2006-04-28 21:38:03 UTC (rev 519) +++ trunk/protocol/examples/search_response.xml 2006-04-28 22:13:05 UTC (rev 520) @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<response xmlns="http://res.tdwg.org/tapir/1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://res.tdwg.org/tapir/1.0 + http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd%22%3E + <header> + <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00"/> + </header> + <search> + <dataset xmlns="http://example.net/simple_specimen" + xsi:schemaLocation="http://example.net/simple_specimen + http://ww2.biocase.org/svn/tapir/trunk/protocol/examples/schema_used_in_outp... + <specimen catnum="234"> + <identification> + <name>Luzula luzuloides</name> + </identification> + </specimen> + <specimen catnum="290"> + <identification> + <name>Luzula alpestris</name> + </identification> + </specimen> + </dataset> + <summary start="0" totalReturned="2"/> + </search> +</response>
participants (1)
-
tdwg-tapir@lists.tdwg.org