Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-03 Thread Hugh Williams
Hi Sergio, File d = new File(this.getClass().getClassLoader().getResource ("full.rdf").getPath()); // the file is correctly UTF-8 encoded FileInputStream fis= new FileInputStream(d); byte[] b = new byte[fis.available()]; fis.read(b); fis.close (); Strin

Re: [Virtuoso-users] Problems with JDBC Connection while performing queries

2009-09-03 Thread Hugh Williams
Hi Paolo, Are you making a normal or pooled connection to the database ? As pooled connection would be best if you application/script is making many continuos connects and disconnects during this process as detailed at: http://docs.openlinksw.com/virtuoso/ VirtuosoDriverJDBC.html#jd

[Virtuoso-users] Fwd: jena and virtuoso

2009-09-03 Thread Dhaval Thakker
Thanks Hugh for the pointers. I was not able to find any class/method that will allow me to do (command line equivalent of): rdfs_rule_set ('http://inference.org', 'http://schema.org'); that is specifying ontology/schema as a rule set for the inference engine to use. Any further hints? Thanks

Re: [Virtuoso-users] Encoding problems with VirtModel

2009-09-03 Thread Sergio Fernández
On Mon, 2009-08-31 at 21:05 +0100, Hugh Williams wrote: > How is the data inserted into Virtuoso is this done via the same Jena > application or loaded by some other means ? Huhg, here you have a piece of code: File d = new File(this.getClass().getClassLoader().getResource("full.rdf").g