A cross reasoner compliance test suite for the Notation3 language.
  • JavaScript 93.5%
  • Shell 5%
  • Perl 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Hochstenbach b260849df3 Nightly report: juliett
cwm        1.3    current
  eye        74.1   current
  eyeling    100.0  current
  jen3       68.2   current
  juliett    70.9   current
  pyling     99.3   current
  romeo      100.0  current
  sparq      72.7   current

Run on Neutron at 2026-11-23T03:47:01+01:00 by notation3tests-tools.
2026-11-23 03:47:01 +01:00
extra Adding new stratification check 2026-08-13 11:18:13 +02:00
lib Adding support for juliett in the reports 2026-06-20 11:05:56 +02:00
reports Nightly report: juliett 2026-11-23 03:47:01 +01:00
spec Adding spec test 2026-05-20 11:46:44 +02:00
src Adding support for juliett in the reports 2026-06-20 11:05:56 +02:00
tests Fixed typo 2026-07-27 08:08:09 +02:00
.gitignore Adding 3 new Gregg Kellogg tests 2026-05-14 06:53:39 +02:00
.python-version Adding cwm hints 2025-12-25 06:31:46 +01:00
cwm.sh Adding sparq 2026-09-08 14:53:33 +02:00
HELLO.n3 Adding a base to Hello 2026-01-23 15:57:44 +01:00
HELLO.txt Adding hello world 2026-01-03 07:01:32 +01:00
juliett.sh Adding support for juliett in the reports 2026-06-20 11:05:56 +02:00
LICENSE Fixing typo 2026-05-26 07:21:39 +02:00
package-lock.json Removing bash scripts 2025-12-24 14:09:13 +01:00
package.json Adding sparq 2026-09-08 14:53:33 +02:00
query.txt Fixing tests to support cwm 2025-12-27 09:36:48 +01:00
README-cwm.md Adding documentation 2025-12-30 08:17:46 +01:00
README-eye.md Adding documentation 2025-12-30 08:17:46 +01:00
README-eyeling.md Adding documentation 2025-12-30 08:17:46 +01:00
README-jen3.md Documentation 2025-12-30 16:30:41 +01:00
README-juliett.md Adding romeo readme 2026-10-16 10:11:38 +02:00
README-pyling Adding a failing math:quotient test 2026-07-27 07:56:48 +02:00
README-romeo.md Adding romeo readme 2026-10-16 10:11:38 +02:00
README-sparq.md Adding sparq 2026-09-08 14:53:33 +02:00
README.md Adding support for juliett in the reports 2026-06-20 11:05:56 +02:00
reports.sh Adding support for juliett in the reports 2026-06-20 11:05:56 +02:00
sparq.sh Adding sparq 2026-09-08 14:53:33 +02:00
spotter.pl Adding the spotter 2026-05-20 11:10:35 +02:00

Notation3 Test Cases

A compliance test suite of strict Notation3 test cases agains the Notation3 spec.

  • The tests interpret the argument modes of built-ins according to the instantiation state of any variables involved.
  • The tests do not exercise the evaluation order of built-ins, as there is this underspecified currently.
  • The tests focus on compliance against the Notation3 spec, but do not try to exercise validity, soundness, or completeness of the reasoner's inference process.

Install

npm i

Run

REASONER="myreasoner -option" npm run test

Or, run tests for specific reasoners

npm run test:cwm
npm run test:eye
npm run test:eyeling
npm run test:jen3
npm run test:juliett

To skip tests that require networkin set the environmental variable NETWORKING=0.

Reports

See reports for an overview of challenges against different Notation3 implementations for spec compliance.

Generate tests

npm run generate

Notes and Warnings

Although the notation3tests suite contains more than 1000 test cases, implementers should be aware of the following notes and warnings.

This suite contains test cases for which there is a normative agreement in the Notation3 specs:

For some tests the Notation3 specs refer to other spec such as:

The test suite does not contain tests (or the tests are limited) for Notation3 features for which there is no agreement. This includes:

  • Dedicated casting/numeric-promotion
    • The XPath 3.1.4 promotion chain (xs:integer < xs:decimal < xs:float < xs:double) shows up implicity in the corpus but is not directly asserted:
      • For mathematical built-ins the spec does not provide explicit guidance what the expected datatype is of operations such as:
        • (1 1.0) math:sum ?X
        • (1 1.0e0) math:sum ?X
        • (2 0.5) math:exponentiation ?X is an xs:decimal (an exact finite decimal expansion allowed) for sqrt(2)?
        • 1 math:notEqualTo 1.0 (the spec says "same number" but what does that mean?)
  • For string built-ins the spec does not provide guidance on the regex flavor an implementation must accept.
  • Blank-node scoping inside quoted formulas.
    • E.g. What does the _:x and _:y bind to in the example below.
:test1 :value { :x :a :b . :y :b :a }.
{
    :test1 :value { _:x :a :b . _:y :b :a }.
    :test1 :value { _:y :a :b . _:x :b :a }.
}
=> 
{
    ...
}
  • Existential head blanks (skolemization) in forward rules. How many blank nodes a forward rule does mint when encountering a head with _:b.
  • Rules with false in the conclusion.
    • There is no agreement what an implementation should produce when encountering contraductions.
  • Backward rules <=.
    • No test at all, since there is no guidance from the specs.
  • For log:notIncludes the spec does not fix which snapshot of the subject the builtin consults.

For some tests the suite is stricter than the spec.

  • The mathematical spec demonstate that xs:integer input is allowed. However, such datatype is not part of the written schema.
  • The spec is unclear what the math:remainder should produce given negative number input. The test is following the XQuery/SPARQL spec.

There are still open cases that need more tests:

  • log:collectAllIn/log:forAllIn scope semantics.
  • More negative fail-*.n3 cases.