# @comunica/actor-init-query

> A query init actor

Latest version **5.4.0** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comunica/actor-init-query
pnpm add @comunica/actor-init-query
yarn add @comunica/actor-init-query
bun add @comunica/actor-init-query
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.0 |
| Published | 2026-09-14 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 322.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 591 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, actor, init, query |

## Links

- npm: https://www.npmjs.com/package/@comunica/actor-init-query
- Repository: https://github.com/comunica/comunica
- Homepage: https://comunica.dev/
- Issues: https://github.com/comunica/comunica/issues
- Funding: https://opencollective.com/comunica-association
- npm.io page: https://npm.io/package/@comunica/actor-init-query

## Dependencies (20)

- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [process](https://npm.io/package/process.md) ^0.11.10
- [rdf-quad](https://npm.io/package/rdf-quad.md) ^2.0.0
- [negotiate](https://npm.io/package/negotiate.md) ^1.0.1
- [@rdfjs/types](https://npm.io/package/@rdfjs/types.md) *
- [@types/yargs](https://npm.io/package/@types/yargs.md) ^17.0.24
- [asynciterator](https://npm.io/package/asynciterator.md) ^3.10.0
- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [@comunica/types](https://npm.io/package/@comunica/types.md) ^5.4.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.7.0
- [@comunica/runner](https://npm.io/package/@comunica/runner.md) ^5.4.0
- [rdf-data-factory](https://npm.io/package/rdf-data-factory.md) ^2.0.0
- [@comunica/bus-init](https://npm.io/package/@comunica/bus-init.md) ^5.4.0
- [@comunica/logger-pretty](https://npm.io/package/@comunica/logger-pretty.md) ^5.4.0
- [@comunica/utils-algebra](https://npm.io/package/@comunica/utils-algebra.md) ^5.4.0
- [@comunica/context-entries](https://npm.io/package/@comunica/context-entries.md) ^5.4.0
- [@comunica/actor-http-proxy](https://npm.io/package/@comunica/actor-http-proxy.md) ^5.4.0
- [@comunica/bus-query-process](https://npm.io/package/@comunica/bus-query-process.md) ^5.4.0
- [@comunica/bus-http-invalidate](https://npm.io/package/@comunica/bus-http-invalidate.md) ^5.4.0
- [@comunica/bus-query-result-serialize](https://npm.io/package/@comunica/bus-query-result-serialize.md) ^5.4.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 5.4.0 (latest) — 2026-09-14
- 4.4.2-alpha.49.0 (next) — 2025-10-22
- 5.3.0 — 2026-07-10
- 5.2.3 — 2026-05-26
- 5.2.2 — 2026-05-03
- 5.2.0 — 2026-04-14
- 5.1.3 — 2026-01-30
- 5.1.0 — 2026-01-16
- 5.0.3 — 2026-01-12
- 5.0.2 — 2026-01-12
- 5.0.1 — 2026-01-08
- 5.0.0 — 2026-01-08
- 4.5.0 — 2025-11-18
- 4.4.1 — 2025-09-25
- 4.4.0 — 2025-09-17
- … 78 more at https://npm.io/package/@comunica/actor-init-query/versions

## README

# Comunica Query Init Actor

[![npm version](https://badge.fury.io/js/%40comunica%2Factor-init-query.svg)](https://www.npmjs.com/package/@comunica/actor-init-query)

An [Init](https://github.com/comunica/comunica/tree/master/packages/bus-init) actor that can initialize a query engine.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @comunica/actor-init-query
```

## Configure

After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-query/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:init/actors#query",
      "@type": "ActorInitQuery",
      "mediatorQueryProcess": { "@id": "urn:comunica:default:query-process/mediators#main" },
      "mediatorQueryResultSerialize": { "@id": "urn:comunica:default:query-result-serialize/mediators#serialize" },
      "mediatorQueryResultSerializeMediaTypeCombiner": { "@id": "urn:comunica:default:query-result-serialize/mediators#mediaType" },
      "mediatorQueryResultSerializeMediaTypeFormatCombiner": { "@id": "urn:comunica:default:query-result-serialize/mediators#mediaTypeFormat" },
      "mediatorHttpInvalidate": { "@id": "urn:comunica:default:http-invalidate/mediators#main" }
    }
  ]
}
```

### Config Parameters

* `mediatorSparqlSerialize`: A mediator over the [query result serialize bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-result-serialize).
* `mediatorSparqlSerializeMediaTypeCombiner`: A mediator over the [query result serialize bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-result-serialize).
* `mediatorSparqlSerializeMediaTypeFormatCombiner`: A mediator over the [query result serialize bus](https://github.com/comunica/comunica/tree/master/packages/bus-query-result-serialize).
* `mediatorHttpInvalidate`: A mediator over the [HTTP invalidate bus](https://github.com/comunica/comunica/tree/master/packages/bus-http-invalidate).

---
_Source: https://npm.io/package/@comunica/actor-init-query · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
