use grdf::HashDataset;
use rdf_types::{BlankIdBuf, Id, Quad, Term};
use static_iref::iri;
use std::collections::HashMap;
fn test(a: HashDataset, b: HashDataset) {
match a.find_blank_id_bijection(&b) {
Some(bijection) => {
let substitution: HashMap<_, _> = bijection
.forward
.into_iter()
.map(|(a, b)| (a.to_owned(), b))
.collect();
let c = a.substitute_blank_ids(|id| (*substitution.get(&id).unwrap()).to_owned());
assert_eq!(c, b)
}
None => panic!("no substitution found"),
}
}
#[test]
fn iso_001() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_002() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_003() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_004() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_005() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_006() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_007() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_008() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_009() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_010() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_011() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_012() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_013() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_014() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_015() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_016() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
test(a, b)
}
#[test]
fn iso_017() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_018() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_019() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
test(a, b)
}
#[test]
fn iso_020() {
let mut a = HashDataset::new();
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:24".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:37".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/13").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:32".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/13").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:34".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/36").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:11".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/21").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:29".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:42".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/17").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/48").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:37".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:18".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:32".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:48".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:17".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:33".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/39").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:30".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/45").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:35".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:15".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:14".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:49".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/21").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:39".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:25".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/18").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:26".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:11".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:49".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:37".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/12").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:15".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/31").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:35".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:36".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:18".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:45".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:10".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:36".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:42".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/48").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/45").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:10".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:13".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:30".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:10".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:11".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/44").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:38".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/22").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/22").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:36".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/12").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/34").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:24".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/26").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:7".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:27".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:26".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/11").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:21".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/18").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:26".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:40".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:35".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:17".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:34".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:11".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:21".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:43".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/34").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:37".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:45".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:21".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:41".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:16".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:33".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:18".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:29".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:40".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:34".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/38").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:23".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:47".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:15".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/31").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:30".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/44").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:14".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/38").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:45".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:13".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/43").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:25".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:21".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:49".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:22".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:30".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:12".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/43").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:2".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:0".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/26").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:28".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:5".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:11".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:27".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:19".to_string()).unwrap())),
None,
));
a.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/36").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:13".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
None,
));
a.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
None,
));
let mut b = HashDataset::new();
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s24".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s37".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/13").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s32".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/13").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s34".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/36").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s11".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/21").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s29".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s42".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/17").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/48").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s37".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s18".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s32".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s48".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s17".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s33".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/39").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s30".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/45").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s35".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s15".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s14".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/9").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s49".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/21").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s39".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s25".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/18").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s26".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s11".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/8").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s49".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/46").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s3".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s37".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/12").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s15".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/31").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s35".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s36".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s18".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s45".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s10".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s36".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s42".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/48").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/45").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s10".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s13".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/16").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s30".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s10".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/4").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s11".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s4".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/44").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s38".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s8".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/47").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/22").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s46".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/22").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s36".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/12").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/34").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s24".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/26").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s7".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s27".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/35").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/37").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/27").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/10").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s26".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/11").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s21".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/18").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s26".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s40".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s35".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s17".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s34".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/41").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s11".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s21".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s43".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/34").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s37".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s45".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/0").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s21".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s41".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s16".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/2").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s33".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s18".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s29".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s40".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s34".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/38").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s23".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s47".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s15".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s22".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/28").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/31").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s30".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/44").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s14".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/24").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/38").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s45".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/30").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/19").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/49").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s13".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/43").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s25".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/3").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s21".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/23").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/14").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/5").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s49".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s22".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s30".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/40").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s12".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s9".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s1".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/33").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s44".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/43").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s2".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s31".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/32").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s0".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s12".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/26").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s28".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/42").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s5".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s11".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s27".to_string()).unwrap())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s19".to_string()).unwrap())),
None,
));
b.insert(Quad(
Term::Id(Id::Blank(BlankIdBuf::new("_:s6".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/6").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/7").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/36").to_owned())),
Term::Id(Id::Blank(BlankIdBuf::new("_:s13".to_string()).unwrap())),
Term::Id(Id::Iri(iri!("http://example.com/29").to_owned())),
None,
));
b.insert(Quad(
Term::Id(Id::Iri(iri!("http://example.com/25").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/1").to_owned())),
Term::Id(Id::Iri(iri!("http://example.com/15").to_owned())),
None,
));
test(a, b)
}