[tdwg-tapir] Schema modification: r389 - trunk/protocol/examples

tdwg-tapir at lists.tdwg.org tdwg-tapir at lists.tdwg.org
Thu Jan 5 15:51:48 CET 2006


Author: markus
Date: 2006-01-05 15:51:36 +0100 (Thu, 05 Jan 2006)
New Revision: 389

Added:
   trunk/protocol/examples/inventory_template1.xml
   trunk/protocol/examples/output_model1.xml
   trunk/protocol/examples/search_template1.xml
Modified:
   trunk/protocol/examples/capabilities_request.xml
   trunk/protocol/examples/capabilities_response.xml
   trunk/protocol/examples/inventory_request.xml
   trunk/protocol/examples/inventory_response.xml
   trunk/protocol/examples/metadata_request.xml
   trunk/protocol/examples/metadata_response.xml
   trunk/protocol/examples/ping_request.xml
   trunk/protocol/examples/ping_response.xml
Log:
updated the examples to validate against renatos pre-christmas tapir schema and added examples for an output model document as well as search- and inventory templates.

Modified: trunk/protocol/examples/capabilities_request.xml
===================================================================
--- trunk/protocol/examples/capabilities_request.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/capabilities_request.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
-        </source>
-    </header>
-        <capabilities/>
+<?xml version="1.0" encoding="UTF-8"?>
+<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
+        </source>
+    </header>
+        <capabilities/>
 </request>
\ No newline at end of file

