Questions tagged [tdb]

TDB is an open source RDF database developed and maintained by the Apache Jena project

TDB is an open source RDF database developed and maintained by the Apache Jena project. It is a Java based embedded database that may be exposed over HTTP using the Fuseki Server also from the Apache Jena project.

Features

It's features includes the following:

  • Persisting RDF Triples or Quads
  • Full SPARQL execution
  • Write ahead logging to provide serializable transactions and fault tolerance

Scalability and Performance

TDB typically scales up to datasets of a few hundred million triples or quads.

Compared to commercial alternatives TDB is often less scalable compared primarily because while it is persisted to disk it is fundamentally designed as an in-memory database. It relays heavily on RAM caches and memory mapped files so scalability tends to be limited by machine RAM.

Also TDB does not have any option of a clustered mode so cannot be scaled horizontally without additional technologies (e.g. manually created replicas and load balancers)

TDB is typically included in the Berlin SPARQL Benchmark Results for those interested in comparative performance data.

137 questions
0
votes
0 answers

Extract schema from rdf/xml

I am making use of a tool called as FRED (http://wit.istc.cnr.it/stlab-tools/fred) , which generates the RDF/XML for the given natural language text. But that tool is making use its own predefined schema and also the namespaces. There is no way for…
0
votes
1 answer

jena model.read time and memory issue

I am trying to analyse large datadumps for my semantic web project which I created with eclipse/jena. I am using tdb database, which works fine for 2gb but I am experiencing memory issues with files over 6gb. My goal is to extract all predicates…
emrahozkan
  • 193
  • 1
  • 3
  • 15
0
votes
1 answer

Performance issue loading dataset/model from Apache TDB

I have a RDF file that has 7MB and ~ 80k statements. When starting the application, I have the following code, that retrieves a list of itens I need to show to the user: NodeIterator iterator =…
0
votes
2 answers

tdbloader2 fails with classpath error

When I run the following command: bin/tdbloader2 --loc=/store/data/here /seed/data/serverfault-dump.nt And the response I get is: 10:52:31 -- TDB Bulk Loader Start 10:52:31 Data phase Error: Could not find or load main class…
Kristian
  • 21,204
  • 19
  • 101
  • 176
0
votes
1 answer

Jena Security with Reification

Given this example RDF how could I use jena security to only retrieve values where user role matches ex:role? _:statement rdf:type rdf:Statement . _:statement rdf:subject dbr:Ireland . _:statement rdf:predicate dbo:capital . _:statement rdf:object…
Trevor
  • 363
  • 7
  • 20
0
votes
1 answer

Fuseki Server v1.1.1 : SPARQLer : SPARQL query Get Results in xml-to-html-links : the links gives Error 400

I am using Jena-Fuseki Server version 1.1.1. I am able to connect to my TDB and query it successfully via ControlPanel>Select Dataset>SPARQL Query. But when the query is made with the Get Results where Output = XML and If XML output, add XSLT style…
0
votes
1 answer

Error when I load RDF triples in TDB Triple Store

I have a question for you: I have loaded my file RDF in TDB Triple Store: Dataset dataset = TDBFactory.createDataset(directory); Model model = dataset.getNamedModel("http://nameFile"); TDBLoader.loadModel(model, file ); Now, I would like to realize…
Musich87
  • 562
  • 1
  • 12
  • 31
0
votes
1 answer

Generating TDB Dataset from archive containing N-TRIPLES files

Apologies, in advance, for a possible duplicate. I have an archive containing 117,426 files (each in the N-TRIPLES format) that I wish to load into the default graph of a TDB dataset. Due to the large number of files, I need to be able to perform…
Rob Hall
  • 2,693
  • 16
  • 22
0
votes
1 answer

How I can realize a SPARQL Endpoint public if I use only Web Service

I have a question: I have read on the Web that SPARQL endpoint is a Web service that answers SPARQL queries for some dataset. I have read also that I can realize a Web Service which has a method that queries the data on triple store and so I have a…
Musich87
  • 562
  • 1
  • 12
  • 31
0
votes
0 answers

Error when I launch SPARQL query endpoint on the browser

I have a question: I have two RDF files that I load on Jena TDB using this Java Code: public void store() { String directory = "C:\\tdb"; Dataset dataset = openTDB(directory); String source = "C:\\file1.rdf"; String…
Musich87
  • 562
  • 1
  • 12
  • 31
0
votes
0 answers

Issue with jena TDB (TDB.CreateDatase)

I'm trying to create a data base with TDB.CreateDataBase. But I get an error that I can't spot. I put the stack trace bellow. Unfortunately there is some Guice involve which might make it difficult to catch. But I have pretty well isolated it and…
MaatDeamon
  • 9,532
  • 9
  • 60
  • 127
0
votes
1 answer

Jena TDB , filters don't work

I'm using Jena TDB for store a dataset of triples from a file. I have a problem when I try to send a SPARQL query to TDB using filter. For example the following query works: select ?ob where { ?ob rdfs:label "NameOfLabel"@language . } but this…
0
votes
1 answer

Jena TDB , see how many triple stored during tdb creation

Hi is possible to see the number of triple in storing during tdb creation with java api? I run the TDB factory with a rar file in turtle , but during the creation of files in my directory i cant see how many triple it has stored. How can i solve…
user3329477
  • 41
  • 1
  • 2
0
votes
0 answers

How I can write a Fuseki configuration that uses my schema

I have a question. I have two files: a Model file with data and a OntModel with schema. I have stored these files ina Jena TDB as described in this post: How I can use Fuseki with Jena TDB My question is: is it correct to store my schema in Jena…
Musich87
  • 562
  • 1
  • 12
  • 31
0
votes
1 answer

How I can query a model on Jena TDB given a name

I have a question. I am trying to load my RDF files on Jena TDB. I have written this code: public void store(){ String directory = "C:\\tdb"; String source = "C:\\file1.rdf"; String source1 = "C:\\file2.rdf"; Dataset dataset =…
Musich87
  • 562
  • 1
  • 12
  • 31