neo4j using

69 views
Skip to first unread message

mame diagne

unread,
Apr 17, 2012, 11:13:36 AM4/17/12
to Neo4j
Hello,
Je viens de découvrir neo4j. Je voudrais créer une base de donnnées de
type graphe, en java et utiliser neo4j pour cela. J'ai parcouru votre
documentation, mais je constate que je ne sais pas par quoi commencer.
J'ai essayé des faire les éxemple de codes, mais il se trouve que je
sais pas comment faire ppour visualiser les graphes que je suis en
train de créer. Comment dois-je procéder étape par étape?
cordialement

Axel Morgner

unread,
Apr 17, 2012, 12:12:03 PM4/17/12
to ne...@googlegroups.com
Salut,

serait-il possible pour toi de poser ton questions en anglais, comme
sp�cifique et pr�cis que possible? �a serait surement plus facile pour
la communaut� neo4j de r�pondre ...

Merci!

> Hello,
> Je viens de d�couvrir neo4j. Je voudrais cr�er une base de donnn�es de


> type graphe, en java et utiliser neo4j pour cela. J'ai parcouru votre
> documentation, mais je constate que je ne sais pas par quoi commencer.

> J'ai essay� des faire les �xemple de codes, mais il se trouve que je


> sais pas comment faire ppour visualiser les graphes que je suis en

> train de cr�er. Comment dois-je proc�der �tape par �tape?
> cordialement

Jim Webber

unread,
Apr 17, 2012, 12:23:37 PM4/17/12
to ne...@googlegroups.com
Salut,

Il y a des examples ici: https://github.com/jimwebber/neo4j-tutorial

Si vous avez besoin d'aide, emailez la liste en anglais (comme Axel a dit), ou emailez moi et je vais essayer vous aider en mon mauvais français.

Jim


On 17 Apr 2012, at 18:12, Axel Morgner wrote:

> Salut,
>
> serait-il possible pour toi de poser ton questions en anglais, comme spécifique et précis que possible? Ça serait surement plus facile pour la communauté neo4j de répondre ...
>
> Merci!
>
>> Hello,
>> Je viens de découvrir neo4j. Je voudrais créer une base de donnnées de


>> type graphe, en java et utiliser neo4j pour cela. J'ai parcouru votre
>> documentation, mais je constate que je ne sais pas par quoi commencer.

>> J'ai essayé des faire les éxemple de codes, mais il se trouve que je


>> sais pas comment faire ppour visualiser les graphes que je suis en

mame diagne

unread,
Apr 19, 2012, 4:03:17 PM4/19/12
to ne...@googlegroups.com
In fact I would like to make an application which is going to model an information system with the various links between the nodes . First of all, I have to set up a database of type graph, for a  global view in the interface of application. And theyasked me to use NEO4J. I read tutorials, there is a lot of information and I do not know how to structure them, could you  help me step by step for this conception ? The company had never used anything of it, soI begin without nothing.

Axel Morgner

unread,
Apr 19, 2012, 4:22:14 PM4/19/12
to ne...@googlegroups.com
Ok, let's try to sort it out:


In fact I would like to make an application which is going to model an information system with the various links between the nodes .
With Neo4j, the modeling is quite easy: Create some nodes, add properties (f.e. give them a type property) and relationships between them.

You said you're using Java, so http://docs.neo4j.org/chunked/milestone/tutorials-java-embedded-setup.html might be a good starting point.

First of all, I have to set up a database of type graph, for a  global view in the interface of application. And theyasked me to use NEO4J.
Using Java, you can easily embed the database in your Java project.

I read tutorials, there is a lot of information and I do not know how to structure them, could you  help me step by step for this conception ?
There's no standard way how to model a problem using a graph database. One typical approach though is to apply a type attribute (roughly equivalent to table names in SQL), add different sets of node properties (think of table columns) per type. Finally, add relationships between them (similar to join operations in SQL). Note that the "join" operation happens at insert time in a graph database.

Hope that makes sense to you.

Axel

mame diagne

