{"id":43954118,"url":"https://github.com/czcorpus/mquery","last_synced_at":"2026-02-07T04:06:22.039Z","repository":{"id":181989351,"uuid":"667744677","full_name":"czcorpus/mquery","owner":"czcorpus","description":"An HTTP API server for mining language corpora using Manatee-Open engine.","archived":false,"fork":false,"pushed_at":"2026-01-22T10:54:57.000Z","size":769,"stargazers_count":3,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-23T01:27:11.993Z","etag":null,"topics":["api-rest-server","corpora","linguistics","service"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czcorpus.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-18T07:56:09.000Z","updated_at":"2026-01-22T10:48:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f37161f-ef00-4e58-a410-4c503ec8355b","html_url":"https://github.com/czcorpus/mquery","commit_stats":null,"previous_names":["czcorpus/mquery"],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/czcorpus/mquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czcorpus%2Fmquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czcorpus%2Fmquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czcorpus%2Fmquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czcorpus%2Fmquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czcorpus","download_url":"https://codeload.github.com/czcorpus/mquery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czcorpus%2Fmquery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T03:35:06.566Z","status":"ssl_error","status_checked_at":"2026-02-07T03:34:57.604Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-rest-server","corpora","linguistics","service"],"created_at":"2026-02-07T04:06:21.280Z","updated_at":"2026-02-07T04:06:22.026Z","avatar_url":"https://github.com/czcorpus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQuery\n\nMQuery is an HTTP API server for mining language corpora using Manatee-Open engine. Unlike other Manatee-based solutions, MQuery uses more fine-tuned C bindings without relying on SWIG, and naturally leverages a worker queue architecture for efficient query processing and scalability.\n\n## Running with Docker (Easiest Method)\n\nThe simplest way to run MQuery is using Docker Compose, which automatically sets up the server, worker, and Redis:\n\n### Prerequisites\n\n* [Docker](https://docs.docker.com/get-docker/)\n* [Docker Compose](https://docs.docker.com/compose/install/)\n\n### Quick Start\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/czcorpus/mquery.git\n   cd mquery\n   ```\n\n2. Create a Docker configuration file `conf-docker.json` based on `conf.sample.json`:\n   ```bash\n   cp conf.sample.json conf-docker.json\n   ```\n\n3. Edit `conf-docker.json` to match your setup:\n   * Set `listenAddress` to `0.0.0.0` (to accept connections from outside the container)\n   * Set `listenPort` to `8989`\n   * Set Redis host to `redis` (the service name in docker-compose.yml)\n   * Configure your corpora paths:\n     * `registryDir`: `/var/lib/manatee/registry`\n     * `splitCorporaDir`: `/var/lib/manatee/split`\n\n4. Place your corpus data and registry files in directories that will be mounted:\n   * The docker-compose setup creates volumes for corpus data at `/var/lib/manatee`\n   * You can modify the volume mounts in `docker-compose.yml` to point to your existing corpus directories\n\n5. Start the services:\n   ```bash\n   docker-compose up -d\n   ```\n\n6. Access the API at `http://localhost:8989`\n\n### Docker Architecture\n\nThe Docker Compose setup includes:\n* **mquery-server**: HTTP API server (port 8989)\n* **mquery-worker**: Background worker for processing corpus queries\n* **redis**: Redis database for job queuing and results caching\n\n### Managing the Services\n\n* View logs: `docker-compose logs -f`\n* Stop services: `docker-compose down`\n* Rebuild after code changes: `docker-compose up -d --build`\n\n## Manual Installation\n\nIf you prefer to install MQuery manually without Docker:\n\n### Requirements\n\n* a working Linux server with installed [Manatee-open](https://nlp.fi.muni.cz/trac/noske) library\n* [Redis](https://redis.io/) database\n* [Go](https://go.dev/)  language compiler and tools\n* (optional) an HTTP proxy server (Nginx, Apache, ...)\n\n\n## How to install\n\n1. Install `Go` language environment, either via a package manager or manually from Go [download page](https://go.dev/dl/)\n   1. make sure `/usr/local/go/bin` and `~/go/bin` are in your `$PATH` so you can run any installed Go tools without specifying a full path\n2. Install Manatee-open from the [download page](https://nlp.fi.muni.cz/trac/noske). No specific language bindings are required.\n   1. `configure --with-pcre --disable-python \u0026\u0026 make \u0026\u0026 sudo make install \u0026\u0026 sudo ldconfig`\n3. Get MQuery sources (`git clone --depth 1 https://github.com/czcorpus/mquery.git`)\n4. Run `./configure`\n5. Run `make`\n6. Run `make install`\n      * the application will be installed in `/opt/mquery`\n      * for data and registry, `/var/opt/corpora/data` and `/var/opt/corpora/registry` directories will be created\n      * systemd services `mquery-server.service` and `mquery-worker-all.target` will be created\n7. Copy at least one corpus and its configuration (registry) into respective directories (`/var/opt/corpora/data`, `/var/opt/corpora/registry`)\n8. Update corpora entries in `/opt/mquery/conf.json` file to match your installed corpora\n9. start the service:\n      * `systemctl start mquery-server`\n      * `systemctl start mquery-worker-all.target`\n\n\n## API\n\nFor the most recent API Docs, please see https://korpus.cz/mquery-test/docs/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczcorpus%2Fmquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczcorpus%2Fmquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczcorpus%2Fmquery/lists"}