diff --git a/src/main/java/org/openrefine/extensions/commons/importer/CommonsImporter.java b/src/main/java/org/openrefine/extensions/commons/importer/CommonsImporter.java index c39835b..14cc663 100644 --- a/src/main/java/org/openrefine/extensions/commons/importer/CommonsImporter.java +++ b/src/main/java/org/openrefine/extensions/commons/importer/CommonsImporter.java @@ -104,8 +104,8 @@ static public void parse( "", "entity", true, - new ArrayList(), - 1); + 1, + new ArrayList()); col.setReconStats(ReconStats.create(project, 0)); col.setReconConfig(cfg); col.setName("File"); diff --git a/src/main/java/org/openrefine/extensions/commons/importer/FileRecordToRows.java b/src/main/java/org/openrefine/extensions/commons/importer/FileRecordToRows.java index da11bc7..72a49db 100644 --- a/src/main/java/org/openrefine/extensions/commons/importer/FileRecordToRows.java +++ b/src/main/java/org/openrefine/extensions/commons/importer/FileRecordToRows.java @@ -41,7 +41,7 @@ public FileRecordToRows(Iterator iteratorFileRecords, boolean catego this.identifierSpace = "https://commons.wikimedia.org/entity/"; this.schemaSpace = "http://www.wikidata.org/prop/direct/"; this.service = "https://commonsreconcile.toolforge.org/en/api"; - this.reconConfig = new StandardReconConfig(service, identifierSpace, schemaSpace, null, null, true, Collections.emptyList()); + this.reconConfig = new StandardReconConfig(service, identifierSpace, schemaSpace, null, null, true, relatedCategoriesIndex, Collections.emptyList(), relatedCategoriesIndex); }