Hi Hugh,
I modified the VirtuosoQueryExecution.java file. That appears to remove the
extra stuff being prepended to my query. Now my queries return data. I
modified the second constructor to now read:
public VirtuosoQueryExecution (String query, VirtGraph graph)
{
virt_graph = graph.getGraphName();
//modified this line:
virt_query = "sparql " + query;
virt_url = graph.getGraphUrl();
virt_pass = graph.getGraphPassword();
virt_user = graph.getGraphUser();
}
Just to be clear, is there a 64 bit version of the JDBC drivers? Is there
something else I need to change in my code?
Thanks,
Chuck
--- On Fri, 5/9/08, Hugh Williams <[email protected]> wrote:
> From: Hugh Williams <[email protected]>
> Subject: Re: [Virtuoso-users] No data returned 64 bit Mac running Leopard
> To: [email protected]
> Cc: [email protected]
> Date: Friday, May 9, 2008, 8:58 PM
> Hi Chuck,
>
> We are currently working on major enhancements to the
> Virtuoso Jena
> and Sesame RDF Providers, thus I would recommend you wait
> for the
> availability of the updated Jena Provider and repeat your
> test.
> Hopefully this provider will be available by the end of
> next week. I
> shall notify you when we have a cut available for you to
> test.
>
> Best Regards
> Hugh Williams
> Professional Services
> OpenLink Software
>
> On 9 May 2008, at 17:06, Chuck Borromeo wrote:
>
> > Hello,
> > We successfully built our Virtuoso Server using the
> 64-bit binaries
> > for Leopard (Mac OS X 10.5). We re-imported all of
> the data from our
> > old system into the 64-bit version. We are using JDBC
> drivers to
> > connect our web application to the Virtuoso Server.
> Here is our
> > environment:
> >
> > Mac OS X 10.5
> > Jena 2.5.4
> > Virtuoso OpenSource 5.0.6
> >
> > Previously, we were using Virtuoso OpenSource 5.0.1.
> We can run
> > our old
> > queries using the 64-bit SPARQL endpoint. Therefore,
> the data is
> > in the
> > 64-bit Virtuoso Server. However, running the same
> queries through our
> > JDBC connection does not return any data. Here is a
> snippet of
> > our code:
> >
> > VirtGraph set = new VirtGraph
> ("jdbc:virtuoso://xxxxx:1112", "xxxxx",
> > "xxxxxxxxxx");
> > String queryText = "[our query]";
> > Query sparql = QueryFactory.create(queryText);
> > VirtuosoQueryExecution vqe =
> VirtuosoQueryExecutionFactory.create
> > (sparql, set);
> > ResultSet results = vqe.execSelect();
> >
> > Are there new versions of the JDBC drivers or Virtuoso
> Jena drivers?
> > Are there different classes we should use? We are
> using the
> > virtjdbc3.jar file that was part of the 5.0.6
> deployment file. We
> > have
> > noticed the VirtuosoQueryExecution instance has an
> attribute called
> > virt_query. This attribute is prepending the
> following text to the
> > beginning of our query:
> >
> > sparql
> > define input:default-graph-uri <virt:DEFAULT>
> >
> > Could this be causing a problem? These lines are not
> part of the
> > original query.
> >
> > Thanks,
> > Chuck
> >
> >
> >
> >
> ______________________________________________________________________
>
> > ______________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile. Try it now. http://
> > mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> ----------------------------------------------------------------------
>
> > ---
> > This SF.net email is sponsored by the 2008 JavaOne(SM)
> Conference
> > Don't miss this year's exciting event.
> There's still time to save
> > $100.
> > Use priority code J8TL2D2.
> >
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://
> > java.sun.com/javaone
> > _______________________________________________
> > Virtuoso-users mailing list
> > [email protected]
> >
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users