{"id":37029083,"url":"https://github.com/exquery/corpusql-parser","last_synced_at":"2026-01-14T03:29:03.409Z","repository":{"id":14917521,"uuid":"67609324","full_name":"exquery/corpusql-parser","owner":"exquery","description":"Corpus Query Language Parser","archived":false,"fork":false,"pushed_at":"2025-04-30T22:59:34.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T23:32:11.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ANTLR","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exquery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-09-07T13:31:34.000Z","updated_at":"2025-04-30T22:59:34.000Z","dependencies_parsed_at":"2025-04-30T23:27:57.839Z","dependency_job_id":"86f2b588-eb5e-4ab7-a6e9-3d9d1b222f43","html_url":"https://github.com/exquery/corpusql-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/exquery/corpusql-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exquery%2Fcorpusql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exquery%2Fcorpusql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exquery%2Fcorpusql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exquery%2Fcorpusql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exquery","download_url":"https://codeload.github.com/exquery/corpusql-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exquery%2Fcorpusql-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T03:29:02.761Z","updated_at":"2026-01-14T03:29:03.393Z","avatar_url":"https://github.com/exquery.png","language":"ANTLR","funding_links":[],"categories":[],"sub_categories":[],"readme":"Corpus Query Language Parser\n============================\n[![Build Status](https://github.com/exquery/corpusql-parser/actions/workflows/ci.yml/badge.svg)](https://github.com/exquery/corpusql-parser/actions/workflows/ci.yml)\n[![Java 8+](https://img.shields.io/badge/java-8+-4c7e9f.svg)](http://java.oracle.com)\n[![License](https://img.shields.io/badge/license-BSD-blue.svg)](http://opensource.org/licenses/BSD-3-Clause)\n[![Maven Central](https://img.shields.io/maven-central/v/com.evolvedbinary.cql/corpusql-parser?logo=apachemaven\u0026label=maven+central\u0026color=green)](https://search.maven.org/search?q=g:com.evolvedbinary.cql)\n\nThis library implements a Corpus Query Language Parser in Java 1.8, using [Antlr v4](http://www.antlr.org/).\n\nAs no official Corpus Query Language specification is available, the gramar definition for this parser was derived from running `jjdoc` against the javacc [`cql`](https://raw.githubusercontent.com/INL/BlackLab/master/core/src/main/javacc/nl/inl/blacklab/queryParser/corpusql/cql.jj) grammar from the [Institute of Dutch Lexicology](http://www.inl.nl/) [BlackLab](https://github.com/INL/BlackLab) project.\n\nThe parser generates an AST (Abstract Syntax Tree) which you can then use in your own application for whatever you wish. The class [Main](https://github.com/exquery/corpusql-parser/blob/master/src/main/java/com/evolvedbinary/cql/parser/Main.java) shows how the parser can be used. You can also execute `Main` as an application if you want to understand the node-tree produced by the parser.\n\n\nObtaining\n---------\nThe [compiled artifact](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.evolvedbinary.cql%22%20AND%20a%3A%22corpusql-parser%22) can be obtained from Maven Central by adding the following to the `\u003cdependencies\u003e` section of your `pom.xml`:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.evolvedbinary.cql\u003c/groupId\u003e\n    \u003cartifactId\u003ecorpusql-parser\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIf you are a Scala, Groovy or Clojure person then you can still use the artifact from Maven Central with your favourite build tool, however I will assume you know what you're doing ;-)\n\n\nExample\n-------\nAn example of this parser being used in another application is the [Corpus Query Language Module for eXist-db](https://github.com/bcdh/cql-module); Which shows how to traverse the AST for a custom application, in this specific case generating an XML vocabulary of Corpus Query Language.\n\nFuture Work\n-----------\n* Provide some tutorials or better documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexquery%2Fcorpusql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexquery%2Fcorpusql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexquery%2Fcorpusql-parser/lists"}