[CKAN-support] [ckan-discuss] API and Tag management

Gavin Chait gavin.chait at okfn.org
Thu Sep 26 04:44:20 UTC 2013


By the way... Aaron is actually a paid-up support client so please prioritize and track this.

Thanks 

Gavin 

-----Original Message-----
From: "Aaron McGlinchy" <McGlinchyA at landcareresearch.co.nz>
Sent: ‎26/‎09/‎2013 12:25
To: "ckan-discuss at lists.okfn.org" <ckan-discuss at lists.okfn.org>
Subject: [ckan-discuss] API and Tag management

Following Seans advice about being able to delete tags using the CKAN API, I have just begun learning about using the API (please forgive me as I’m a complete novice in this area) .
 
I am working on my Windows Desktop and have got HTTPie installed and working, I can make successful API requests from the windows cmd line such as 
http http://demo.ckan.org/api/3/action/group_list id=data-explorer
(as referenced at : http://docs.ckan.org/en/ckan-2.1/api.html)
 
I have also got Python 3.3.2 installed, though I have come across problems trying the example python code at the above documentation page : seems to have been changes to python with regards to urllib and urllib2 amongst other issues. So I have not been able to get the examples to work as yet.
 
This page references deleting tags: http://docs.ckan.org/en/ckan-2.0.2/ckan.logic.action.delete.html
 
Is it possible to execute these action.delete commands with the setup I have?
 
Thanks
Aaron
 
Message: 3
Date: Mon, 26 Aug 2013 14:00:20 +0200
From: Sean Hammond <sean.hammond at okfn.org>
Subject: Re: [ckan-discuss] Vocabularies and management of Tags
To: ckan-discuss at lists.okfn.org
Message-ID: <20130826120020.GG20662 at mistakenot>
Content-Type: text/plain; charset=us-ascii
 
> When uploading a dataset a user can pick tags from a pre-loaded 
> vocabulary, or they can add their own (which then get included in 
> future autocomplete suggestions, I presume for all users?).
 
Yes.
 
> Over time it is possible that some similar tags might get added by a 
> user not picking a suitable tag from the list (autocomplete popup), 
> but just typing and entering quickly e.g. vocabulary might include 
> rabbit, but the user types rabbits.  Is there a facility for the 
> Sysadmin to periodically tidy up the tags used - so in this case 
> globally change all occurrences of rabbits to rabbit and remove 
> rabbits from the autocomplete suggestions?
 
There's no special interface for doing this, but I think you could clean up tags using the CKAN API, and you could write an API client to make the process as easy as possible.




Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ckan-support/attachments/20130926/602e6090/attachment.html>


More information about the ckan-support mailing list