#34 List attributes in CL library API


The public API of the corpus library (CL) should offer functions to list all attributes (of a specific type) defined for a corpus. This should be easy to implement, as simple as a walk-through of the internal data structures. For convenience, it could directly return a cl_string_list instead of a (char **).

Ideally, it should also be possible to list all CWB corpora found in the current registry directory (or directories). This is currently only implemented in CQP and requires reading directory contents and checking for plausible registry entries, so it's not as straightforward to make available at the CL level.


  • Andrew Hardie

    Andrew Hardie - 2010-04-08

    cl_corpus_list_attributes() has been added to corpus.c; the prototype is in cl.h; all will be in my next commit. I haven't even attempted the "list all corpora" thing; Stefan, up to you whether to close this tracker entry now or to leave this open pending the latter!

  • Andrew Hardie

    Andrew Hardie - 2011-07-31
    • milestone: --> TODO-4.0
  • Andrew Hardie

    Andrew Hardie - 2011-07-31

    I have put this back to v4.0 since we are going to be breaking the CL API *anyway* at that point, so it makes sense to refactor the CQP registry-scanning functionality into the CL at that point.

  • Andrew Hardie

    Andrew Hardie - 2014-07-30

    Closing this bug as the CWB 4.0 design no longer involves a corpus registry.

  • Andrew Hardie

    Andrew Hardie - 2014-07-30
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks