Thanks to this answer , I can successfully use the python ckanclient
package to search data.gov
for "sea_water_temperature":
import ckanclient
q = 'tags:sea_water_temperature'
ckan = ckanclient.CkanClient('http://catalog.data.gov/api/3')
d = ckan.action('package_search', q=q, rows=10)
What I really want to do is to query for "sea_water_temperature" in a specific geospatial bounding box and temporal extent, and additionally find only datasets that have a specific data service endpoint.
Adrià Mercader provided these examples on the ckan-discuss mailing list:
# WMS + keyword
{"q": "salmon",
"fq": "res_format:WMS"}
# WMS + temporal
{"q": "metadata_modified:[2013-06-01T00:00:00.000Z TO NOW]",
"fq": "res_format:WMS"}
# WMS + spatial
{"extras":{"ext_bbox":"-121,45,-120,46"},
"fq": "res_format:WMS"}
How can I convert these examples into something ckanclient
can understand?