File file = new File(
System.getProperty("test.data", "src/test/resources/") + filename);
Document document = new TagSoupParser(new FileInputStream(file), baseURI.stringValue()).getDOM();
HCardExtractor hCardExtractor = HCardExtractor.factory.createExtractor();
ExtractionContext hCardExtractionContext = new ExtractionContext(
hCardExtractor.getDescription().getExtractorName(), baseURI
);
hCardExtractor.run(
ExtractionParameters.newDefault(),
hCardExtractionContext,
document,
new ExtractionResultImpl(
hCardExtractionContext,
hCardExtractor, new RepositoryWriter(getConnection())
)
);
GeoExtractor geoExtractor = GeoExtractor.factory.createExtractor();
ExtractionContext geoExtractionContext = new ExtractionContext(
geoExtractor.getDescription().getExtractorName(), baseURI
);
geoExtractor.run(
ExtractionParameters.newDefault(),
geoExtractionContext,
document,
new ExtractionResultImpl(
geoExtractionContext,
geoExtractor,
new RepositoryWriter(getConnection())
)
);
AdrExtractor adrExtractor = AdrExtractor.factory.createExtractor();
ExtractionContext adrExtractionContext = new ExtractionContext(
adrExtractor.getDescription().getExtractorName(), baseURI
);
adrExtractor.run(
ExtractionParameters.newDefault(),
adrExtractionContext,