# rdf-ext

> RDF-Ext is a developer-friendly extension for RDF/JS

Latest version **2.6.0** (published 2025-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install rdf-ext
pnpm add rdf-ext
yarn add rdf-ext
bun add rdf-ext
```

## Health

**Score 53/100 (C)** — status: stable.

Positive: has types package; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.6.0 |
| Published | 2025-08-31 |
| First published | 2014-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/rdf-ext) |
| Module format | ESM + CommonJS |
| Dependencies | 19 |
| Unpacked size | 42.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 126 |
| Author | Thomas Bergwinkl |
| Maintainers | bergos |
| Keywords | rdf, rdfjs, rdf-ext |

## Links

- npm: https://www.npmjs.com/package/rdf-ext
- Repository: https://github.com/rdf-ext/rdf-ext
- Issues: https://github.com/rdf-ext/rdf-ext/issues
- npm.io page: https://npm.io/package/rdf-ext

## Dependencies (19)

- [grapoi](https://npm.io/package/grapoi.md) ^1.0.2
- [@rdfjs/io](https://npm.io/package/@rdfjs/io.md) ^1.0.0
- [file-fetch](https://npm.io/package/file-fetch.md) ^2.0.0
- [proto-fetch](https://npm.io/package/proto-fetch.md) ^2.0.0
- [@rdfjs/score](https://npm.io/package/@rdfjs/score.md) ^0.1.1
- [nodeify-fetch](https://npm.io/package/nodeify-fetch.md) ^3.1.0
- [@rdfjs/dataset](https://npm.io/package/@rdfjs/dataset.md) ^2.0.1
- [@rdfjs/formats](https://npm.io/package/@rdfjs/formats.md) ^4.0.0
- [@rdfjs/term-map](https://npm.io/package/@rdfjs/term-map.md) ^2.0.0
- [@rdfjs/term-set](https://npm.io/package/@rdfjs/term-set.md) ^2.0.1
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.3.0
- [@rdfjs/namespace](https://npm.io/package/@rdfjs/namespace.md) ^2.0.0
- [@rdfjs/normalize](https://npm.io/package/@rdfjs/normalize.md) ^2.0.0
- [@rdfjs/traverser](https://npm.io/package/@rdfjs/traverser.md) ^0.1.1
- [@rdfjs/data-model](https://npm.io/package/@rdfjs/data-model.md) ^2.0.1
- [@rdfjs/fetch-lite](https://npm.io/package/@rdfjs/fetch-lite.md) ^3.2.1
- [@rdfjs/prefix-map](https://npm.io/package/@rdfjs/prefix-map.md) ^0.1.1
- [@rdfjs/environment](https://npm.io/package/@rdfjs/environment.md) ^1.0.0
- [@rdfjs/to-ntriples](https://npm.io/package/@rdfjs/to-ntriples.md) ^3.0.1

## Recent versions

- 2.6.0 (latest) — 2025-08-31
- 0.3.0-rc6 (unstable) — 2015-12-19
- 2.5.2 — 2024-06-22
- 2.5.1 — 2023-12-06
- 2.5.0 — 2023-11-24
- 2.4.0 — 2023-10-13
- 2.3.0 — 2023-09-07
- 2.2.0 — 2023-02-12
- 2.1.1 — 2023-01-08
- 2.1.0 — 2022-10-01
- 2.0.1 — 2022-01-09
- 2.0.0 — 2022-01-06
- 1.3.5 — 2021-07-20
- 1.3.4 — 2021-07-02
- 1.3.3 — 2021-07-01
- … 31 more at https://npm.io/package/rdf-ext/versions

## README

# rdf-ext

[![build status](https://img.shields.io/github/actions/workflow/status/rdf-ext/rdf-ext/test.yaml?branch=master)](https://github.com/rdf-ext/rdf-ext/actions/workflows/test.yaml)
[![npm version](https://img.shields.io/npm/v/rdf-ext.svg)](https://www.npmjs.com/package/rdf-ext)

RDF-Ext is a JavaScript library that extends the [RDF/JS](#rdf-js) specs to handle RDF data in a developer-friendly way.

## Install

```bash
npm install --save rdf-ext
```

## Usage

Just import the default export from the package:

```javascript
import rdf from 'rdf-ext'

const term = rdf.namedNode('http://example.org/')
```

The exported object is an instance of [@rdfjs/environment](https://github.com/rdfjs-base/environment).
The following factories are included in the environment:

- [DataFactory](https://github.com/rdfjs-base/data-model)
- [DatasetFactory](https://github.com/rdfjs-base/dataset)
- [FetchFactory](https://github.com/rdfjs-base/fetch-lite)
- [FormatsFactory](https://github.com/rdfjs-base/formats-common)
- [GrapoiFactory](https://github.com/rdf-ext/grapoi)
- [NamespaceFactory](https://github.com/rdfjs-base/namespace)
- [PrefixMapFactory](https://github.com/rdfjs-base/prefix-map)
- [TermMapFactory](https://github.com/rdfjs-base/term-map/)
- [TermSetFactory](https://github.com/rdfjs-base/term-set)
- [TraverserFactory](https://github.com/rdfjs-base/traverser)

### Experimental features

The package contains experimental features which may break or be removed without being covered in the semantic versioning:

- [ScoreFactory](https://github.com/rdfjs-base/score/#factory)

## Documentation & examples

For more details, please check [rdf-ext.org](https://rdf-ext.org/)

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