How to see database structure from hard disk.

60 views
Skip to first unread message

ravindra bhavsar

unread,
May 21, 2012, 3:47:01 PM5/21/12
to neo4j...@googlegroups.com
Hello sir,

I m new with neo4j and also with graph database concept. I m doing simple program that make relationship between 3 nodes and i want to see the
database that stored by my program on hard disk.
i m trying lot search on internet but i didn't get.so can any one tell me How to see the structure of my program database from hard disk ?If is their any way to do that then please tell me?
Thanks in advanced.

Mahesh Lal

unread,
May 21, 2012, 9:58:52 PM5/21/12
to neo4j...@googlegroups.com
Hi Ravindra,


             I m new with neo4j and also with graph database concept. I m doing simple program that make relationship between 3 nodes and i want to see the
database that stored by my program on hard disk.

When you say that you want to see the database that is stored on the the hard disk, do you mean the low level details about how the data is actually stored (i.e. how the nodes are represented, what structures are used etc.)  or do you want to see a visual representation of all the data stored by your program. By visual representation I mean - how is a node related to other nodes, what data is stored in a node, what properties do the relationship have, - all of this in a pretty graph

If you want to visualize the data, you can use the data browser in the webadmin tool provied by Neo4J itself. You will have to hit localhost:7474  in your web browser.
Another good tool that I know of is Neoclipse.

If you are looking for how data actually gets stored on the disk, then probably someone else on this group will have to answer the question. I have never gone to that level of detail.

-- Thanks

Mahesh Lal

ravindra bhavsar

unread,
May 22, 2012, 12:57:50 AM5/22/12
to neo4j...@googlegroups.com
Hello Sir,

Thanks for reply. I have already download Neoeclipse but i
don't understand how do i set my programs path in the Neoeclipse to
see the visual representation database that store on hard disk.If do
you know the any requirement for Neoclipse and whole step by step
procedure to do this then please tell me. Your Reply will very helpful
for me. Thanks in advanced.

On 5/22/12, Mahesh Lal <mahes...@gmail.com> wrote:
> Hi Ravindra,
>
> I m new with neo4j and also with graph database concept. I m
>> doing simple program that make relationship between 3 nodes and i want to
>> see the
>> database that stored by my program on hard disk.
>>
> When you say that you want to see the database that is stored on the the
> hard disk, do you mean the low level details about how the data is actually
> stored (i.e. how the nodes are represented, what structures are used etc.)
> or do you want to see a visual representation of all the data stored by
> your program. By visual representation I mean - how is a node related to
> other nodes, what data is stored in a node, what properties do the
> relationship have, - all of this in a pretty graph
>
> If you want to visualize the data, you can use the data browser in the
> webadmin tool provied by Neo4J itself. You will have to hit *localhost:7474
> *in your web browser.*
> *Another good tool that I know of is
> Neoclipse<https://github.com/neo4j/neoclipse>.
>
>
> If you are looking for how data actually gets stored on the disk, then
> probably someone else on this group will have to answer the question. I
> have never gone to that level of detail.
>
> -- Thanks
>
> Mahesh Lal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j India" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4j-india/-/s9c5nEVKVAsJ.
> To post to this group, send email to neo4j...@googlegroups.com.
> To unsubscribe from this group, send email to
> neo4j-india...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/neo4j-india?hl=en.
>
>

Nikhil Lanjewar

unread,
May 22, 2012, 1:18:22 AM5/22/12
to neo4j...@googlegroups.com
Hey Ravindra,

If your graph is not a big one involving a lot of vertices and edges, you could simply open your favorite browser and point it to http://localhost:7474 (7474 being the default Neo4j port). This will open the WebAdmin for Neo4j.

You could find a Data Browser link in the header. You could view relationships, node properties, and could even visualize the graph from there. However, you would need a more advanced tool like Neoclipse if you want to visualize a more complicated graph.

Documentation on Webadmin:

Hope this helps.

--
Nikhil Lanjewar
Engineering Lead at YourNextLeap

ravindra bhavsar

unread,
May 22, 2012, 2:59:39 AM5/22/12
to neo4j...@googlegroups.com
Hello sir,

Thanks for reply.One more thing i want to ask
i read some article that intimate graph database stored in hard disk
in key value format but i m confuse how it stores directly in hard
disk.Is their any need or requirement(i.e. tools or database) for
storing our content in hard disk.Please give me detail explanation
sir.Thanks in advanced..

Mahesh Lal

unread,
May 22, 2012, 3:11:07 AM5/22/12
to neo4j...@googlegroups.com
Hi Ravindra

I'm sorry, but I dont get the meaning of "intimate graph database".

As such Neo4J stores data in the location /data/db within your Neo4J installation folder. you can change that.
Also, the files themselves are binary files. Try opening then in a text editor and you will see gibberish.

It does show up in key:value format - but only through the API's or the rest client.

Does this answer your question?


ravindra bhavsar

unread,
May 22, 2012, 5:32:13 AM5/22/12
to neo4j...@googlegroups.com
Hello sir,
Thank you sir for reply .Where i can get good and step by step
tutorial for learning and understanding graph database concept.

On 5/22/12, Mahesh Lal <mahes...@gmail.com> wrote:

