Class HEventExtractor
- java.lang.Object
- 
- org.apache.any23.extractor.html.MicroformatExtractor
- 
- org.apache.any23.extractor.html.EntityBasedMicroformatExtractor
- 
- org.apache.any23.extractor.html.microformats2.HEventExtractor
 
 
 
- 
- All Implemented Interfaces:
- Extractor<Document>,- Extractor.TagSoupDOMExtractor
 
 public class HEventExtractor extends EntityBasedMicroformatExtractor Extractor for the h-event microformat.- Author:
- Nisala Nirmana
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.any23.extractor.ExtractorExtractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.any23.extractor.html.MicroformatExtractorBEGIN_SCRIPT, END_SCRIPT, valueFactory
 
- 
 - 
Constructor SummaryConstructors Constructor Description HEventExtractor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanextractEntity(Node node, ExtractionResult out)Extracts an entity from a DOM node.org.eclipse.rdf4j.model.ResourceextractEntityAsEmbeddedProperty(HTMLDocument fragment, org.eclipse.rdf4j.model.BNode event, ExtractionResult out)protected StringgetBaseClassName()Returns the base class name for the extractor.ExtractorDescriptiongetDescription()Returns the description of this extractor.protected voidresetExtractor()Resets the internal status of the extractor to prepare it to a new extraction section.- 
Methods inherited from class org.apache.any23.extractor.html.EntityBasedMicroformatExtractorextract, getBlankNodeFor
 - 
Methods inherited from class org.apache.any23.extractor.html.MicroformatExtractoraddBNodeProperty, addBNodeProperty, addIRIProperty, conditionallyAddLiteralProperty, conditionallyAddResourceProperty, conditionallyAddStringProperty, fixLink, fixLink, getCurrentExtractionResult, getDocumentIRI, getExtractionContext, getHTMLDocument, includes, openSubResult, run, setCurrentExtractionResult
 
- 
 
- 
- 
- 
Method Detail- 
getDescriptionpublic ExtractorDescription getDescription() Description copied from class:MicroformatExtractorReturns the description of this extractor.- Specified by:
- getDescriptionin interface- Extractor<Document>
- Specified by:
- getDescriptionin class- MicroformatExtractor
- Returns:
- a human readable description.
 
 - 
getBaseClassNameprotected String getBaseClassName() Description copied from class:EntityBasedMicroformatExtractorReturns the base class name for the extractor.- Specified by:
- getBaseClassNamein class- EntityBasedMicroformatExtractor
- Returns:
- a string containing the base of the extractor.
 
 - 
resetExtractorprotected void resetExtractor() Description copied from class:EntityBasedMicroformatExtractorResets the internal status of the extractor to prepare it to a new extraction section.- Specified by:
- resetExtractorin class- EntityBasedMicroformatExtractor
 
 - 
extractEntityprotected boolean extractEntity(Node node, ExtractionResult out) throws ExtractionException Description copied from class:EntityBasedMicroformatExtractorExtracts an entity from a DOM node.- Specified by:
- extractEntityin class- EntityBasedMicroformatExtractor
- Parameters:
- node- the DOM node.
- out- the extraction result collector.
- Returns:
- trueif the extraction has produces something,- falseotherwise.
- Throws:
- ExtractionException- if there is an error during extraction
 
 - 
extractEntityAsEmbeddedPropertypublic org.eclipse.rdf4j.model.Resource extractEntityAsEmbeddedProperty(HTMLDocument fragment, org.eclipse.rdf4j.model.BNode event, ExtractionResult out) throws ExtractionException - Throws:
- ExtractionException
 
 
- 
 
-