Package org.apache.any23.extractor.rdf
Class TriXExtractor
- java.lang.Object
-
- org.apache.any23.extractor.rdf.BaseRDFExtractor
-
- org.apache.any23.extractor.rdf.TriXExtractor
-
- All Implemented Interfaces:
Extractor<InputStream>,Extractor.ContentExtractor
public class TriXExtractor extends BaseRDFExtractor
Concrete implementation ofExtractor.ContentExtractorto perform extraction on TriX documents.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.any23.extractor.Extractor
Extractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
-
-
Constructor Summary
Constructors Constructor Description TriXExtractor()Default constructor, with no verification of data types and not stop at first error.TriXExtractor(boolean verifyDataType, boolean stopAtFirstError)Constructor, allows to specify the validation and error handling policies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractorDescriptiongetDescription()Returns aExtractorDescriptionof this extractor.protected org.eclipse.rdf4j.rio.RDFParsergetParser(ExtractionContext extractionContext, ExtractionResult extractionResult)-
Methods inherited from class org.apache.any23.extractor.rdf.BaseRDFExtractor
isStopAtFirstError, isVerifyDataType, run, setStopAtFirstError, setVerifyDataType
-
-
-
-
Constructor Detail
-
TriXExtractor
public TriXExtractor(boolean verifyDataType, boolean stopAtFirstError)Constructor, allows to specify the validation and error handling policies.- Parameters:
verifyDataType- iftruethe data types will be verified, iffalsewill be ignored.stopAtFirstError- iftruethe parser will stop at first parsing error, iffalsewill ignore non blocking errors.
-
TriXExtractor
public TriXExtractor()
Default constructor, with no verification of data types and not stop at first error.
-
-
Method Detail
-
getDescription
public ExtractorDescription getDescription()
Description copied from interface:ExtractorReturns aExtractorDescriptionof this extractor.- Returns:
- the object representing the extractor description.
-
getParser
protected org.eclipse.rdf4j.rio.RDFParser getParser(ExtractionContext extractionContext, ExtractionResult extractionResult)
- Specified by:
getParserin classBaseRDFExtractor
-
-