On 12/11/13 08:17, Adeeb Noor wrote:
Hi Andy:

Thanks for the response. And here are the answers of all questions:

And version of Jena?

And
[[
And how much of the DB does the SELECT query match?

What's SELECT (count(*) AS ?c) ....
What's SELECT (count(distinct *) AS ?c) ....
]]

Without knowing the proportion of the database accessed, I can't say much to help.

        Andy


My TDB is on my hard drive with 17GB and my PC is Mac Pro with 2.4 GHZ
and 4GB of memory.

The number of triples is: 37397456

My java: java version "1.6.0_65"

Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)

Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)


you ask me before to apply execConstructTriples and here is my code:

which I can't run.


// just to load the construct from a file.

FileLoader fileLoader = new FileLoader("src/DDICONSTRUCT.tql");

String q = fileLoader.loadAll();

// run the query

Query query = QueryFactory.create(q) ;

QueryExecution qexec = QueryExecutionFactory.create(query, tdb);

// applying the construct

Iterator<Triple> iterator =  qexec.execConstructTriples();

StmtIterator stmtIterator = ModelUtils.triplesToStatements(iterator, tdb);

//Now I am trying to add the result of construct in new TDB.

System.out.println(" ... Add new TDB  ...");

newTDB.add(stmtIterator);

Last time it was "inferredData"

What is newTDB?  What kind of Model?


System.out.println(" ... RDF  ...");

newTDB.exportRDF();

newTDB.close();

tdb.close();


My problem is that when I do newTDB.add(stmtIterator); to save the
result in new TDB (newTDB) the program keeps running for ever and the
TDB size never change 201 MB.


please let me know if you have another question. Attached my CONSTRUCT
query

Do some debugging :

Is it the iterator taking a long time or the adding to TDB?

Take your code, and instead of newTDB.add, count the iterator.

Attachments don't get through the list.

        Andy




On Sun, Nov 10, 2013 at 10:56 AM, Andy Seaborne <a...@apache.org
<mailto:a...@apache.org>> wrote:

    On 10/11/13 06:21, Adeeb Noor wrote:

        Any help guys .


    There is information about your data that I've asked for, twice,
    earlier in this thread.  Without that information, anything is just
    guessing.

    Only in your last message did you say "inferredData" so now maybe
    your are updating through an inference model.  I have no idea what
    the setup is.

    Please provide detailed information about your data, application,
    versions of software and of Java.

    A minimal, complete example please.

             Andy





--
Adeeb Noor
Ph.D. Candidate
Dept of Computer Science
University of Colorado at Boulder
Cell: 571-484-3303
Email: adeeb.n...@colorado.edu <mailto:adeeb.n...@colorado.edu>

Reply via email to