• Share
  • ?
  • Profiles ▼
  • Communities ▼
  • Apps ▼

Blogs

  • My Blogs
  • Public Blogs
  • My Updates

Data Application Development

  • Log in to participate

About this blog

The views expressed in this blog are my personal opinions and do not necessarily reflect the views of IBM or its partners
  • Facebook
  • Twitter
  • Google
  • LinkedIn
  • RSS

Archive

  • June 2017
  • September 2015
  • June 2015
  • January 2015
  • March 2013
  • November 2012
  • September 2012

Tags

Posts by date
  • Sort by:
  • Date ▼
  • Title
  • Likes
  • Comments
  • Views

Loading Turtle, N3 and TRIG files to a DB2 RDF Store

Mario Briggs 270001DNFS | | Comments (2) | Visits (6118)

Tweet
5 lines of code that will load a turtle, N3 or TRIG file to a DB2 RDF Store        String file = "<turtle/n3/trig file>";      //load the file to memory      Model memM = ModelFactory.createDefaultModel();      memM.read(FileManager.get().open(file), "", Lang.guess(file).name());       // connect to the the RDF Store in DB2     Store store = StoreManager.connectStore(connection, "", storeName);     Dataset db2DS = RdfStoreFactory.connectDataset(store, conn);          // copy triples to DB2    ... [More]
  • Show:
  • 10
  • 20
  • 30
  • Previous
  • Next
1