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

Adrià Mercader adria.mercader at okfn.org
Wed Nov 15 12:19:03 UTC 2017


Hi Knud,

Feel free to submit a PR, that sounds like a very useful addition.


Adrià


On 14 November 2017 at 12:16, Tom Kralidis <tomkralidis at gmail.com> wrote:

>
>
> On Tue, 14 Nov 2017, Knud Möller wrote:
>
> Date: Tue, 14 Nov 2017 02:34:21 -0800
>> From: Knud Möller <knud at datalysator.com>
>> Reply-To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
>> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
>> Subject: [ckan-dev] CSW gather stage: get only datasets changed since X
>>
>> 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.
>>
>
> +1 to supporting proper OGC filters, given not all CSW servers support CQL.
>
>
> ..Tom
>
>
>> Cheers,
>> Knud
>>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20171115/0ebd0ef2/attachment-0003.html>


More information about the ckan-dev mailing list