public class ExtractionDBCache extends Object
Constructor and Description |
---|
ExtractionDBCache(Connection conn) |
ExtractionDBCache(String cacheDir) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
org.apache.jena.rdf.model.Model |
executeConstructQuery(SparqlEndpoint endpoint,
String query) |
org.apache.jena.rdf.model.Model |
executeConstructQuery(SparqlEndpoint endpoint,
String query,
int maxExecutionTimeInSeconds) |
String |
executeSelectQuery(SparqlEndpoint endpoint,
String query) |
String |
executeSelectQuery(SparqlEndpoint endpoint,
String query,
int maxExecutionTimeInSeconds) |
String |
getCacheDirectory() |
static void |
main(String[] args) |
void |
setFreshnessInMilliseconds(long freshnessInMilliseconds) |
void |
setMaxExecutionTimeInSeconds(int maxExecutionTimeInSeconds) |
static String |
toNTriple(org.apache.jena.rdf.model.Model m) |
public ExtractionDBCache(Connection conn) throws SQLException
SQLException
public ExtractionDBCache(String cacheDir)
public String getCacheDirectory()
public void setFreshnessInMilliseconds(long freshnessInMilliseconds)
public org.apache.jena.rdf.model.Model executeConstructQuery(SparqlEndpoint endpoint, String query) throws SQLException, UnsupportedEncodingException
public org.apache.jena.rdf.model.Model executeConstructQuery(SparqlEndpoint endpoint, String query, int maxExecutionTimeInSeconds) throws SQLException, UnsupportedEncodingException
public String executeSelectQuery(SparqlEndpoint endpoint, String query)
public String executeSelectQuery(SparqlEndpoint endpoint, String query, int maxExecutionTimeInSeconds)
public void closeConnection() throws SQLException
SQLException
public void setMaxExecutionTimeInSeconds(int maxExecutionTimeInSeconds)
public static void main(String[] args) throws ClassNotFoundException, SQLException, NoSuchAlgorithmException, UnsupportedEncodingException
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann