Class RDFa11ExtractorTest

    • Constructor Detail

      • RDFa11ExtractorTest

        public RDFa11ExtractorTest()
    • Method Detail

      • testObjectResourceConversion

        public void testObjectResourceConversion()
                                          throws org.eclipse.rdf4j.repository.RepositoryException
        This test verifies the correct object resource conversion.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testBBCNewsScotland

        public void testBBCNewsScotland()
      • testInvalidXMLCharacter

        public void testInvalidXMLCharacter()
      • testAttributeAlreadySpecified

        public void testAttributeAlreadySpecified()
      • test0087

        public void test0087()
      • testBasicWithSyntaxErrors

        public void testBasicWithSyntaxErrors()
      • testIssue326

        public void testIssue326()
      • testIssue227

        public void testIssue227()
      • testIssue271AndJavascriptParsing

        public void testIssue271AndJavascriptParsing()
      • testIssue273

        public void testIssue273()
      • testIssue268And317

        public void testIssue268And317()
      • testExplicitDatatypeDeclaration

        public void testExplicitDatatypeDeclaration()
                                             throws org.eclipse.rdf4j.repository.RepositoryException
        This test checks the behavior of the RDFa extraction where the datatype of a property is explicitly set. For details see the RDFa in XHTML: Syntax and Processing recommendation.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testRelWithHref

        public void testRelWithHref()
                             throws org.eclipse.rdf4j.repository.RepositoryException
        Tests the correct behavior of REL and HREF.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testRelRevSupport

        public void testRelRevSupport()
                               throws org.eclipse.rdf4j.repository.RepositoryException
        This test verifies the correct REL/REV attribute usage.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testVocabSupport

        public void testVocabSupport()
                              throws org.eclipse.rdf4j.repository.RepositoryException
        Tests the @vocab support.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
      • testVocabWithoutTrailingSlash

        public void testVocabWithoutTrailingSlash()
      • testTolerantParsing

        public void testTolerantParsing()
        Tests that the default parser settings enable tolerance in data type parsing.
      • testRDFa10Extraction

        public void testRDFa10Extraction()
                                  throws org.eclipse.rdf4j.repository.RepositoryException,
                                         org.eclipse.rdf4j.rio.RDFHandlerException,
                                         IOException,
                                         org.eclipse.rdf4j.rio.RDFParseException
        Taken from the GoodRelations test cases. It checks if the extraction is the same when the namespaces are defined in RDFa1.0.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
        IOException - if there is an error processing input data
        org.eclipse.rdf4j.rio.RDFHandlerException - if there is an error in the RDFHandler
        org.eclipse.rdf4j.rio.RDFParseException - if there is an error parsing input RDF
      • testRDFa11Extraction

        public void testRDFa11Extraction()
                                  throws org.eclipse.rdf4j.repository.RepositoryException,
                                         org.eclipse.rdf4j.rio.RDFHandlerException,
                                         IOException,
                                         org.eclipse.rdf4j.rio.RDFParseException
        Taken from the GoodRelations test cases. It checks if the extraction is the same when the namespaces are defined in RDFa1.1.
        Throws:
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection
        IOException - if there is an error processing input data
        org.eclipse.rdf4j.rio.RDFHandlerException - if there is an error in the RDFHandler
        org.eclipse.rdf4j.rio.RDFParseException - if there is an error parsing input RDF
      • testOpenGraphAlternateObjectTypes

        public void testOpenGraphAlternateObjectTypes()
                                               throws IOException,
                                                      ExtractionException,
                                                      org.eclipse.rdf4j.repository.RepositoryException
        Tests the correct support of alternate Open Graph Protocol Object Types
        Throws:
        IOException - if there is an error processing the input data
        ExtractionException - if there is an exception during extraction
        org.eclipse.rdf4j.repository.RepositoryException - if an error is encountered whilst loading content from a storage connection