Giter VIP home page Giter VIP logo

lazywebcypher's Introduction

LazyWebCypher

LazyWebCypher is a simple way to execute multi-statement Cypher scripts (the kind with semicolons, ;) from the web. Currently the Neo4j Browser does not support this, so this is a lazy person's workaround...

Are you lazy? Do you write Cypher statements? Often multiple statement scripts that do things like CREATE INDEXes and LOAD CSV files? Then LazyWebCypher is for you.

What is it?

A simple web app that facilitates executing loading and executing multiple statement Cypher scripts (the kind with semicolons) against a running instance of Neo4j, either local or a remote server.

Why do I need it?

You probably don't, however...

Often during an initial data import you want to execute a multiple statement Cypher script, usually with CREATE INDEX andLOAD CSV statments. Currently the Neo4j browser does not support executing multiple statement Cypher queries so you can either cut and paste your statements one at time or use something like neo4j-shell. But if you're lazy, you're not gonna do that, you're gonna use LazyWebCypher!

What can it do?

LazyWebCypher does two things:

  1. Load Cypher files (from a quey param, local file, remote url, or manual editing)
  2. Execute multiple statement Cypher queries against a running Neo4j instnace

Load Cypher files

Load Cypher files with a query parameter

Like this: http://johnymontana.github.io/LazyWebCypher/?file=https://raw.githubusercontent.com/legis-graph/legis-graph/master/quickstart/114/legis_graph_import_114.cypher

Load local Cypher files

Load Cypher script from remote URL

Execute Cypher scripts

Simply supply the connection url (and optionally Username/Password credentials) for an existing Neo4j instance and your queries will be executed directly from the browser, one at a time. Note that each statement is executed in its own transaction, this serves two purposes:

  1. CREATE INDEX or CREATE CONSTRAINT statements need to be executed in a separate transaction
  2. Better support for data import LOAD CSV Cypher statements by breaking your script up into multiple transactions

What are some examples that I can use with LazyWebCypher?

Submit an issue or PR to add yours!

Think this is lame?

Tell me about it @lyonwj

lazywebcypher's People

Contributors

johnymontana avatar mneedham avatar

Watchers

Ray Lugo, Jr. avatar  avatar

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.