Repository: any23 Updated Branches: refs/heads/master e18fe91fd -> 21ffebda3
ANY23-345 fix duplicated microdata test Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/21ffebda Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/21ffebda Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/21ffebda Branch: refs/heads/master Commit: 21ffebda30011e638f3ca7281e2f911db503bb41 Parents: e18fe91 Author: Hans <[email protected]> Authored: Fri Oct 26 19:44:46 2018 -0500 Committer: Hans <[email protected]> Committed: Fri Oct 26 19:44:46 2018 -0500 ---------------------------------------------------------------------- .../microdata/MicrodataExtractorTest.java | 4 +-- ....2.1-non-normative-example-2-expected.nquads | 27 +++++++++----------- 2 files changed, 14 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/21ffebda/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java b/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java index ed7e8f3..9d7a079 100644 --- a/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java +++ b/core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java @@ -335,8 +335,8 @@ public class MicrodataExtractorTest extends AbstractExtractorTestCase { public void testExample5222() throws RDFHandlerException, RepositoryException, IOException, RDFParseException { extractAndVerifyAgainstNQuads( - "5.2.1-non-normative-example-1.html", - "5.2.1-non-normative-example-1-expected.nquads" + "5.2.1-non-normative-example-2.html", + "5.2.1-non-normative-example-2-expected.nquads" ); logger.debug(dumpHumanReadableTriples()); } http://git-wip-us.apache.org/repos/asf/any23/blob/21ffebda/test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads ---------------------------------------------------------------------- diff --git a/test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads b/test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads index 2632f7a..b3e99b0 100644 --- a/test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads +++ b/test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads @@ -16,20 +16,17 @@ # _:nodebdb2c525cf8095abb6954b51432e6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://microformats.org/profile/hcard> <http://bob.example.com/> . -_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard/street-address> "Avenue Q" <http://bob.example.com/> . -_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard/fn> "Princeton" <http://bob.example.com/> . -_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard/given-name> "Princeton" <http://bob.example.com/> . -_:node5194c3bb9d7f53e4759c6f393d95f88 <http://schema.org/given-name> "Princeton" <http://bob.example.com/> . -_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard/n> _:node5194c3bb9d7f53e4759c6f393d95f88 <http://bob.example.com/> . -_:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://schema.org/street-address> "Avenue Q" <http://bob.example.com/> . -_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard/adr> _:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://bob.example.com/> . +_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard#street-address> "Avenue Q" <http://bob.example.com/> . +_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard#fn> "Princeton" <http://bob.example.com/> . +_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard#given-name> "Princeton" <http://bob.example.com/> . +_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard#n> _:node5194c3bb9d7f53e4759c6f393d95f88 <http://bob.example.com/> . +_:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://microformats.org/profile/hcard#street-address> "Avenue Q" <http://bob.example.com/> . +_:nodebdb2c525cf8095abb6954b51432e6 <http://microformats.org/profile/hcard#adr> _:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://bob.example.com/> . <http://bob.example.com/> <http://www.w3.org/1999/xhtml/microdata#item> _:nodebdb2c525cf8095abb6954b51432e6 <http://bob.example.com/> . _:node7a12e48e321d29211c8b7c2ce396854 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://microformats.org/profile/hcard> <http://bob.example.com/> . -_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard/street-address> "Avenue Q" <http://bob.example.com/> . -_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard/fn> "Trekkie" <http://bob.example.com/> . -_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard/given-name> "Trekkie" <http://bob.example.com/> . -_:node45173ea18b736c2e9c3136e52ed3727e <http://schema.org/given-name> "Trekkie" <http://bob.example.com/> . -_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard/n> _:node45173ea18b736c2e9c3136e52ed3727e <http://bob.example.com/> . -_:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://schema.org/street-address> "Avenue Q" <http://bob.example.com/> . -_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard/adr> _:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://bob.example.com/> . -<http://bob.example.com/> <http://www.w3.org/1999/xhtml/microdata#item> _:node7a12e48e321d29211c8b7c2ce396854 <http://bob.example.com/> . \ No newline at end of file +_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard#street-address> "Avenue Q" <http://bob.example.com/> . +_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard#fn> "Trekkie" <http://bob.example.com/> . +_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard#given-name> "Trekkie" <http://bob.example.com/> . +_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard#n> _:node45173ea18b736c2e9c3136e52ed3727e <http://bob.example.com/> . +_:node7a12e48e321d29211c8b7c2ce396854 <http://microformats.org/profile/hcard#adr> _:node1ffeb2699b75ba7aca5ee3d72adb55a8 <http://bob.example.com/> . +<http://bob.example.com/> <http://www.w3.org/1999/xhtml/microdata#item> _:node7a12e48e321d29211c8b7c2ce396854 <http://bob.example.com/> .
