[ckan-dev] CSW gather stage: get only datasets changed since X
Knud Möller
knud at datalysator.com
Thu Nov 16 09:56:54 UTC 2017
Cool, I’ll get on to it then!
Cheers,
Knud
On 15 November 2017 at 13:19:11, Adrià Mercader (adria.mercader at okfn.org)
wrote:
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
>
_______________________________________________
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
--
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/20171116/bc0303ed/attachment-0003.html>
More information about the ckan-dev
mailing list