rdf-test-suite (current stable version 2.1.5) is a robust JavaScript/TypeScript command-line tool and library designed for executing W3C RDF and SPARQL test suites against any compatible JavaScript-based engine. It is actively maintained, with a development focus on broad test suite compatibility and modularity. Key differentiators include its support for a wide array of specifications such as SPARQL 1.0/1.1, RDF/XML, N-Triples, N-Quads, Turtle, TriG, JSON-LD (1.0/1.1), RDFa, Microdata, N3, and RDF-star/SPARQL-star, with a clear roadmap for expanding coverage. The tool itself functions as a runner, requiring users to provide their own JavaScript implementation of an RDF parser or SPARQL query engine that adheres to specific TypeScript interfaces (e.g., `IQueryEngine`, `IParser`) depending on the test suite being executed. It can output human-readable results to the console or machine-readable EARL reports for compliance tracking. Its modular architecture facilitates easy extension for new test cases or report formats.
npm install rdf-test-suiteVerified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic execution of a SPARQL 1.1 test suite against a dummy query engine, logging a summary of the test results.
Implement the `IQueryEngine` (for SPARQL) or `IParser` (for RDF syntax) interface and pass an instance of your engine to the `TestSuiteRunner`.
Consult the `rdf-test-suite` documentation and TypeScript definitions (e.g., `lib/testcase/sparql/IQueryEngine.ts`, `lib/testcase/rdfsyntax/IParser.ts`) to understand the exact interface required for your chosen test suite.
Verify that the specific W3C test suite you intend to run is listed as 'supported' in the documentation. The package is modular, allowing for custom extensions for unsupported suites.
Verify the manifest URL is correct and points to a supported W3C test suite. Ensure network access to the manifest and check for any proxies or firewalls blocking access.
Ensure your engine implementation fully adheres to the TypeScript interface required by the specific test suite (e.g., `IQueryEngine` for SPARQL tests or `IParser` for RDF syntax tests), including all required methods and their signatures.
No dependency data recorded yet.