use of eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader 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();
}
use of eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader in project hale by halestudio.
the class SkosCodeListTest method readCodeList_WithLanguage.
private CodeList readCodeList_WithLanguage(URI source, final String language) throws Exception {
SkosCodeListReader reader = new SkosCodeListReader() {
/**
* @see eu.esdihumboldt.hale.io.codelist.skos.reader.SkosCodeListReader#getLangauge()
*/
@Override
public String getLangauge() {
return language;
}
};
reader.setSource(new DefaultInputSupplier(source));
IOReport report = reader.execute(new LogProgressIndicator());
assertTrue(report.isSuccess());
return reader.getCodeList();
}
Aggregations