TcsRdf test class and data for the Globis project
[cdmlib.git] / app-import / src / main / java / eu / etaxonomy / cdm / app / tcs / TcsSources.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.cdm.app.tcs;
11
12 import java.io.File;
13 import java.net.URL;
14
15 import org.apache.log4j.Logger;
16
17 import eu.etaxonomy.cdm.app.sdd.SDDSources;
18
19 /**
20 * @author a.mueller
21 * @created 20.06.2008
22 * @version 1.0
23 */
24 public class TcsSources {
25 private static final Logger logger = Logger.getLogger(TcsSources.class);
26
27 public static String arecaceae(){
28 // Monocots rdf
29 String sourceUrl = "http://dev.e-taxonomy.eu/trac/attachment/wiki/SampleDataConversion/Monocotyledonae/arecaceae.rdf?format=raw";
30 logger.debug("TcsSource " + sourceUrl);
31 return sourceUrl;
32
33 }
34
35 public static String taxonX_local(){
36 // Monocots rdf
37 //String sourceUrl = "file:C:/localCopy/eclipse/cdmlib/app-import/src/main/resources/palm_tn_29336.xml";
38 URL url = new SDDSources().getClass().getResource("/taxonX/palm_tn_29336.xml");
39 String sourceUrl = url.toString();
40 return sourceUrl;
41 }
42
43 public static File taxonX_localDir(){
44 // Monocots rdf
45 File sourceDir = new File("target/classes/taxonX/"); //palm_tc_14495.xml
46 return sourceDir;
47 }
48
49 public static String arecaceae_local(){
50 // Monocots rdf
51 //String sourceUrl = "file:C:/localCopy/eclipse/cdmlib/app-import/src/main/resources/arecaceae.rdf";
52 URL url = new SDDSources().getClass().getResource("/arecaceae.rdf");
53 String sourceUrl = url.toString();
54 return sourceUrl;
55
56 }
57
58
59 public static String arecaceae_short(){
60 // Monocots rdf
61 URL url = new SDDSources().getClass().getResource("/arecaceae_short.rdf");
62 String sourceUrl = url.toString();
63 return sourceUrl;
64 }
65
66 public static String tcsXmlTest_local(){
67 // tcsXmlTest.xml
68 URL url = new SDDSources().getClass().getResource("/tcsXmlTest.xml");
69 String sourceUrl = url.toString();
70 return sourceUrl;
71
72 }
73
74 public static String tcsXmlTest_local2(){
75 // tcsXmlTest.xml
76 URL url = new SDDSources().getClass().getResource("/TcsXmlImportConfiguratorTest-input.xml");
77 String sourceUrl = url.toString();
78 return sourceUrl;
79
80 }
81
82 public static String tcsRdf_globis(){
83 // globis.rdf.xml
84 //String sourceUrl = "file:C:/Dokumente und Einstellungen/a.kohlbecker.BGBM/Desktop/globis.rdf.xml";
85 String sourceUrl = "globis.rdf.xml";
86 logger.debug("TcsRdfSource " + sourceUrl);
87 return sourceUrl;
88
89 }
90
91
92
93 }