public class HRecipeExtractor extends EntityBasedMicroformatExtractor
Extractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
BEGIN_SCRIPT, END_SCRIPT, valueFactory
Constructor and Description |
---|
HRecipeExtractor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
extractEntity(Node node,
ExtractionResult out)
Extracts an entity from a DOM node.
|
protected String |
getBaseClassName()
Returns the base class name for the extractor.
|
ExtractorDescription |
getDescription()
Returns the description of this extractor.
|
protected void |
resetExtractor()
Resets the internal status of the extractor to prepare it to a new extraction section.
|
extract, getBlankNodeFor
addBNodeProperty, addBNodeProperty, addIRIProperty, conditionallyAddLiteralProperty, conditionallyAddResourceProperty, conditionallyAddStringProperty, fixLink, fixLink, getCurrentExtractionResult, getDocumentIRI, getExtractionContext, getHTMLDocument, includes, openSubResult, run, setCurrentExtractionResult
public ExtractorDescription getDescription()
MicroformatExtractor
getDescription
in interface Extractor<Document>
getDescription
in class MicroformatExtractor
protected String getBaseClassName()
EntityBasedMicroformatExtractor
getBaseClassName
in class EntityBasedMicroformatExtractor
protected void resetExtractor()
EntityBasedMicroformatExtractor
resetExtractor
in class EntityBasedMicroformatExtractor
protected boolean extractEntity(Node node, ExtractionResult out) throws ExtractionException
EntityBasedMicroformatExtractor
extractEntity
in class EntityBasedMicroformatExtractor
node
- the DOM node.out
- the extraction result collector.true
if the extraction has produces something, false
otherwise.ExtractionException
- if there is an error during extractionCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.