Read-only mirror of https://github.com/SwissFederalArchives/lindas-clownface — Schweizerisches Bundesarchiv. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giulio Vannini f0eb03f2bd Fix npm publishing workflow
- Add permissions for contents and pull-requests
- Configure npm registry URL in setup-node
- Add NODE_AUTH_TOKEN environment variable for npm authentication
2025-11-18 14:38:34 +01:00
.changeset Version Packages 2024-11-25 14:56:04 +01:00
.claude Rebrand package from clownface to lindas-clownface 2025-11-18 13:46:52 +01:00
.github/workflows Fix npm publishing workflow 2025-11-18 14:38:34 +01:00
docs Remove failing codecov action and fix docs:build script 2025-11-18 14:12:40 +01:00
examples style: disable rule in example 2023-06-06 17:37:37 +02:00
lib build(deps): update to RDF/JS Env v1 (#80) 2024-01-16 14:25:51 +01:00
Removed Rebrand package from clownface to lindas-clownface 2025-11-18 13:46:52 +01:00
test build(deps): update to RDF/JS Env v1 (#80) 2024-01-16 14:25:51 +01:00
.eslintrc.json test: factory 2023-07-19 16:16:42 +02:00
.gitignore chore: update testing and linting setup 2023-06-05 11:04:54 +02:00
CHANGELOG.md Version Packages 2024-11-25 14:56:04 +01:00
codecov.yml test: ensure all coverage 2023-06-05 11:14:44 +02:00
Factory.js feat: copy factory from rdf-ext 2023-07-18 17:34:59 +02:00
filter.js refactor: ESM 2023-06-05 15:43:31 +02:00
index.js fix: ensure same env 2023-09-25 10:48:57 +02:00
package-lock.json build(deps-dev): bump dompurify from 2.3.6 to 2.5.6 2024-11-25 14:51:46 +01:00
package.json Remove failing codecov action and fix docs:build script 2025-11-18 14:12:40 +01:00
README.md Rebrand package from clownface to lindas-clownface 2025-11-18 13:46:52 +01:00

lindas-clownface

Build Status NPM Version

Clownface is a graph traversal library inspired by Gremlin which allows to query any RDF dataset in a concise and readable way.

Clownface greatly simplifies interacting with RDF data in JavaScript.

Quick start

The recommended way is to use clownface with and RDF/JS environment. It also requires DataFactory and DatasetFactory, for example those provided by @rdfjs/data-model and @rdfjs/dataset packages respectively, as well as @rdfjs/namespace.

npm install lindas-clownface @rdfjs/environment @rdfjs/data-model @rdfjs/dataset @rdfjs/namespace
import Environment from '@rdfjs/environment/Environment.js'
import NamespaceFactory from '@rdfjs/namespace/Factory.js'
import DatasetFactory from '@rdfjs/dataset/Factory.js'
import DataFactory from '@rdfjs/data-model/Factory.js'
import ClownfaceFactory from 'lindas-clownface/Factory.js'

const $rdf = new Environment([
  NamespaceFactory,
  DatasetFactory,
  DataFactory,
  ClownfaceFactory
])

const graph = $rdf.clownface()

Alternatively, if you already use @zazuko/env, it comes bundled with clownface and its dependencies.

import $rdf from '@zazuko/env'

const graph = $rdf.clownface()

Learn more

If you are new to RDF and JavaScript, consider our Getting Started guide that also covers Clownface basics.

For API documentation and examples, see https://swissfederalarchives.github.io/lindas-clownface/.