* @return returns the {@link ExtractorRegistry} instance.
*/
public static ExtractorRegistry getInstance() {
// Thread-safe
synchronized (ExtractorRegistry.class) {
final DefaultConfiguration conf = DefaultConfiguration.singleton();
if (instance == null) {
instance = new ExtractorRegistry();
instance.register(RDFXMLExtractor.factory);
instance.register(TurtleExtractor.factory);
instance.register(NTriplesExtractor.factory);
instance.register(NQuadsExtractor.factory);
instance.register(TriXExtractor.factory);
if(conf.getFlagProperty("any23.extraction.rdfa.programmatic")) {
instance.register(RDFa11Extractor.factory);
} else {
instance.register(RDFaExtractor.factory);
}
instance.register(HeadLinkExtractor.factory);
instance.register(LicenseExtractor.factory);
instance.register(TitleExtractor.factory);
instance.register(XFNExtractor.factory);
instance.register(ICBMExtractor.factory);
instance.register(AdrExtractor.factory);
instance.register(GeoExtractor.factory);
instance.register(HCalendarExtractor.factory);
instance.register(HCardExtractor.factory);
instance.register(HListingExtractor.factory);
instance.register(HResumeExtractor.factory);
instance.register(HReviewExtractor.factory);
instance.register(HRecipeExtractor.factory);
instance.register(SpeciesExtractor.factory);
instance.register(TurtleHTMLExtractor.factory);
instance.register(MicrodataExtractor.factory);
instance.register(CSVExtractor.factory);
if(conf.getFlagProperty("any23.extraction.head.meta")) {
instance.register(HTMLMetaExtractor.factory);
}
}
}
return instance;