Hi,
I have the virtuoso windows version (virtuoso-opensource-win64-6.1.2.zip
- 2010-07-09) installed in my local machine and the linux version
(virtuoso-opensource-6.1.2.tar.gz - 2010-07-09) installed in a remote
server. Everything works fine on the local windows version (using the
web interface and jena). However, some queries does not work on the
virtuoso which is in the remote linux server when using Jena. Again
everything works fine if I use the virtuoso web interface. Here is one
of the queries that doesn't work. It throws an error and the server
crashes.
private void select(){
String query = "define input:inference \"ricordo_rule\" " +
"PREFIX rcmd: <http://www.ebi.ac.uk/ricordo/model#> " +
"SELECT DISTINCT ?m COUNT (?s) FROM
<http://ricordotest.com> WHERE { ?s rcmd:elementOf ?m . ?s ?p
<urn:miriam:obo.fma:FMA%3A9557> } GROUP BY ?m";
VirtuosoQueryExecution vqe =
VirtuosoQueryExecutionFactory.create (query, graph);
ResultSet results = vqe.execSelect();
while (results.hasNext()) {
QuerySolution rs = results.nextSolution();
RDFNode s = rs.get("m");
RDFNode p = rs.get("?callret-1");
System.out.println(" { " + s + " " + p.asLiteral().getInt()
+ " }");
}
}
Exception in thread "main" com.hp.hpl.jena.shared.JenaException: Can not
create ResultSet.:virtuoso.jdbc3.VirtuosoException: Virtuoso
Communications Link Failure (timeout) : Connection to the server lost
at virtuoso.jena.driver.VirtuosoQueryExecution.execSelect(Unknown
Source)
It would be great if you could please let me know how I could resolve
this issue.
Many thanks in advance
Sarala