forked from yql/yql-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrooklyn.collection.search.xml
45 lines (45 loc) · 2.72 KB
/
brooklyn.collection.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
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="false">
<meta>
<author>Daniel Pett</author>
<description>Search Brooklyn Museum's collections database</description>
<documentationURL>http://www.brooklynmuseum.org/opencollection/api/docs/request/collection.search</documentationURL>
<sampleQuery description="Get items from Brooklyn collection for Egypt">select * from {table} where keyword="Egypt"and api_key='{key}';</sampleQuery>
</meta>
<bindings>
<select itemPath="response.resultset.items" produces="XML">
<urls>
<url>http://www.brooklynmuseum.org/opencollection/api/?method=collection.search</url>
</urls>
<paging model="offset">
<start id="start_index" default="0" />
<pagesize id="results_limit" max="20" />
<total default="20" />
</paging>
<inputs>
<key id="item_type" type="xs:string" paramType="query" required="false"/>
<key id="keyword" type="xs:string" paramType="query" />
<key id="date_range_begin" type="xs:string" paramType="query"/>
<key id="date_range_end" type="xs:string" paramType="query"/>
<key id="name" type="xs:string" paramType="query" required="false" />
<key id="collection_id" type="xs:string" paramType="query" required="false" />
<key id="rights_type" type="xs:string" paramType="query" required="false" />
<key id="geo_location_code" type="xs:string" paramType="query" required="false" />
<key id="start_index" type="xs:string" paramType="query" required="false" />
<key id="results_limit" type="xs:string" paramType="query" required="false" />
<key id="require_image" type="xs:string" paramType="query" required="false" />
<key id="sort_field" type="xs:string" paramType="query" required="false" />
<key id="sort_direction" type="xs:string" paramType="query" required="false" />
<key id="include_image_caption" type="xs:string" paramType="query" required="false" />
<key id="include_item_fields" type="xs:string" paramType="query" required="false" />
<key id="thumb_shape" type="xs:string" paramType="query" required="false" />
<key id="max_thumb_size" type="xs:string" paramType="query" required="false" />
<key id="max_image_size" type="xs:string" paramType="query" required="false" />
<key id="include_html_style_block" type="xs:string" paramType="query" required="false" />
<key id="format" type="xs:string" paramType='query' const="true" default="xml"/>
<key id="version" type="xs:string" paramType="query" const="true" default="1" />
<key id="api_key" type="xs:string" paramType="query" required="true" private="true" />
</inputs>
</select>
</bindings>
</table>