wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41125
    
  45
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Creating Neo4j Graphs in java
 
Similar Threads
Jython and Websphere wsadmin escape issue
Strange behaviour with CachedXPathAPI
need jacl script help for websphere to create custom property for datasource
help needed with sax parser
Match XML data value with the mysql database