Re: [Virtuoso-users] virtuoso API

2009-09-08 Thread Dhaval Thakker
Hi Hugh That sorted it out, it works perfectly fine now. Thanks for your help regards Dhaval On Tue, Sep 8, 2009 at 4:30 PM, Hugh Williams wrote: > Hi Dhaval, > The "...lexical..." errors you are getting is coming from the Jena SPARQL > parser being invoked when using the QueryFactory.create me

Re: [Virtuoso-users] virtuoso API

2009-09-08 Thread Hugh Williams
Hi Dhaval, The "...lexical..." errors you are getting is coming from the Jena SPARQL parser being invoked when using the QueryFactory.create method, if you by pass this method and execute the query directly with the VirtuosoQueryExecutionFactory.create method it should then work. I was ab

Re: [Virtuoso-users] virtuoso API

2009-09-08 Thread dhavalkumar . thakker
Hi Ted Thanks for your reply. I have tried it on and it still doesnt work giving me the following error: Exception in thread "main" com.hp.hpl.jena.query.QueryParseException: Lexical error at line 1, column 7. Encountered: " " (32), after : "SPARQL" cheers Dhaval On 8 Sep 2009 14:42, Te

Re: [Virtuoso-users] virtuoso API

2009-09-08 Thread Ted Thibodeau Jr
Hi, Dhaval -- On Sep 7, 2009, at 01:11 PM, Dhaval Thakker wrote: Query sparql = QueryFactory.create("define input:inference 'http://inference.org ' select ?s where {?s }"); On a quick glance, I think you just need

[Virtuoso-users] virtuoso API

2009-09-07 Thread Dhaval Thakker
Dear List members, I am still hanging on this problem and though would send you another email. Here is what i have done so far: 1. Let's say I have an ontology which I have loaded with TTLP function as graph "http://myontology.org";. This ontology contains atleast this: (baseuri: http://Entity.ow