ANY23-345 fix duplicated microdata test
authorHans <firedrake93@gmail.com>
Sat, 27 Oct 2018 00:44:46 +0000 (19:44 -0500)
committerHans <firedrake93@gmail.com>
Sat, 27 Oct 2018 00:44:46 +0000 (19:44 -0500)
core/src/test/java/org/apache/any23/extractor/microdata/MicrodataExtractorTest.java
test-resources/src/test/resources/microdata/5.2.1-non-normative-example-2-expected.nquads

index ed7e8f3..9d7a079 100644 (file)
@@ -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());
     }
index 2632f7a..b3e99b0 100644 (file)
 #
 
 _: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/> .