Modified: trunk/protocol/examples/capabilities_response.xml
===================================================================
--- trunk/protocol/examples/capabilities_response.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/capabilities_response.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,96 +1,102 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0
-    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
-            <software name="TAPIR_Implementation" version="1.0"/>
-        </source>
-    </header>
-    <capabilities>
-        <operations>
-            <ping/>
-            <metadata/>
-            <capabilities/>
-            <search>
-                <queryTemplates>
-                    <queryTemplate location="http://url_to_querytemplate"/>
-                </queryTemplates>
-                <customOutputModels accepted="false"/>
-                <variables>
-                    <environment>
-                        <lastUpdate/>
-                        <timestamp/>
-                        <datasourceName/>
-                        <date/>
-                        <metadata/>
-                        <accessPoint/>
-                        <custom/>
-                    </environment>
-                </variables>
-            </search>
-        </operations>
-        <operators>
-            <expression>
-                <concept/>
-                <literal/>
-                <parameter/>
-                <variable/>
-                <arithmetic>
-                    <div/>
-                    <mul/>
-                    <add/>
-                    <custom/>
-                </arithmetic>
-            </expression>
-            <boolean>
-                <logical>
-                    <or/>
-                    <not/>
-                    <custom/>
-                    <and/>
-                    <custom/>
-                </logical>
-                <comparative>
-                    <like/>
-                    <lessThanOrEquals/>
-                    <lessThan/>
-                    <isNull/>
-                    <in/>
-                    <greaterThanOrEquals/>
-                    <greaterThan/>
-                    <equals/>
-                    <custom/>
-                </comparative>
-            </boolean>
-        </operators>
-        <concepts>
-            <conceptNameServers>
-                <primaryConceptNameServer location="http://url_to_primary_concept_server"/>
-                <secondaryConceptNameServer location="http://url_to_secondary_concept_server"/>
-            </conceptNameServers>
-            <schema namespace="http://www.tdwg.org/schemas/abcd/1.2"
-                location="http://www.bgbm.org/TDWG/CODATA/Schema/ABCD-1.20.xsd">
-                <mappedConcept
-                    id="/DataSets/DataSet/DatasetDerivations/DatasetDerivation/DateSupplied"
-                    searchable="true"/>
-                <mappedConcept
-                    id="/DataSets/DataSet/DatasetDerivations/DatasetDerivation/Description"
-                    searchable="true"/>
-            </schema>
-            <schema namespace="http://digir.net/schema/conceptual/darwin/extension/curatorial/1.0"
-                location="http://digir.net/schema/conceptual/darwin/extension/curatorial/1.0/curatorialWithDiGIRv1.3.xsd">
-                <mappedConcept id="/CatalogNumberNumeric" searchable="true"/>
-                <mappedConcept id="/IdentifiedBy" searchable="true"/>
-            </schema>
-        </concepts>
-        <settings>
-            <minQueryTermLength>2</minQueryTermLength>
-            <maxElementLevels>20</maxElementLevels>
-            <maxResponseSize>500</maxResponseSize>
-            <maxElementRepetitions>10</maxElementRepetitions>
-            <maxResponseTags>500</maxResponseTags>
-        </settings>
-    </capabilities>
-</response>
+<?xml version="1.0" encoding="UTF-8"?>
+<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
+            <software name="TAPIR_Implementation" version="1.0"/>
+        </source>
+    </header>
+    <capabilities>
+        <operations>
+            <ping/>
+            <metadata/>
+            <capabilities/>
+            <view>
+                <queryTemplates>
+                    <queryTemplate location="http://url_to_searchtemplateA"/>
+                    <queryTemplate location="http://url_to_searchtemplateB"/>
+                    <queryTemplate location="http://url_to_inventorytemplate"/>
+                </queryTemplates>
+            </view>
+            <inventory/>
+            <search>
+                <predefinedOutputModels>
+                    <outputModel location="http://url_to_raw_outputmodelA"/>
+                    <outputModel location="http://url_to_raw_outputmodelB"/>
+                </predefinedOutputModels>
+                <customOutputModels accepted="false"/>
+            </search>
+        </operations>
+        <filter>
+            <encoding>
+                <expression>
+                    <concept/>
+                    <literal/>
+                    <parameter/>
+                    <variable/>
+                    <arithmetic>
+                        <add/>
+                        <sub/>
+                    </arithmetic>
+                </expression>
+                <booleanOperators>
+                    <logical>
+                        <not/>
+                        <and/>
+                        <or/>
+                    </logical>
+                    <comparative>
+                        <equals/>
+                        <greaterThan/>
+                        <greaterThanOrEquals/>
+                        <lessThan/>
+                        <lessThanOrEquals/>
+                        <in/>
+                        <isNull/>
+                        <like/>
+                    </comparative>
+                </booleanOperators>
+            </encoding>
+        </filter>
+        <concepts>
+            <conceptNameServers>
+                <primary location="http://url_to_primary_concept_server"/>
+                <secondary location="http://url_to_secondary_concept_server"/>
+            </conceptNameServers>
+            <schema namespace="http://www.tdwg.org/schemas/abcd/1.2"
+                location="http://www.bgbm.org/TDWG/CODATA/Schema/ABCD-1.20.xsd">
+                <mappedConcept
+                    id="/DataSets/DataSet/DatasetDerivations/DatasetDerivation/DateSupplied"
+                    searchable="true"/>
+                <mappedConcept
+                    id="/DataSets/DataSet/DatasetDerivations/DatasetDerivation/Description"
+                    searchable="true"/>
+            </schema>
+            <schema namespace="http://digir.net/schema/conceptual/darwin/extension/curatorial/1.0"
+                location="http://digir.net/schema/conceptual/darwin/extension/curatorial/1.0/curatorialWithDiGIRv1.3.xsd">
+                <mappedConcept id="/CatalogNumberNumeric" searchable="true" mandatory="true"/>
+                <mappedConcept id="/IdentifiedBy" searchable="true"/>
+            </schema>
+        </concepts>
+
+        <variables>
+            <environment>
+                <timestamp/>
+                <lastUpdate/>
+                <date/>
+                <datasourceName/>
+                <accessPoint/>
+            </environment>
+        </variables>
+        
+        <settings>
+            <minQueryTermLength>2</minQueryTermLength>
+            <maxElementRepetitions>10</maxElementRepetitions>
+            <maxElementLevels>20</maxElementLevels>
+            <maxResponseTags>500</maxResponseTags>
+            <maxResponseSize>500</maxResponseSize>
+        </settings>
+        
+    </capabilities>
+</response>

Modified: trunk/protocol/examples/inventory_request.xml
===================================================================
--- trunk/protocol/examples/inventory_request.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/inventory_request.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
-        </source>
-    </header>
-    <inventory count="false" limit="100" start="0">
-        <concepts>
-            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Country"/>
-            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Genus"/>
-        </concepts>
-    </inventory>
-</request>
+<?xml version="1.0" encoding="UTF-8"?>
+<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
+        </source>
+    </header>
+    <inventory count="false" limit="100" start="0">
+        <concepts>
+            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Country"/>
+            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Genus"/>
+        </concepts>
+    </inventory>
+</request>

