# @comunica/actor-rdf-metadata-extract-sparql-service

> Comunica RDF metadata extract actor that parses SPARQL Service Descriptions

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

## Install

```sh
npm install @comunica/actor-rdf-metadata-extract-sparql-service
pnpm add @comunica/actor-rdf-metadata-extract-sparql-service
yarn add @comunica/actor-rdf-metadata-extract-sparql-service
bun add @comunica/actor-rdf-metadata-extract-sparql-service
```

## 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 | 2019-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 42.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 583 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, actor, rdf-metadata-extract, sparql-service |

## Links

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

## Dependencies (4)

- [@rdfjs/types](https://npm.io/package/@rdfjs/types.md) *
- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [relative-to-absolute-iri](https://npm.io/package/relative-to-absolute-iri.md) ^1.0.7
- [@comunica/bus-rdf-metadata-extract](https://npm.io/package/@comunica/bus-rdf-metadata-extract.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
- … 94 more at https://npm.io/package/@comunica/actor-rdf-metadata-extract-sparql-service/versions

## README

# Comunica SPARQL Service RDF Metadata Extract Actor

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

An [RDF Metadata Extract](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-metadata-extract) actor that
extracts [SPARQL Service Description metadata](https://www.w3.org/TR/sparql11-service-description/).

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-extract-sparql-service
```

## Metadata entries

This actor adds the following entries to the metadata object.

* `sparqlService`: Value of `http://www.w3.org/ns/sparql-service-description#endpoint`.
* `defaultGraph`: Value of `http://www.w3.org/ns/sparql-service-description#defaultGraph`.
* `defaultDataset`: Value of `http://www.w3.org/ns/sparql-service-description#defaultDataset`.
* `unionDefaultGraph`: Boolean flag set when the service declares `http://www.w3.org/ns/sparql-service-description#UnionDefaultGraph` feature.
* `basicFederatedQuery`: Boolean flag set when the service declares `http://www.w3.org/ns/sparql-service-description#BasicFederatedQuery` feature.
* `inputFormats`: List of `http://www.w3.org/ns/sparql-service-description#inputFormat` when available.
* `resultFormats`: List of `http://www.w3.org/ns/sparql-service-description#resultFormat` when available.
* `supportedLanguages`: List of `http://www.w3.org/ns/sparql-service-description#supportedLanguage` when available.
* `supportedVersions`: List of `http://www.w3.org/ns/sparql-service-description#supportedVersion` when available.
* `extensionFunctions`: List of `http://www.w3.org/ns/sparql-service-description#extensionFunction` when available.

## Configure

After installing, this package can be added to your engine's configuration as follows:
```json
{
  "@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-extract-sparql-service/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    {
      "@id": "urn:comunica:default:rdf-metadata-extract/actors#sparql-service",
      "@type": "ActorRdfMetadataExtractSparqlService"
    }
  ]
}
```

### Config Parameters

* `inferHttpsEndpoint`: If HTTPS endpoints should be forcefully used if the original URL was HTTPS-based, defaults to `true`.

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