Hello,

Note that with loadFile(), you are not incrementing your commit manager's 
counter and thus, if your RDF file is large, you may run out of memory. See the 
work of Claudio for a good model for large RDF graphs:
        http://blog.acaro.org/entry/dbpedia4neo
        
https://github.com/claudiomartella/dbpedia4neo/tree/master/src/main/java/org/acaro/dbpedia4neo/inserter

Finally, you do not manager.close() at the end in order to commit your 
transaction.

Good luck,
Marko.

http://markorodriguez.com

On Aug 28, 2011, at 9:09 AM, Shri :) wrote:

> Hello everyone,
> 
>   I am very very new to Neo4j and OOP, I am working on a project using
> Neo4j system. I have already uploaded my RDF data into Neo4j using the
> following code (snippet)
> ....
> 
> 
> Neo4jGraph neo = new Neo4jGraph("dataset");
>    Sail sail = new GraphSail(neo);
>      sail.initialize();
>    CommitManager manager =
> TransactionalGraphHelper.createCommitManager(neo, 100000);
> 
>        SailConnection sc= sail.getConnection();
> 
>    for (String file: args) {
>    System.out.println("Loading " + file + ": ");
>    loadFile(file, sail.getConnection(), sail.getValueFactory(), manager);
>    System.out.print('\n');
>        }
> ....
> 
> I now want to write write a separate code to make my connection with the
> already created RDF store using Sail, I am confused about how I can make
> this connection without creating any new store..Kindly throw some light on
> this, I am stuck very badly..Thanks in advance..
> 
> 
> shri
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to