Modified: trunk/protocol/examples/inventory_response.xml
===================================================================
--- trunk/protocol/examples/inventory_response.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/inventory_response.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,26 +1,26 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
-            <software name="TAPIR_Implementation" version="1.0"/>
-        </source>
-    </header>
-    <inventory>
-        <concepts>
-            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Country"/>
-            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Genus"/>
-        </concepts>
-        <record>
-            <value>AUSTRALIA</value>
-            <value>Calicium</value>
-        </record>
-        <record>
-            <value>AUSTRALIA</value>
-            <value>Fellhanera</value>
-        </record>
-        <summary start="1" totalReturned="2" totalMatched="15" next="3"/>
-    </inventory>
-</response>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
+            <software name="TAPIR_Implementation" version="1.0"/>
+        </source>
+    </header>
+    <inventory>
+        <concepts>
+            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Country"/>
+            <concept id="http://digir.net/schema/conceptual/darwin/2003/1.0#/Genus"/>
+        </concepts>
+        <record>
+            <value>AUSTRALIA</value>
+            <value>Calicium</value>
+        </record>
+        <record>
+            <value>AUSTRALIA</value>
+            <value>Fellhanera</value>
+        </record>
+        <summary start="1" totalReturned="2" totalMatched="15" next="3"/>
+    </inventory>
+</response>
+

Added: trunk/protocol/examples/inventory_template1.xml
===================================================================
--- trunk/protocol/examples/inventory_template1.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/inventory_template1.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inventoryTemplate xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <label>Specimen Names</label>
+    <documentation>Search and list unique scientific names of specimen identifications ordered
+        alphabetically by their name. The filter parameter "name" is used to build the filter</documentation>
+    <filter>
+        <like>
+            <concept id="dwc:/ScientificName"/>
+            <parameter name="name"/>
+        </like>
+    </filter>
+    <concepts>
+        <concept id="dwc:/ScientificName"/>
+    </concepts>
+</inventoryTemplate>

Modified: trunk/protocol/examples/metadata_request.xml
===================================================================
--- trunk/protocol/examples/metadata_request.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/metadata_request.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-TAPIR Metadata Request example.
--->
-<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
-        </source>
-    </header>
-    <metadata/>
-</request>
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+TAPIR Metadata Request example.
+-->
+<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
+        </source>
+    </header>
+    <metadata/>
+</request>

Modified: trunk/protocol/examples/metadata_response.xml
===================================================================
--- trunk/protocol/examples/metadata_response.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/metadata_response.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-TAPIR Metadata Response example. This example only includes mandatory concepts.
-The metadata part in TAPIR is likely to be changed after comunity discussion.
--->
-<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
-            <software name="TAPIR_Implementation" version="1.0"/>
-        </source>
-    </header>
-    <metadata>
-        <label>Example Data Provider</label>
-        <accesspoint>http://accesspoint_url</accesspoint>
-        <relatedEntities>
-            <entity>
-                <name>TAPIR working group</name>
-                <contact>
-                    <name>Frank Sinatra</name>
-                    <email>f.sinatra at tapir.com</email>
-                    <role>system administrator</role>
-                </contact>
-                <role>Hosting Provider</role>
-            </entity>
-        </relatedEntities>
-    </metadata>
-</response>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+TAPIR Metadata Response example. This example only includes mandatory concepts.
+The metadata part in TAPIR is likely to be changed after comunity discussion.
+-->
+<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:56.023+01:00">
+            <software name="TAPIR_Implementation" version="1.0"/>
+        </source>
+    </header>
+    <metadata>
+        <label>Example Data Provider</label>
+        <accesspoint>http://accesspoint_url</accesspoint>
+        <relatedEntities>
+            <entity>
+                <name>TAPIR working group</name>
+                <contact>
+                    <name>Frank Sinatra</name>
+                    <email>f.sinatra at tapir.com</email>
+                    <role>system administrator</role>
+                </contact>
+                <role>Hosting Provider</role>
+            </entity>
+        </relatedEntities>
+    </metadata>
+</response>
+

