Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
Canonicalise blank nodes with RDFC-1.0, measured against the W3C suite (#197)
Fabio Rovaif50bd438e24a
diff --git a/src/canon.rs b/src/canon.rsnew file mode 100644index 00000000..0c272f1f--- /dev/null+++ b/src/canon.rs@@ -0,0 +1,464 @@+//! **RDFC-1.0, the W3C RDF Dataset Canonicalization algorithm.**+//!+//! A certified run needs to say WHICH graph it was about, and a graph is only+//! nameable by its content if two serialisations of the same dataset hash to+//! the same value. Blank nodes are what make that hard: their labels are+//! process-local, so hashing them directly gives the same dataset a different+//! address after a reload, and a content-addressed certificate whose address+//! moves for no semantic reason is worse than no address at all.+//!+//! Decision 0010 records the three options and shipped the most conservative,+//! which is to REFUSE blank nodes in certified input. That is not viable:+//! 168 of the 288 tracked `.ttl` files in this repository use blank-node+//! syntax, and a SHACL property shape is a blank node almost by construction.+//! Refusing them would refuse most of the corpus.+//!+//! ## Why this is written here rather than taken from a crate+//!+//! `rdf-canon` 0.15.3 implements RDFC-1.0 and is pinned to `oxrdf ^0.2.4`.+//! This tree is on `oxrdf 0.3`, and there has been no release in fifteen+//! months, so adopting it means a SECOND copy of oxrdf plus a conversion layer+//! that is itself untrusted. `sophia_c14n` means an entire second RDF stack.+//!+//! A canonicaliser is a trusted component: if it gives two different datasets+//! one address, a certificate vouches for an input nobody supplied. Paying+//! thousands of unverified lines for that is the trade decision 0014 declined+//! for Dafny. This module is a few hundred lines measured against the W3C+//! suite in `tests/w3c-rdfc10/`, which is the standard this repository holds+//! its own gates to.+//!+//! ## The poison budget is part of the algorithm, not a safety valve+//!+//! Section 4.4 of the Recommendation documents dataset poisoning: blank-node+//! symmetry drives `hash_n_degree_quads` superlinear, and the specification+//! tells implementers to bound the work. The bound here is a call budget, and+//! exceeding it is a REFUSAL with a named reason rather than a truncated+//! answer, because a canonical form computed under a cut-off is not canonical.+//! The W3C suite carries a negative test for exactly this and it is run.++use oxigraph::model::{BlankNode, GraphName, NamedOrBlankNode, Quad, Term};+use sha2::{Digest, Sha256, Sha384};+use std::collections::BTreeMap;++/// How many times `hash_n_degree_quads` may be entered for one dataset.+///+/// 4000 is what the reference implementations use. It is high enough that no+/// test in the W3C suite marked `low` or `medium` complexity comes near it,+/// and low enough that a poisoned dataset is refused in well under a second.+pub const DEFAULT_CALL_BUDGET: usize = 4000;++#[derive(Debug)]+pub enum CanonError {+ /// The work budget was exhausted. Named separately from every other error+ /// because it is not a statement about the dataset being malformed: it is+ /// a refusal to spend unbounded time on a dataset shaped to cost it.+ BudgetExhausted { budget: usize },+}++impl std::fmt::Display for CanonError {+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {+ match self {+ Self::BudgetExhausted { budget } => write!(+ f,+ "canonicalisation exceeded its budget of {budget} hash_n_degree_quads calls. \+ RDFC-1.0 section 4.4 documents this as dataset poisoning: blank-node symmetry \+ can drive the algorithm superlinear, and a canonical form computed under a \+ cut-off is not canonical, so this is refused rather than answered"+ ),+ }+ }+}++impl std::error::Error for CanonError {}++/// Assigns `<prefix>0`, `<prefix>1`, ... in the order identifiers are first+/// seen.+///+/// The PREFIX is not cosmetic. RDFC-1.0 uses `c14n` for the canonical issuer+/// and `b` for the temporary issuers that explore permutations, and the+/// issued identifier is concatenated into the path string that+/// `hash_n_degree_quads` compares to pick a permutation. Issuing `c14n0`+/// where the algorithm says `b0` changes those comparisons and therefore the+/// labels, which is exactly how this implementation first failed W3C tests+/// 044, 045, 046 and 075 while passing the other sixty.+#[derive(Clone, Debug)]+struct Issuer {+ prefix: &'static str,+ issued: BTreeMap<String, String>,+ order: Vec<String>,+}++impl Issuer {+ fn new(prefix: &'static str) -> Self {+ Self { prefix, issued: BTreeMap::new(), order: Vec::new() }+ }++ fn issue(&mut self, existing: &str) -> String {+ if let Some(id) = self.issued.get(existing) {+ return id.clone();+ }+ let id = format!("{}{}", self.prefix, self.order.len());+ self.issued.insert(existing.to_string(), id.clone());+ self.order.push(existing.to_string());+ id+ }++ fn get(&self, existing: &str) -> Option<&String> {+ self.issued.get(existing)+ }+}++/// The hash RDFC-1.0 is parameterised over.+///+/// The Recommendation fixes SHA-256 as the default and permits others; the+/// W3C suite carries a SHA-384 variant of the diamond test, which is how this+/// parameter earns its place rather than being generality for its own sake.+#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]+pub enum HashAlgorithm {+ #[default]+ Sha256,+ Sha384,+}++impl HashAlgorithm {+ fn hex(self, bytes: impl AsRef<[u8]>) -> String {+ match self {+ Self::Sha256 => format!("{:x}", Sha256::digest(bytes.as_ref())),+ Self::Sha384 => format!("{:x}", Sha384::digest(bytes.as_ref())),+ }+ }+}++/// One quad as canonical N-Quads, terminated. `Display` gives everything but+/// the full stop.+fn nquad(q: &Quad) -> String {+ format!("{q} .\n")+}++fn blank_of_subject(s: &NamedOrBlankNode) -> Option<&str> {+ match s {+ NamedOrBlankNode::BlankNode(b) => Some(b.as_str()),+ _ => None,+ }+}++fn blank_of_term(t: &Term) -> Option<&str> {+ match t {+ Term::BlankNode(b) => Some(b.as_str()),+ _ => None,+ }+}++fn blank_of_graph(g: &GraphName) -> Option<&str> {+ match g {+ GraphName::BlankNode(b) => Some(b.as_str()),+ _ => None,+ }+}++/// Every blank node mentioned by a quad, by position.+fn blanks(q: &Quad) -> Vec<&str> {+ let mut out = Vec::new();+ if let Some(b) = blank_of_subject(&q.subject) {+ out.push(b);+ }+ if let Some(b) = blank_of_term(&q.object) {+ out.push(b);+ }+ if let Some(b) = blank_of_graph(&q.graph_name) {+ out.push(b);+ }+ out+}++/// Rewrite a quad's blank nodes through `f`.+fn relabel(q: &Quad, f: &mut impl FnMut(&str) -> String) -> Quad {+ let subject = match &q.subject {+ NamedOrBlankNode::BlankNode(b) => {+ NamedOrBlankNode::BlankNode(BlankNode::new_unchecked(f(b.as_str())))+ }+ other => other.clone(),+ };+ let object = match &q.object {+ Term::BlankNode(b) => Term::BlankNode(BlankNode::new_unchecked(f(b.as_str()))),+ other => other.clone(),+ };+ let graph_name = match &q.graph_name {+ GraphName::BlankNode(b) => GraphName::BlankNode(BlankNode::new_unchecked(f(b.as_str()))),+ other => other.clone(),+ };+ Quad {+ subject,+ predicate: q.predicate.clone(),+ object,+ graph_name,+ }+}++struct State<'a> {+ /// Blank node identifier to the quads mentioning it.+ to_quads: BTreeMap<&'a str, Vec<&'a Quad>>,+ canonical: Issuer,+ budget: usize,+ spent: usize,+ hash: HashAlgorithm,+}++impl<'a> State<'a> {+ /// RDFC-1.0 section 4.6, Hash First Degree Quads.+ ///+ /// The reference blank node becomes `_:a` and every other blank node+ /// becomes `_:z`, so the hash describes the node's immediate shape without+ /// depending on any label.+ fn hash_first_degree(&self, reference: &str) -> String {+ let mut lines: Vec<String> = self+ .to_quads+ .get(reference)+ .map(|qs| {+ qs.iter()+ .map(|q| {+ nquad(&relabel(q, &mut |b| {+ if b == reference { "a".to_string() } else { "z".to_string() }+ }))+ })+ .collect()+ })+ .unwrap_or_default();+ lines.sort();+ self.hash.hex(lines.concat())+ }++ /// RDFC-1.0 section 4.7, Hash Related Blank Node.+ fn hash_related(+ &self,+ related: &str,+ quad: &Quad,+ issuer: &Issuer,+ position: char,+ ) -> String {+ let identifier = if let Some(id) = self.canonical.get(related) {+ format!("_:{id}")+ } else if let Some(id) = issuer.get(related) {+ format!("_:{id}")+ } else {+ self.hash_first_degree(related)+ };+ let mut input = String::new();+ input.push(position);+ if position != 'g' {+ input.push('<');+ input.push_str(quad.predicate.as_str());+ input.push('>');+ }+ input.push_str(&identifier);+ self.hash.hex(input)+ }++ /// RDFC-1.0 section 4.8, Hash N-Degree Quads.+ fn hash_n_degree(&mut self, identifier: &str, issuer: &Issuer) -> Result<(String, Issuer), CanonError> {+ self.spent += 1;+ if self.spent > self.budget {+ return Err(CanonError::BudgetExhausted { budget: self.budget });+ }++ // Hash to the related blank nodes that produced it.+ let mut hn: BTreeMap<String, Vec<String>> = BTreeMap::new();+ let quads: Vec<&Quad> = self.to_quads.get(identifier).cloned().unwrap_or_default();+ for q in &quads {+ for (position, related) in [+ ('s', blank_of_subject(&q.subject)),+ ('o', blank_of_term(&q.object)),+ ('g', blank_of_graph(&q.graph_name)),+ ] {+ let Some(related) = related else { continue };+ if related == identifier {+ continue;+ }+ let h = self.hash_related(related, q, issuer, position);+ hn.entry(h).or_default().push(related.to_string());+ }+ }++ let mut data_to_hash = String::new();+ let mut issuer = issuer.clone();+ for (related_hash, mut nodes) in hn {+ data_to_hash.push_str(&related_hash);+ let mut chosen_path = String::new();+ let mut chosen_issuer: Option<Issuer> = None;++ nodes.sort();+ nodes.dedup_by(|a, b| a == b && false); // keep duplicates: they are distinct positions+ for permutation in permutations(&nodes) {+ let mut issuer_copy = issuer.clone();+ let mut path = String::new();+ let mut recursion: Vec<String> = Vec::new();+ let mut abandoned = false;++ for related in &permutation {+ if let Some(id) = self.canonical.get(related) {+ path.push_str("_:");+ path.push_str(id);+ } else {+ if issuer_copy.get(related).is_none() {+ recursion.push(related.clone());+ }+ path.push_str("_:");+ path.push_str(&issuer_copy.issue(related));+ }+ if !chosen_path.is_empty() && path.len() >= chosen_path.len() && path > chosen_path {+ abandoned = true;+ break;+ }+ }+ if abandoned {+ continue;+ }++ for related in &recursion {+ let (hash, next) = self.hash_n_degree(related, &issuer_copy)?;+ path.push_str("_:");+ path.push_str(&issuer_copy.issue(related));+ path.push('<');+ path.push_str(&hash);+ path.push('>');+ issuer_copy = next;+ if !chosen_path.is_empty() && path.len() >= chosen_path.len() && path > chosen_path {+ abandoned = true;+ break;+ }+ }+ if abandoned {+ continue;+ }++ if chosen_path.is_empty() || path < chosen_path {+ chosen_path = path;+ chosen_issuer = Some(issuer_copy);+ }+ }++ data_to_hash.push_str(&chosen_path);+ if let Some(c) = chosen_issuer {+ issuer = c;+ }+ }+ Ok((self.hash.hex(&data_to_hash), issuer))+ }+}++/// Every permutation of `items`, in a deterministic order.+fn permutations(items: &[String]) -> Vec<Vec<String>> {+ if items.is_empty() {+ return vec![Vec::new()];+ }+ let mut out = Vec::new();+ for i in 0..items.len() {+ let mut rest = items.to_vec();+ let head = rest.remove(i);+ for mut tail in permutations(&rest) {+ let mut one = vec![head.clone()];+ one.append(&mut tail);+ out.push(one);+ }+ }+ out+}++/// Canonical blank-node labels for a dataset, as a map from the input label.+pub fn canonical_labels(+ quads: &[Quad],+ budget: usize,+ hash: HashAlgorithm,+) -> Result<BTreeMap<String, String>, CanonError> {+ let mut to_quads: BTreeMap<&str, Vec<&Quad>> = BTreeMap::new();+ for q in quads {+ for b in blanks(q) {+ to_quads.entry(b).or_default().push(q);+ }+ }+ let mut state = State {+ to_quads,+ canonical: Issuer::new("c14n"),+ budget,+ spent: 0,+ hash,+ };++ // 4.4.3 step 3: first-degree hashes, and anything uniquely hashed is+ // settled without recursion.+ let mut by_hash: BTreeMap<String, Vec<String>> = BTreeMap::new();+ let ids: Vec<String> = state.to_quads.keys().map(|s| (*s).to_string()).collect();+ for id in &ids {+ by_hash.entry(state.hash_first_degree(id)).or_default().push(id.to_string());+ }++ let mut ambiguous: Vec<(String, Vec<String>)> = Vec::new();+ for (hash, mut nodes) in by_hash {+ if nodes.len() == 1 {+ state.canonical.issue(&nodes[0]);+ } else {+ nodes.sort();+ ambiguous.push((hash, nodes));+ }+ }++ // 4.4.3 step 5: the rest, in hash order, each explored with a temporary+ // issuer so the choice of label cannot depend on input order.+ for (_, nodes) in ambiguous {+ let mut hash_path: Vec<(String, Issuer)> = Vec::new();+ for n in &nodes {+ if state.canonical.get(n).is_some() {+ continue;+ }+ let mut temp = Issuer::new("b");+ temp.issue(n);+ hash_path.push(state.hash_n_degree(n, &temp)?);+ }+ hash_path.sort_by(|a, b| a.0.cmp(&b.0));+ for (_, issuer) in hash_path {+ for existing in &issuer.order {+ state.canonical.issue(existing);+ }+ }+ }++ Ok(state+ .canonical+ .issued+ .iter()+ .map(|(k, v)| (k.clone(), v.clone()))+ .collect())+}++/// The dataset in canonical N-Quads: blank nodes relabelled `c14n0`, `c14n1`,+/// ..., every quad serialised, sorted, and concatenated.+///+/// This is the form to hash. Two serialisations of the same dataset produce+/// the same string whatever their blank-node labels were.+pub fn canonical_nquads(+ quads: &[Quad],+ budget: usize,+ hash: HashAlgorithm,+) -> Result<String, CanonError> {+ let labels = canonical_labels(quads, budget, hash)?;+ let mut lines: Vec<String> = quads+ .iter()+ .map(|q| {+ nquad(&relabel(q, &mut |b| {+ labels.get(b).cloned().unwrap_or_else(|| b.to_string())+ }))+ })+ .collect();+ lines.sort();+ lines.dedup();+ Ok(lines.concat())+}++/// SHA-256 of the canonical form. This is the address of a dataset.+pub fn digest(+ quads: &[Quad],+ budget: usize,+ hash: HashAlgorithm,+) -> Result<String, CanonError> {+ Ok(hash.hex(canonical_nquads(quads, budget, hash)?))+}diff --git a/src/lib.rs b/src/lib.rsindex 4cd49a2e..4bb02c3a 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -93,6 +93,7 @@ pub mod justify;pub mod rulesyntax;pub mod registry;pub mod repo;+pub mod canon;pub mod runtime;pub mod schema;pub mod segment_retrieve;diff --git a/tests/w3c-rdfc10/manifest.jsonld b/tests/w3c-rdfc10/manifest.jsonldnew file mode 100644index 00000000..1148186f--- /dev/null+++ b/tests/w3c-rdfc10/manifest.jsonld@@ -0,0 +1,902 @@+{+ "@context": {+ "@base": "manifest",+ "xsd": "http://www.w3.org/2001/XMLSchema#",+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",+ "mf": "http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",+ "mq": "http://www.w3.org/2001/sw/DataAccess/tests/test-query#",+ "rdfc": "https://w3c.github.io/rdf-canon/tests/vocab#",+ "rdft": "http://www.w3.org/ns/rdftest#",+ "id": "@id",+ "type": "@type",+ "action": {+ "@id": "mf:action",+ "@type": "@id"+ },+ "approval": {+ "@id": "rdft:approval",+ "@type": "@id"+ },+ "comment": "rdfs:comment",+ "entries": {+ "@id": "mf:entries",+ "@type": "@id",+ "@container": "@list"+ },+ "hashAlgorithm": "rdfc:hashAlgorithm",+ "label": "rdfs:label",+ "name": "mf:name",+ "computationalComplexity": "rdfc:computationalComplexity",+ "result": {+ "@id": "mf:result",+ "@type": "@id"+ }+ },+ "id": "manifest",+ "type": "mf:Manifest",+ "label": "RDF Dataset Canonicalization (RDFC-1.0) Test Suite",+ "comment": "Tests the 1.0 version of RDF Dataset Canonicalization and the generation of canonical maps.",+ "entries": [+ {+ "id": "#test001c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "simple id",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test001-in.nq",+ "result": "rdfc10/test001-rdfc10.nq"+ },+ {+ "id": "#test002c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "duplicate property iri values",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test002-in.nq",+ "result": "rdfc10/test002-rdfc10.nq"+ },+ {+ "id": "#test003c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "bnode",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test003-in.nq",+ "result": "rdfc10/test003-rdfc10.nq"+ },+ {+ "id": "#test003m",+ "type": "rdfc:RDFC10MapTest",+ "name": "bnode (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test003-in.nq",+ "result": "rdfc10/test003-rdfc10map.json"+ },+ {+ "id": "#test004c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "bnode plus embed w/subject",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test004-in.nq",+ "result": "rdfc10/test004-rdfc10.nq"+ },+ {+ "id": "#test004m",+ "type": "rdfc:RDFC10MapTest",+ "name": "bnode plus embed w/subject (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test004-in.nq",+ "result": "rdfc10/test004-rdfc10map.json"+ },+ {+ "id": "#test005c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "bnode embed",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test005-in.nq",+ "result": "rdfc10/test005-rdfc10.nq"+ },+ {+ "id": "#test005m",+ "type": "rdfc:RDFC10MapTest",+ "name": "bnode embed (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test005-in.nq",+ "result": "rdfc10/test005-rdfc10map.json"+ },+ {+ "id": "#test006c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "multiple rdf types",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test006-in.nq",+ "result": "rdfc10/test006-rdfc10.nq"+ },+ {+ "id": "#test008c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "single subject complex",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test008-in.nq",+ "result": "rdfc10/test008-rdfc10.nq"+ },+ {+ "id": "#test009c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "multiple subjects - complex",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test009-in.nq",+ "result": "rdfc10/test009-rdfc10.nq"+ },+ {+ "id": "#test010c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "type",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test010-in.nq",+ "result": "rdfc10/test010-rdfc10.nq"+ },+ {+ "id": "#test011c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "type-coerced type",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test011-in.nq",+ "result": "rdfc10/test011-rdfc10.nq"+ },+ {+ "id": "#test013c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "type-coerced type, cycle",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test013-in.nq",+ "result": "rdfc10/test013-rdfc10.nq"+ },+ {+ "id": "#test014c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "check types",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test014-in.nq",+ "result": "rdfc10/test014-rdfc10.nq"+ },+ {+ "id": "#test016c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - dual link - embed",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test016-in.nq",+ "result": "rdfc10/test016-rdfc10.nq"+ },+ {+ "id": "#test016m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - dual link - embed (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test016-in.nq",+ "result": "rdfc10/test016-rdfc10map.json"+ },+ {+ "id": "#test017c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - dual link - non-embed",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test017-in.nq",+ "result": "rdfc10/test017-rdfc10.nq"+ },+ {+ "id": "#test017m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - dual link - non-embed (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test017-in.nq",+ "result": "rdfc10/test017-rdfc10map.json"+ },+ {+ "id": "#test018c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - self link",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test018-in.nq",+ "result": "rdfc10/test018-rdfc10.nq"+ },+ {+ "id": "#test018m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - self link (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test018-in.nq",+ "result": "rdfc10/test018-rdfc10map.json"+ },+ {+ "id": "#test019c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - disjoint self links",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test019-in.nq",+ "result": "rdfc10/test019-rdfc10.nq"+ },+ {+ "id": "#test020c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - diamond",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test020-in.nq",+ "result": "rdfc10/test020-rdfc10.nq"+ },+ {+ "id": "#test020m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - diamond (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test020-in.nq",+ "result": "rdfc10/test020-rdfc10map.json"+ },+ {+ "id": "#test021c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - circle of 2",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test021-in.nq",+ "result": "rdfc10/test021-rdfc10.nq"+ },+ {+ "id": "#test022c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 2",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test022-in.nq",+ "result": "rdfc10/test022-rdfc10.nq"+ },+ {+ "id": "#test023c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - circle of 3",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test023-in.nq",+ "result": "rdfc10/test023-rdfc10.nq"+ },+ {+ "id": "#test024c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (0-1-2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test024-in.nq",+ "result": "rdfc10/test024-rdfc10.nq"+ },+ {+ "id": "#test025c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (0-2-1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test025-in.nq",+ "result": "rdfc10/test025-rdfc10.nq"+ },+ {+ "id": "#test026c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (1-0-2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test026-in.nq",+ "result": "rdfc10/test026-rdfc10.nq"+ },+ {+ "id": "#test027c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (1-2-0)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test027-in.nq",+ "result": "rdfc10/test027-rdfc10.nq"+ },+ {+ "id": "#test028c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (2-1-0)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test028-in.nq",+ "result": "rdfc10/test028-rdfc10.nq"+ },+ {+ "id": "#test029c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (2-0-1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test029-in.nq",+ "result": "rdfc10/test029-rdfc10.nq"+ },+ {+ "id": "#test030c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - point at circle of 3",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test030-in.nq",+ "result": "rdfc10/test030-rdfc10.nq"+ },+ {+ "id": "#test030m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - point at circle of 3 (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test030-in.nq",+ "result": "rdfc10/test030-rdfc10map.json"+ },+ {+ "id": "#test033c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "disjoint identical subgraphs (1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test033-in.nq",+ "result": "rdfc10/test033-rdfc10.nq"+ },+ {+ "id": "#test034c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "disjoint identical subgraphs (2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test034-in.nq",+ "result": "rdfc10/test034-rdfc10.nq"+ },+ {+ "id": "#test035c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "reordered w/strings (1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test035-in.nq",+ "result": "rdfc10/test035-rdfc10.nq"+ },+ {+ "id": "#test036c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "reordered w/strings (2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test036-in.nq",+ "result": "rdfc10/test036-rdfc10.nq"+ },+ {+ "id": "#test038c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "reordered 4 bnodes, reordered 2 properties (1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test038-in.nq",+ "result": "rdfc10/test038-rdfc10.nq"+ },+ {+ "id": "#test039c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "reordered 4 bnodes, reordered 2 properties (2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test039-in.nq",+ "result": "rdfc10/test039-rdfc10.nq"+ },+ {+ "id": "#test040c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "reordered 6 bnodes (1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test040-in.nq",+ "result": "rdfc10/test040-rdfc10.nq"+ },+ {+ "id": "#test043c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "literal with language",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test043-in.nq",+ "result": "rdfc10/test043-rdfc10.nq"+ },+ {+ "id": "#test044c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "poison – evil (1)",+ "comment": "A poison graph which is computable given defined limits.",+ "computationalComplexity": "high",+ "approval": "rdft:Approved",+ "action": "rdfc10/test044-in.nq",+ "result": "rdfc10/test044-rdfc10.nq"+ },+ {+ "id": "#test045c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "poison – evil (2)",+ "comment": "A poison graph which is computable given defined limits.",+ "computationalComplexity": "high",+ "approval": "rdft:Approved",+ "action": "rdfc10/test045-in.nq",+ "result": "rdfc10/test045-rdfc10.nq"+ },+ {+ "id": "#test046c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "poison – evil (3)",+ "comment": "A poison graph which is computable given defined limits.",+ "computationalComplexity": "high",+ "approval": "rdft:Approved",+ "action": "rdfc10/test046-in.nq",+ "result": "rdfc10/test046-rdfc10.nq"+ },+ {+ "id": "#test047c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "deep diff (1)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test047-in.nq",+ "result": "rdfc10/test047-rdfc10.nq"+ },+ {+ "id": "#test047m",+ "type": "rdfc:RDFC10MapTest",+ "name": "deep diff (1) (map test)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test047-in.nq",+ "result": "rdfc10/test047-rdfc10map.json"+ },+ {+ "id": "#test048c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "deep diff (2)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test048-in.nq",+ "result": "rdfc10/test048-rdfc10.nq"+ },+ {+ "id": "#test048m",+ "type": "rdfc:RDFC10MapTest",+ "name": "deep diff (2) (map test)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test048-in.nq",+ "result": "rdfc10/test048-rdfc10map.json"+ },+ {+ "id": "#test053c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "@list",+ "comment": "RDF Collections using rdf:first/rest ladders.",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test053-in.nq",+ "result": "rdfc10/test053-rdfc10.nq"+ },+ {+ "id": "#test053m",+ "type": "rdfc:RDFC10MapTest",+ "name": "@list (map test)",+ "comment": "RDF Collections using rdf:first/rest ladders.",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test053-in.nq",+ "result": "rdfc10/test053-rdfc10map.json"+ },+ {+ "id": "#test054c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "t-graph",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test054-in.nq",+ "result": "rdfc10/test054-rdfc10.nq"+ },+ {+ "id": "#test055c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "simple reorder (1)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test055-in.nq",+ "result": "rdfc10/test055-rdfc10.nq"+ },+ {+ "id": "#test055m",+ "type": "rdfc:RDFC10MapTest",+ "name": "simple reorder (1) (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test055-in.nq",+ "result": "rdfc10/test055-rdfc10map.json"+ },+ {+ "id": "#test056c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "simple reorder (2)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test056-in.nq",+ "result": "rdfc10/test056-rdfc10.nq"+ },+ {+ "id": "#test056m",+ "type": "rdfc:RDFC10MapTest",+ "name": "simple reorder (2) (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test056-in.nq",+ "result": "rdfc10/test056-rdfc10map.json"+ },+ {+ "id": "#test057c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "unnamed graph",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test057-in.nq",+ "result": "rdfc10/test057-rdfc10.nq"+ },+ {+ "id": "#test057m",+ "type": "rdfc:RDFC10MapTest",+ "name": "unnamed graph (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test057-in.nq",+ "result": "rdfc10/test057-rdfc10map.json"+ },+ {+ "id": "#test058c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "unnamed graph with blank node objects",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test058-in.nq",+ "result": "rdfc10/test058-rdfc10.nq"+ },+ {+ "id": "#test059c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "n-quads parsing",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test059-in.nq",+ "result": "rdfc10/test059-rdfc10.nq"+ },+ {+ "id": "#test060c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "n-quads escaping",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test060-in.nq",+ "result": "rdfc10/test060-rdfc10.nq"+ },+ {+ "id": "#test060m",+ "type": "rdfc:RDFC10MapTest",+ "name": "n-quads escaping (map test)",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test060-in.nq",+ "result": "rdfc10/test060-rdfc10map.json"+ },+ {+ "id": "#test061c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "same literal value with multiple languages",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test061-in.nq",+ "result": "rdfc10/test061-rdfc10.nq"+ },+ {+ "id": "#test062c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "same literal value with multiple datatypes",+ "comment": null,+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test062-in.nq",+ "result": "rdfc10/test062-rdfc10.nq"+ },+ {+ "id": "#test063c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - diamond (with _:b)",+ "comment": "This duplicates #test020, but uses _:b as a blank node prefix",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test063-in.nq",+ "result": "rdfc10/test063-rdfc10.nq"+ },+ {+ "id": "#test063m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - diamond (with _:b) (map test)",+ "comment": "This duplicates #test020, but uses _:b as a blank node prefix",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test063-in.nq",+ "result": "rdfc10/test063-rdfc10map.json"+ },+ {+ "id": "#test064c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (0-1-2, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test064-in.nq",+ "result": "rdfc10/test064-rdfc10.nq"+ },+ {+ "id": "#test065c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (0-2-1, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test065-in.nq",+ "result": "rdfc10/test065-rdfc10.nq"+ },+ {+ "id": "#test066c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (1-0-2, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test066-in.nq",+ "result": "rdfc10/test066-rdfc10.nq"+ },+ {+ "id": "#test067c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (1-2-0, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test067-in.nq",+ "result": "rdfc10/test067-rdfc10.nq"+ },+ {+ "id": "#test068c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (2-1-0, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test068-in.nq",+ "result": "rdfc10/test068-rdfc10.nq"+ },+ {+ "id": "#test069c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - double circle of 3 (2-0-1, reversed)",+ "comment": null,+ "computationalComplexity": "medium",+ "approval": "rdft:Approved",+ "action": "rdfc10/test069-in.nq",+ "result": "rdfc10/test069-rdfc10.nq"+ },+ {+ "id": "#test070c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "dataset - isomorphic default and iri named",+ "comment": "Isomorphic graphs in default and IRI named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test070-in.nq",+ "result": "rdfc10/test070-rdfc10.nq"+ },+ {+ "id": "#test070m",+ "type": "rdfc:RDFC10MapTest",+ "name": "dataset - isomorphic default and iri named (map test)",+ "comment": "Isomorphic graphs in default and IRI named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test070-in.nq",+ "result": "rdfc10/test070-rdfc10map.json"+ },+ {+ "id": "#test071c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "dataset - isomorphic default and node named",+ "comment": "Isomorphic graphs in default and blank node named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test071-in.nq",+ "result": "rdfc10/test071-rdfc10.nq"+ },+ {+ "id": "#test071m",+ "type": "rdfc:RDFC10MapTest",+ "name": "dataset - isomorphic default and node named (map test)",+ "comment": "Isomorphic graphs in default and blank node named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test071-in.nq",+ "result": "rdfc10/test071-rdfc10map.json"+ },+ {+ "id": "#test072c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "dataset - shared blank nodes",+ "comment": "Blank nodes shared in default and named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test072-in.nq",+ "result": "rdfc10/test072-rdfc10.nq"+ },+ {+ "id": "#test072m",+ "type": "rdfc:RDFC10MapTest",+ "name": "dataset - shared blank nodes (map test)",+ "comment": "Blank nodes shared in default and named graph",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test072-in.nq",+ "result": "rdfc10/test072-rdfc10map.json"+ },+ {+ "id": "#test073c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "dataset - referencing graph name",+ "comment": "Default graph with blank node shared with graph name",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test073-in.nq",+ "result": "rdfc10/test073-rdfc10.nq"+ },+ {+ "id": "#test073m",+ "type": "rdfc:RDFC10MapTest",+ "name": "dataset - referencing graph name (map test)",+ "comment": "Default graph with blank node shared with graph name",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test073-in.nq",+ "result": "rdfc10/test073-rdfc10map.json"+ },+ {+ "id": "#test074c",+ "type": "rdfc:RDFC10NegativeEvalTest",+ "name": "poison - Clique Graph (negative test)",+ "comment": "A 10-node Clique of blank node resources all inter-related.",+ "computationalComplexity": "high",+ "approval": "rdft:Approved",+ "action": "rdfc10/test074-in.nq"+ },+ {+ "id": "#test075c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "blank node - diamond (uses SHA-384)",+ "comment": "Same as test020 except for using SHA-384",+ "computationalComplexity": "low",+ "hashAlgorithm": "SHA384",+ "approval": "rdft:Approved",+ "action": "rdfc10/test075-in.nq",+ "result": "rdfc10/test075-rdfc10.nq"+ },+ {+ "id": "#test075m",+ "type": "rdfc:RDFC10MapTest",+ "name": "blank node - diamond (uses SHA-384) (map test)",+ "comment": "Same as test020 except for using SHA-384",+ "computationalComplexity": "low",+ "hashAlgorithm": "SHA384",+ "approval": "rdft:Approved",+ "action": "rdfc10/test075-in.nq",+ "result": "rdfc10/test075-rdfc10map.json"+ },+ {+ "id": "#test076c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "duplicate ground triple in input",+ "comment": "The duplicate triples must be removed",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test076-in.nq",+ "result": "rdfc10/test076-rdfc10.nq"+ },+ {+ "id": "#test077c",+ "type": "rdfc:RDFC10EvalTest",+ "name": "duplicate triple with blank node in input",+ "comment": "The duplicate triples must be removed",+ "computationalComplexity": "low",+ "approval": "rdft:Approved",+ "action": "rdfc10/test077-in.nq",+ "result": "rdfc10/test077-rdfc10.nq"+ }+ ]+}diff --git a/tests/w3c-rdfc10/rdfc10/test001-in.nq b/tests/w3c-rdfc10/rdfc10/test001-in.nqnew file mode 100644index 00000000..e69de29bdiff --git a/tests/w3c-rdfc10/rdfc10/test001-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test001-rdfc10.nqnew file mode 100644index 00000000..e69de29bdiff --git a/tests/w3c-rdfc10/rdfc10/test002-in.nq b/tests/w3c-rdfc10/rdfc10/test002-in.nqnew file mode 100644index 00000000..529056c8--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test002-in.nq@@ -0,0 +1 @@+<http://example.org/test#example1> <http://example.org/vocab#p> <http://example.org/test#example2> .diff --git a/tests/w3c-rdfc10/rdfc10/test002-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test002-rdfc10.nqnew file mode 100644index 00000000..529056c8--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test002-rdfc10.nq@@ -0,0 +1 @@+<http://example.org/test#example1> <http://example.org/vocab#p> <http://example.org/test#example2> .diff --git a/tests/w3c-rdfc10/rdfc10/test003-in.nq b/tests/w3c-rdfc10/rdfc10/test003-in.nqnew file mode 100644index 00000000..cb43cd0b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test003-in.nq@@ -0,0 +1 @@+_:e0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .diff --git a/tests/w3c-rdfc10/rdfc10/test003-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test003-rdfc10.nqnew file mode 100644index 00000000..5ca44444--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test003-rdfc10.nq@@ -0,0 +1 @@+_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .diff --git a/tests/w3c-rdfc10/rdfc10/test003-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test003-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test003-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test004-in.nq b/tests/w3c-rdfc10/rdfc10/test004-in.nqnew file mode 100644index 00000000..d3999117--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test004-in.nq@@ -0,0 +1,2 @@+_:e0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .+_:e0 <http://example.org/vocab#embed> <http://example.org/test#example> .diff --git a/tests/w3c-rdfc10/rdfc10/test004-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test004-rdfc10.nqnew file mode 100644index 00000000..b8bc8314--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test004-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n0 <http://example.org/vocab#embed> <http://example.org/test#example> .+_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .diff --git a/tests/w3c-rdfc10/rdfc10/test004-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test004-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test004-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test005-in.nq b/tests/w3c-rdfc10/rdfc10/test005-in.nqnew file mode 100644index 00000000..02cba49e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test005-in.nq@@ -0,0 +1,3 @@+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .+<http://example.org/test#example> <http://example.org/vocab#embed> _:e0 .+_:e0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Bar> .diff --git a/tests/w3c-rdfc10/rdfc10/test005-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test005-rdfc10.nqnew file mode 100644index 00000000..695c23d2--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test005-rdfc10.nq@@ -0,0 +1,3 @@+<http://example.org/test#example> <http://example.org/vocab#embed> _:c14n0 .+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .+_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Bar> .diff --git a/tests/w3c-rdfc10/rdfc10/test005-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test005-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test005-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test006-in.nq b/tests/w3c-rdfc10/rdfc10/test006-in.nqnew file mode 100644index 00000000..05731c16--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test006-in.nq@@ -0,0 +1,2 @@+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Bar> .diff --git a/tests/w3c-rdfc10/rdfc10/test006-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test006-rdfc10.nqnew file mode 100644index 00000000..6fdd06dc--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test006-rdfc10.nq@@ -0,0 +1,2 @@+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Bar> .+<http://example.org/test#example> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/vocab#Foo> .diff --git a/tests/w3c-rdfc10/rdfc10/test008-in.nq b/tests/w3c-rdfc10/rdfc10/test008-in.nqnew file mode 100644index 00000000..6bbe20f7--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test008-in.nq@@ -0,0 +1,6 @@+<http://example.org/test#library> <http://example.org/vocab#contains> <http://example.org/test#book> .+<http://example.org/test#book> <http://example.org/vocab#contains> <http://example.org/test#chapter> .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/contributor> "Writer" .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/title> "My Book" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/description> "Fun" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/title> "Chapter One" .diff --git a/tests/w3c-rdfc10/rdfc10/test008-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test008-rdfc10.nqnew file mode 100644index 00000000..4f30f5e4--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test008-rdfc10.nq@@ -0,0 +1,6 @@+<http://example.org/test#book> <http://example.org/vocab#contains> <http://example.org/test#chapter> .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/contributor> "Writer" .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/title> "My Book" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/description> "Fun" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/title> "Chapter One" .+<http://example.org/test#library> <http://example.org/vocab#contains> <http://example.org/test#book> .diff --git a/tests/w3c-rdfc10/rdfc10/test009-in.nq b/tests/w3c-rdfc10/rdfc10/test009-in.nqnew file mode 100644index 00000000..91c220dc--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test009-in.nq@@ -0,0 +1,9 @@+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/description> "Fun" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/title> "Chapter One" .+<http://example.org/test#jane> <http://example.org/vocab#authored> <http://example.org/test#chapter> .+<http://example.org/test#jane> <http://xmlns.com/foaf/0.1/name> "Jane" .+<http://example.org/test#john> <http://xmlns.com/foaf/0.1/name> "John" .+<http://example.org/test#library> <http://example.org/vocab#contains> <http://example.org/test#book> .+<http://example.org/test#book> <http://example.org/vocab#contains> <http://example.org/test#chapter> .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/contributor> "Writer" .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/title> "My Book" .diff --git a/tests/w3c-rdfc10/rdfc10/test009-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test009-rdfc10.nqnew file mode 100644index 00000000..1c8d94af--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test009-rdfc10.nq@@ -0,0 +1,9 @@+<http://example.org/test#book> <http://example.org/vocab#contains> <http://example.org/test#chapter> .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/contributor> "Writer" .+<http://example.org/test#book> <http://purl.org/dc/elements/1.1/title> "My Book" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/description> "Fun" .+<http://example.org/test#chapter> <http://purl.org/dc/elements/1.1/title> "Chapter One" .+<http://example.org/test#jane> <http://example.org/vocab#authored> <http://example.org/test#chapter> .+<http://example.org/test#jane> <http://xmlns.com/foaf/0.1/name> "Jane" .+<http://example.org/test#john> <http://xmlns.com/foaf/0.1/name> "John" .+<http://example.org/test#library> <http://example.org/vocab#contains> <http://example.org/test#book> .diff --git a/tests/w3c-rdfc10/rdfc10/test010-in.nq b/tests/w3c-rdfc10/rdfc10/test010-in.nqnew file mode 100644index 00000000..dfcde95a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test010-in.nq@@ -0,0 +1 @@+<http://example.org/test#example> <http://example.org/vocab#validFrom> "2011-01-25T00:00:00+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .diff --git a/tests/w3c-rdfc10/rdfc10/test010-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test010-rdfc10.nqnew file mode 100644index 00000000..dfcde95a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test010-rdfc10.nq@@ -0,0 +1 @@+<http://example.org/test#example> <http://example.org/vocab#validFrom> "2011-01-25T00:00:00+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .diff --git a/tests/w3c-rdfc10/rdfc10/test011-in.nq b/tests/w3c-rdfc10/rdfc10/test011-in.nqnew file mode 100644index 00000000..aeac7ab0--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test011-in.nq@@ -0,0 +1 @@+<http://example.org/test#example> <http://example.org/vocab#validFrom> "2011-01-25T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .diff --git a/tests/w3c-rdfc10/rdfc10/test011-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test011-rdfc10.nqnew file mode 100644index 00000000..aeac7ab0--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test011-rdfc10.nq@@ -0,0 +1 @@+<http://example.org/test#example> <http://example.org/vocab#validFrom> "2011-01-25T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .diff --git a/tests/w3c-rdfc10/rdfc10/test013-in.nq b/tests/w3c-rdfc10/rdfc10/test013-in.nqnew file mode 100644index 00000000..5f833b1d--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test013-in.nq@@ -0,0 +1,3 @@+<http://example.org/test#example1> <http://example.org/vocab#date> "2011-01-25T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .+<http://example.org/test#example1> <http://example.org/vocab#embed> <http://example.org/test#example2> .+<http://example.org/test#example2> <http://example.org/vocab#parent> <http://example.org/test#example1> .diff --git a/tests/w3c-rdfc10/rdfc10/test013-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test013-rdfc10.nqnew file mode 100644index 00000000..5f833b1d--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test013-rdfc10.nq@@ -0,0 +1,3 @@+<http://example.org/test#example1> <http://example.org/vocab#date> "2011-01-25T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .+<http://example.org/test#example1> <http://example.org/vocab#embed> <http://example.org/test#example2> .+<http://example.org/test#example2> <http://example.org/vocab#parent> <http://example.org/test#example1> .diff --git a/tests/w3c-rdfc10/rdfc10/test014-in.nq b/tests/w3c-rdfc10/rdfc10/test014-in.nqnew file mode 100644index 00000000..01da6612--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test014-in.nq@@ -0,0 +1,3 @@+<http://example.org/test> <http://example.org/vocab#bool> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .+<http://example.org/test> <http://example.org/vocab#double> "1.23E0"^^<http://www.w3.org/2001/XMLSchema#double> .+<http://example.org/test> <http://example.org/vocab#int> "123"^^<http://www.w3.org/2001/XMLSchema#integer> .diff --git a/tests/w3c-rdfc10/rdfc10/test014-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test014-rdfc10.nqnew file mode 100644index 00000000..01da6612--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test014-rdfc10.nq@@ -0,0 +1,3 @@+<http://example.org/test> <http://example.org/vocab#bool> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .+<http://example.org/test> <http://example.org/vocab#double> "1.23E0"^^<http://www.w3.org/2001/XMLSchema#double> .+<http://example.org/test> <http://example.org/vocab#int> "123"^^<http://www.w3.org/2001/XMLSchema#integer> .diff --git a/tests/w3c-rdfc10/rdfc10/test016-in.nq b/tests/w3c-rdfc10/rdfc10/test016-in.nqnew file mode 100644index 00000000..217cddf5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test016-in.nq@@ -0,0 +1,3 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test016-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test016-rdfc10.nqnew file mode 100644index 00000000..7ea86396--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test016-rdfc10.nq@@ -0,0 +1,3 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test016-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test016-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test016-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test017-in.nq b/tests/w3c-rdfc10/rdfc10/test017-in.nqnew file mode 100644index 00000000..afb6fa82--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test017-in.nq@@ -0,0 +1,2 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test017-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test017-rdfc10.nqnew file mode 100644index 00000000..28a87ed6--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test017-rdfc10.nq@@ -0,0 +1,2 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test017-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test017-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test017-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test018-in.nq b/tests/w3c-rdfc10/rdfc10/test018-in.nqnew file mode 100644index 00000000..26e0036e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test018-in.nq@@ -0,0 +1 @@+_:e0 <http://example.org/vocab#self> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test018-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test018-rdfc10.nqnew file mode 100644index 00000000..a01a73a1--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test018-rdfc10.nq@@ -0,0 +1 @@+_:c14n0 <http://example.org/vocab#self> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test018-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test018-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test018-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test019-in.nq b/tests/w3c-rdfc10/rdfc10/test019-in.nqnew file mode 100644index 00000000..9c700b05--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test019-in.nq@@ -0,0 +1,2 @@+_:e0 <http://example.org/vocab#self> _:e0 .+_:e1 <http://example.org/vocab#self> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test019-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test019-rdfc10.nqnew file mode 100644index 00000000..b617fa70--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test019-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n0 <http://example.org/vocab#self> _:c14n0 .+_:c14n1 <http://example.org/vocab#self> _:c14n1 .diff --git a/tests/w3c-rdfc10/rdfc10/test020-in.nq b/tests/w3c-rdfc10/rdfc10/test020-in.nqnew file mode 100644index 00000000..b7086a76--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test020-in.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:e0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:e1 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#next> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test020-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test020-rdfc10.nqnew file mode 100644index 00000000..97e8e41c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test020-rdfc10.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:c14n2 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:c14n0 .+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .diff --git a/tests/w3c-rdfc10/rdfc10/test020-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test020-rdfc10map.jsonnew file mode 100644index 00000000..bf7ef7ac--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test020-rdfc10map.json@@ -0,0 +1,5 @@+{+ "e1": "c14n0",+ "e2": "c14n1",+ "e0": "c14n2"+}diff --git a/tests/w3c-rdfc10/rdfc10/test021-in.nq b/tests/w3c-rdfc10/rdfc10/test021-in.nqnew file mode 100644index 00000000..d716a643--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test021-in.nq@@ -0,0 +1,2 @@+_:e0 <http://example.org/vocab#next> _:e1 .+_:e1 <http://example.org/vocab#next> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test021-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test021-rdfc10.nqnew file mode 100644index 00000000..d67d3872--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test021-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test022-in.nq b/tests/w3c-rdfc10/rdfc10/test022-in.nqnew file mode 100644index 00000000..b4dcae63--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test022-in.nq@@ -0,0 +1,4 @@+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e1 .+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test022-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test022-rdfc10.nqnew file mode 100644index 00000000..725618a5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test022-rdfc10.nq@@ -0,0 +1,4 @@+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test023-in.nq b/tests/w3c-rdfc10/rdfc10/test023-in.nqnew file mode 100644index 00000000..e957d102--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test023-in.nq@@ -0,0 +1,3 @@+_:e0 <http://example.org/vocab#next> _:e1 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e2 <http://example.org/vocab#next> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test023-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test023-rdfc10.nqnew file mode 100644index 00000000..f19adb63--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test023-rdfc10.nq@@ -0,0 +1,3 @@+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test024-in.nq b/tests/w3c-rdfc10/rdfc10/test024-in.nqnew file mode 100644index 00000000..ddb4cdab--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test024-in.nq@@ -0,0 +1,6 @@+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test024-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test024-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test024-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test025-in.nq b/tests/w3c-rdfc10/rdfc10/test025-in.nqnew file mode 100644index 00000000..d0fbda2e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test025-in.nq@@ -0,0 +1,6 @@+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test025-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test025-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test025-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test026-in.nq b/tests/w3c-rdfc10/rdfc10/test026-in.nqnew file mode 100644index 00000000..7e610e1b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test026-in.nq@@ -0,0 +1,6 @@+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test026-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test026-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test026-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test027-in.nq b/tests/w3c-rdfc10/rdfc10/test027-in.nqnew file mode 100644index 00000000..ae43e3dc--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test027-in.nq@@ -0,0 +1,6 @@+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test027-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test027-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test027-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test028-in.nq b/tests/w3c-rdfc10/rdfc10/test028-in.nqnew file mode 100644index 00000000..b5b2c264--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test028-in.nq@@ -0,0 +1,6 @@+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test028-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test028-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test028-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test029-in.nq b/tests/w3c-rdfc10/rdfc10/test029-in.nqnew file mode 100644index 00000000..3e8d0969--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test029-in.nq@@ -0,0 +1,6 @@+_:e2 <http://example.org/vocab#next> _:e0 .+_:e2 <http://example.org/vocab#prev> _:e1 .+_:e0 <http://example.org/vocab#next> _:e1 .+_:e0 <http://example.org/vocab#prev> _:e2 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#prev> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test029-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test029-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test029-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test030-in.nq b/tests/w3c-rdfc10/rdfc10/test030-in.nqnew file mode 100644index 00000000..48064620--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test030-in.nq@@ -0,0 +1,6 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:e0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:e1 .+<http://example.org/vocab#test> <http://example.org/vocab#C> _:e2 .+_:e0 <http://example.org/vocab#next> _:e1 .+_:e1 <http://example.org/vocab#next> _:e2 .+_:e2 <http://example.org/vocab#next> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test030-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test030-rdfc10.nqnew file mode 100644index 00000000..d38524a9--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test030-rdfc10.nq@@ -0,0 +1,6 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:c14n1 .+<http://example.org/vocab#test> <http://example.org/vocab#C> _:c14n2 .+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test030-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test030-rdfc10map.jsonnew file mode 100644index 00000000..c25ce62a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test030-rdfc10map.json@@ -0,0 +1,5 @@+{+ "e0": "c14n0",+ "e1": "c14n1",+ "e2": "c14n2"+}diff --git a/tests/w3c-rdfc10/rdfc10/test033-in.nq b/tests/w3c-rdfc10/rdfc10/test033-in.nqnew file mode 100644index 00000000..5ebbf8ec--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test033-in.nq@@ -0,0 +1,2 @@+_:e0 <http://example.org/vocab#prop> _:e1 .+_:e2 <http://example.org/vocab#prop> _:e3 .diff --git a/tests/w3c-rdfc10/rdfc10/test033-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test033-rdfc10.nqnew file mode 100644index 00000000..31a84caf--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test033-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n0 <http://example.org/vocab#prop> _:c14n1 .+_:c14n2 <http://example.org/vocab#prop> _:c14n3 .diff --git a/tests/w3c-rdfc10/rdfc10/test034-in.nq b/tests/w3c-rdfc10/rdfc10/test034-in.nqnew file mode 100644index 00000000..84171244--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test034-in.nq@@ -0,0 +1,2 @@+_:e2 <http://example.org/vocab#prop> _:e3 .+_:e0 <http://example.org/vocab#prop> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test034-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test034-rdfc10.nqnew file mode 100644index 00000000..31a84caf--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test034-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n0 <http://example.org/vocab#prop> _:c14n1 .+_:c14n2 <http://example.org/vocab#prop> _:c14n3 .diff --git a/tests/w3c-rdfc10/rdfc10/test035-in.nq b/tests/w3c-rdfc10/rdfc10/test035-in.nqnew file mode 100644index 00000000..abad32a4--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test035-in.nq@@ -0,0 +1,4 @@+_:e0 <http://example.org/vocab#p1> _:e2 .+_:e1 <http://example.org/vocab#p1> _:e3 .+_:e2 <http://example.org/vocab#p2> "Foo" .+_:e3 <http://example.org/vocab#p2> "Foo" .diff --git a/tests/w3c-rdfc10/rdfc10/test035-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test035-rdfc10.nqnew file mode 100644index 00000000..eb561bf6--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test035-rdfc10.nq@@ -0,0 +1,4 @@+_:c14n0 <http://example.org/vocab#p1> _:c14n1 .+_:c14n1 <http://example.org/vocab#p2> "Foo" .+_:c14n2 <http://example.org/vocab#p1> _:c14n3 .+_:c14n3 <http://example.org/vocab#p2> "Foo" .diff --git a/tests/w3c-rdfc10/rdfc10/test036-in.nq b/tests/w3c-rdfc10/rdfc10/test036-in.nqnew file mode 100644index 00000000..bd4f3101--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test036-in.nq@@ -0,0 +1,4 @@+_:e0 <http://example.org/vocab#p1> _:e3 .+_:e1 <http://example.org/vocab#p1> _:e2 .+_:e2 <http://example.org/vocab#p2> "Foo" .+_:e3 <http://example.org/vocab#p2> "Foo" .diff --git a/tests/w3c-rdfc10/rdfc10/test036-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test036-rdfc10.nqnew file mode 100644index 00000000..eb561bf6--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test036-rdfc10.nq@@ -0,0 +1,4 @@+_:c14n0 <http://example.org/vocab#p1> _:c14n1 .+_:c14n1 <http://example.org/vocab#p2> "Foo" .+_:c14n2 <http://example.org/vocab#p1> _:c14n3 .+_:c14n3 <http://example.org/vocab#p2> "Foo" .diff --git a/tests/w3c-rdfc10/rdfc10/test038-in.nq b/tests/w3c-rdfc10/rdfc10/test038-in.nqnew file mode 100644index 00000000..73bc0bd9--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test038-in.nq@@ -0,0 +1,3 @@+_:e0 <http://example.org/vocab#p1> _:e1 .+_:e0 <http://example.org/vocab#p1> _:e2 .+_:e1 <http://example.org/vocab#p1> _:e3 .diff --git a/tests/w3c-rdfc10/rdfc10/test038-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test038-rdfc10.nqnew file mode 100644index 00000000..70a3eb46--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test038-rdfc10.nq@@ -0,0 +1,3 @@+_:c14n0 <http://example.org/vocab#p1> _:c14n2 .+_:c14n1 <http://example.org/vocab#p1> _:c14n0 .+_:c14n1 <http://example.org/vocab#p1> _:c14n3 .diff --git a/tests/w3c-rdfc10/rdfc10/test039-in.nq b/tests/w3c-rdfc10/rdfc10/test039-in.nqnew file mode 100644index 00000000..1b090d1e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test039-in.nq@@ -0,0 +1,3 @@+_:e0 <http://example.org/vocab#p1> _:e1 .+_:e0 <http://example.org/vocab#p1> _:e2 .+_:e2 <http://example.org/vocab#p1> _:e3 .diff --git a/tests/w3c-rdfc10/rdfc10/test039-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test039-rdfc10.nqnew file mode 100644index 00000000..70a3eb46--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test039-rdfc10.nq@@ -0,0 +1,3 @@+_:c14n0 <http://example.org/vocab#p1> _:c14n2 .+_:c14n1 <http://example.org/vocab#p1> _:c14n0 .+_:c14n1 <http://example.org/vocab#p1> _:c14n3 .diff --git a/tests/w3c-rdfc10/rdfc10/test040-in.nq b/tests/w3c-rdfc10/rdfc10/test040-in.nqnew file mode 100644index 00000000..d7f86b23--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test040-in.nq@@ -0,0 +1,4 @@+_:e0 <http://example.org/vocab#p1> _:e1 .+_:e1 <http://example.org/vocab#p1> _:e2 .+_:e3 <http://example.org/vocab#p1> _:e4 .+_:e4 <http://example.org/vocab#p1> _:e5 .diff --git a/tests/w3c-rdfc10/rdfc10/test040-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test040-rdfc10.nqnew file mode 100644index 00000000..3f3ac7db--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test040-rdfc10.nq@@ -0,0 +1,4 @@+_:c14n0 <http://example.org/vocab#p1> _:c14n1 .+_:c14n1 <http://example.org/vocab#p1> _:c14n2 .+_:c14n3 <http://example.org/vocab#p1> _:c14n4 .+_:c14n4 <http://example.org/vocab#p1> _:c14n5 .diff --git a/tests/w3c-rdfc10/rdfc10/test043-in.nq b/tests/w3c-rdfc10/rdfc10/test043-in.nqnew file mode 100644index 00000000..09d5dc2e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test043-in.nq@@ -0,0 +1 @@+<http://example.org/test> <http://example.org/vocab#test> "test"@en .diff --git a/tests/w3c-rdfc10/rdfc10/test043-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test043-rdfc10.nqnew file mode 100644index 00000000..09d5dc2e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test043-rdfc10.nq@@ -0,0 +1 @@+<http://example.org/test> <http://example.org/vocab#test> "test"@en .diff --git a/tests/w3c-rdfc10/rdfc10/test044-in.nq b/tests/w3c-rdfc10/rdfc10/test044-in.nqnew file mode 100644index 00000000..c240b2e9--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test044-in.nq@@ -0,0 +1,36 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e0 <http://example.org/vocab#p> _:e2 .+_:e0 <http://example.org/vocab#p> _:e3 .+_:e1 <http://example.org/vocab#p> _:e0 .+_:e1 <http://example.org/vocab#p> _:e3 .+_:e1 <http://example.org/vocab#p> _:e4 .+_:e2 <http://example.org/vocab#p> _:e0 .+_:e2 <http://example.org/vocab#p> _:e4 .+_:e2 <http://example.org/vocab#p> _:e5 .+_:e3 <http://example.org/vocab#p> _:e0 .+_:e3 <http://example.org/vocab#p> _:e1 .+_:e3 <http://example.org/vocab#p> _:e5 .+_:e4 <http://example.org/vocab#p> _:e1 .+_:e4 <http://example.org/vocab#p> _:e2 .+_:e4 <http://example.org/vocab#p> _:e5 .+_:e5 <http://example.org/vocab#p> _:e3 .+_:e5 <http://example.org/vocab#p> _:e2 .+_:e5 <http://example.org/vocab#p> _:e4 .+_:e6 <http://example.org/vocab#p> _:e7 .+_:e6 <http://example.org/vocab#p> _:e8 .+_:e6 <http://example.org/vocab#p> _:e9 .+_:e7 <http://example.org/vocab#p> _:e6 .+_:e7 <http://example.org/vocab#p> _:e10 .+_:e7 <http://example.org/vocab#p> _:e11 .+_:e8 <http://example.org/vocab#p> _:e6 .+_:e8 <http://example.org/vocab#p> _:e10 .+_:e8 <http://example.org/vocab#p> _:e11 .+_:e9 <http://example.org/vocab#p> _:e6 .+_:e9 <http://example.org/vocab#p> _:e10 .+_:e9 <http://example.org/vocab#p> _:e11 .+_:e10 <http://example.org/vocab#p> _:e7 .+_:e10 <http://example.org/vocab#p> _:e8 .+_:e10 <http://example.org/vocab#p> _:e9 .+_:e11 <http://example.org/vocab#p> _:e7 .+_:e11 <http://example.org/vocab#p> _:e8 .+_:e11 <http://example.org/vocab#p> _:e9 .diff --git a/tests/w3c-rdfc10/rdfc10/test044-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test044-rdfc10.nqnew file mode 100644index 00000000..07ba4ca5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test044-rdfc10.nq@@ -0,0 +1,36 @@+_:c14n0 <http://example.org/vocab#p> _:c14n1 .+_:c14n0 <http://example.org/vocab#p> _:c14n2 .+_:c14n0 <http://example.org/vocab#p> _:c14n3 .+_:c14n1 <http://example.org/vocab#p> _:c14n0 .+_:c14n1 <http://example.org/vocab#p> _:c14n4 .+_:c14n1 <http://example.org/vocab#p> _:c14n5 .+_:c14n10 <http://example.org/vocab#p> _:c14n7 .+_:c14n10 <http://example.org/vocab#p> _:c14n8 .+_:c14n10 <http://example.org/vocab#p> _:c14n9 .+_:c14n11 <http://example.org/vocab#p> _:c14n7 .+_:c14n11 <http://example.org/vocab#p> _:c14n8 .+_:c14n11 <http://example.org/vocab#p> _:c14n9 .+_:c14n2 <http://example.org/vocab#p> _:c14n0 .+_:c14n2 <http://example.org/vocab#p> _:c14n3 .+_:c14n2 <http://example.org/vocab#p> _:c14n5 .+_:c14n3 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n3 <http://example.org/vocab#p> _:c14n4 .+_:c14n4 <http://example.org/vocab#p> _:c14n1 .+_:c14n4 <http://example.org/vocab#p> _:c14n3 .+_:c14n4 <http://example.org/vocab#p> _:c14n5 .+_:c14n5 <http://example.org/vocab#p> _:c14n1 .+_:c14n5 <http://example.org/vocab#p> _:c14n2 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .+_:c14n6 <http://example.org/vocab#p> _:c14n7 .+_:c14n6 <http://example.org/vocab#p> _:c14n8 .+_:c14n6 <http://example.org/vocab#p> _:c14n9 .+_:c14n7 <http://example.org/vocab#p> _:c14n10 .+_:c14n7 <http://example.org/vocab#p> _:c14n11 .+_:c14n7 <http://example.org/vocab#p> _:c14n6 .+_:c14n8 <http://example.org/vocab#p> _:c14n10 .+_:c14n8 <http://example.org/vocab#p> _:c14n11 .+_:c14n8 <http://example.org/vocab#p> _:c14n6 .+_:c14n9 <http://example.org/vocab#p> _:c14n10 .+_:c14n9 <http://example.org/vocab#p> _:c14n11 .+_:c14n9 <http://example.org/vocab#p> _:c14n6 .diff --git a/tests/w3c-rdfc10/rdfc10/test045-in.nq b/tests/w3c-rdfc10/rdfc10/test045-in.nqnew file mode 100644index 00000000..e3d3cbbf--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test045-in.nq@@ -0,0 +1,36 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e0 <http://example.org/vocab#p> _:e2 .+_:e0 <http://example.org/vocab#p> _:e3 .+_:e1 <http://example.org/vocab#p> _:e0 .+_:e1 <http://example.org/vocab#p> _:e4 .+_:e1 <http://example.org/vocab#p> _:e5 .+_:e2 <http://example.org/vocab#p> _:e0 .+_:e2 <http://example.org/vocab#p> _:e4 .+_:e2 <http://example.org/vocab#p> _:e5 .+_:e3 <http://example.org/vocab#p> _:e0 .+_:e3 <http://example.org/vocab#p> _:e4 .+_:e3 <http://example.org/vocab#p> _:e5 .+_:e4 <http://example.org/vocab#p> _:e1 .+_:e4 <http://example.org/vocab#p> _:e2 .+_:e4 <http://example.org/vocab#p> _:e3 .+_:e5 <http://example.org/vocab#p> _:e1 .+_:e5 <http://example.org/vocab#p> _:e2 .+_:e5 <http://example.org/vocab#p> _:e3 .+_:e6 <http://example.org/vocab#p> _:e7 .+_:e6 <http://example.org/vocab#p> _:e8 .+_:e6 <http://example.org/vocab#p> _:e9 .+_:e7 <http://example.org/vocab#p> _:e6 .+_:e7 <http://example.org/vocab#p> _:e9 .+_:e7 <http://example.org/vocab#p> _:e10 .+_:e8 <http://example.org/vocab#p> _:e6 .+_:e8 <http://example.org/vocab#p> _:e10 .+_:e8 <http://example.org/vocab#p> _:e11 .+_:e9 <http://example.org/vocab#p> _:e6 .+_:e9 <http://example.org/vocab#p> _:e7 .+_:e9 <http://example.org/vocab#p> _:e11 .+_:e10 <http://example.org/vocab#p> _:e7 .+_:e10 <http://example.org/vocab#p> _:e8 .+_:e10 <http://example.org/vocab#p> _:e11 .+_:e11 <http://example.org/vocab#p> _:e9 .+_:e11 <http://example.org/vocab#p> _:e8 .+_:e11 <http://example.org/vocab#p> _:e10 .diff --git a/tests/w3c-rdfc10/rdfc10/test045-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test045-rdfc10.nqnew file mode 100644index 00000000..07ba4ca5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test045-rdfc10.nq@@ -0,0 +1,36 @@+_:c14n0 <http://example.org/vocab#p> _:c14n1 .+_:c14n0 <http://example.org/vocab#p> _:c14n2 .+_:c14n0 <http://example.org/vocab#p> _:c14n3 .+_:c14n1 <http://example.org/vocab#p> _:c14n0 .+_:c14n1 <http://example.org/vocab#p> _:c14n4 .+_:c14n1 <http://example.org/vocab#p> _:c14n5 .+_:c14n10 <http://example.org/vocab#p> _:c14n7 .+_:c14n10 <http://example.org/vocab#p> _:c14n8 .+_:c14n10 <http://example.org/vocab#p> _:c14n9 .+_:c14n11 <http://example.org/vocab#p> _:c14n7 .+_:c14n11 <http://example.org/vocab#p> _:c14n8 .+_:c14n11 <http://example.org/vocab#p> _:c14n9 .+_:c14n2 <http://example.org/vocab#p> _:c14n0 .+_:c14n2 <http://example.org/vocab#p> _:c14n3 .+_:c14n2 <http://example.org/vocab#p> _:c14n5 .+_:c14n3 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n3 <http://example.org/vocab#p> _:c14n4 .+_:c14n4 <http://example.org/vocab#p> _:c14n1 .+_:c14n4 <http://example.org/vocab#p> _:c14n3 .+_:c14n4 <http://example.org/vocab#p> _:c14n5 .+_:c14n5 <http://example.org/vocab#p> _:c14n1 .+_:c14n5 <http://example.org/vocab#p> _:c14n2 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .+_:c14n6 <http://example.org/vocab#p> _:c14n7 .+_:c14n6 <http://example.org/vocab#p> _:c14n8 .+_:c14n6 <http://example.org/vocab#p> _:c14n9 .+_:c14n7 <http://example.org/vocab#p> _:c14n10 .+_:c14n7 <http://example.org/vocab#p> _:c14n11 .+_:c14n7 <http://example.org/vocab#p> _:c14n6 .+_:c14n8 <http://example.org/vocab#p> _:c14n10 .+_:c14n8 <http://example.org/vocab#p> _:c14n11 .+_:c14n8 <http://example.org/vocab#p> _:c14n6 .+_:c14n9 <http://example.org/vocab#p> _:c14n10 .+_:c14n9 <http://example.org/vocab#p> _:c14n11 .+_:c14n9 <http://example.org/vocab#p> _:c14n6 .diff --git a/tests/w3c-rdfc10/rdfc10/test046-in.nq b/tests/w3c-rdfc10/rdfc10/test046-in.nqnew file mode 100644index 00000000..a880e744--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test046-in.nq@@ -0,0 +1,36 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e0 <http://example.org/vocab#p> _:e2 .+_:e0 <http://example.org/vocab#p> _:e3 .+_:e1 <http://example.org/vocab#p> _:e0 .+_:e1 <http://example.org/vocab#p> _:e9 .+_:e1 <http://example.org/vocab#p> _:e8 .+_:e2 <http://example.org/vocab#p> _:e3 .+_:e2 <http://example.org/vocab#p> _:e8 .+_:e2 <http://example.org/vocab#p> _:e0 .+_:e3 <http://example.org/vocab#p> _:e0 .+_:e3 <http://example.org/vocab#p> _:e2 .+_:e3 <http://example.org/vocab#p> _:e9 .+_:e4 <http://example.org/vocab#p> _:e5 .+_:e4 <http://example.org/vocab#p> _:e6 .+_:e4 <http://example.org/vocab#p> _:e7 .+_:e5 <http://example.org/vocab#p> _:e10 .+_:e5 <http://example.org/vocab#p> _:e4 .+_:e5 <http://example.org/vocab#p> _:e11 .+_:e6 <http://example.org/vocab#p> _:e4 .+_:e6 <http://example.org/vocab#p> _:e11 .+_:e6 <http://example.org/vocab#p> _:e10 .+_:e7 <http://example.org/vocab#p> _:e10 .+_:e7 <http://example.org/vocab#p> _:e11 .+_:e7 <http://example.org/vocab#p> _:e4 .+_:e8 <http://example.org/vocab#p> _:e1 .+_:e8 <http://example.org/vocab#p> _:e2 .+_:e8 <http://example.org/vocab#p> _:e9 .+_:e9 <http://example.org/vocab#p> _:e8 .+_:e9 <http://example.org/vocab#p> _:e3 .+_:e9 <http://example.org/vocab#p> _:e1 .+_:e10 <http://example.org/vocab#p> _:e6 .+_:e10 <http://example.org/vocab#p> _:e7 .+_:e10 <http://example.org/vocab#p> _:e5 .+_:e11 <http://example.org/vocab#p> _:e5 .+_:e11 <http://example.org/vocab#p> _:e6 .+_:e11 <http://example.org/vocab#p> _:e7 .diff --git a/tests/w3c-rdfc10/rdfc10/test046-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test046-rdfc10.nqnew file mode 100644index 00000000..07ba4ca5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test046-rdfc10.nq@@ -0,0 +1,36 @@+_:c14n0 <http://example.org/vocab#p> _:c14n1 .+_:c14n0 <http://example.org/vocab#p> _:c14n2 .+_:c14n0 <http://example.org/vocab#p> _:c14n3 .+_:c14n1 <http://example.org/vocab#p> _:c14n0 .+_:c14n1 <http://example.org/vocab#p> _:c14n4 .+_:c14n1 <http://example.org/vocab#p> _:c14n5 .+_:c14n10 <http://example.org/vocab#p> _:c14n7 .+_:c14n10 <http://example.org/vocab#p> _:c14n8 .+_:c14n10 <http://example.org/vocab#p> _:c14n9 .+_:c14n11 <http://example.org/vocab#p> _:c14n7 .+_:c14n11 <http://example.org/vocab#p> _:c14n8 .+_:c14n11 <http://example.org/vocab#p> _:c14n9 .+_:c14n2 <http://example.org/vocab#p> _:c14n0 .+_:c14n2 <http://example.org/vocab#p> _:c14n3 .+_:c14n2 <http://example.org/vocab#p> _:c14n5 .+_:c14n3 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n3 <http://example.org/vocab#p> _:c14n4 .+_:c14n4 <http://example.org/vocab#p> _:c14n1 .+_:c14n4 <http://example.org/vocab#p> _:c14n3 .+_:c14n4 <http://example.org/vocab#p> _:c14n5 .+_:c14n5 <http://example.org/vocab#p> _:c14n1 .+_:c14n5 <http://example.org/vocab#p> _:c14n2 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .+_:c14n6 <http://example.org/vocab#p> _:c14n7 .+_:c14n6 <http://example.org/vocab#p> _:c14n8 .+_:c14n6 <http://example.org/vocab#p> _:c14n9 .+_:c14n7 <http://example.org/vocab#p> _:c14n10 .+_:c14n7 <http://example.org/vocab#p> _:c14n11 .+_:c14n7 <http://example.org/vocab#p> _:c14n6 .+_:c14n8 <http://example.org/vocab#p> _:c14n10 .+_:c14n8 <http://example.org/vocab#p> _:c14n11 .+_:c14n8 <http://example.org/vocab#p> _:c14n6 .+_:c14n9 <http://example.org/vocab#p> _:c14n10 .+_:c14n9 <http://example.org/vocab#p> _:c14n11 .+_:c14n9 <http://example.org/vocab#p> _:c14n6 .diff --git a/tests/w3c-rdfc10/rdfc10/test047-in.nq b/tests/w3c-rdfc10/rdfc10/test047-in.nqnew file mode 100644index 00000000..32f2e9f5--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test047-in.nq@@ -0,0 +1,8 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e1 <http://example.org/vocab#p> _:e2 .+_:e2 <http://example.org/vocab#z> "foo1" .+_:e2 <http://example.org/vocab#z> "foo2" .+_:e3 <http://example.org/vocab#p> _:e4 .+_:e4 <http://example.org/vocab#p> _:e5 .+_:e5 <http://example.org/vocab#z> "bar1" .+_:e5 <http://example.org/vocab#z> "bar2" .diff --git a/tests/w3c-rdfc10/rdfc10/test047-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test047-rdfc10.nqnew file mode 100644index 00000000..1d345e5a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test047-rdfc10.nq@@ -0,0 +1,8 @@+_:c14n0 <http://example.org/vocab#z> "bar1" .+_:c14n0 <http://example.org/vocab#z> "bar2" .+_:c14n1 <http://example.org/vocab#z> "foo1" .+_:c14n1 <http://example.org/vocab#z> "foo2" .+_:c14n2 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n4 <http://example.org/vocab#p> _:c14n1 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .diff --git a/tests/w3c-rdfc10/rdfc10/test047-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test047-rdfc10map.jsonnew file mode 100644index 00000000..b80af94b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test047-rdfc10map.json@@ -0,0 +1,8 @@+{+ "e5": "c14n0",+ "e2": "c14n1",+ "e4": "c14n2",+ "e3": "c14n3",+ "e1": "c14n4",+ "e0": "c14n5"+}diff --git a/tests/w3c-rdfc10/rdfc10/test048-in.nq b/tests/w3c-rdfc10/rdfc10/test048-in.nqnew file mode 100644index 00000000..4e3ba06c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test048-in.nq@@ -0,0 +1,8 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e1 <http://example.org/vocab#p> _:e2 .+_:e2 <http://example.org/vocab#z> "bar1" .+_:e2 <http://example.org/vocab#z> "bar2" .+_:e3 <http://example.org/vocab#p> _:e4 .+_:e4 <http://example.org/vocab#p> _:e5 .+_:e5 <http://example.org/vocab#z> "foo1" .+_:e5 <http://example.org/vocab#z> "foo2" .diff --git a/tests/w3c-rdfc10/rdfc10/test048-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test048-rdfc10.nqnew file mode 100644index 00000000..1d345e5a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test048-rdfc10.nq@@ -0,0 +1,8 @@+_:c14n0 <http://example.org/vocab#z> "bar1" .+_:c14n0 <http://example.org/vocab#z> "bar2" .+_:c14n1 <http://example.org/vocab#z> "foo1" .+_:c14n1 <http://example.org/vocab#z> "foo2" .+_:c14n2 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n4 <http://example.org/vocab#p> _:c14n1 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .diff --git a/tests/w3c-rdfc10/rdfc10/test048-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test048-rdfc10map.jsonnew file mode 100644index 00000000..f572900c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test048-rdfc10map.json@@ -0,0 +1,8 @@+{+ "e2": "c14n0",+ "e5": "c14n1",+ "e1": "c14n2",+ "e0": "c14n3",+ "e4": "c14n4",+ "e3": "c14n5"+}diff --git a/tests/w3c-rdfc10/rdfc10/test053-in.nq b/tests/w3c-rdfc10/rdfc10/test053-in.nqnew file mode 100644index 00000000..00eb2f03--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test053-in.nq@@ -0,0 +1,14 @@+_:e1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1" .+_:e1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:e2 .+_:e2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2" .+_:e2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:e3 .+_:e3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "3" .+_:e3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .+_:e0 <http://example.org/test#property1> _:e1 .+_:e4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "4" .+_:e4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:e5 .+_:e5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "5" .+_:e5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:e6 .+_:e6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "6" .+_:e6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .+_:e0 <http://example.org/test#property2> _:e4 .diff --git a/tests/w3c-rdfc10/rdfc10/test053-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test053-rdfc10.nqnew file mode 100644index 00000000..a44660ad--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test053-rdfc10.nq@@ -0,0 +1,14 @@+_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "3" .+_:c14n0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .+_:c14n1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "6" .+_:c14n1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .+_:c14n2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1" .+_:c14n2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:c14n5 .+_:c14n3 <http://example.org/test#property1> _:c14n2 .+_:c14n3 <http://example.org/test#property2> _:c14n6 .+_:c14n4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "5" .+_:c14n4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:c14n1 .+_:c14n5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2" .+_:c14n5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:c14n0 .+_:c14n6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "4" .+_:c14n6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:c14n4 .diff --git a/tests/w3c-rdfc10/rdfc10/test053-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test053-rdfc10map.jsonnew file mode 100644index 00000000..c898b41f--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test053-rdfc10map.json@@ -0,0 +1,9 @@+{+ "e3": "c14n0",+ "e6": "c14n1",+ "e1": "c14n2",+ "e0": "c14n3",+ "e5": "c14n4",+ "e2": "c14n5",+ "e4": "c14n6"+}diff --git a/tests/w3c-rdfc10/rdfc10/test054-in.nq b/tests/w3c-rdfc10/rdfc10/test054-in.nqnew file mode 100644index 00000000..713e2d97--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test054-in.nq@@ -0,0 +1,15 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e1 <http://example.org/vocab#p> _:e2 .+_:e2 <http://example.org/vocab#p> _:e3 .+_:e2 <http://example.org/vocab#p> _:e4 .+_:e3 <http://example.org/vocab#p> _:e5 .+_:e4 <http://example.org/vocab#p> _:e10 .+_:e5 <http://example.org/vocab#p> _:e6 .+_:e6 <http://example.org/vocab#p> _:e7 .+_:e7 <http://example.org/vocab#p> _:e8 .+_:e8 <http://example.org/vocab#p> _:e9 .+_:e10 <http://example.org/vocab#p> _:e11 .+_:e11 <http://example.org/vocab#p> _:e12 .+_:e12 <http://example.org/vocab#p> _:e13 .+_:e13 <http://example.org/vocab#p> _:e14 .+_:e14 <http://example.org/vocab#p> _:e15 .diff --git a/tests/w3c-rdfc10/rdfc10/test054-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test054-rdfc10.nqnew file mode 100644index 00000000..0c34b2f1--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test054-rdfc10.nq@@ -0,0 +1,15 @@+_:c14n0 <http://example.org/vocab#p> _:c14n14 .+_:c14n0 <http://example.org/vocab#p> _:c14n7 .+_:c14n1 <http://example.org/vocab#p> _:c14n15 .+_:c14n10 <http://example.org/vocab#p> _:c14n9 .+_:c14n11 <http://example.org/vocab#p> _:c14n10 .+_:c14n12 <http://example.org/vocab#p> _:c14n11 .+_:c14n13 <http://example.org/vocab#p> _:c14n12 .+_:c14n14 <http://example.org/vocab#p> _:c14n13 .+_:c14n15 <http://example.org/vocab#p> _:c14n0 .+_:c14n3 <http://example.org/vocab#p> _:c14n2 .+_:c14n4 <http://example.org/vocab#p> _:c14n3 .+_:c14n5 <http://example.org/vocab#p> _:c14n4 .+_:c14n6 <http://example.org/vocab#p> _:c14n5 .+_:c14n7 <http://example.org/vocab#p> _:c14n6 .+_:c14n9 <http://example.org/vocab#p> _:c14n8 .diff --git a/tests/w3c-rdfc10/rdfc10/test055-in.nq b/tests/w3c-rdfc10/rdfc10/test055-in.nqnew file mode 100644index 00000000..98801229--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test055-in.nq@@ -0,0 +1,3 @@+_:e0 <http://example.org/vocab#p> _:e1 .+_:e0 <http://example.org/vocab#p> <http://example.com> .+_:e1 <http://example.org/vocab#p> <http://example.org> .diff --git a/tests/w3c-rdfc10/rdfc10/test055-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test055-rdfc10.nqnew file mode 100644index 00000000..000d870c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test055-rdfc10.nq@@ -0,0 +1,3 @@+_:c14n0 <http://example.org/vocab#p> <http://example.com> .+_:c14n0 <http://example.org/vocab#p> _:c14n1 .+_:c14n1 <http://example.org/vocab#p> <http://example.org> .diff --git a/tests/w3c-rdfc10/rdfc10/test055-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test055-rdfc10map.jsonnew file mode 100644index 00000000..955ed5db--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test055-rdfc10map.json@@ -0,0 +1,4 @@+{+ "e0": "c14n0",+ "e1": "c14n1"+}diff --git a/tests/w3c-rdfc10/rdfc10/test056-in.nq b/tests/w3c-rdfc10/rdfc10/test056-in.nqnew file mode 100644index 00000000..2e3536b7--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test056-in.nq@@ -0,0 +1,3 @@+_:e0 <http://example.org/vocab#p> <http://example.org> .+_:e1 <http://example.org/vocab#p> _:e0 .+_:e1 <http://example.org/vocab#p> <http://example.com> .diff --git a/tests/w3c-rdfc10/rdfc10/test056-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test056-rdfc10.nqnew file mode 100644index 00000000..000d870c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test056-rdfc10.nq@@ -0,0 +1,3 @@+_:c14n0 <http://example.org/vocab#p> <http://example.com> .+_:c14n0 <http://example.org/vocab#p> _:c14n1 .+_:c14n1 <http://example.org/vocab#p> <http://example.org> .diff --git a/tests/w3c-rdfc10/rdfc10/test056-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test056-rdfc10map.jsonnew file mode 100644index 00000000..71dec7b2--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test056-rdfc10map.json@@ -0,0 +1,4 @@+{+ "e1": "c14n0",+ "e0": "c14n1"+}diff --git a/tests/w3c-rdfc10/rdfc10/test057-in.nq b/tests/w3c-rdfc10/rdfc10/test057-in.nqnew file mode 100644index 00000000..2cca02ba--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test057-in.nq@@ -0,0 +1,2 @@+_:b1 <http://xmlns.com/foaf/0.1/homepage> <http://manu.sporny.org/> _:g .+_:b1 <http://xmlns.com/foaf/0.1/name> "Manu Sporny" _:g .diff --git a/tests/w3c-rdfc10/rdfc10/test057-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test057-rdfc10.nqnew file mode 100644index 00000000..460da845--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test057-rdfc10.nq@@ -0,0 +1,2 @@+_:c14n1 <http://xmlns.com/foaf/0.1/homepage> <http://manu.sporny.org/> _:c14n0 .+_:c14n1 <http://xmlns.com/foaf/0.1/name> "Manu Sporny" _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test057-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test057-rdfc10map.jsonnew file mode 100644index 00000000..5a8adf85--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test057-rdfc10map.json@@ -0,0 +1,4 @@+{+ "g": "c14n0",+ "b1": "c14n1"+}diff --git a/tests/w3c-rdfc10/rdfc10/test058-in.nq b/tests/w3c-rdfc10/rdfc10/test058-in.nqnew file mode 100644index 00000000..13ed86c8--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test058-in.nq@@ -0,0 +1,2 @@+<https://example.com/1> <https://example.com/2> _:e0 _:e3 .+<https://example.com/1> <https://example.com/2> _:e1 _:e3 .diff --git a/tests/w3c-rdfc10/rdfc10/test058-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test058-rdfc10.nqnew file mode 100644index 00000000..962d8bdf--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test058-rdfc10.nq@@ -0,0 +1,2 @@+<https://example.com/1> <https://example.com/2> _:c14n1 _:c14n0 .+<https://example.com/1> <https://example.com/2> _:c14n2 _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test059-in.nq b/tests/w3c-rdfc10/rdfc10/test059-in.nqnew file mode 100644index 00000000..1227012e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test059-in.nq@@ -0,0 +1,8 @@+<urn:ex:s> <urn:ex:p> <urn:ex:o> <urn:ex:g> .+_:s0 <urn:ex:p> _:o0 _:g0 .+_:s1 <urn:ex:p> _:o1 _:g1 .+_:s2 <urn:ex:p> _:o2 _:g2 .+_:s3 <urn:ex:p> _:o3 _:g3 .+_:s4 <urn:ex:p> _:o4 _:g4 .+_:s5 <urn:ex:p> _:o5 _:g5 .+_:s6 <urn:ex:p> <urn:ex:o> <urn:ex:g> .diff --git a/tests/w3c-rdfc10/rdfc10/test059-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test059-rdfc10.nqnew file mode 100644index 00000000..81ae867c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test059-rdfc10.nq@@ -0,0 +1,8 @@+<urn:ex:s> <urn:ex:p> <urn:ex:o> <urn:ex:g> .+_:c14n0 <urn:ex:p> <urn:ex:o> <urn:ex:g> .+_:c14n1 <urn:ex:p> _:c14n3 _:c14n2 .+_:c14n10 <urn:ex:p> _:c14n12 _:c14n11 .+_:c14n13 <urn:ex:p> _:c14n15 _:c14n14 .+_:c14n16 <urn:ex:p> _:c14n18 _:c14n17 .+_:c14n4 <urn:ex:p> _:c14n6 _:c14n5 .+_:c14n7 <urn:ex:p> _:c14n9 _:c14n8 .diff --git a/tests/w3c-rdfc10/rdfc10/test060-in.nq b/tests/w3c-rdfc10/rdfc10/test060-in.nqnew file mode 100644index 00000000..4eb9a2b4--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test060-in.nq@@ -0,0 +1,43 @@+<urn:ex:s:000:s\u20701> <urn:ex:000:p\u2070> <urn:ex:000:o\u2070> <urn:ex:000:g\u2070> .+<urn:ex:s:000:s⁰2> <urn:ex:000:p⁰> <urn:ex:000:o⁰> <urn:ex:000:g⁰> .+<urn:ex:s:001> <urn:ex:000:empty> "" .+<urn:ex:s:001> <urn:ex:001:simple> "simple" .+<urn:ex:s:001> <urn:ex:002:quote> "\"" .+<urn:ex:s:001> <urn:ex:003:backslash> "\\" .+<urn:ex:s:001> <urn:ex:004:nl> "\n" .+<urn:ex:s:001> <urn:ex:005:cr> "\r" .+<urn:ex:s:001> <urn:ex:006:all> "\"\\\n\r" .+<urn:ex:s:001> <urn:ex:007:uchar> "\u0022\u005c" .+<urn:ex:s:001> <urn:ex:008:echar> "\t\b\n\r\f\"\'\\" .+<urn:ex:s:001> <urn:ex:009> "\\u0039" .+<urn:ex:s:001> <urn:ex:010> "\\n" .+<urn:ex:s:001> <urn:ex:011> "\\\\" .+<urn:ex:s:001> <urn:ex:012> "\"\"" .+<urn:ex:s:001> <urn:ex:013> "\\\\\\" .+<urn:ex:s:001> <urn:ex:014> "\"\"\"" .+<urn:ex:s:001> <urn:ex:015> "\u221e" .+<urn:ex:s:001> <urn:ex:016> "∞" .+<urn:ex:s:001> <urn:ex:017> <urn:ex:\u0065\u0078> .+<urn:ex:s:001> <urn:ex:018> <urn:ex:\u221e> .+<urn:ex:s:001> <urn:ex:019> <urn:ex:\u002b> .+<urn:ex:s:003> <urn:ex:020> <urn:ex:\u00a0> .+<urn:ex:s:003> <urn:ex:021> "\uf600"^^<urn:ex:\u1f43> .+<urn:ex:s:003> <urn:ex:022> "d"^^<urn:ex:\u0064\u0074> .+<urn:ex:s:003> <urn:ex:023> "d"^^<urn:ex:\u0064> .+<urn:ex:s:004> <urn:ex:024> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u0009\u000a\u000b\u000c\u000d\u000e\u000f" .+<urn:ex:s:004> <urn:ex:025> "\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f" .+<urn:ex:s:004> <urn:ex:026> "\u0020\u0021\u0022\u0023\u0024\u0025\u0026\u0027\u0028\u0029\u002a\u002b\u002c\u002d\u002e\u002f" .+<urn:ex:s:004> <urn:ex:027> "\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u003a\u003b\u003c\u003d\u003e\u003f" .+<urn:ex:s:004> <urn:ex:028> "\u0040\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f" .+<urn:ex:s:004> <urn:ex:029> "\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u005b\u005c\u005d\u005e\u005f" .+<urn:ex:s:004> <urn:ex:030> "\u0060\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f" .+<urn:ex:s:004> <urn:ex:031> "\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u007b\u007c\u007d\u007e\u007f" .+<urn:ex:s:004> <urn:ex:032> "\u0080\u0081\u0082\u0083\u0084\u0085\u0086\u0087\u0088\u0089\u008a\u008b\u008c\u008d\u008e\u008f" .+<urn:ex:s:004> <urn:ex:033> "\U0001F303" .+<urn:ex:s:004> <urn:ex:034> "🌃" .+<urn:ex:s:005> <urn:ex:035> <urn:ex:\U0001F303> .+<urn:ex:s:006> <urn:ex:036> "o" <urn:ex:\u221e> .+<urn:ex:s:006> <urn:ex:037> "o" <urn:ex:∞> .+<urn:ex:s:006> <urn:ex:038> "o" <urn:ex:\u221e> .+<urn:ex:s:006> <urn:ex:039> "\u0009\u0020<>\"{}|^`\\" .+<urn:ex:s:007> <urn:ex:040> "\U00000000\U00000001\U00000002\U00000003\U00000004\U00000005\U00000006\U00000007\U00000008\U00000009\U0000000a\U0000000b\U0000000c\U0000000d\U0000000e\U0000000f" .diff --git a/tests/w3c-rdfc10/rdfc10/test060-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test060-rdfc10.nqnew file mode 100644index 00000000..fb09bc0d--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test060-rdfc10.nq@@ -0,0 +1,43 @@+<urn:ex:s:000:s⁰1> <urn:ex:000:p⁰> <urn:ex:000:o⁰> <urn:ex:000:g⁰> .+<urn:ex:s:000:s⁰2> <urn:ex:000:p⁰> <urn:ex:000:o⁰> <urn:ex:000:g⁰> .+<urn:ex:s:001> <urn:ex:000:empty> "" .+<urn:ex:s:001> <urn:ex:001:simple> "simple" .+<urn:ex:s:001> <urn:ex:002:quote> "\"" .+<urn:ex:s:001> <urn:ex:003:backslash> "\\" .+<urn:ex:s:001> <urn:ex:004:nl> "\n" .+<urn:ex:s:001> <urn:ex:005:cr> "\r" .+<urn:ex:s:001> <urn:ex:006:all> "\"\\\n\r" .+<urn:ex:s:001> <urn:ex:007:uchar> "\"\\" .+<urn:ex:s:001> <urn:ex:008:echar> "\t\b\n\r\f\"'\\" .+<urn:ex:s:001> <urn:ex:009> "\\u0039" .+<urn:ex:s:001> <urn:ex:010> "\\n" .+<urn:ex:s:001> <urn:ex:011> "\\\\" .+<urn:ex:s:001> <urn:ex:012> "\"\"" .+<urn:ex:s:001> <urn:ex:013> "\\\\\\" .+<urn:ex:s:001> <urn:ex:014> "\"\"\"" .+<urn:ex:s:001> <urn:ex:015> "∞" .+<urn:ex:s:001> <urn:ex:016> "∞" .+<urn:ex:s:001> <urn:ex:017> <urn:ex:ex> .+<urn:ex:s:001> <urn:ex:018> <urn:ex:∞> .+<urn:ex:s:001> <urn:ex:019> <urn:ex:+> .+<urn:ex:s:003> <urn:ex:020> <urn:ex: > .+<urn:ex:s:003> <urn:ex:021> ""^^<urn:ex:ὃ> .+<urn:ex:s:003> <urn:ex:022> "d"^^<urn:ex:dt> .+<urn:ex:s:003> <urn:ex:023> "d"^^<urn:ex:d> .+<urn:ex:s:004> <urn:ex:024> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000B\f\r\u000E\u000F" .+<urn:ex:s:004> <urn:ex:025> "\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" .+<urn:ex:s:004> <urn:ex:026> " !\"#$%&'()*+,-./" .+<urn:ex:s:004> <urn:ex:027> "0123456789:;<=>?" .+<urn:ex:s:004> <urn:ex:028> "@ABCDEFGHIJKLMNO" .+<urn:ex:s:004> <urn:ex:029> "PQRSTUVWXYZ[\\]^_" .+<urn:ex:s:004> <urn:ex:030> "`abcdefghijklmno" .+<urn:ex:s:004> <urn:ex:031> "pqrstuvwxyz{|}~\u007F" .+<urn:ex:s:004> <urn:ex:032> " " .+<urn:ex:s:004> <urn:ex:033> "🌃" .+<urn:ex:s:004> <urn:ex:034> "🌃" .+<urn:ex:s:005> <urn:ex:035> <urn:ex:🌃> .+<urn:ex:s:006> <urn:ex:036> "o" <urn:ex:∞> .+<urn:ex:s:006> <urn:ex:037> "o" <urn:ex:∞> .+<urn:ex:s:006> <urn:ex:038> "o" <urn:ex:∞> .+<urn:ex:s:006> <urn:ex:039> "\t <>\"{}|^`\\" .+<urn:ex:s:007> <urn:ex:040> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000B\f\r\u000E\u000F" .diff --git a/tests/w3c-rdfc10/rdfc10/test060-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test060-rdfc10map.jsonnew file mode 100644index 00000000..0967ef42--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test060-rdfc10map.json@@ -0,0 +1 @@+{}diff --git a/tests/w3c-rdfc10/rdfc10/test061-in.nq b/tests/w3c-rdfc10/rdfc10/test061-in.nqnew file mode 100644index 00000000..6ac8fd5c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test061-in.nq@@ -0,0 +1,2 @@+<http://example.com> <http://example.com/label> "test"@en .+<http://example.com> <http://example.com/label> "test"@fr .diff --git a/tests/w3c-rdfc10/rdfc10/test061-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test061-rdfc10.nqnew file mode 100644index 00000000..6ac8fd5c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test061-rdfc10.nq@@ -0,0 +1,2 @@+<http://example.com> <http://example.com/label> "test"@en .+<http://example.com> <http://example.com/label> "test"@fr .diff --git a/tests/w3c-rdfc10/rdfc10/test062-in.nq b/tests/w3c-rdfc10/rdfc10/test062-in.nqnew file mode 100644index 00000000..5988604a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test062-in.nq@@ -0,0 +1,2 @@+<http://example.com> <http://example.com/label> "test"^^<http://example.com/t1> .+<http://example.com> <http://example.com/label> "test"^^<http://example.com/t2> .diff --git a/tests/w3c-rdfc10/rdfc10/test062-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test062-rdfc10.nqnew file mode 100644index 00000000..5988604a--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test062-rdfc10.nq@@ -0,0 +1,2 @@+<http://example.com> <http://example.com/label> "test"^^<http://example.com/t1> .+<http://example.com> <http://example.com/label> "test"^^<http://example.com/t2> .diff --git a/tests/w3c-rdfc10/rdfc10/test063-in.nq b/tests/w3c-rdfc10/rdfc10/test063-in.nqnew file mode 100644index 00000000..6ecdfbae--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test063-in.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:b0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:b1 .+_:b0 <http://example.org/vocab#next> _:b2 .+_:b1 <http://example.org/vocab#next> _:b2 .diff --git a/tests/w3c-rdfc10/rdfc10/test063-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test063-rdfc10.nqnew file mode 100644index 00000000..97e8e41c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test063-rdfc10.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:c14n2 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:c14n0 .+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .diff --git a/tests/w3c-rdfc10/rdfc10/test063-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test063-rdfc10map.jsonnew file mode 100644index 00000000..5213a0d6--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test063-rdfc10map.json@@ -0,0 +1,5 @@+{+ "b1": "c14n0",+ "b2": "c14n1",+ "b0": "c14n2"+}diff --git a/tests/w3c-rdfc10/rdfc10/test064-in.nq b/tests/w3c-rdfc10/rdfc10/test064-in.nqnew file mode 100644index 00000000..ad12d25c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test064-in.nq@@ -0,0 +1,6 @@+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test064-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test064-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test064-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test065-in.nq b/tests/w3c-rdfc10/rdfc10/test065-in.nqnew file mode 100644index 00000000..08d774d9--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test065-in.nq@@ -0,0 +1,6 @@+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test065-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test065-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test065-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test066-in.nq b/tests/w3c-rdfc10/rdfc10/test066-in.nqnew file mode 100644index 00000000..2ce38c32--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test066-in.nq@@ -0,0 +1,6 @@+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .diff --git a/tests/w3c-rdfc10/rdfc10/test066-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test066-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test066-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test067-in.nq b/tests/w3c-rdfc10/rdfc10/test067-in.nqnew file mode 100644index 00000000..52e765aa--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test067-in.nq@@ -0,0 +1,6 @@+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test067-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test067-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test067-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test068-in.nq b/tests/w3c-rdfc10/rdfc10/test068-in.nqnew file mode 100644index 00000000..37a19b8c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test068-in.nq@@ -0,0 +1,6 @@+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .diff --git a/tests/w3c-rdfc10/rdfc10/test068-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test068-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test068-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test069-in.nq b/tests/w3c-rdfc10/rdfc10/test069-in.nqnew file mode 100644index 00000000..ce022104--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test069-in.nq@@ -0,0 +1,6 @@+_:e2 <http://example.org/vocab#next> _:e1 .+_:e2 <http://example.org/vocab#prev> _:e0 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e0 <http://example.org/vocab#prev> _:e1 .+_:e1 <http://example.org/vocab#next> _:e0 .+_:e1 <http://example.org/vocab#prev> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test069-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test069-rdfc10.nqnew file mode 100644index 00000000..a5f88784--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test069-rdfc10.nq@@ -0,0 +1,6 @@+_:c14n0 <http://example.org/vocab#next> _:c14n2 .+_:c14n0 <http://example.org/vocab#prev> _:c14n1 .+_:c14n1 <http://example.org/vocab#next> _:c14n0 .+_:c14n1 <http://example.org/vocab#prev> _:c14n2 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#prev> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test070-in.nq b/tests/w3c-rdfc10/rdfc10/test070-in.nqnew file mode 100644index 00000000..a3232c8c--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test070-in.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 .+<http://example.org/test> <http://example.org/vocab#A> _:e1 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#B> _:e1 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#embed> _:e1 <http://example.org/g1> .diff --git a/tests/w3c-rdfc10/rdfc10/test070-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test070-rdfc10.nqnew file mode 100644index 00000000..679ffd43--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test070-rdfc10.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#A> _:c14n1 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n1 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n1 <http://example.org/g1> .diff --git a/tests/w3c-rdfc10/rdfc10/test070-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test070-rdfc10map.jsonnew file mode 100644index 00000000..955ed5db--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test070-rdfc10map.json@@ -0,0 +1,4 @@+{+ "e0": "c14n0",+ "e1": "c14n1"+}diff --git a/tests/w3c-rdfc10/rdfc10/test071-in.nq b/tests/w3c-rdfc10/rdfc10/test071-in.nqnew file mode 100644index 00000000..f32b39d6--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test071-in.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 .+<http://example.org/test> <http://example.org/vocab#A> _:e1 _:g1 .+<http://example.org/test> <http://example.org/vocab#B> _:e1 _:g1 .+<http://example.org/test> <http://example.org/vocab#embed> _:e1 _:g1 .diff --git a/tests/w3c-rdfc10/rdfc10/test071-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test071-rdfc10.nqnew file mode 100644index 00000000..030169d0--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test071-rdfc10.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#A> _:c14n2 _:c14n1 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n2 _:c14n1 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n2 _:c14n1 .diff --git a/tests/w3c-rdfc10/rdfc10/test071-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test071-rdfc10map.jsonnew file mode 100644index 00000000..64e2a33e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test071-rdfc10map.json@@ -0,0 +1,5 @@+{+ "e0": "c14n0",+ "g1": "c14n1",+ "e1": "c14n2"+}diff --git a/tests/w3c-rdfc10/rdfc10/test072-in.nq b/tests/w3c-rdfc10/rdfc10/test072-in.nqnew file mode 100644index 00000000..66811b1f--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test072-in.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 .+<http://example.org/test> <http://example.org/vocab#A> _:e0 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#B> _:e0 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 <http://example.org/g1> .diff --git a/tests/w3c-rdfc10/rdfc10/test072-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test072-rdfc10.nqnew file mode 100644index 00000000..5fbd8d30--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test072-rdfc10.nq@@ -0,0 +1,6 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#A> _:c14n0 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n0 <http://example.org/g1> .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n0 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n0 <http://example.org/g1> .diff --git a/tests/w3c-rdfc10/rdfc10/test072-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test072-rdfc10map.jsonnew file mode 100644index 00000000..6042090b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test072-rdfc10map.json@@ -0,0 +1,3 @@+{+ "e0": "c14n0"+}diff --git a/tests/w3c-rdfc10/rdfc10/test073-in.nq b/tests/w3c-rdfc10/rdfc10/test073-in.nqnew file mode 100644index 00000000..92bb2702--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test073-in.nq@@ -0,0 +1,7 @@+<http://example.org/test> <http://example.org/vocab#A> _:e0 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 .+<http://example.org/test> <http://example.org/vocab#graph> _:g1 .+<http://example.org/test> <http://example.org/vocab#A> _:e0 _:g1 .+<http://example.org/test> <http://example.org/vocab#B> _:e0 _:g1 .+<http://example.org/test> <http://example.org/vocab#embed> _:e0 _:g1 .diff --git a/tests/w3c-rdfc10/rdfc10/test073-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test073-rdfc10.nqnew file mode 100644index 00000000..0c917e3e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test073-rdfc10.nq@@ -0,0 +1,7 @@+<http://example.org/test> <http://example.org/vocab#A> _:c14n1 .+<http://example.org/test> <http://example.org/vocab#A> _:c14n1 _:c14n0 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n1 .+<http://example.org/test> <http://example.org/vocab#B> _:c14n1 _:c14n0 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n1 .+<http://example.org/test> <http://example.org/vocab#embed> _:c14n1 _:c14n0 .+<http://example.org/test> <http://example.org/vocab#graph> _:c14n0 .diff --git a/tests/w3c-rdfc10/rdfc10/test073-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test073-rdfc10map.jsonnew file mode 100644index 00000000..9ceff89e--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test073-rdfc10map.json@@ -0,0 +1,4 @@+{+ "g1": "c14n0",+ "e0": "c14n1"+}\ No newline at end of filediff --git a/tests/w3c-rdfc10/rdfc10/test074-in.nq b/tests/w3c-rdfc10/rdfc10/test074-in.nqnew file mode 100644index 00000000..f3e452eb--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test074-in.nq@@ -0,0 +1,100 @@+_:e0 <http:/example.com/p> _:e0 .+_:e0 <http:/example.com/p> _:e1 .+_:e0 <http:/example.com/p> _:e2 .+_:e0 <http:/example.com/p> _:e3 .+_:e0 <http:/example.com/p> _:e4 .+_:e0 <http:/example.com/p> _:e5 .+_:e0 <http:/example.com/p> _:e6 .+_:e0 <http:/example.com/p> _:e7 .+_:e0 <http:/example.com/p> _:e8 .+_:e0 <http:/example.com/p> _:e9 .+_:e1 <http:/example.com/p> _:e0 .+_:e1 <http:/example.com/p> _:e1 .+_:e1 <http:/example.com/p> _:e2 .+_:e1 <http:/example.com/p> _:e3 .+_:e1 <http:/example.com/p> _:e4 .+_:e1 <http:/example.com/p> _:e5 .+_:e1 <http:/example.com/p> _:e6 .+_:e1 <http:/example.com/p> _:e7 .+_:e1 <http:/example.com/p> _:e8 .+_:e1 <http:/example.com/p> _:e9 .+_:e2 <http:/example.com/p> _:e0 .+_:e2 <http:/example.com/p> _:e1 .+_:e2 <http:/example.com/p> _:e2 .+_:e2 <http:/example.com/p> _:e3 .+_:e2 <http:/example.com/p> _:e4 .+_:e2 <http:/example.com/p> _:e5 .+_:e2 <http:/example.com/p> _:e6 .+_:e2 <http:/example.com/p> _:e7 .+_:e2 <http:/example.com/p> _:e8 .+_:e2 <http:/example.com/p> _:e9 .+_:e3 <http:/example.com/p> _:e0 .+_:e3 <http:/example.com/p> _:e1 .+_:e3 <http:/example.com/p> _:e2 .+_:e3 <http:/example.com/p> _:e3 .+_:e3 <http:/example.com/p> _:e4 .+_:e3 <http:/example.com/p> _:e5 .+_:e3 <http:/example.com/p> _:e6 .+_:e3 <http:/example.com/p> _:e7 .+_:e3 <http:/example.com/p> _:e8 .+_:e3 <http:/example.com/p> _:e9 .+_:e4 <http:/example.com/p> _:e0 .+_:e4 <http:/example.com/p> _:e1 .+_:e4 <http:/example.com/p> _:e2 .+_:e4 <http:/example.com/p> _:e3 .+_:e4 <http:/example.com/p> _:e4 .+_:e4 <http:/example.com/p> _:e5 .+_:e4 <http:/example.com/p> _:e6 .+_:e4 <http:/example.com/p> _:e7 .+_:e4 <http:/example.com/p> _:e8 .+_:e4 <http:/example.com/p> _:e9 .+_:e5 <http:/example.com/p> _:e0 .+_:e5 <http:/example.com/p> _:e1 .+_:e5 <http:/example.com/p> _:e2 .+_:e5 <http:/example.com/p> _:e3 .+_:e5 <http:/example.com/p> _:e4 .+_:e5 <http:/example.com/p> _:e5 .+_:e5 <http:/example.com/p> _:e6 .+_:e5 <http:/example.com/p> _:e7 .+_:e5 <http:/example.com/p> _:e8 .+_:e5 <http:/example.com/p> _:e9 .+_:e6 <http:/example.com/p> _:e0 .+_:e6 <http:/example.com/p> _:e1 .+_:e6 <http:/example.com/p> _:e2 .+_:e6 <http:/example.com/p> _:e3 .+_:e6 <http:/example.com/p> _:e4 .+_:e6 <http:/example.com/p> _:e5 .+_:e6 <http:/example.com/p> _:e6 .+_:e6 <http:/example.com/p> _:e7 .+_:e6 <http:/example.com/p> _:e8 .+_:e6 <http:/example.com/p> _:e9 .+_:e7 <http:/example.com/p> _:e0 .+_:e7 <http:/example.com/p> _:e1 .+_:e7 <http:/example.com/p> _:e2 .+_:e7 <http:/example.com/p> _:e3 .+_:e7 <http:/example.com/p> _:e4 .+_:e7 <http:/example.com/p> _:e5 .+_:e7 <http:/example.com/p> _:e6 .+_:e7 <http:/example.com/p> _:e7 .+_:e7 <http:/example.com/p> _:e8 .+_:e7 <http:/example.com/p> _:e9 .+_:e8 <http:/example.com/p> _:e0 .+_:e8 <http:/example.com/p> _:e1 .+_:e8 <http:/example.com/p> _:e2 .+_:e8 <http:/example.com/p> _:e3 .+_:e8 <http:/example.com/p> _:e4 .+_:e8 <http:/example.com/p> _:e5 .+_:e8 <http:/example.com/p> _:e6 .+_:e8 <http:/example.com/p> _:e7 .+_:e8 <http:/example.com/p> _:e8 .+_:e8 <http:/example.com/p> _:e9 .+_:e9 <http:/example.com/p> _:e0 .+_:e9 <http:/example.com/p> _:e1 .+_:e9 <http:/example.com/p> _:e2 .+_:e9 <http:/example.com/p> _:e3 .+_:e9 <http:/example.com/p> _:e4 .+_:e9 <http:/example.com/p> _:e5 .+_:e9 <http:/example.com/p> _:e6 .+_:e9 <http:/example.com/p> _:e7 .+_:e9 <http:/example.com/p> _:e8 .+_:e9 <http:/example.com/p> _:e9 .diff --git a/tests/w3c-rdfc10/rdfc10/test075-in.nq b/tests/w3c-rdfc10/rdfc10/test075-in.nqnew file mode 100644index 00000000..b7086a76--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test075-in.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:e0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:e1 .+_:e0 <http://example.org/vocab#next> _:e2 .+_:e1 <http://example.org/vocab#next> _:e2 .diff --git a/tests/w3c-rdfc10/rdfc10/test075-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test075-rdfc10.nqnew file mode 100644index 00000000..379ed42b--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test075-rdfc10.nq@@ -0,0 +1,4 @@+<http://example.org/vocab#test> <http://example.org/vocab#A> _:c14n0 .+<http://example.org/vocab#test> <http://example.org/vocab#B> _:c14n2 .+_:c14n0 <http://example.org/vocab#next> _:c14n1 .+_:c14n2 <http://example.org/vocab#next> _:c14n1 .diff --git a/tests/w3c-rdfc10/rdfc10/test075-rdfc10map.json b/tests/w3c-rdfc10/rdfc10/test075-rdfc10map.jsonnew file mode 100644index 00000000..a508c5e1--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test075-rdfc10map.json@@ -0,0 +1,5 @@+{+ "e0": "c14n0",+ "e2": "c14n1",+ "e1": "c14n2"+}diff --git a/tests/w3c-rdfc10/rdfc10/test076-in.nq b/tests/w3c-rdfc10/rdfc10/test076-in.nqnew file mode 100644index 00000000..b2153bdc--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test076-in.nq@@ -0,0 +1,2 @@+<https://www.example.org/s> <https://www.example.org/p> <https://www.example.org/o> .+<https://www.example.org/s> <https://www.example.org/p> <https://www.example.org/o> .diff --git a/tests/w3c-rdfc10/rdfc10/test076-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test076-rdfc10.nqnew file mode 100644index 00000000..947fc958--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test076-rdfc10.nq@@ -0,0 +1 @@+<https://www.example.org/s> <https://www.example.org/p> <https://www.example.org/o> .diff --git a/tests/w3c-rdfc10/rdfc10/test077-in.nq b/tests/w3c-rdfc10/rdfc10/test077-in.nqnew file mode 100644index 00000000..4c196203--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test077-in.nq@@ -0,0 +1,2 @@+<https://www.example.org/s> <https://www.example.org/p> _:o .+<https://www.example.org/s> <https://www.example.org/p> _:o .diff --git a/tests/w3c-rdfc10/rdfc10/test077-rdfc10.nq b/tests/w3c-rdfc10/rdfc10/test077-rdfc10.nqnew file mode 100644index 00000000..c4de6109--- /dev/null+++ b/tests/w3c-rdfc10/rdfc10/test077-rdfc10.nq@@ -0,0 +1 @@+<https://www.example.org/s> <https://www.example.org/p> _:c14n0 .diff --git a/tests/w3c_rdfc10_test.rs b/tests/w3c_rdfc10_test.rsnew file mode 100644index 00000000..663e3a99--- /dev/null+++ b/tests/w3c_rdfc10_test.rs@@ -0,0 +1,204 @@+//! **The W3C RDFC-1.0 suite, run against `open_ontologies::canon`.**+//!+//! A canonicaliser is a trusted component. If it gives two different datasets+//! one address, a content-addressed certificate vouches for an input nobody+//! supplied. This module is written here rather than taken from a crate, for+//! the reasons `src/canon.rs` records, and that choice is only defensible if+//! it is measured against the Recommendation's own tests rather than against+//! its author's understanding of them.+//!+//! The suite is vendored under `tests/w3c-rdfc10/` so the gate runs offline.+//! Three kinds of entry, and all three are run:+//!+//! * `RDFC10EvalTest` canonicalises an input and compares the N-Quads byte+//! for byte.+//! * `RDFC10MapTest` compares the blank-node label MAP, which catches an+//! implementation that produces the right lines under the wrong labels.+//! * `RDFC10NegativeEvalTest` is the poisoned dataset. It must be REFUSED.+//! A canonicaliser with no work budget passes every other test in this+//! suite and hangs on that one.++use oxigraph::io::{RdfFormat, RdfParser};+use oxigraph::model::Quad;+use std::path::{Path, PathBuf};++fn suite() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests").join("w3c-rdfc10")+}++fn parse_nquads(path: &Path) -> Vec<Quad> {+ let bytes = std::fs::read(path).unwrap_or_else(|e| panic!("read {}: {e}", path.display()));+ RdfParser::from_format(RdfFormat::NQuads)+ .for_reader(bytes.as_slice())+ .collect::<Result<Vec<_>, _>>()+ .unwrap_or_else(|e| panic!("parse {}: {e}", path.display()))+}++struct Entry {+ id: String,+ kind: String,+ action: String,+ result: Option<String>,+ /// The suite carries a SHA-384 variant of the diamond test. Reading the+ /// algorithm from the manifest rather than assuming SHA-256 is what makes+ /// that test meaningful instead of a known failure.+ hash: open_ontologies::canon::HashAlgorithm,+}++fn entries() -> Vec<Entry> {+ let raw = std::fs::read_to_string(suite().join("manifest.jsonld")).expect("read manifest");+ let v: serde_json::Value = serde_json::from_str(&raw).expect("manifest is JSON");+ let list = v["entries"].as_array().expect("manifest has entries");+ let out: Vec<Entry> = list+ .iter()+ .map(|e| Entry {+ id: e["id"].as_str().unwrap_or_default().to_string(),+ kind: e["type"].as_str().unwrap_or_default().to_string(),+ action: e["action"].as_str().unwrap_or_default().to_string(),+ result: e["result"].as_str().map(str::to_string),+ hash: match e["hashAlgorithm"].as_str() {+ Some("SHA384") => open_ontologies::canon::HashAlgorithm::Sha384,+ _ => open_ontologies::canon::HashAlgorithm::Sha256,+ },+ })+ .collect();+ assert!(out.len() >= 80, "only {} entries; the suite is not loaded", out.len());+ out+}++#[test]+fn every_eval_test_canonicalises_to_the_expected_nquads() {+ let mut ran = 0;+ let mut failed: Vec<String> = Vec::new();+ for e in entries() {+ if e.kind != "rdfc:RDFC10EvalTest" {+ continue;+ }+ let Some(expected_path) = e.result.as_ref() else { continue };+ let quads = parse_nquads(&suite().join(&e.action));+ let expected = std::fs::read_to_string(suite().join(expected_path))+ .unwrap_or_else(|err| panic!("read {expected_path}: {err}"));+ match open_ontologies::canon::canonical_nquads(&quads, open_ontologies::canon::DEFAULT_CALL_BUDGET, e.hash) {+ Ok(got) if got == expected => ran += 1,+ Ok(got) => {+ ran += 1;+ failed.push(format!(+ "{}: canonical form differs\n expected {} lines\n got {} lines",+ e.id,+ expected.lines().count(),+ got.lines().count()+ ));+ }+ Err(err) => {+ ran += 1;+ failed.push(format!("{}: refused: {err}", e.id));+ }+ }+ }+ assert!(ran >= 60, "only {ran} eval tests ran; the walk is not finding them");+ assert!(+ failed.is_empty(),+ "{} of {ran} RDFC-1.0 eval tests failed:\n {}",+ failed.len(),+ failed.join("\n ")+ );+}++#[test]+fn every_map_test_produces_the_expected_labels() {+ let mut ran = 0;+ let mut failed: Vec<String> = Vec::new();+ for e in entries() {+ if e.kind != "rdfc:RDFC10MapTest" {+ continue;+ }+ let Some(expected_path) = e.result.as_ref() else { continue };+ let quads = parse_nquads(&suite().join(&e.action));+ let raw = std::fs::read_to_string(suite().join(expected_path))+ .unwrap_or_else(|err| panic!("read {expected_path}: {err}"));+ let expected: serde_json::Value = serde_json::from_str(&raw).expect("map is JSON");+ match open_ontologies::canon::canonical_labels(&quads, open_ontologies::canon::DEFAULT_CALL_BUDGET, e.hash) {+ Ok(labels) => {+ ran += 1;+ let obj = expected.as_object().expect("map is an object");+ for (k, v) in obj {+ let want = v.as_str().unwrap_or_default();+ match labels.get(k) {+ Some(got) if got == want => {}+ Some(got) => failed.push(format!("{}: {k} mapped to {got}, expected {want}", e.id)),+ None => failed.push(format!("{}: {k} was not mapped at all", e.id)),+ }+ }+ }+ Err(err) => {+ ran += 1;+ failed.push(format!("{}: refused: {err}", e.id));+ }+ }+ }+ assert!(ran >= 15, "only {ran} map tests ran");+ assert!(failed.is_empty(), "{} label mismatches:\n {}", failed.len(), failed.join("\n "));+}++/// The poisoned dataset. A canonicaliser with no work budget passes every+/// other test here and does not return on this one.+#[test]+fn the_poisoned_dataset_is_refused_rather_than_answered() {+ let mut ran = 0;+ for e in entries() {+ if e.kind != "rdfc:RDFC10NegativeEvalTest" {+ continue;+ }+ ran += 1;+ let quads = parse_nquads(&suite().join(&e.action));+ let got = open_ontologies::canon::canonical_nquads(&quads, open_ontologies::canon::DEFAULT_CALL_BUDGET, e.hash);+ assert!(+ got.is_err(),+ "{} is the poisoned dataset and must be refused. Answering it means the budget is \+ not being enforced, and a canonical form computed under a cut-off is not canonical",+ e.id+ );+ }+ assert_eq!(ran, 1, "expected exactly one negative test in the suite, ran {ran}");+}++/// The budget must DISCRIMINATE, not merely refuse.+///+/// A canonicaliser that returned `BudgetExhausted` for everything would pass+/// the negative test above and be useless, so this pins both directions at a+/// budget far below the default: the poisoned dataset is still refused, and an+/// ordinary dataset with blank nodes still canonicalises. The gap between what+/// the two cost is the whole justification for having a budget.+#[test]+fn a_small_budget_refuses_the_poison_and_still_answers_ordinary_data() {+ use open_ontologies::canon::{canonical_nquads, HashAlgorithm};+ const TINY: usize = 12;++ let mut poisoned = None;+ let mut ordinary = Vec::new();+ for e in entries() {+ let quads = parse_nquads(&suite().join(&e.action));+ if e.kind == "rdfc:RDFC10NegativeEvalTest" {+ poisoned = Some(quads);+ } else if e.kind == "rdfc:RDFC10EvalTest" && !quads.is_empty() {+ ordinary.push((e.id.clone(), quads, e.hash));+ }+ }++ let poisoned = poisoned.expect("the suite carries a poisoned dataset");+ assert!(+ canonical_nquads(&poisoned, TINY, HashAlgorithm::Sha256).is_err(),+ "the poisoned dataset must be refused at a budget of {TINY}"+ );++ let answered = ordinary+ .iter()+ .filter(|(_, q, h)| canonical_nquads(q, TINY, *h).is_ok())+ .count();+ assert!(+ answered > 40,+ "only {answered} of {} ordinary datasets canonicalised at a budget of {TINY}. A budget \+ that refuses ordinary data is not a poison guard, it is a broken canonicaliser",+ ordinary.len()+ );+}