unread,
Apr 20, 2012, 4:36:04 AM4/20/12
to Neo4j
OK I understand a little better, but what about nodes, where do I
create them exactly? Because I tried to execute some of your examples
and it generate me every time of files .db, so now, how to
visualize ,its various files? And these generated files, means that
the database is created.? I launched the server like that was
indicated in tutoriels, but how to make the link between the codes of
creation of database and the server of database? And to finish, have
you an example which makes the creation, the connection and the
requests on a database?
On 19 avr, 22:22, Axel Morgner <a...@morgner.de> wrote:
> Ok, let's try to sort it out:
>
> > In fact I would like to make an application which is going to model an
> > information system with the various links between the nodes .
>
> With Neo4j, the modeling is quite easy: Create some nodes, add
> properties (f.e. give them a type property) and relationships between them.
>
> You said you're using Java, sohttp://docs.neo4j.org/chunked/milestone/tutorials-java-embedded-setup...
> might be a good starting point.> First of all, I have to set up a database of type graph, for a  global
> > view in the interface of application. And theyasked me to use NEO4J.
>
> Using Java, you can easily embed the database in your Java project.> I read tutorials, there is a lot of information and I do not know how
> > to structure them, could you  help me step by step for this conception ?
>
> There's no standard way how to model a problem using a graph database.
> One typical approach though is to apply a type attribute (roughly
> equivalent to table names in SQL), add different sets of node properties
> (think of table columns) per type. Finally, add relationships between
> them (similar to join operations in SQL). Note that the "join" operation
> happens at insert time in a graph database.
>
> Hope that makes sense to you.
>
> Axel
>
>
>
> > The company had never used anything of it, soI begin without nothing.
>
> > Le 17 avril 2012 18:23, Jim Webber <j...@neotechnology.com
> > <mailto:j...@neotechnology.com>> a �crit :
>
> >     Salut,
>
> >     Il y a des examples ici:https://github.com/jimwebber/neo4j-tutorial
>
> >     Si vous avez besoin d'aide, emailez la liste en anglais (comme
> >     Axel a dit), ou emailez moi et je vais essayer vous aider en mon
> >     mauvais fran�ais.
>
> >     Jim
>
> >     On 17 Apr 2012, at 18:12, Axel Morgner wrote:
>
> >     > Salut,
>
> >     > serait-il possible pour toi de poser ton questions en anglais,
> >     comme sp�cifique et pr�cis que possible? �a serait surement plus
> >     facile pour la communaut� neo4j de r�pondre ...
>
> >     > Merci!
>
> >     >> Hello,
> >     >> Je viens de d�couvrir neo4j. Je voudrais cr�er une base de
> >     donnn�es de
> >     >> type graphe, en java et utiliser neo4j pour cela. J'ai parcouru
> >     votre
> >     >> documentation, mais je constate que je ne sais pas par quoi
> >     commencer.
> >     >> J'ai essay� des faire les �xemple de codes, mais il se trouve
> >     que je
> >     >> sais pas comment faire ppour visualiser les graphes que je suis en
> >     >> train de cr�er. Comment dois-je proc�der �tape par �tape?
> >     >> cordialement- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Michael Hunger

unread,
Apr 20, 2012, 4:57:40 AM4/20/12
to ne...@googlegroups.com
Perhaps you can describe your domain in terms of elements and connections, in the email use a notation like


(user) { "name": "Axel" }
(document) { "title" : "neo4j community email" }
(user)-[:CREATED]->(document) { "at" : "April 20 2012" }

On getting started:

As Jim said you can use the java-API to create that database by calling createNode(), node.createRelationshipTo() and node/rel.setProperty()

If you just want to model your domain, use a whiteboard.

If you want to visualize your db you can either use the neo4j-console for trying it out:
e.g.
http://console.neo4j.org/usage.html

enter the notation above into the first text area then you can get your temporary graph going (you can enter the same notation on the command line or cypher-statements to query the graph).
(that is just an in-memory representation, so if you want to keep your model hit the share button on the top right corner and copy out the db-description)

then you end up with a link to share like: http://tinyurl.com/7dtkarg

Or you download neo4j-server, start it and go to http://localhost:7474 to see your db, you can add data there on the data browser tab

Cheers

Michael

mame diagne

unread,
Apr 20, 2012, 6:08:27 AM4/20/12
to Neo4j
Hello,
Would it be possible to test directly your example without having to
install Cygwin?

mame diagne

unread,
Apr 20, 2012, 5:46:20 AM4/20/12
to Neo4j
Sothe graphic view is not directly obtained with files .db? It
belongs to me to make the graphs? To create the relations manually?

On 20 avr, 10:57, Michael Hunger <michael.hun...@neotechnology.com>
wrote:
> Perhaps you can describe your domain in terms of elements and connections, in the email use a notation like
>
> (user) { "name": "Axel" }
> (document) { "title" : "neo4j community email" }
> (user)-[:CREATED]->(document) { "at" : "April 20 2012" }
>
> On getting started:
>
> As Jim said you can use the java-API to create that database by calling createNode(), node.createRelationshipTo() and node/rel.setProperty()
>
> If you just want to model your domain, use a whiteboard.
>
> If you want to visualize your db you can either use the neo4j-console for trying it out:
> e.g.http://console.neo4j.org/usage.html
>
> enter the notation above into the first text area then you can get your temporary graph going (you can enter the same notation on the command line or cypher-statements to query the graph).
> (that is just an in-memory representation, so if you want to keep your model hit the share button on the top right corner and copy out the db-description)
>
> then you end up with a link to share like:http://tinyurl.com/7dtkarg
>
> Or you download neo4j-server, start it and go tohttp://localhost:7474to see your db, you can add data there on the data browser tab
> >> - Afficher le texte des messages précédents -- Masquer le texte des messages précédents -

Peter Neubauer

unread,
Apr 21, 2012, 8:43:43 AM4/21/12
to ne...@googlegroups.com
Well,
you can use the Neo4j server http://neo4j.org/download/ or Neoclipse,
to graphically modify the database. Otherwise, you could play around
online with http://console.neo4j.org/, even part of the docs, see e.g.
http://docs.neo4j.org/chunked/snapshot/query-match.html#match-directed-relationships-and-identifier

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
Reply all
Reply to author
Forward
0 new messages