commit | 1d791047376b8ccbf6d0187ee494219e2e1944c1 | [log] [tgz] |
---|---|---|
author | Joachim Bingel <joa.bingel@gmail.com> | Tue Feb 03 10:19:47 2015 +0000 |
committer | Joachim Bingel <joa.bingel@gmail.com> | Tue Feb 03 10:19:47 2015 +0000 |
tree | 884278292c01d6a30ece69e9001d00cbc0d529e4 | |
parent | 2b00f4963382cbae7c170cd9149ea2b84ec3edd6 [diff] |
- corrected frames - no classRefCheck:includes for #IN(L), #IN(R), #IN(F), #IN(FI), #IN(FE), #IN(N)
Koral is a library designed for the translation of different corpus query languages to KoralQuery, a JSON-LD-based protocol for the representation of linguistic queries.
As of v1.0, the following corpus query languages (QLs) are supported:
You can use the main class QuerySerializer to translate and serialize queries for you. The following code snippet illustrates this. Valid QL identifiers are cosmas',
annis', poliqarp',
poliqarpplus' and `cqp'.
import de.ids_mannheim.korap.query.serialize.QuerySerialzer; QuerySerializer qs = new QuerySerializer(); qs.setQuery("This is a poliqarp query.", "poliqarp"); System.out.println(qs.toJSON());
This will print out a JSON-LD string with you Koralized query. There is also a command line version. After installation, simply run
java -jar target/Koral-1.0.jar [query] [queryLanguage] ''' ## Motivation Koral and KoralQuery have been designed and developed within the [KorAP Project][http://korap.ids-mannheim.de/]. Through Koral, linguists can use the KorAP query engine with the QL of their preference. As the KorAP backend only sees the incoming KoralQuery, new QLs can be supported by KorAP without having to change a single line of code in the backend. ## Installation Installation is straightforward:
git clone https://github.com/korap/Koral [install-dir] cd [install-dir] mvn install '''
Koral is published under the Perl [Artistic License][http://opensource.org/licenses/artistic-license-2.0]. See also the attached LICENSE.