public class SparqlBasedFetcher extends Object implements Fetcher
Fetcher
for SPARQL that tries to get triples from a SPARQL
endpoint using the query "SELECT ?s ?p ?o\r\nWHERE {\r\nGRAPH ?g {\r\n?s ?p ?o\r\n}} ".Modifier and Type | Class and Description |
---|---|
protected static class |
SparqlBasedFetcher.SelectedTriplesIterator |
Modifier and Type | Field and Description |
---|---|
protected File |
dataDirectory |
private static org.slf4j.Logger |
LOGGER |
private static int |
MINIMUM_DELAY
The default minimum delay that the system will have between sending two queries.
|
protected int |
minimumDelay |
private static String |
SELECT_ALL_TRIPLES_QUERY |
Constructor and Description |
---|
SparqlBasedFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
File |
fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri,
Delayer delayer)
|
protected org.aksw.jena_sparql_api.core.QueryExecutionFactory |
initQueryExecution(String uri,
Delayer delayer) |
private static final org.slf4j.Logger LOGGER
private static final int MINIMUM_DELAY
private static final String SELECT_ALL_TRIPLES_QUERY
protected int minimumDelay
protected File dataDirectory
public File fetch(org.dice_research.squirrel.data.uri.CrawleableUri uri, Delayer delayer)
Fetcher
protected org.aksw.jena_sparql_api.core.QueryExecutionFactory initQueryExecution(String uri, Delayer delayer) throws ClassNotFoundException, SQLException
ClassNotFoundException
SQLException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017–2020. All rights reserved.