java - What is the difference between GraphDatabaseService or NeoService in neo4j -


I'm learning to use, but I'm a little confused about its usage. When I am adding nodes and relationships, I can do it like this:

GraphDatabaseService graphDb = New Embedded Graph Database ("C: / temporary / graphfib"); Transaction tx = graphDb.beginTx (); Try {Org.neo4j.graphdb.NodeNode = graphDb.createNode (); ...

I can also do this:

  NeoService service neoService = new embedded neo ("C: / temporary / graphfib"); Transaction tx = neoService.beginTx (); Try {org.neo4j.api.core.Node node = neoService.createNode (); ...  

What is the difference? Which one should I use? Why are they two different mechanisms? Is this just API development? :) I want to use Metamodal API and it needs a Neoze Service, so I think the option is clear.

Sorry, you must first use one because the namespace was transferred to the latest 1.0-RC1 I went. This is just naming, semantics are similar. The second example is old and should be removed as an official document.

Cheers,

/ peter neubauer


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -