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

tdwg-tapir at lists.tdwg.org tdwg-tapir at lists.tdwg.org
Wed Dec 7 22:34:42 CET 2005


Author: javier
Date: 2005-12-07 22:34:29 +0100 (Wed, 07 Dec 2005)
New Revision: 353

Added:
   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:
 

Added: trunk/protocol/examples/capabilities_request.xml
===================================================================
--- trunk/protocol/examples/capabilities_request.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/capabilities_request.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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/>
+</request>
\ No newline at end of file

Added: trunk/protocol/examples/capabilities_response.xml
===================================================================
--- trunk/protocol/examples/capabilities_response.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/capabilities_response.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +1,96 @@
+<?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>

Added: trunk/protocol/examples/inventory_request.xml
===================================================================
--- trunk/protocol/examples/inventory_request.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/inventory_request.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>

Added: trunk/protocol/examples/inventory_response.xml
===================================================================
--- trunk/protocol/examples/inventory_response.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/inventory_response.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>
+

Added: trunk/protocol/examples/metadata_request.xml
===================================================================
--- trunk/protocol/examples/metadata_request.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/metadata_request.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>

Added: trunk/protocol/examples/metadata_response.xml
===================================================================
--- trunk/protocol/examples/metadata_response.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/metadata_response.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>
+

Added: trunk/protocol/examples/ping_request.xml
===================================================================
--- trunk/protocol/examples/ping_request.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/ping_request.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>
+

Added: trunk/protocol/examples/ping_response.xml
===================================================================
--- trunk/protocol/examples/ping_response.xml	2005-12-01 12:00:36 UTC (rev 352)
+++ trunk/protocol/examples/ping_response.xml	2005-12-07 21:34:29 UTC (rev 353)
@@ -0,0 +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>
+





More information about the tdwg-tag mailing list