Dear list,
hi~~
I encounter "HttpException: java.net.SocketException: Connection reset:
java.net.SocketException: Connection reset" exception when I run the
following code, could you help me?
try {
Model dbpedia_model = ModelFactory.createDefaultModel();
String queryStr = "SELECT distinct ?c WHERE { ?c a owl:Class }";
Query query = QueryFactory.create(queryStr);
query.addGraphURI("http://dbpedia.org/");
QueryExecution qexec = QueryExecutionFactory.sparqlService("
http://dbpedia.org/sparql", query);
ResultSet rs = qexec.execSelect();
ResultSetFormatter.out(System.out, rs, query);
qexec.close();
} catch (Exception e) {
e.printStackTrace();
}
all the best
June