Metainformationen zur Seite
  •  

ABCD XML Queries

FIXME

Retrieve datasets

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'>
  <header><type>scan</type></header>
  <scan>
    <requestFormat>http://www.tdwg.org/schemas/abcd/2.1</requestFormat>
    <concept>/DataSets/DataSet/Metadata/Description/Representation/Title</concept>
      <filter>
<like path='/DataSets/DataSet/Metadata/Description/Representation/Title'>*</like>
      </filter>
  </scan>
</request>

All entries for a specific project

<?xml version='1.0' encoding='UTF-8'?>
<request
xmlns='http://www.biocase.org/schemas/protocol/1.3'>
   <header><type>search</type></header>
   <search>
     <requestFormat>http://www.tdwg.org/schemas/abcd/2.1</requestFormat>
     <responseFormat start='0'
limit='3000'>http://www.tdwg.org/schemas/abcd/2.1</responseFormat>
       <filter>
<equals
path='/DataSets/DataSet/Metadata/Description/Representation/Title'>GBAra</equals>
       </filter>
       <count>false</count>
   </search>
</request> 

All entries for a specific project using a specific UnitID

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'>
  <header><type>search</type></header>
  <search>
    <requestFormat>http://www.tdwg.org/schemas/abcd/2.1</requestFormat>
    <responseFormat start='0' limit='10000'>http://www.tdwg.org/schemas/abcd/2.1</responseFormat>
      <filter>
<and>
<like path='/DataSets/DataSet/Metadata/Description/Representation/Title'>*Diptera*</like>
<like path='/DataSets/DataSet/Units/Unit/UnitID'>*TIS*</like>
</and>
      </filter>
      <count>false</count>
  </search>
</request>

Number of units in the DSA

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'>
  <header><type>search</type></header>
  <search>
    <requestFormat>http://www.tdwg.org/schemas/abcd/1.2</requestFormat>
    <responseFormat start='0' limit='10'>http://www.tdwg.org/schemas/abcd/1.2</responseFormat>
      <filter>
<like path='/DataSets/DataSet/Units/Unit/UnitID'>*</like>
      </filter>
      <count>true</count>
  </search>
</request>

Capabilities

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'
	xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
	xsi:schemaLocation='http://www.biocase.org/schemas/protocol/1.3 http://www.bgbm.org/biodivinf/Schema/protocol_1_3.xsd'>
<header>
	<version>0.98</version>
			<destination>http://biocase.snsb.info/wrapper/pywrapper.cgi?dsa=ZSMarthrovariacoll</destination>
	<type>capabilities</type>
</header></request>

Gathering Agent not NULL:

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'>
  <header><type>search</type></header>
  <search>
    <requestFormat>http://www.tdwg.org/schemas/abcd/2.1</requestFormat>
    <responseFormat start='0' limit='1000'>http://www.tdwg.org/schemas/abcd/2.1</responseFormat>
      <filter>
<isNotNull path='/DataSets/DataSet/Units/Unit/Gathering/Agents/GatheringAgent/AgentText'/>
      </filter>
      <count>false</count>
  </search>
</request>

Rerieve a single Unit using the Catalogue Number:

<?xml version='1.0' encoding='UTF-8'?>
<request xmlns='http://www.biocase.org/schemas/protocol/1.3'>
  <header><type>search</type></header>
  <search>
    <requestFormat>http://www.tdwg.org/schemas/abcd/2.1</requestFormat>
    <responseFormat start='0' limit='10'>http://www.tdwg.org/schemas/abcd/2.1</responseFormat>
      <filter>
<equals path='/DataSets/DataSet/Units/Unit/UnitID'>ZFMK AC01847</equals>
      </filter>
      <count>false</count>
  </search>
</request>