[CWB] API access for CQPWeb

Hardie, Andrew a.hardie at lancaster.ac.uk
Tue Jan 22 22:42:44 CET 2013


This has been on the menu for a very long time. The basic plan was to allow all the main scripts to operate in two "modes", the primary mode that sends out HTML-formatted pages, and a secondary mode that returned the data in a form more amenable to programmatic manipulation (probably plaintext for compactness though I understand either XML or JSON would be trendier choices!).

Then, a single management-script would cope with calling the scripts in their secondary mode. Function calls would be made over HTTP GET in the form api.php?function=XXXX ; and I was planning ultimately to write an object model - exemplified in a JavaScript library - for the clientside.

But a lot of refactoring of the existing main scripts will be needed to allow this to work, as execution and HTML rendering are currently tied together quite closely and they will need to be disentangled.

(The management script is lib/api.inc.php. As you can see I did not get very far with it, only outlining what the initial group of functions would be.)

If you want to have a go at helping out, be my guest...

best

Andrew.

From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Kurt Sultana
Sent: 22 January 2013 18:10
To: Open source development of the Corpus WorkBench
Subject: [CWB] API access for CQPWeb

Hi all,

I really would like to be able to access CQPWeb via some sort of an API especially the collocation functionality. Somewhere I've read that this is currently under development. Is this so?

If so, to what extent could I "develop" this? I have working knowledge of PHP.

Thanks in advance,
Kurt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20130122/7caebcf5/attachment.html>


More information about the CWB mailing list