Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseLocalConceptStoreBuilder.java |
— | — | @@ -343,7 +343,11 @@ |
344 | 344 | } |
345 | 345 | |
346 | 346 | if (id>0 && conceptDedupe!=null) { |
347 | | - if (!conceptDedupe.add(id)) throw new IllegalArgumentException("duplicate concept: id= "+id+", name= "+name+", rc= "+rcId); |
| 347 | + if (!conceptDedupe.add(id)) { |
| 348 | + warning(rcId, "duplicate concept", "id= "+id+", name= "+name+", rc= "+rcId+", type="+ctype, null); |
| 349 | + if (rcId>=0) storeAbout(rcId, name, id, name); //XXX: really here? do prior to calling this method?! |
| 350 | + return id; |
| 351 | + } |
348 | 352 | } |
349 | 353 | |
350 | 354 | conceptInserter.updateDouble("random", random.nextDouble()); |