Search in sources :

Example 1 with CodeListReader

use of eu.esdihumboldt.hale.common.codelist.io.CodeListReader in project hale by halestudio.

the class SkosCodeListTest method readCodeList.

private CodeList readCodeList(URI source) throws Exception {
    CodeListReader reader = new SkosCodeListReader();
    reader.setSource(new DefaultInputSupplier(source));
    IOReport report = reader.execute(new LogProgressIndicator());
    assertTrue(report.isSuccess());
    return reader.getCodeList();
}
Also used : SkosCodeListReader(eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader) CodeListReader(eu.esdihumboldt.hale.common.codelist.io.CodeListReader) SkosCodeListReader(eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader) DefaultInputSupplier(eu.esdihumboldt.hale.common.core.io.supplier.DefaultInputSupplier) IOReport(eu.esdihumboldt.hale.common.core.io.report.IOReport) LogProgressIndicator(eu.esdihumboldt.hale.common.core.io.impl.LogProgressIndicator)

Aggregations

CodeListReader (eu.esdihumboldt.hale.common.codelist.io.CodeListReader)1 LogProgressIndicator (eu.esdihumboldt.hale.common.core.io.impl.LogProgressIndicator)1 IOReport (eu.esdihumboldt.hale.common.core.io.report.IOReport)1 DefaultInputSupplier (eu.esdihumboldt.hale.common.core.io.supplier.DefaultInputSupplier)1 SkosCodeListReader (eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader)1