1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package org.bgbm.biovel.drf.client;
|
11
|
|
12
|
import java.io.IOException;
|
13
|
import java.util.Properties;
|
14
|
|
15
|
import org.bgbm.biovel.drf.query.SparqlClient;
|
16
|
import org.bgbm.biovel.drf.store.TripleStore;
|
17
|
import org.junit.Test;
|
18
|
|
19
|
/**
|
20
|
* @author a.kohlbecker
|
21
|
* @date Oct 5, 2015
|
22
|
*
|
23
|
*/
|
24
|
public class SparqlClientTest {
|
25
|
|
26
|
private static final String RDF_FILE_URL = "http://localhost/download/species.rdf.gz"; // http://eunis.eea.europa.eu/rdf/species.rdf.gz
|
27
|
|
28
|
@Test
|
29
|
public void testRdfGzipFile() throws IOException {
|
30
|
|
31
|
Properties sysprops = System.getProperties();
|
32
|
TripleStore tripleStore = new TripleStore();
|
33
|
tripleStore.loadIntoStore(RDF_FILE_URL);
|
34
|
SparqlClient client = new SparqlClient(RDF_FILE_URL);
|
35
|
|
36
|
}
|
37
|
|
38
|
}
|