[ckan-dev] CSW gather stage: get only datasets changed since X

Knud Möller knud at datalysator.com
Tue Nov 14 10:34:21 UTC 2017


Hi all,

I’m trying to restrict the number of datasets I receive in the gather stage
of a CSW harvester (based on CSWHarvester from ckanext-spatial) to only
include those that changed since a date X.

I managed to write a manual query using an ogc:Filter that does that. I’ve
tried it with curl and via OWSLib. However, CswService does not expose the
‘constraints’ parameter from OWSLib’s getrecords2() that allows to use
ogc:Filters, only a parameter for cql-based filters.

So, my question is: what would the query for "datasets changed since X”
look like in CQL? Alternatively, would it make sense to add a “constraints”
parameter to CswService, so that we can use ogc:Filters? That shouldn’t be
hard; I’d be happy to create a PR for that.

Cheers,
Knud


-- 
Dr. Knud Hinnerk Möller
Datalysator - Web Data Solutions and Training
knud at datalysator.com
+49 151 46 44 83 25
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20171114/ba5bd41b/attachment-0002.html>


More information about the ckan-dev mailing list