# @comunica/actor-rdf-metadata-primary-topic

> A primary-topic rdf-metadata actor

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

## Install

```sh
npm install @comunica/actor-rdf-metadata-primary-topic
pnpm add @comunica/actor-rdf-metadata-primary-topic
yarn add @comunica/actor-rdf-metadata-primary-topic
bun add @comunica/actor-rdf-metadata-primary-topic
```

## Health

**Score 70/100 (B)** — status: active.

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

Warnings: no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.0 |
| Published | 2026-09-14 |
| First published | 2018-03-19 |
| Weekly downloads | 9.7K |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 581 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, actor, rdf-metadata, primary-topic |

## Links

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

## Dependencies (4)

- [@rdfjs/types](https://npm.io/package/@rdfjs/types.md) *
- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.7.0
- [@comunica/bus-rdf-metadata](https://npm.io/package/@comunica/bus-rdf-metadata.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.0 — 2025-09-17
- 4.2.0 — 2025-04-29
- 4.1.0 — 2025-02-11
- … 97 more at https://npm.io/package/@comunica/actor-rdf-metadata-primary-topic/versions

## README

# Comunica Primary Topic RDF Metadata Actor

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

An [RDF Metadata](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-metadata) actor that
splits off the metadata based on the existence of a `foaf:primaryTopic` link.

**Warning:** Use this at your own risk, as this actor _requires_ `foaf:primaryTopic` to be linked with the metadata graph,
while the [spec keeps this optional](https://www.hydra-cg.com/spec/latest/triple-pattern-fragments/).
Furthermore, `foaf:primaryTopic` must come _before_ the metadata triples.
But in cases where `foaf:primaryTopic` is always used, this actor will be very performant.

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-metadata-primary-topic
```

## 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-metadata-primary-topic/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-metadata/actors#primary-topic",
      "@type": "ActorRdfMetadataPrimaryTopic"
    }
  ]
}
```

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