What's wrong with my code

What's wrong with my code

Posted in the Jena Forum


Manchester, UK

#1 Jun 27, 2011

I have written this following code to load a local RDF file to my local Virtuoso instance with the help of Jena. But even for the smallest of RDF file it times out. Can anybody please point out what could be the possible cause

import com.hp.hpl.jena.query.*; import com.hp.hpl.jena.rdf.model.Mode l; import com.hp.hpl.jena.rdf.model.Mode lFactory; import com.hp.hpl.jena.rdf.model.RDFN ode; import com.hp.hpl.jena.update.UpdateE xception; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import virtuoso.jena.driver.VirtDataS ource; import virtuoso.jena.driver.VirtGraph ; import virtuoso.jena.driver.VirtuosoU pdateFactory; import virtuoso.jena.driver.VirtuosoU pdateRequest;

[email protected] Priyam
public class Main {
public static void main(String[] args) throws FileNotFoundException {
VirtGraph set = new VirtGraph ("jdbc:virtuoso://localho st:1111", "dba", "dba");
InputStream in = new FileInputStream("C://User s//Dell//Documents//NetBeansPr ojects//CoKo//build//web//file s//test11.rdf");
VirtuosoUpdateRequest vur = VirtuosoUpdateFactory.read(in, set);
System.out.println("done ");



Tell me when this thread is updated:

Subscribe Now Add to my Tracker

Add your comments below

Characters left: 4000

Please note by submitting this form you acknowledge that you have read the Terms of Service and the comment you are posting is in compliance with such terms. Be polite. Inappropriate posts may be removed by the moderator. Send us your feedback.

Jena Discussions

Title Updated Last By Comments
Georgetown Police Department: The Likes & Dislikes (Jan '09) Jul '16 Tommie from NY 19
Still paying his taxes chris kimball Jun '16 Brief encounter 3
Butchers Choice (Apr '15) May '16 Rerun 2
Review: Pinnacle Training Center (Oct '13) Apr '16 SummerLovin 49
Looking for place to rent in Olla, Urania or Tu... (Apr '15) Jan '16 Looking 3
good head. (Jun '15) Jan '16 watash 3
Poll who put the hoe list up in olla la (Dec '08) Jan '16 InterestedViewer 13

Jena Jobs

More from around the web

Personal Finance

Jena Mortgages