[CWB] CQL Visualization

Maarten Janssen maartenpt at gmail.com
Tue Oct 2 11:06:17 CEST 2018


In case anybody wants to use it - I wrote a little visualization module for CQL queries, which provides a HTML rendering of a CQL query. It is based on a PEGjs parser, which turns the CQL query into a JSON object, which then in turn is rendered as a <div> which hopefully is easier to read than the CQL source. In TEITOK, it is used in combination with a Query Builder which uses the TEITOK definitions for the CQP corpus, but the visualization module in principle does not depend on that. For anybody interested, I created a little webpage for it, where you can see the visualization, which can even read a CQP registry file to make the result better. Both the JS and the PEGjs sources are accessible from the page, the rendering of the JSON is easy to do in any other way if so desired. The parser seems decently complete, but given the sparse documentation, I might have missed some things. If you see anything missing in the parser, or if you have any questions, let me know….

URL for the demo : http://www.teitok.org/cqlquery.html


More information about the CWB mailing list