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

  • SEARCH
  • Home
  • 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 5968507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:05:59+00:00 2026-05-22T20:05:59+00:00

A TDB storage is created and various named models stored within. Is it posible

  • 0

A TDB storage is created and various named models stored within.

Is it posible with the API to list all the named models contained in the TDB (so you can pick one to work with) or is it necesary to know the name of the model you want to work with beforehand?

I find nothing in the APi documentation about this (just for creating models) or googling.

  • 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-22T20:06:00+00:00Added an answer on May 22, 2026 at 8:06 pm

    You can do it with a sparql query:

    [/tmp]
    ian@rowan-15 $ cat > test.nq
    <http://example.org/a> <http://example.org/p> "in graph one" <http://example.org/graph/one> .
    <http://example.org/a> <http://example.org/p> "in graph two" <http://example.org/graph/two> .
    [/tmp]
    ian@rowan-15 $ mkdir tdb
    [/tmp]
    ian@rowan-15 $ tdbloader --loc=tdb test.nq
    -- Start triples data phase
    ** Load empty triples table
    -- Start quads data phase
    ** Load empty quads table
    Load: test.nq -- 2011/05/27 08:55:59 BST
    -- Finish triples data phase
    -- Finish quads data phase
    2 quads loaded in 0.05 seconds [Rate: 37.74 per second]
    -- Start quads index phase
    ** Index GSPO->GPOS: 2 slots indexed
    ** Index GSPO->GOSP: 2 slots indexed in 0.00 seconds [Rate: 2,000.00 per second]
    ** Index GSPO->POSG: 2 slots indexed
    ** Index GSPO->OSPG: 2 slots indexed
    ** Index GSPO->SPOG: 2 slots indexed
    -- Finish quads index phase
    ** 2 quads indexed in 0.01 seconds [Rate: 153.85 per second]
    -- Finish triples load
    -- Finish quads load
    ** Completed: 2 quads loaded in 0.09 seconds [Rate: 23.26 per second]
    [/tmp]
    ian@rowan-15 $ tdbquery --loc=tdb "select ?g where {graph ?g {?s ?p ?o}}"
    ----------------------------------
    | g                              |
    ==================================
    | <http://example.org/graph/one> |
    | <http://example.org/graph/two> |
    ----------------------------------
    

    Edit

    Sorry, just realised that you specifically asked for listing the named graphs from the API. So, as an alternative to the above:

    String directory = "./tdb";
    Dataset dataset = TDBFactory.createDataset(directory);
    Iterator<String> graphNames = dataset.listNames();
    while (graphNames.hasNext()) {
        String graphName = graphNames.next();
        ....
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible from within a rake task to get a list of tasks
I'm working on an app that uses Jena for storage (with the TDB backend).
The question pretty much says it all. I have an app with an older
I use jena TDB to store my ontology, and I want to limit access
One of my base repository classes contains a method: public abstract class RepositoryBase<T, TDb>
I have to display a list box with label as value name & I
I'm new to T-SQL; all my experience is in a completely different database environment
$(this).parent().parent() .children(this.attr(tagName).toLowerCase()) .css(background-color, yellow); xpath: /html/body/div/table/tr/td/b/a $(this).tagName is Anchor <a> the problem with this
I am getting this error in my terminal when I execute the command above,
I'm trying to better understand why one of our database update scripts failed to

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.