Nikhil Lanjewar

unread,
May 22, 2012, 5:55:45 AM5/22/12
to neo4j...@googlegroups.com
Ravindra,

Here are two brilliant presentations, one by Max De Marzi, and other by Pierre De Wilde


Besides, you could also find some very useful stuff on Neo4j docs:

--
Nikhil Lanjewar
Engineering Lead at YourNextLeap

Mahesh Lal

unread,
May 22, 2012, 5:58:25 AM5/22/12
to neo4j...@googlegroups.com
Apart from what Nikhil suggested, the manual could be pretty useful in case you want to learn other specifics about Neo4J. You can find it at http://docs.neo4j.org/ .

For specific queries, you can join the Neo4J google group - its different from the Neo4J India group and has a LOT of traction.



On Tue, May 22, 2012 at 3:02 PM, ravindra bhavsar <ravindra...@gmail.com> wrote:



--
-- REGARDS

MAHESH LAL


ravindra bhavsar

unread,
May 22, 2012, 6:54:53 AM5/22/12
to neo4j...@googlegroups.com
Hello mahesh sir,

I have download simple hello world code from
www.github.com.I have run this program it works fine and shows the
output "Hello, brave Neo4j World! Shutting down database ..."
and i trying to see the visual representation of this simple program
in neo4j data browser but i could not able to see.In program they
provide path DB_PATH=target/newo4j-hello-db.I don't understand where
it stores content.As all of you suggest it stores their content in
/data directory in neo4j and for seeing this database i start neo4j
server and hit url localhost:7474/webadmin browser it starts
but doesn't show visual representation of this simple program.what i
do to see that???

For storing our data in neo4j/data directory what steps required.(i.e
set any path from eclipse to neo4j database location.) please help
sir. Thanks to all of you sir only because of you i learn this this .I
think without your help it is not possible.Thanks in advanced.
> *-- REGARDS*
> *
>
> MAHESH LAL*
> *
> *

Mahesh Lal

unread,
May 22, 2012, 7:02:28 AM5/22/12
to neo4j...@googlegroups.com
The homepage of the neo4j weadmin is the analytics and stats. In the header there is a link for "Data Browser".

That is where you can visualize ur graph.


-- REGARDS

MAHESH LAL


ravindra bhavsar

unread,
May 22, 2012, 7:16:30 AM5/22/12
to neo4j...@googlegroups.com
Hello Mahesh Sir,

Thanks for reply sir.That means i have to make visual
representation manually by adding nodes and their relationship and on
the basis of that write program to make such a type of node and their
relationship Is it correct sir? Their no way to see existing database
visual representation from data browser.??? if yes the please tell me
how to i do that??

We need to set any path from our eclipse program location to
neo4j/data location for storing our data.Thanks sir ......


On 5/22/12, Mahesh Lal <mahes...@gmail.com> wrote:
> The homepage of the neo4j weadmin is the analytics and stats. In the header
> there is a link for "Data Browser".
>
> That is where you can visualize ur graph.
>
>

Mahesh Lal

unread,
May 22, 2012, 7:42:55 AM5/22/12
to neo4j...@googlegroups.com
No.

The Data Browser should show you all the data that is there in the database. You can create the nodes, but existing data should be also visible.

By default the data is stored in the data/graph.db folder.

All the settings should be in the conf/neo4j-server.properties file. It will be here that you can make changes as to where should be the data stored and what should be the URL to access the data.

So suppose your data is lying at xyz/my_data.db, you will have to update the org.neo4j.server.database.location  in conf/neo4j-server.properties file - basically set org.neo4j.server.database.location = xyz/my_data.db.

Once you have done this, restart your Neo4J server and then access the data browser. You should be able to see existing data and be able to modify it.

Please read through the manual as well. It should clarify a few more things.

Also - http://docs.neo4j.org/chunked/stable/tools-webadmin.html - has a decent amount of info to get you started on the webAdmin


On Tue, May 22, 2012 at 4:46 PM, ravindra bhavsar <ravindra...@gmail.com> wrote:
Hello Mahesh Sir,

       Thanks for reply sir.That means i have to make visual
representation manually by adding nhodes and their relationship and on

ravindra bhavsar

unread,
May 22, 2012, 8:20:06 AM5/22/12
to neo4j...@googlegroups.com
Hello Sir,

Thank you very much sir.

On 5/22/12, Mahesh Lal <mahes...@gmail.com> wrote:
> No.
>
> The Data Browser should show you all the data that is there in the
> database. You can create the nodes, but existing data should be also
> visible.
>
> By default the data is stored in the data/graph.db folder.
>
> All the settings should be in the conf/neo4j-server.properties file. It
> will be here that you can make changes as to where should be the data
> stored and what should be the URL to access the data.
>
> So suppose your data is lying at xyz/my_data.db, you will have to update
> the *org.neo4j.server.database.location* in conf/neo4j-server.properties
> file - basically set *org.neo4j.server.database.location = xyz/my_data.db.*
> *
> *

ravindra bhavsar

unread,
May 22, 2012, 7:41:58 AM5/22/12
to neo4j...@googlegroups.com
Hello sir,

Please help sir reply please.
Reply all
Reply to author
Forward
0 new messages