= Some Simple Queries Against GBase = This page contains some simple queries that return lists of items from Google Base. Feel free to add your own examples. In all the examples below, the base URL is "http://base.google.com/base/feeds". The URL "http://www.google.com/base/feeds" will also work. == Specific Item == {{{ /snippets/11477332776408303929 }}} [http://base.google.com/base/feeds/snippets/11477332776408303929 Test]. == Specific Type of Item == {{{ /snippets?bq=[item type: Garden Accession] }}} [http://base.google.com/base/feeds/snippets?bq=%5bitem%20type:%20Garden%20Accession%5d Test]. or {{{ /snippets?bq=[item type: "Garden Accession"] }}} [http://base.google.com/base/feeds/snippets?bq=%5Bitem%20type%3A%20%22Garden%20Accession%22%5D Test]. or {{{ /snippets/-/Garden%20Accession }}} [http://base.google.com/base/feeds/snippets/-/Garden%20Accession Test]. Note that there appears to be a problem with Google Base where item types of "Test" and "Test Item" would be returned if searching just on "Test". The solution for now is to explicitly exclude longer names. So for example, to retrieve only "Botanic Garden" items, not "Botanic Garden Item" items: {{{ /snippets?bq=[item type: "Botanic Garden"][item type: -"Botanic Garden *"] }}} [http://base.google.com/base/feeds/snippets?bq=%5Bitem%20type%3A%20%22Botanic%20Garden%22%5D%5Bitem%20type%3A%20-%22Botanic%20Garden%20*%22%5D Test with restriction] and [http://base.google.com/base/feeds/snippets?bq=%5Bitem%20type%3A%20%22Botanic%20Garden%22%5D Test without restriction]. == Relations == {{{ Environmental data associated with a garden: location = parseFeed("[item type: botanic garden][] }}}