Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting Started - Spring Data Neo4J vs. Neo4J API
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
GraphGuru  
View profile  
 More options Nov 14 2012, 1:13 pm
From: GraphGuru <unittesting...@gmail.com>
Date: Wed, 14 Nov 2012 10:13:27 -0800 (PST)
Local: Wed, Nov 14 2012 1:13 pm
Subject: Getting Started - Spring Data Neo4J vs. Neo4J API

I'm new to Neo4J and I want to work with it using Java.  I want to be able
to create/update/delete Nodes, Relationships programmatically and to
dynamically add/remove properties and relationships from nodes.

*Three questions*

   1. Is Spring Data Neo4J the way to go, or should I stick with the native
   Neo4J API?
   2. Is graph traversal via the traversal API recommended or is CYPHER
   replacing that API?
   3. Where can I get an up to date end-to-end Java tutorial? Seems like a
   lot of tutorials are outdated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hunger  
View profile  
 More options Nov 14 2012, 4:40 pm
From: Michael Hunger <michael.hun...@neotechnology.com>
Date: Wed, 14 Nov 2012 22:40:35 +0100
Local: Wed, Nov 14 2012 4:40 pm
Subject: Re: [Neo4j] Getting Started - Spring Data Neo4J vs. Neo4J API

Depends, if you have an object domain model which you want to map to a graph or if a more procedural approach of doing the mapping would suit you better.
The core-api is better suited for really dynamic properties and relationships. in SDN you would use different domain types that you can project the nodes/rels to.

The tutorial in the manual is always up to date: http://docs.neo4j.org/chunked/milestone/tutorials-java-embedded.html (Or which tutorials did you mean with outdated?)

You can also stick to cypher which now has update functionality.

Usually we nowadays recommend cypher and see the Java API as a performance optimization.

Cheers

Michael

Am 14.11.2012 um 19:13 schrieb GraphGuru:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GraphGuru  
View profile  
 More options Nov 25 2012, 8:05 am
From: GraphGuru <unittesting...@gmail.com>
Date: Sun, 25 Nov 2012 05:05:50 -0800 (PST)
Local: Sun, Nov 25 2012 8:05 am
Subject: Re: [Neo4j] Getting Started - Spring Data Neo4J vs. Neo4J API

Thank you.

I'll use Spring Data Neo4J because I have a domain model.  I'm having a
hard time finding a complete example that can help me do the following:

   1. I'm running Neo4J as a Server instead of as an embedded server.
   2. I want to connect to the Neo4J server using Spring Data Neo4J and
   perform CRUD operations.  I've found out about SpringRestGraphDatabase but
   I can't find any example of how to configure/use it.

Is there a complete step-by-step tutorial available that shows full Java
code and configuration details for connecting to a Neo4J server using
Spring Data Neo4J SpringRestGraphDatabase?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abdul Azeez Shaik  
View profile  
 More options Nov 25 2012, 9:56 am
From: Abdul Azeez Shaik <azeeztechni...@gmail.com>
Date: Sun, 25 Nov 2012 20:26:04 +0530
Local: Sun, Nov 25 2012 9:56 am
Subject: Re: [Neo4j] Getting Started - Spring Data Neo4J vs. Neo4J API

Hi,

You can find the documentations for configuration in 21st chapter of 'Good
Relationships' doc, here is the link for the same,
http://static.springsource.org/spring-data/data-neo4j/docs/2.1.0.RELE...

Also, please find below the sample configuration,

<context:annotation-config />

<context:spring-configured />

     <!-- Neo4j configuration (creates Neo4jTemplate) -->

    <neo4j:config graphDatabaseService="graphDatabaseService"/>

    <!-- REST Connection to Neo4j server -->

    <bean class=
"org.springframework.data.neo4j.rest.SpringRestGraphDatabase" id=
"graphDatabaseService">

 <constructor-arg index="0" value="#{systemEnvironment['NEO4J_REST_URL']}"/>

 <constructor-arg index="1" value="#{systemEnvironment['NEO4J_LOGIN']}"/>

 <constructor-arg index="2" value="#{systemEnvironment['NEO4J_PASSWORD']}"/>

 <!--<constructor-arg index="0" value="http://localhost:7474/db/data" />-->

    </bean>

<!-- Package w/ automatic repositories -->

<neo4j:repositories base-package="org.netvogue.server.neo4japi.repository"
/>

 <context:component-scan base-package="org.netvogue.server.neo4japi"/>

 <context:property-placeholder location="classpath*:*.properties"/>

Thanks,
Abdul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GraphGuru  
View profile  
 More options Dec 1 2012, 1:10 pm
From: GraphGuru <unittesting...@gmail.com>
Date: Sat, 1 Dec 2012 10:10:34 -0800 (PST)
Local: Sat, Dec 1 2012 1:10 pm
Subject: Re: [Neo4j] Getting Started - Spring Data Neo4J vs. Neo4J API

What is the name of the file and it's location where this configuration
information should go?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Abdul Azeez Shaik  
View profile  
 More options Dec 2 2012, 5:23 am
From: Abdul Azeez Shaik <azeeztechni...@gmail.com>
Date: Sun, 2 Dec 2012 15:53:28 +0530
Local: Sun, Dec 2 2012 5:23 am
Subject: Re: [Neo4j] Getting Started - Spring Data Neo4J vs. Neo4J API

Hi,

You can add this part of applicationcontext.xml file or you can have
separate configuration file specific to Neo4j like
neo4j-applicationcontext.xml file and load this.

~Abdul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »