/
nmm.collections.search.xml
47 lines (47 loc) · 2.75 KB
/
nmm.collections.search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Jim O'Donnell</author>
<documentationURL>http://www.nmm.ac.uk/collections/feeds/docs/</documentationURL>
<sampleQuery description="search the art collection for pictures of Tower Bridge">select * from {table} where category = 'art' and searchterm = '"tower bridge"'</sampleQuery>
<sampleQuery description="get everything by Charles Pears (entry 162452 in the people authority)">select * from {table} where authority = 'people' and category = '162452' and searchterm = ''</sampleQuery>
<sampleQuery description="get 100 records related to the Aquitania (entry 292109 in the vessels authority)">select * from {table}(100) where authority = 'vessels' and category = '292109' and searchterm = ''</sampleQuery>
<sampleQuery description="get recently updated art records">select * from {table}(50) where category = 'art' and searchterm = '' and sortby = 'updated'</sampleQuery>
</meta>
<bindings>
<select produces="XML" itemPath="rss.channel.item">
<urls>
<url>http://www.nmm.ac.uk/collections/requestHandlers/doQuickSearch.cfm?searchterm={searchterm}&authority={authority}&category={category}&startyear={startyear}&endyear={endyear}&sortby={sortby}&format=rss</url>
</urls>
<paging model="offset">
<start id="startrow" default="1"/>
<pagesize id="per_page" max="20"/>
<total default="20"/>
</paging>
<inputs>
<key id="searchterm" type="xs:string" paramType="path" required="false" default=""/>
<key id="authority" type="xs:string" paramType="path" required="false" default="category"/>
<key id="category" type="xs:string" paramType="path" required="false" default=""/>
<key id="sortby" type="xs:string" paramType="path" required="false" default="rank"/>
<key id="startyear" type="xs:string" paramType="path" required="true"/>
<key id="endyear" type="xs:string" paramType="path" required="true"/>
</inputs>
</select>
<select produces="XML" itemPath="rss.channel.item">
<urls>
<url>http://www.nmm.ac.uk/collections/requestHandlers/doQuickSearch.cfm?searchterm={searchterm}&authority={authority}&category={category}&sortby={sortby}&format=rss</url>
</urls>
<paging model="offset">
<start id="startrow" default="1"/>
<pagesize id="per_page" max="20"/>
<total default="20"/>
</paging>
<inputs>
<key id="searchterm" type="xs:string" paramType="path" required="false" default=""/>
<key id="authority" type="xs:string" paramType="path" required="false" default="category"/>
<key id="category" type="xs:string" paramType="path" required="false" default=""/>
<key id="sortby" type="xs:string" paramType="path" required="false" default="rank"/>
</inputs>
</select>
</bindings>
</table>