Added: trunk/protocol/examples/output_model1.xml
===================================================================
--- trunk/protocol/examples/output_model1.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/output_model1.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<outputModel xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+     xsi:schemaLocation="
+    		http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd
+            http://www.w3.org/2001/XMLSchema 	http://www.w3.org/2001/XMLSchema.xsd
+     ">
+    <structure>
+        <xs:schema targetNamespace="http://example.net/simple_specimen">
+            <xs:element name="dataset">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="specimen" minOccurs="0" maxOccurs="unbounded">
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element name="identification" maxOccurs="unbounded"
+                                        minOccurs="0">
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="name">
+                                                    <xs:complexType>
+                                                        <xs:simpleContent>
+                                                            <xs:extension base="xs:string">
+                                                                <xs:attribute name="family"
+                                                                    type="xs:string"/>
+                                                            </xs:extension>
+                                                        </xs:simpleContent>
+                                                    </xs:complexType>
+                                                </xs:element>
+                                                <xs:element name="identifier" type="xs:string"
+                                                    minOccurs="0"/>
+                                            </xs:sequence>
+                                            <xs:attribute name="date" type="xs:string"
+                                                use="optional"/>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute name="catnum" type="xs:int" use="required"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+        </xs:schema>
+    </structure>
+    <indexingElement path="/dataset/specimen"/>
+    <mapping>
+        <node path="/dataset/specimen at catnum">
+            <concept id="dwc:/CatalogNumber"/>
+        </node>
+        <node path="/dataset/specimen/identification/name">
+            <concept id="dwc:/ScientificName"/>
+        </node>
+        <node path="/dataset/specimen/identification/name at family">
+            <concept id="dwc:/Family"/>
+        </node>
+        <node path="/dataset/specimen/identification/identifier">
+            <concept  id="abcd:/DataSets/DataSet/Units/Unit/Identifications/Identification/Identifier/IdentifierPersonName/PersonName"/>
+        </node>
+        <node path="/dataset/specimen/identification at date">
+            <concept  id="abcd:/DataSets/DataSet/Units/Unit/Identifications/Identification/IdentificationDate/DateText"/>
+        </node>
+    </mapping>
+</outputModel>
+

Modified: trunk/protocol/examples/ping_request.xml
===================================================================
--- trunk/protocol/examples/ping_request.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/ping_request.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-TAPIR Ping Request example.
-The most simple operation in TAPIR.
--->
-<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
-            <software name="TAPIR_Implementation" version="1.0"/>
-        </source>
-        <destination>http://accesspoint_url</destination>
-    </header>
-    <ping></ping>
-</request>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+TAPIR Ping Request example.
+The most simple operation in TAPIR.
+-->
+<request xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://url_from_client" sendtime="2005-11-11T12:23:56.023+01:00">
+            <software name="TAPIR_Implementation" version="1.0"/>
+        </source>
+        <destination>http://accesspoint_url</destination>
+    </header>
+    <ping/>
+</request>
+

Modified: trunk/protocol/examples/ping_response.xml
===================================================================
--- trunk/protocol/examples/ping_response.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/ping_response.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- 
-TAPIR Ping Response example.
--->
-<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0 http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
-    <header>
-        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:57.023+01:00"></source>
-    </header>
-    <pong/>
-</response>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+TAPIR Ping Response example.
+-->
+<response xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <header>
+        <source accesspoint="http://accesspoint_url" sendtime="2005-11-11T12:23:57.023+01:00"></source>
+    </header>
+    <pong/>
+</response>
+

Added: trunk/protocol/examples/search_template1.xml
===================================================================
--- trunk/protocol/examples/search_template1.xml	2005-12-16 16:31:54 UTC (rev 388)
+++ trunk/protocol/examples/search_template1.xml	2006-01-05 14:51:36 UTC (rev 389)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<searchTemplate xmlns="http://www.tdwg.org/schemas/tapir/datasource/1.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.tdwg.org/schemas/tapir/datasource/1.0    http://ww2.biocase.org/svn/tapir/trunk/protocol/tapir.xsd">
+    <label>Specimen by Name</label>
+    <documentation>Search specimens by their scientific name. Result is returned ordered by name and
+        catalogue number. The filter parameter "name" is used to build the filter.</documentation>
+    <filter>
+        <like>
+            <concept id="dwc:/ScientificName"/>
+            <parameter name="name"/>
+        </like>
+    </filter>
+    <outputModel location="http://the.same.host/output_model1.xml"/>
+    <orderBy>
+        <concept id="dwc:/ScientificName"/>
+        <concept id="dwc:/CatalogNumber"/>
+    </orderBy>
+</searchTemplate>





More information about the tdwg-tag mailing list