Results 1 to 3 of 3

Thread: Load RDF file

  1. #1
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default Load RDF file

    Hi

    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

    Java Code:
    import com.hp.hpl.jena.query.*; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.rdf.model.RDFNode; import com.hp.hpl.jena.update.UpdateException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import virtuoso.jena.driver.VirtDataSource; import virtuoso.jena.driver.VirtGraph; import virtuoso.jena.driver.VirtuosoUpdateFactory; import virtuoso.jena.driver.VirtuosoUpdateRequest;
    
     /**
     *
     * @author Priyam
     */
    public class Main {
        public static void main(String[] args) throws FileNotFoundException {
    VirtGraph set = new VirtGraph ("jdbc:virtuoso://localhost:1111", "dba", "dba");
       InputStream in = new FileInputStream("C://Users//Dell//Documents//NetBeansProjects//CoKo//build//web//files//test11.rdf");
      VirtuosoUpdateRequest vur = VirtuosoUpdateFactory.read(in,set);
                    vur.exec();
    System.out.println("done");
    
        }
    
    }

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,589
    Rep Power
    23

    Default

    Cross posted at jena code

  3. #3
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Load file with a lot or lines.
    By juamd in forum Advanced Java
    Replies: 9
    Last Post: 04-26-2011, 07:41 PM
  2. file load
    By myka in forum Advanced Java
    Replies: 1
    Last Post: 04-03-2010, 08:42 PM
  3. load xml file in servlet help please
    By khdani in forum Java Servlet
    Replies: 2
    Last Post: 10-05-2009, 10:28 PM
  4. Load file in GUI instead of notepad
    By Kruptein in forum AWT / Swing
    Replies: 1
    Last Post: 08-08-2009, 05:57 PM
  5. Not able to load a properties file
    By Happy9959 in forum New To Java
    Replies: 12
    Last Post: 07-29-2008, 07:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •