Hi.I've just downloaded the newest version of Virtuoso (glibc 2.12 x86
(32-bit). After activated, I tried to connect to Virtuoso server by using
Java but I always get error:
08004 LI100: Number of licensed connections exceeded
How could I fix it?
This is my code (example 1):
> String url;
> if(args.length == 0)
> url = "jdbc:virtuoso://localhost:1111";
> else
> url = args[0];
>
> /* STEP 1 */
> VirtGraph set = new VirtGraph (url, "dba", "dba");
>
> /* STEP 2 */
>
>
> /* STEP 3 */
> /* Select all data in virtuoso */
> Query sparql = QueryFactory.create("SELECT * WHERE { GRAPH
> ?graph { ?s ?p ?o } } limit 100");
>
> /* STEP 4 */
> VirtuosoQueryExecution vqe =
> VirtuosoQueryExecutionFactory.create (sparql, set);
>
> ResultSet results = vqe.execSelect();
> while (results.hasNext()) {
> QuerySolution result = results.nextSolution();
> RDFNode graph = result.get("graph");
> RDFNode s = result.get("s");
> RDFNode p = result.get("p");
> RDFNode o = result.get("o");
> System.out.println(graph + " { " + s + " " + p + " " + o +
> " . }");
> }
> }
>
Thanks.