javascript-wasm

Query and manage RDF data via the sparq engine in JavaScript and TypeScript.

8|1|Updated Jun 7, 2026
One-click install
npx skills add https://github.com/sparq-org/sparq --skill javascript-wasm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-wasm
Source: https://github.com/sparq-org/sparq/tree/main/skills/javascript-wasm
Command: npx skills add https://github.com/sparq-org/sparq --skill javascript-wasm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @jeswr/sparq, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill provides an interface for JavaScript/TypeScript developers to interact with the sparq RDF+SPARQL engine from within Node.js or browsers, allowing them to leverage RDF and SPARQL functionality directly from their applications.

Core Features & Use Cases

  • JavaScript/TypeScript Interface: Interact with the sparq engine through WebAssembly using idiomatic RDF/JS surface.
  • SPARQL Execution: Run SPARQL 1.1 SELECT, ASK, CONSTRUCT, and DESCRIBE queries.
  • Data Management: Ingest RDF data in various formats (Turtle, N-Triples, N-Quads, TriG, JSON-LD) and manage RDF stores.
  • Use Case: Developers can use this Skill to build RDF-based applications or to integrate RDF capabilities into existing web services and applications.

Quick Start

Use the @jeswr/sparq package to query the RDF data in the Turtle format from your JavaScript code.

Frequently Asked Questions about javascript-wasm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run SPARQL queries in JavaScript using WebAssembly?

You can run SPARQL queries in JavaScript by loading the sparq engine via WebAssembly. This skill provides an RDF/JS interface to execute SPARQL 1.1 SELECT, ASK, CONSTRUCT, and DESCRIBE queries directly in Node.js or browser environments using the @jeswr/sparq package.

Can I load RDF data in Turtle or JSON-LD formats in Node.js?

Yes, you can load RDF data in Turtle or JSON-LD formats in Node.js. The sparq WebAssembly engine supports ingesting multiple RDF formats including Turtle, N-Triples, N-Quads, TriG, and JSON-LD for querying and managing RDF stores.

Does the sparq WebAssembly engine work in both Node.js and the browser?

Yes, the sparq WebAssembly engine works in both Node.js and the browser. It requires Node.js version 18 or higher and supports WebAssembly module loading to provide RDF and SPARQL functionality across both environments.

What is the best way to integrate SPARQL 1.1 querying into a TypeScript application?

The best way to integrate SPARQL 1.1 querying into a TypeScript application is using the @jeswr/sparq npm package. It offers an idiomatic RDF/JS surface to interact with the WebAssembly-based sparq engine for executing queries and managing RDF data.

Are there limitations when running SPARQL queries in the browser via WebAssembly?

Running SPARQL queries in the browser via WebAssembly requires environments that support WebAssembly module loading. The primary limitation is ensuring the client environment meets this requirement, although it fully supports Node.js >=18 and modern browsers.