Giter VIP home page Giter VIP logo

node_gap's Introduction

Node Gap

Find the gaps in the data

Based on http://stackoverflow.com/questions/37505590/cypher-pattern-matching/

Instructions

  1. Build it:

     mvn clean package
    
  2. Copy target/node_gap-1.0-SNAPSHOT.jar to the plugins/ directory of your Neo4j server.

3a. Configure Neo4j by adding a line to conf/neo4j-server.properties on versions < 3.0:

    org.neo4j.server.thirdparty_jaxrs_classes=com.maxdemarzi=/v1

3b. Configure Neo4j by adding a line to conf/neo4j.conf on version >= 3.0:

    dbms.unmanaged_extension_classes=com.maxdemarzi=/v1
  1. Download and copy additional jar to the plugins/ directory of your Neo4j server.

     wget http://central.maven.org/maven2/org/roaringbitmap/RoaringBitmap/0.6.18/RoaringBitmap-0.6.18.jar
    
  2. Start Neo4j server.

  3. Check that it is installed correctly over HTTP:

     :GET /v1/service/helloworld
    
  4. Warm up the database (optional)

     :GET /v1/service/warmup
    
  5. Run it:

     :GET /v1/service/gaps
    

Results should look like this:

    [
    {Points=[{id=b11}, {id=b12}, {id=b13}, {id=b14}], Start Road={id=a1}, End Road={id=a2}},
    {Points=[{id=b11}, {id=b21}, {id=b22}, {id=b23}, {id=b24}, {id=b14}], Start Road={id=a1}, End Road={id=a2}},
    {Points=[{id=b31}, {id=b41}, {id=b42}], Start Road={id=a3}, End Road={id=a4}}
    ]

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.