Package org.apache.any23.extractor.html
Class TurtleHTMLExtractorTest
- java.lang.Object
-
- org.apache.any23.AbstractAny23TestBase
-
- org.apache.any23.extractor.html.AbstractExtractorTestCase
-
- org.apache.any23.extractor.html.TurtleHTMLExtractorTest
-
public class TurtleHTMLExtractorTest extends AbstractExtractorTestCase
Test case forTurtleHTMLExtractor
.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Field Summary
-
Fields inherited from class org.apache.any23.extractor.html.AbstractExtractorTestCase
baseIRI, conn
-
Fields inherited from class org.apache.any23.AbstractAny23TestBase
tempDirectory, testFolder
-
-
Constructor Summary
Constructors Constructor Description TurtleHTMLExtractorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExtractorFactory<?>
getExtractorFactory()
void
testExtraction()
Tests the extraction of the RDF content from the sample HTML file.-
Methods inherited from class org.apache.any23.extractor.html.AbstractExtractorTestCase
assertContains, assertContains, assertContains, assertContains, assertContains, assertContains, assertContainsModel, assertContainsModel, assertExtract, assertExtract, assertIssue, assertModelEmpty, assertModelNotEmpty, assertNoIssues, assertNotContains, assertNotContains, assertNotContains, assertNotContains, assertNotFound, assertStatementsSize, assertStatementsSize, assertStatementsSize, dumpAsListOfStatements, dumpHumanReadableTriples, dumpModelToNQuads, dumpModelToRDFXML, dumpModelToTurtle, extract, findExactlyOneBlankSubject, findExactlyOneObject, findObject, findObjectAsLiteral, findObjectAsResource, findObjects, findSubjects, getConnection, getIssues, getIssues, getReport, getStatements, getStatementsSize, setUp, tearDown
-
Methods inherited from class org.apache.any23.AbstractAny23TestBase
copyResourceToTempFile, getDocumentSourceFromResource, getDocumentSourceFromResource
-
-
-
-
Method Detail
-
getExtractorFactory
protected ExtractorFactory<?> getExtractorFactory()
- Specified by:
getExtractorFactory
in classAbstractExtractorTestCase
- Returns:
- the factory of the extractor to be tested.
-
testExtraction
public void testExtraction() throws Exception
Tests the extraction of the RDF content from the sample HTML file.- Throws:
IOException
- if there is an error interpreting the input dataExtractionException
- if there is an exception during extractionorg.eclipse.rdf4j.repository.RepositoryException
- if an error is encountered whilst loading content from a storage connectionException
-
-