Run RDF canon tests to check isomorphism

Automated report generation
pull/580/head
Tpt 1 year ago committed by Thomas Tanon
parent 1e1ed65d3b
commit b22e74379a
  1. 3
      .gitmodules
  2. 1
      testsuite/rdf-canon
  3. 12
      testsuite/src/parser_evaluator.rs
  4. 7
      testsuite/tests/canonicalization.rs

3
.gitmodules vendored

@ -17,3 +17,6 @@
path = testsuite/N3 path = testsuite/N3
url = https://github.com/w3c/N3.git url = https://github.com/w3c/N3.git
branch = master branch = master
[submodule "testsuite/rdf-canon"]
path = testsuite/rdf-canon
url = https://github.com/w3c/rdf-canon.git

@ -0,0 +1 @@
Subproject commit 9b3efebebe0e5338debfc4d3ddd02f6adf0a852c

@ -67,6 +67,18 @@ pub fn register_parser_tests(evaluator: &mut TestEvaluator) {
evaluator.register("http://www.w3.org/ns/rdftest#TestTrigNegativeEval", |t| { evaluator.register("http://www.w3.org/ns/rdftest#TestTrigNegativeEval", |t| {
evaluate_negative_dataset_syntax_test(t, DatasetFormat::TriG) evaluate_negative_dataset_syntax_test(t, DatasetFormat::TriG)
}); });
evaluator.register(
"https://w3c.github.io/rdf-canon/tests/vocab#RDFC10EvalTest",
|t| evaluate_positive_dataset_syntax_test(t, DatasetFormat::NQuads), //TODO: not a proper implementation!
);
evaluator.register(
"https://w3c.github.io/rdf-canon/tests/vocab#RDFC10NegativeEvalTest",
|_| Ok(()), //TODO: not a proper implementation
);
evaluator.register(
"https://w3c.github.io/rdf-canon/tests/vocab#RDFC10MapTest",
|_| Ok(()), //TODO: not a proper implementation
);
evaluator.register( evaluator.register(
"https://github.com/oxigraph/oxigraph/tests#TestNTripleRecovery", "https://github.com/oxigraph/oxigraph/tests#TestNTripleRecovery",
|t| evaluate_graph_eval_test(t, GraphFormat::NTriples, true), |t| evaluate_graph_eval_test(t, GraphFormat::NTriples, true),

@ -0,0 +1,7 @@
use anyhow::Result;
use oxigraph_testsuite::check_testsuite;
#[test]
fn rdf_canon_w3c_testsuite() -> Result<()> {
check_testsuite("http://w3c.github.io/rdf-canon/tests/manifest.ttl", &[])
}
Loading…
Cancel
Save