My own console.neo4j.org

47 views
Skip to first unread message

Javier de la Rosa

unread,
Oct 11, 2012, 10:09:40 AM10/11/12
to ne...@googlegroups.com
Hi all,

Is there any way to setup my own console.neo4j.org for my Neo4j
instances? Or is there any plan to integrate it into the current
webadmin?

Regards.

--
Javier de la Rosa
http://versae.es

Peter Neubauer

unread,
Oct 11, 2012, 10:19:26 AM10/11/12
to ne...@googlegroups.com
For setting up the console locally, you could just fork the project on
https://github.com/neo4j-contrib/rabbithole and set it up locally.
Contribution welcome!

For the webadmin side of things - yes, we are discussing how and when
to integrate it with the webadmin. Actually, there is the bigger
question on how to get together output visualization, the Cypher input
editor and the scrolling output into one coherent screen so we can get
rid of the data browser, console and vizualisation as separate views.
Does anyone have a good suggestion on how that could look?

Cheers,

/peter neubauer

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

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html
> --
>
>

Javier de la Rosa

unread,
Oct 11, 2012, 11:15:50 AM10/11/12
to ne...@googlegroups.com
Thanks! Rabbithole is really awesome.

About the integration, maybe splitting the window in three?

 -----------------------------------------------------------
| Tabular view               | Graph view                   |
| --------------------       |      o----o                  |
| | n | m | count(*) |       |           |                  |
| --------------------       |           o                  |
| | 1 | 5 | 345      |       |                              |
 -----------------------------------------------------------
| > last Cypher query, if you click, you'll see the results |
|                                                           |
| > START n=node(*) ...                                     |
 -----------------------------------------------------------
> --

Wes Freeman

unread,
Oct 11, 2012, 2:26:19 PM10/11/12
to ne...@googlegroups.com
Awesome! I didn't know it was open sourced...

Prepare to be forked!

Wes

On Thu, Oct 11, 2012 at 10:19 AM, Peter Neubauer <peter.n...@neotechnology.com> wrote:
--



Peter Neubauer

unread,
Oct 11, 2012, 3:22:08 PM10/11/12
to ne...@googlegroups.com
Guys,
some layout loooove would be highly appreciated. Just sayin' :)

Cheers,

/peter neubauer

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

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html


> --
>
>

Wes Freeman

unread,
Oct 11, 2012, 7:24:49 PM10/11/12
to ne...@googlegroups.com
The main thing I wanted to see was a bigger text box to type queries in (and maybe the ability to type shift-enter to insert carriage returns and have more readable queries). And query histories like in the real shell, where you can hit up/down and see what your old queries were. Maybe auto-formatting the query so it looks pretty, like in the log window. :)

Wes

--



Michael Hunger

unread,
Oct 11, 2012, 7:55:01 PM10/11/12
to ne...@googlegroups.com
The console can actually do much more:

- it can pull (sub)-graphs from existing local or remote graph-databases and either sandbox  or expose them

In general I think there are a ton of options, 

- something I played around with for the community graph was integrating jquery-UI data-tables for the cypher results, which works awesomely. http://community-graph.neo4j.org/ (run a query like: start n=node(0) match n-[r1]-m-[r2]-o return n,type(r1), type(r2), count(*)) 
- integrate something like jsPlumb to create graphs visually (or just draw them via svg and then parse that into a graph) jsplumb.org/jquery/dynamicAnchorsDemo.html

But actually we want to get all of that goodness rather in the Neo4j server product and make it embeddable in other HTML sites :)

What I like about the console nowadays is its simplicity. What I don't like is that creating graphs is still too hard, and I agree with Peter on the layout love (I'm really bad at that).

We had a multiline input field once but it was buggy (or actually my javascript skills are too bad). Query history is also awesome, things we could look into for that are jsconsole which brings most of that out of the box (https://github.com/remy/jsconsole)

Michael



--
 
 

Wes Freeman

unread,
Oct 11, 2012, 10:37:45 PM10/11/12
to ne...@googlegroups.com
That all sounds great.

Maybe it's just me, but I don't mind creating graphs in cypher (I suppose it would be nice to have a supremely easy beginner-friendly way, though, for the beginners--but I would probably still use Cypher). I just wish I didn't always feel like typing my queries/creates in vim because of the one line input box.

Don't get me wrong, though, my planned minor improvements will just be icing... console is already a killer app for neo4j. The visualization is simple but excellent, and the share option crushes every other nosql offering with the "let me show you exactly what I mean" factor. At least, I haven't seen anything close to it in any of the other datastores. It's one thing to have a "try redis" or a "try mongo" in the browser with a tutorial, but it's yet another vastly more impressive thing to have a way to store your sample database and share it wherever you want. 

Wes

--
 
 

Michael Hunger

unread,
Oct 11, 2012, 10:49:57 PM10/11/12
to ne...@googlegroups.com
Right that was the original idea of the console,

a combination of a repl, a sandbox and a gist.

Looking forward to your ideas and PR's

Michael

--
 
 

Michael Hunger

unread,
Oct 11, 2012, 10:54:39 PM10/11/12
to ne...@googlegroups.com
Oh, btw. the shared graphs are all stored in a neo4j instance that backs up console :) and I count usage.

  • start n=node:graphs("id:*") return n.id, n.count? order by coalesce(n.count?,0) desc limit 10;
  • ==> +---------------------+
  • ==> | n.id     | n.count? |
  • ==> +---------------------+
  • ==> | "GoT"    | 2809.0   |
  • ==> | "lyg8wr" | 55.0     |
  • ==> | "f4a0do" | 52.0     |
  • ==> | "5gz1pt" | 47.0     |
  • ==> | "en0t9x" | 44.0     |
  • ==> | "ijxzfm" | 32.0     |
  • ==> | "o80t0r" | 29.0     |
  • ==> | "bwj123" | 25.0     |
  • ==> | "hp9nja" | 25.0     |
  • ==> | "7y32w3" | 24.0     |
  • ==> +---------------------+
  • ==> 10 rows
  • ==> 127 ms

Michael

Am 12.10.2012 um 04:37 schrieb Wes Freeman:

--
 
 

Peter Neubauer

unread,
Oct 12, 2012, 3:24:03 AM10/12/12
to ne...@googlegroups.com
Also,
I would love clearer icons that correspond to what they do in the
upper right corner :)

Cheers,

/peter neubauer

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

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html


> --
>
>

Wes Freeman

unread,
Oct 12, 2012, 10:33:37 AM10/12/12
to ne...@googlegroups.com
Do you save originating IP addresses? Lol... I have a feeling I've created a couple hundred by now.

Wes

--
 
 

Michael Hunger

unread,
Oct 12, 2012, 12:27:25 PM10/12/12
to ne...@googlegroups.com
No I don't google analytics counts visitors :)

Michael

--
 
 

Reply all
Reply to author
Forward
0 new messages