InputStream input = new BufferedInputStream(this.getClass().getResourceAsStream(filename));
Document document = new TagSoupParser(input, baseURI.stringValue()).getDOM();
HCardExtractor hCardExtractor = new HCardExtractorFactory().createExtractor();
ExtractionContext hCardExtractionContext = new ExtractionContext(
hCardExtractor.getDescription().getExtractorName(), baseURI
);
hCardExtractor.run(
ExtractionParameters.newDefault(),
hCardExtractionContext,
document,
new ExtractionResultImpl(
hCardExtractionContext,
hCardExtractor, new RepositoryWriter(getConnection())
)
);
GeoExtractor geoExtractor = new GeoExtractorFactory().createExtractor();
ExtractionContext geoExtractionContext = new ExtractionContext(
geoExtractor.getDescription().getExtractorName(), baseURI
);
geoExtractor.run(
ExtractionParameters.newDefault(),
geoExtractionContext,
document,
new ExtractionResultImpl(
geoExtractionContext,
geoExtractor,
new RepositoryWriter(getConnection())
)
);
AdrExtractor adrExtractor = new AdrExtractorFactory().createExtractor();
ExtractionContext adrExtractionContext = new ExtractionContext(
adrExtractor.getDescription().getExtractorName(), baseURI
);
adrExtractor.run(
ExtractionParameters.newDefault(),
adrExtractionContext,