Btw,
any chance one of you could update the plugin to some later Neo4j
version? Would really be cool to get it going with 1.8.
Cheers,
/peter neubauer
Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L:
http://www.linkedin.com/in/neubauer
T: @peterneubauer
Wanna learn something new? Come to @graphconnect.
On Tue, Sep 11, 2012 at 2:52 PM, Chris <
christia...@t-online.de> wrote:
> That how its should look like:
>
> private static final String DB_PATH = "target/interaction-db";
>
> ……
>
> GraphDatabaseService graphdb = new
> GraphDatabaseFactory().newEmbeddedDatabase(DB_PATH);
>
> Neo4jImporter n4j=new Neo4jImporterImpl();
>
> n4j.importDatabase(graphdb);
>
> ……
>
> ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
>
> AttributeModel attributeModel =
> Lookup.getDefault().lookup(AttributeController.class).getModel();
>
> GraphModel graphModel =
> Lookup.getDefault().lookup(GraphController.class).getModel();
>
> ……
>
> //See if graph is well imported
>
> DirectedGraph graph = graphModel.getDirectedGraph();
>
> System.out.println("Nodes: " + graph.getNodeCount());
>
> System.out.println("Edges: " + graph.getEdgeCount());
>
> ……
>
> graphdb.shutdown();
> --
>
>