I'm inserting RDF triples into Virtuoso Open Source 6.0.0-tp1. The triples are inserted one by one using the following code:

for (StmtIterator i = rdf.listStatements(); i.hasNext();) {
    Statement stmt = i.nextStatement();
sparql = "INSERT INTO GRAPH <" + graphUri + "> { " + NTripleStamentWriter.writeStament(stmt) + " }";
    if (LOG.isDebugEnabled()) {
        LOG.debug(sparql);
    }
VirtuosoUpdateRequest vqe = VirtuosoUpdateFactory.create(sparql, virtGraph);
   vqe.exec();
   if (progressMonitor != null) {
      progressMonitor.setProgress(++counter, total);
   }
}

After exactly 28229 triples has been inserted. The following exception is thrown by the next insert:

Caused by: com.hp.hpl.jena.update.UpdateException: Convert results are FAILED.:
at virtuoso.jena.driver.VirtuosoUpdateRequest.exec(Unknown Source)
at com .dumontierlab .pdb2rdf .dao .impl .VirtuosoTripleStoreDaoImpl.insert(VirtuosoTripleStoreDaoImpl.java:88)
... 2 more
Caused by: virtuoso.jdbc3.VirtuosoException: Connection failed: Cannot assign requested address
at virtuoso.jdbc3.VirtuosoConnection.connect(Unknown Source)
at virtuoso.jdbc3.VirtuosoConnection.connect(Unknown Source)
at virtuoso.jdbc3.VirtuosoConnection.<init>(Unknown Source)
at virtuoso.jdbc3.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
... 4 more

I know it happens exactly at the insert number 28230 because I tried with different datasets and I get the same exception. When I look at the graph statistics, it tells me that there are 28229 triples.

This code used to work fine with virtuoso 5.0.10.

Any ideas?

Thanks,
Alex

Reply via email to