Class SingleDocumentExtractionTest

    • Constructor Detail

      • SingleDocumentExtractionTest

        public SingleDocumentExtractionTest()
    • Method Detail

      • tearDown

        public void tearDown()
                      throws org.eclipse.rdf4j.sail.SailException,
                             org.eclipse.rdf4j.repository.RepositoryException,
                             TripleHandlerException
        Throws:
        org.eclipse.rdf4j.sail.SailException
        org.eclipse.rdf4j.repository.RepositoryException
        TripleHandlerException
      • testMicroformatDomains

        public void testMicroformatDomains()
                                    throws IOException,
                                           ExtractionException,
                                           org.eclipse.rdf4j.repository.RepositoryException
        Tests the existence of the domain triples.
        Throws:
        IOException - if there is an error loading input data
        ExtractionException - if an exception is raised during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testNestedMicroformats

        public void testNestedMicroformats()
                                    throws IOException,
                                           ExtractionException,
                                           org.eclipse.rdf4j.repository.RepositoryException
        Tests the nested microformat relationships. This test verifies the first supported approach for microformat nesting. Such approach foreseen to add a microformat HTML node within the property of a container microformat. For further details see SingleDocumentExtraction consolidateResources(java.util.List, java.util.List, org.apache.any23.writer.TripleHandler)}
        Throws:
        IOException - if there is an error loading input data
        ExtractionException - if an exception is raised during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testNestedVCardAdr

        public void testNestedVCardAdr()
                                throws IOException,
                                       ExtractionException,
                                       org.eclipse.rdf4j.repository.RepositoryException
        This test assess the absence of SINDICE nesting relationship, since HCardExtractor declared a native nesting with the AdrExtractor.
        Throws:
        IOException - if there is an error loading input data
        ExtractionException - if an exception is raised during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
        See Also:
        Includes
      • testNestedMicroformatsInduced

        public void testNestedMicroformatsInduced()
                                           throws IOException,
                                                  ExtractionException,
                                                  org.eclipse.rdf4j.repository.RepositoryException
        Tests the nested microformat relationships. This test verifies the second supported approach for microformat nesting. Such approach foreseen to use the same node attributes to declare both a microformat container property and a nested microformat root class. For further details see SingleDocumentExtraction consolidateResources(java.util.List, java.util.List, org.apache.any23.writer.TripleHandler)} See also the Nested Entities article that is linked by the official microformats.org doc page.
        Throws:
        IOException - if there is an error loading input data
        ExtractionException - if an exception is raised during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testNestedMicroformatsManaged

        public void testNestedMicroformatsManaged()
                                           throws IOException,
                                                  ExtractionException,
                                                  org.eclipse.rdf4j.repository.RepositoryException
        Tests the nested microformat relationships. This test verifies the behavior of the nested microformats when the nesting relationship is handled by the microformat extractor itself (like the HReview that is able to detect an inner VCard).
        Throws:
        IOException - if there is an error loading input data
        ExtractionException - if an exception is raised during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection