@Override public void index(String fileName, boolean compress) throws IOException { index(fileName, KEY_COLUMN_INDEX, VALUE_COLUMN_INDEX, compress); }
@Override public void endProcess() { super.endProcess(); try { classWriter.close(); } catch (Exception e) { logger.error(e.getMessage()); } }
public void start(String xmlFile, String outputDir, String mappingFile, String owlFile, String addendaFile, String page) { try { logger.info("Loading mappings"); String lang = getLocale().toLanguageTag(); logger.info("Language: " + lang); mappings = DBpediaMapping.loadFromFile(mappingFile).get(lang); ontology = new AirpediaOntology(owlFile, addendaFile); classWriter = new PageClassIndexer(outputDir, true); this.page = page; } catch (Exception e) { logger.error(e.getMessage()); return; } startProcess(xmlFile); }
logger.debug(String.format("%s ---> %s", title, mapClasses)); synchronized (this) { classWriter.add(title, mapClasses);
@Override public void index(File file, boolean compress) throws IOException { index(file, KEY_COLUMN_INDEX, VALUE_COLUMN_INDEX, compress); }