GithubHelp home page GithubHelp logo

jexp / cy2neo Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 60.0 623 KB

Cy2Neo - Tiny Neo4j Cypher Workbench with D3 Visualization

Home Page: http://jexp.github.io/cy2neo

JavaScript 91.41% CSS 7.79% HTML 0.80%

cy2neo's Introduction

Cy2Neo - Tiny Neo4j Cypher Workbench with custom D3 Visualization

Cy2Neo is a tiny Neo4j query console, in a single HTML-page using client-side JavaScript only.

Neo4j is an open source graph database and Cypher is Neo4j’s graph query language.

Cypher queries are highlighted with CodeMirror.

Graph query results are rendered with D3 using a custom renderer based on neo4j’s browser rendering that is part of this project.

Cy2Neo uses a simple Neo4j HTTP-connector that posts Cypher queries to Neo4j’s transactional Cypher HTTP endpoint using jQuery Ajax requests.

You can try it live here, it should be able to connect to any Neo4j 2.x and 3.x instance that’s accessible from your machine. Just enter the Neo4j-URL, username and password in the boxes on the right side.

Note
I wrote most of it while flying from OSCON 2014 in Portland,OR to Chicago on my way home to Dresden, Germany.

cy2neo's People

Contributors

jexp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cy2neo's Issues

Trying to get graph to plot relationships

@jexp
Thanks for this utility.
I was trying to get it to work against my own dataset ... while it brings back the nodes ... it's not rendering any relationships. Should it be able to handle these? I'm working from the neod3 default branch. This is what I'm seeing.

image

I altered the cypher query to bring back relationship types, thinking that might work, as per table below, but it doesn't fix the graph.

image

This is the equivalent call using the built-in neo4j-browser .. which works fine ... even if relationships aren't explicitly specified as part of the RETURN.
MATCH (n:project{id:'xxxxx'})-[:HAS_STRUCTURE]-(o:structnode)-[:BRANCH_OF]-(p:structnode) RETURN n, o, p;
image

Also, is there a way to control which property field is used for naming the nodes?
Thanks.

Graph resize according to window

How to increase graph size based on the window size. Currently graph size remain fixed even if we seen in full window. Any one has any idea.

Many Thanks

License

Hi, thank you for making this, it's very useful! What's the license?

CORS and token based Authorization header

Hi, I wanted to use your POC to manage graph rendering myself but it seems to have a problem (maybe directly in neo4j CORS stuff) when using the last token based authentication method.

To know if Authorization header is allowed to be send in cross-domain ajax request the browser send OPTIONS request without it.

In this case sever respond "You're not authorized".

I think you need to be authorized to know you can use Authorization header so it's a dead end...

Maybe I'm wrong so just show me how to handle this case.

Thanks !

Site without login in a PHP website

Hello,

I want to fork your project, but without login, because I want to invite my friend to view my project at a website because he is not a programmer and doesn't have neo4j installed. I also will introduce to my teacher and classmates, but it is to annoying that my teacher and my classmates have to open neo4j, connect it, use my user and my password.

Similar to http://console.neo4j.org/ (it doesn't need login and password).

Remember I use PHP, I use $client->run('CREATE ...') and $query = 'MATCH ...'. I also would like use this graph (nodes and lines).

I followed https://stackoverflow.com/questions/21506825/using-the-neo4j-server-web-interface-for-visualization-on-a-public-website, but you didn't give good answers and didn't explain, because you didn't give tutorials. And their repository is outdated.

I also tried https://neo4j.com/graphgists/ and https://neo4j.com/developer/guide-data-visualization/#_howto_graph_visualization_step_by_step, and nothing worked.

Graph displays different with neo4j browser

Hi, the workbench is very useful for me. Thanks very much for the contribution. But graph displayed in this workbench is still different from that in neo4j browser. For example, though I have changed the color and the border-width of the node in the neo4j browser, nodes queried from the workbench are still the same with before .In addition, the properties of the node can not display when clicking it just as in neo4j browser. Besides, labels of nodes are not displayed. Can you give me some help? Thanks very much.

cy2neo
neo4j

Choose which property of the neo node to display

Howdy,

Right now it looks like the 1st property, from the list of properties within a node, is being displayed.
How to make it so a different property is displayed?
i.e. now it's showing the node's Uid, but I want it so show the node's Name.

Many Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.