30 |
30 |
//final static String xmlSource = "D:\\_Tagungen\\2010-09 TDWG 2010\\Workshop\\data\\specimen\\Picris pauciflora\\B-W14632-000_B-W14632-010_B100097145_B100097146_B100326668_B180004364_B180017717_.xml";
|
31 |
31 |
// final static String xmlSource = "/home/pkelbert/workspace/proibiosphere/cdmlib-io/src/test/resources/eu/etaxonomy/cdm/io/specimen/abcd206/in/SpecimenImportConfiguratorTest-input.xml";
|
32 |
32 |
|
33 |
|
final static String xmlSource = "/home/pkelbert/Bureau/CLD33-a.xml";
|
|
33 |
final static String xmlSource = "/home/pkelbert/Documents/Proibiosphere/Presentations/Demo/ABCD/calvum.xml";
|
|
34 |
// final static String xmlSource = "/home/pkelbert/workspacetrunk/cdmlib/cdmlib-io/target/test-classes/eu/etaxonomy/cdm/io/specimen/abcd206/in/SpecimenImportConfiguratorTest-input.xml";
|
34 |
35 |
|
35 |
36 |
|
36 |
37 |
static final ICdmDataSource cdmDestination = CdmDestinations.mon_cdm();
|
... | ... | |
45 |
46 |
|
46 |
47 |
URI source;
|
47 |
48 |
try {
|
48 |
|
// org.h2.tools.Server.createWebServer(new String[]{}).start();
|
49 |
49 |
URI uri = new File(xmlSource).toURI();
|
50 |
50 |
source = new URI(uri.toString());
|
51 |
51 |
System.out.println(source.toString());
|
... | ... | |
54 |
54 |
ICdmDataSource destination = cdmDestination;
|
55 |
55 |
Abcd206ImportConfigurator specimenImportConfigurator = Abcd206ImportConfigurator.NewInstance(source, destination);
|
56 |
56 |
|
57 |
|
specimenImportConfigurator.setClassificationName(specimenImportConfigurator.getSourceReferenceTitle());
|
|
57 |
// specimenImportConfigurator.setClassificationName(specimenImportConfigurator.getSourceReferenceTitle());
|
58 |
58 |
specimenImportConfigurator.setSourceSecId("specimen");
|
59 |
59 |
specimenImportConfigurator.setCheck(check);
|
60 |
60 |
specimenImportConfigurator.setDbSchemaValidation(hbm2dll);
|
61 |
|
specimenImportConfigurator.setDoAutomaticParsing(true);
|
62 |
|
specimenImportConfigurator.setReUseExistingMetadata(true);
|
|
61 |
specimenImportConfigurator.setParseNameAutomatically(false);
|
|
62 |
specimenImportConfigurator.setReuseExistingMetadata(true);
|
|
63 |
specimenImportConfigurator.reuseExistingDescriptiveGroups(false);
|
63 |
64 |
|
64 |
|
specimenImportConfigurator.setDoMatchTaxa(true);
|
65 |
|
specimenImportConfigurator.setReUseTaxon(true);
|
|
65 |
specimenImportConfigurator.setReuseExistingTaxaWhenPossible(true);
|
66 |
66 |
|
67 |
|
specimenImportConfigurator.setDoCreateIndividualsAssociations(true);
|
|
67 |
specimenImportConfigurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(true);
|
|
68 |
specimenImportConfigurator.setUseClassification(true);
|
|
69 |
specimenImportConfigurator.setInteractWithUser(true);
|
68 |
70 |
|
69 |
71 |
specimenImportConfigurator.setSourceReference(null);
|
70 |
72 |
specimenImportConfigurator.setTaxonReference(null);
|
change app-import to match new boolean names