File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Creating Neo4j Graphs in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Creating Neo4j Graphs in java" Watch "Creating Neo4j Graphs in java" New topic
Author

Creating Neo4j Graphs in java

ashwini hirlekar
Greenhorn

Joined: Apr 01, 2014
Posts: 8
I am creating unique neo4j nodes in java class based on column values in database. column value will be assigned to each node. Code is as follow:
public void createNode(String name) {
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("D://NewGraph");
Transaction tx=graphDb.beginTx();
try{
Node nodeName;
nodeName.addLabel(DynamicLabel.label(name));
nodeName = graphDb.createNode();
nodeName.setProperty("name", nodeName);
tx.success();
}


i have already added neo4j.kernel-1.6.M01.jar but still i am getting an error "DynamicLabel cannot be resolved". please guide.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41812
    
  62
I know nothing about neo4j, but a quick check of the 1.6 javadocs shows that it does not contain such a class - it may have been added later. Why are you using such an old -and even pre-release!- version of neo4j?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating Neo4j Graphs in java