public abstract class BaseRDFExtractor extends Object implements Extractor.ContentExtractor
Extractor.ContentExtractor
.Extractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
Constructor and Description |
---|
BaseRDFExtractor() |
BaseRDFExtractor(boolean verifyDataType,
boolean stopAtFirstError)
Constructor, allows to specify the validation and error handling policies.
|
Modifier and Type | Method and Description |
---|---|
abstract ExtractorDescription |
getDescription() |
protected abstract org.openrdf.rio.RDFParser |
getParser(ExtractionContext extractionContext,
ExtractionResult extractionResult) |
boolean |
isStopAtFirstError() |
boolean |
isVerifyDataType() |
void |
run(ExtractionParameters extractionParameters,
ExtractionContext extractionContext,
InputStream in,
ExtractionResult extractionResult) |
void |
setStopAtFirstError(boolean b) |
void |
setVerifyDataType(boolean verifyDataType) |
public BaseRDFExtractor(boolean verifyDataType, boolean stopAtFirstError)
verifyDataType
- if true
the data types will be verified,
if false
will be ignored.stopAtFirstError
- if true
the parser will stop at first parsing error,
if false
will ignore non blocking errors.public BaseRDFExtractor()
public abstract ExtractorDescription getDescription()
getDescription
in interface Extractor<InputStream>
protected abstract org.openrdf.rio.RDFParser getParser(ExtractionContext extractionContext, ExtractionResult extractionResult)
public boolean isVerifyDataType()
public void setVerifyDataType(boolean verifyDataType)
public boolean isStopAtFirstError()
public void setStopAtFirstError(boolean b)
setStopAtFirstError
in interface Extractor.ContentExtractor
public void run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream in, ExtractionResult extractionResult) throws IOException, ExtractionException
run
in interface Extractor<InputStream>
IOException
ExtractionException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.