Hi Andy:

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

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:

// 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);

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


On Sun, Nov 10, 2013 at 10:56 AM, Andy Seaborne <[email protected]> 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: [email protected]

Reply via email to