Package org.apache.any23.extractor.rdfa
Class RDFa11Extractor
- java.lang.Object
-
- org.apache.any23.extractor.rdf.BaseRDFExtractor
-
- org.apache.any23.extractor.rdfa.RDFa11Extractor
-
- All Implemented Interfaces:
Extractor<InputStream>,Extractor.ContentExtractor
public class RDFa11Extractor extends BaseRDFExtractor
- Author:
- Michele Mostarda (mostarda@fbk.eu), Hans Brende (hansbrende@apache.org)
-
-
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 RDFa11Extractor()RDFa11Extractor(boolean verifyDataType, boolean stopAtFirstError)Deprecated.since 2.4.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExtractorDescriptiongetDescription()Returns aExtractorDescriptionof this extractor.protected org.eclipse.rdf4j.rio.RDFParsergetParser(ExtractionContext extractionContext, ExtractionResult extractionResult)Deprecated.since 2.4.voidrun(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream in, ExtractionResult extractionResult)Executes the extractor.voidsetStopAtFirstError(boolean stopAtFirstError)Deprecated.since 2.4.voidsetVerifyDataType(boolean verifyDataType)Deprecated.since 2.4.-
Methods inherited from class org.apache.any23.extractor.rdf.BaseRDFExtractor
isStopAtFirstError, isVerifyDataType
-
-
-
-
Constructor Detail
-
RDFa11Extractor
@Deprecated public RDFa11Extractor(boolean verifyDataType, boolean stopAtFirstError)
Deprecated.since 2.4. This extractor has never supported these settings. UseRDFa11Extractor()instead.- Parameters:
verifyDataType- has no effectstopAtFirstError- has no effect
-
RDFa11Extractor
public RDFa11Extractor()
-
-
Method Detail
-
setStopAtFirstError
@Deprecated public void setStopAtFirstError(boolean stopAtFirstError)
Deprecated.since 2.4. This extractor has never supported this setting. Do not use.Description copied from interface:Extractor.ContentExtractorIftrue, the extractor will stop at first parsing error, iffalsethe extractor will attempt to ignore all parsing errors.- Specified by:
setStopAtFirstErrorin interfaceExtractor.ContentExtractor- Overrides:
setStopAtFirstErrorin classBaseRDFExtractor- Parameters:
stopAtFirstError- has no effect
-
setVerifyDataType
@Deprecated public void setVerifyDataType(boolean verifyDataType)
Deprecated.since 2.4. This extractor has never supported this setting. Do not use.- Overrides:
setVerifyDataTypein classBaseRDFExtractor- Parameters:
verifyDataType- has no effect
-
getDescription
public ExtractorDescription getDescription()
Description copied from interface:ExtractorReturns aExtractorDescriptionof this extractor.- Returns:
- the object representing the extractor description.
-
getParser
@Deprecated protected org.eclipse.rdf4j.rio.RDFParser getParser(ExtractionContext extractionContext, ExtractionResult extractionResult)
Deprecated.since 2.4. This extractor no longer wraps an RDF4JRDFParser. Do not use this method.- Specified by:
getParserin classBaseRDFExtractor- Parameters:
extractionContext- the extraction contextextractionResult- the extraction result- Returns:
- a
RDFParser
-
run
public void run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream in, ExtractionResult extractionResult) throws IOException, ExtractionException
Description copied from interface:ExtractorExecutes the extractor. Will be invoked only once, extractors are not reusable.- Specified by:
runin interfaceExtractor<InputStream>- Overrides:
runin classBaseRDFExtractor- Parameters:
extractionParameters- the parameters to be applied during the extraction.extractionContext- The document context.in- The extractor input data.extractionResult- the collector for the extracted data.- Throws:
IOException- On error while reading from the input stream.ExtractionException- On other error, such as parse errors.
-
-