From 585212d41f91d9b963ba203ca2bf6d774f018ea7 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Sat, 14 Dec 2024 10:46:51 +0100 Subject: [PATCH] example0019 --- lib-rdfa/examples/other/example0019.html | 87 ++++++++++++++++++++++++ lib-rdfa/examples/other/example0019.ttl | 35 ++++++++++ lib-rdfa/src/tests/mod.rs | 2 +- lib-rdfa/src/tests/other.rs | 19 +++--- 4 files changed, 133 insertions(+), 10 deletions(-) create mode 100644 lib-rdfa/examples/other/example0019.html create mode 100644 lib-rdfa/examples/other/example0019.ttl diff --git a/lib-rdfa/examples/other/example0019.html b/lib-rdfa/examples/other/example0019.html new file mode 100644 index 0000000..3a5b36c --- /dev/null +++ b/lib-rdfa/examples/other/example0019.html @@ -0,0 +1,87 @@ + + + + Complex RDFa Example with rev + + +
+

The Great Novel

+

+ Written by + + John Doe . +

+

+ Published by + + Fictional Publishers + + in + . +

+

+ Reviewed by + + Jane Smith . +

+

+ + Part of City Library Collection + +

+

+ + Prequel: The Sequel + +

+
+ + + + diff --git a/lib-rdfa/examples/other/example0019.ttl b/lib-rdfa/examples/other/example0019.ttl new file mode 100644 index 0000000..7d554ac --- /dev/null +++ b/lib-rdfa/examples/other/example0019.ttl @@ -0,0 +1,35 @@ + +@prefix rdf: . +@prefix schema: . +@prefix xsd: . + + + rdf:type schema:Book; + rdf:type schema:Review; + "The Great Novel"; + schema:datePublished "2023-01-01"^^xsd:date; + schema:reviewedBy . + + rdf:type schema:Person; + schema:author """ + John Doe """; + schema:name "John Doe" . + + rdf:type schema:Organization; + rdf:type schema:Book; + schema:publisher """ + Fictional Publishers + """; + schema:publisher ; + schema:name "Fictional Publishers" . + + rdf:type schema:Person; + schema:name "Jane Smith" . + + rdf:type schema:Library; + schema:hasPart . + + rdf:type schema:Book; + schema:prequel . + + schema:hasReview . diff --git a/lib-rdfa/src/tests/mod.rs b/lib-rdfa/src/tests/mod.rs index e175050..429376a 100644 --- a/lib-rdfa/src/tests/mod.rs +++ b/lib-rdfa/src/tests/mod.rs @@ -9,7 +9,7 @@ mod earl_html5; mod other; mod rdfa_core; mod rdfa_primer; -const DEBUG: bool = false; +const DEBUG: bool = true; const WRITE_RESULT_TO_FILE: bool = true; const WRITE_DIFF_TO_FILE: bool = true; diff --git a/lib-rdfa/src/tests/other.rs b/lib-rdfa/src/tests/other.rs index 37b9d4a..1fe555c 100644 --- a/lib-rdfa/src/tests/other.rs +++ b/lib-rdfa/src/tests/other.rs @@ -13,15 +13,16 @@ const INPUT_OUTPUT_DIR: &str = "examples/other"; #[test_case("example0007" ; "test with plain literal content : other_0007 ")] #[test_case("example0008" ; "test with plain literal content and href : other_0008 ")] #[test_case("example0009" ; "test with html content and href : other_0009 ")] -#[test_case("example0010" ; "Generated by chatgpt #1 (Rel) : other_0010 ")] -#[test_case("example0011" ; "Generated by chatgpt #2 (Rel) : other_0011 ")] -#[test_case("example0012" ; "Generated by chatgpt #3 (Rel) : other_0012 ")] -#[test_case("example0013" ; "Generated by chatgpt #4 (Rel) : other_0013 ")] -#[test_case("example0014" ; "Generated by chatgpt #5 (Rel) : other_0014 ")] -#[test_case("example0015" ; "Generated by chatgpt #6 (Rel) : other_0015 ")] -#[test_case("example0016" ; "Generated by chatgpt #7 (Rev) : other_0016 ")] -#[test_case("example0017" ; "Generated by chatgpt #8 (Rev) : other_0017 ")] -#[test_case("example0018" ; "Generated by chatgpt #9 (Rel) : other_0018 ")] +#[test_case("example0010" ; "Generated by chatgpt #01 (Rel) : other_0010 ")] +#[test_case("example0011" ; "Generated by chatgpt #02 (Rel) : other_0011 ")] +#[test_case("example0012" ; "Generated by chatgpt #03 (Rel) : other_0012 ")] +#[test_case("example0013" ; "Generated by chatgpt #04 (Rel) : other_0013 ")] +#[test_case("example0014" ; "Generated by chatgpt #05 (Rel) : other_0014 ")] +#[test_case("example0015" ; "Generated by chatgpt #06 (Rel) : other_0015 ")] +#[test_case("example0016" ; "Generated by chatgpt #07 (Rev) : other_0016 ")] +#[test_case("example0017" ; "Generated by chatgpt #08 (Rev) : other_0017 ")] +#[test_case("example0018" ; "Generated by chatgpt #09 (Rel) : other_0018 ")] +#[test_case("example0019" ; "Generated by chatgpt #10 : other_0019 ")] #[serial] fn test(test_name: &str) { cmp_files(