Revision 50781539
Added by Andreas Kohlbecker over 8 years ago
src/main/java/org/cybertaxonomy/utis/checklist/EEA_BDC_Client.java | ||
---|---|---|
46 | 46 |
public static final String DOC_URL = "http://semantic.eea.europa.eu/documentation"; |
47 | 47 |
public static final String COPYRIGHT_URL = "http://www.eea.europa.eu/legal/eea-data-policy"; |
48 | 48 |
|
49 |
private static final String SPECIES_RDF_FILE_URL = "http://localhost/download/species.rdf.gz"; // http://eunis.eea.europa.eu/rdf/species.rdf.gz |
|
50 |
private static final String TAXONOMY_RDF_FILE_URL = "http://localhost/download/taxonomy.rdf.gz"; // http://eunis.eea.europa.eu/rdf/taxonomy.rdf.gz |
|
51 |
private static final String LEGALREFS_RDF_FILE_URL = "http://localhost/download/legalrefs.rdf.gz"; // http://eunis.eea.europa.eu/rdf/legalrefs.rdf.gz |
|
52 |
private static final String REFERENCES_RDF_FILE_URL = "http://localhost/download/references.rdf.gz"; // http://eunis.eea.europa.eu/rdf/references.rdf.gz |
|
49 |
// private static final String DOWNLOAD_BASE_URL = "http://localhost/download/"; |
|
50 |
private static final String DOWNLOAD_BASE_URL = "http://eunis.eea.europa.eu/rdf/"; |
|
51 |
|
|
52 |
private static final String SPECIES_RDF_FILE_URL = DOWNLOAD_BASE_URL + "species.rdf.gz"; |
|
53 |
private static final String TAXONOMY_RDF_FILE_URL = DOWNLOAD_BASE_URL + "taxonomy.rdf.gz"; |
|
54 |
private static final String LEGALREFS_RDF_FILE_URL = DOWNLOAD_BASE_URL + "legalrefs.rdf.gz"; |
|
55 |
private static final String REFERENCES_RDF_FILE_URL = DOWNLOAD_BASE_URL + "references.rdf.gz"; |
|
53 | 56 |
|
54 | 57 |
/** |
55 | 58 |
* check for updates once a day |
... | ... | |
384 | 387 |
|
385 | 388 |
GremlinPipeline<Graph, Vertex> pipe = null; |
386 | 389 |
|
387 |
Profiler profiler = Profiler.newCpuProfiler(false); |
|
390 |
// Profiler profiler = Profiler.newCpuProfiler(false);
|
|
388 | 391 |
|
389 | 392 |
logger.debug("Neo4jINDEX"); |
390 | 393 |
|
... | ... | |
392 | 395 |
pipe = new GremlinPipeline<Graph, Vertex>(hitVs); |
393 | 396 |
|
394 | 397 |
List<Vertex> vertices = new ArrayList<Vertex>(); |
395 |
pipe.in(RdfSchema.EUNIS_SPECIES.property("binomialName")).fill(vertices); |
|
398 |
pipe.in(RdfSchema.EUNIS_SPECIES.property("binomialName"), |
|
399 |
RdfSchema.DWC.property("subgenus"), // EUNIS has no subgenera but this is added for future compatibility |
|
400 |
RdfSchema.DWC.property("genus") |
|
401 |
// no taxa for higher ranks in EUNIS |
|
402 |
).fill(vertices); |
|
396 | 403 |
|
397 | 404 |
updateQueriesWithResponse(vertices, null, null, checklistInfo, query); |
398 |
profiler.end(System.err); |
|
405 |
// profiler.end(System.err);
|
|
399 | 406 |
} |
400 | 407 |
} |
401 | 408 |
|
Also available in: Unified diff
easier switching between rdf download locations & adding support for genus resolution