# @comunica/actor-rdf-parse-jsonld

> A JSON-LD RDF Parse actor

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

## Install

```sh
npm install @comunica/actor-rdf-parse-jsonld
pnpm add @comunica/actor-rdf-parse-jsonld
yarn add @comunica/actor-rdf-parse-jsonld
bun add @comunica/actor-rdf-parse-jsonld
```

## 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 | 2018-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 48.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 583 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, runner |

## Links

- npm: https://www.npmjs.com/package/@comunica/actor-rdf-parse-jsonld
- 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-rdf-parse-jsonld

## Dependencies (10)

- [lru-cache](https://npm.io/package/lru-cache.md) ^11.2.2
- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [@comunica/types](https://npm.io/package/@comunica/types.md) ^5.4.0
- [@comunica/bus-http](https://npm.io/package/@comunica/bus-http.md) ^5.4.0
- [jsonld-context-parser](https://npm.io/package/jsonld-context-parser.md) ^2.2.2
- [@comunica/bus-rdf-parse](https://npm.io/package/@comunica/bus-rdf-parse.md) ^5.4.0
- [@jeswr/stream-to-string](https://npm.io/package/@jeswr/stream-to-string.md) ^2.0.0
- [jsonld-streaming-parser](https://npm.io/package/jsonld-streaming-parser.md) ^5.0.0
- [@comunica/context-entries](https://npm.io/package/@comunica/context-entries.md) ^5.4.0
- [@comunica/bus-http-invalidate](https://npm.io/package/@comunica/bus-http-invalidate.md) ^5.4.0

## 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.0 — 2026-01-08
- 4.5.0 — 2025-11-18
- 4.4.1 — 2025-09-25
- 4.4.0 — 2025-09-17
- 4.2.0 — 2025-04-29
- … 115 more at https://npm.io/package/@comunica/actor-rdf-parse-jsonld/versions

## README

# Comunica JSON-LD RDF Parse Actor

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

An [RDF Parse](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-parse) actor that handles [JSON-LD](https://json-ld.org/).

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-rdf-parse-jsonld
```

## Configure

After installing, this package can be added to your engine's configuration as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-jsonld/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-parse/actors#jsonld",
      "@type": "ActorRdfParseJsonLd",
      "priorityScale": 0.9,
      "mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" }
    }
  ]
}
```

### Config Parameters

* `priorityScale`: An optional priority for this parser, used for content negotiation, defaults to `1`.
* `httpInvalidator`: An optional actor that listens to HTTP invalidation events.
* `cacheSize`: The maximum number of fetched remote JSON-LD documents (including contexts) in the LRU cache, set to 0 to disable, defaults to `128`.
* `mediatorHttp`: A mediator over the [HTTP bus](https://github.com/comunica/comunica/tree/master/packages/bus-http), for fetching remote JSON-LD contexts.

### Passing custom options

If you want to pass custom options to the JSON-LD parser,
you can use the `'@comunica/actor-rdf-parse-jsonld:parserOptions'` [context entry](https://comunica.dev/docs/query/advanced/context/)
to provide [parser options](https://github.com/rubensworks/jsonld-streaming-parser.js#configuration) as a hash.

### Using a custom document loader

If you want to override how the JSON-LD parser loads external contexts,
you can pass a custom document loader via the `'@comunica/actor-rdf-parse-jsonld:documentLoader'` [context entry](https://comunica.dev/docs/query/advanced/context/).
This document loader must implement the [`IDocumentLoader`](https://github.com/rubensworks/jsonld-context-parser.js/blob/master/lib/IDocumentLoader.ts) interface.

### Enabling stricter parsing mode

Via the `'@comunica/actor-rdf-parse-jsonld:strictValues'` [context entry](https://comunica.dev/docs/query/advanced/context/),
you can set the JSON-LD parser to run in a more strict mode.
This corresponds to the `strictValues` option in [JSON-LD Streaming Parser](https://github.com/rubensworks/jsonld-streaming-parser.js#configuration).

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