Package org.apache.any23.extractor.rdf
Class TurtleExtractor
- java.lang.Object
-
- org.apache.any23.extractor.rdf.BaseRDFExtractor
-
- org.apache.any23.extractor.rdf.TurtleExtractor
-
- All Implemented Interfaces:
org.apache.any23.extractor.Extractor<InputStream>,org.apache.any23.extractor.Extractor.ContentExtractor
public class TurtleExtractor extends BaseRDFExtractor
Concrete implementation ofExtractor.ContentExtractorable to perform the extraction on Turtle documents.
-
-
Constructor Summary
Constructors Constructor Description TurtleExtractor()Default constructor, with no verification of data types and no stop at first error.TurtleExtractor(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 org.apache.any23.extractor.ExtractorDescriptiongetDescription()protected org.eclipse.rdf4j.rio.RDFParsergetParser(org.apache.any23.extractor.ExtractionContext extractionContext, org.apache.any23.extractor.ExtractionResult extractionResult)-
Methods inherited from class org.apache.any23.extractor.rdf.BaseRDFExtractor
isStopAtFirstError, isVerifyDataType, run, setStopAtFirstError, setVerifyDataType
-
-
-
-
Constructor Detail
-
TurtleExtractor
public TurtleExtractor(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.
-
TurtleExtractor
public TurtleExtractor()
Default constructor, with no verification of data types and no stop at first error.
-
-
Method Detail
-
getDescription
public org.apache.any23.extractor.ExtractorDescription getDescription()
-
getParser
protected org.eclipse.rdf4j.rio.RDFParser getParser(org.apache.any23.extractor.ExtractionContext extractionContext, org.apache.any23.extractor.ExtractionResult extractionResult)- Specified by:
getParserin classBaseRDFExtractor
-
-