Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5936883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:27:39+00:00 2026-05-22T15:27:39+00:00

I’m using DBpedia in my project. So far I’ve been using a SPARQL client,

  • 0

I’m using DBpedia in my project.
So far I’ve been using a SPARQL client, but the performance is far from being acceptable (not to mention the frequent downtime of the end point).

So I want to load the big NT files available at http://wiki.dbpedia.org/Downloads36 in a local dbms (I have a server with PostgreSQL).

In my application (built on Java and Groovy) I open a connection with a Jena persistent graph with:

def jenaConnection = new DBConnection( ... )
def maker = ModelFactory.createModelRDBMaker( jenaConnection )
def globalModel = maker.openModel( "my_big_fat_model" )

This is OK for a few thousand triples, but when I try to load a large NT file using a reader

RDFReader r = m.getReader( "N-TRIPLE")
r.read( inputStreamFromBigFile ... ) 

The performance is appaling. It loads about 2-3K triples per minute, meaning that the whole DBpedia dataset (millions of triples) might take days to load. Other people using JENA with large datasets don’t seem to have this issue.

I read that I should use TDB for large datasets (http://jena.apache.org/documentation/tdb/) but I don’t understand what I am supposed to do with it.

Is it a similar concept to the RDB interface or what? Do I need to load the NT in the PostgreSQL DB?

The JENA documentation doesn’t seem to be very clear on this point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:27:40+00:00Added an answer on May 22, 2026 at 3:27 pm

    If you want to stick with using PostgresQL as the back-end, you should use SDB. It’s a more up-to-date wrapper for relational stores for Jena models than the old db driver. There is also quickstart documentation for getting going with SDB.

    TDB is a persistent store that provides an alternative to using a relational database as the back-end triplestore. TDB builds its own b-tree indexes on disk, and manages the caching for you. In every other respect, it appears to the programmer just like a normal Jena Model. TDB has command line tools that help with the loading process, although as they are bash scripts they require Linux or cygwin. To load dbpedia, this is what I have done in the past:

    $> tdbloader2 --loc ./tdb ./source/*.nt
    

    where ./source is the directory where I downloaded the various .nt files from dpbedia. It takes a few hours on a reasonable machine, but certainly not days.

    Once you have the TDB image in ./tdb, just follow the documentation to load the Model in your Java program:

    String directory = "./tdb" ;
    Model model = TDBFactory.createModel(directory) ;
    ...
    model.close() ;
    

    From there, just use model as you normally would use any Jena model. There is one caveat: TDB doesn’t provide any concurrency support. If your app requires concurrent access to the store (specifically, any writes concurrent with one or more reads) you will need to handle locking at the app level.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.