A test kit for RDF Surfaces.
Needs at least an installation of one of the RDF Surfaces implementations:
Edit the configuration file:
cp config.json-example config.json
Clean old
./make_examples.sh clean
Run all tests
./make_examples.sh
Clean old
./bin/make_examples.js clean
Run all tests
./bin/make_examples.js lib/tension.js
where lib/tension.js
is a handler for the specific implementation.
Run one test
./bin/make_examples.js lib/tension.js test/pure/beetle.n3s
- Test files need to have
.n3s
extensions. - For a test to be a success one of need to be true:
- Test produces
<urn:example:test> <urn:example:is> true .
; - Test throws an inference fuse and the test file has the
_FAIL.n3s
extension (e.g.mytest:FAIL.n3s
).
- Test produces
- For a test to be skipped (e.g. work in progress) use the
_SKIP.n3s
extension (e.g.myother:SKIP.n3s
). - For a test that should not produce
<urn:example:test> <urn:example:is> true .
use the_LIE.n3s
extension.
- test_dir : directory with test files
- test_ext : which file extensions to test
- history : activate the history of previous runs
- history.path : path to history file
- history.size : size of history
- eye : configuration of the
lib/eye.js
reasoner - latar : configuration of the
lib/latar.js
reasoner - tension : configuration of the
lib/tension.js
reasoner - r2fol : configuration of the
lib/rs2fol.js
reasoner
When contributing new tests, please add your name (we use alphabetical ordening based on first name)
- Doerthe Arndt
- Jos De Roo
- Patrick Hochstenbach