Giter Club home page Giter Club logo

caused's Introduction

A simple neo4j unmanaged extension to find caused nodes from a set of root causes

A node is only returned if it is exclusively caused by the set of root cause nodes passed in.

usage example:

findcaused takes a JSON array of node ids, and returns a JSON array of node ids that are exclusively caused by the input.

graph looks like this:

(10)-[:Causes]->(9)-[:Causes]->(8)<-[:Causes]-(7)

curl output:

$ curl -X POST -H Content-Type:application/json -d '[10,7,8]' http://localhost:7474/caused/findcaused
[10,9,8,7] 
$ curl -X POST -H Content-Type:application/json -d '[10,7]' http://localhost:7474/caused/findcaused
[10,9,8,7] 
$ curl -X POST -H Content-Type:application/json -d '[10]' http://localhost:7474/caused/findcaused
[10,9]
$ curl -X POST -H Content-Type:application/json -d '[10,9]' http://localhost:7474/caused/findcaused
[10,9]
$ curl -X POST -H Content-Type:application/json -d '[9]' http://localhost:7474/caused/findcaused
[] 
$ curl -X POST -H Content-Type:application/json -d '[7]' http://localhost:7474/caused/findcaused
[7]

configuration

Add this line to the end of your neo4j-server.properties file: org.neo4j.server.thirdparty_jaxrs_classes=caused=/caused

Copy from dist caused_2.10-0.1.jar, lift-json_2.10-2.5.jar and paranamer-2.4.1.jar into the lib/ folder in your neo4j server installation.

caused's People

Contributors

freeeve avatar

Watchers

 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.