Giter VIP home page Giter VIP logo

motifs's Introduction

Motifs

Instructions

This project uses maven, to build a jar-file with the procedure in this project, simply package the project with maven:

mvn clean package

This will produce a jar-file, target/procedures-1.0-SNAPSHOT.jar, that can be copied to the plugin directory of your Neo4j instance.

cp target/motifs-1.0-SNAPSHOT.jar neo4j-enterprise-3.5.6/plugins/.

Restart your Neo4j Server. Your new Stored Procedures are available:

CALL com.maxdemarzi.motifs("relationshipType", "filepath");    
CALL com.maxdemarzi.motifs("ALSO_PURCHASED", "/tmp/also_purchased_motifs.csv");
Sample Data
CREATE (p1:Product)
CREATE (p2:Product)
CREATE (p3:Product)
CREATE (p4:Product)
CREATE (p5:Product)
CREATE (p1)-[:ALSO_PURCHASED]->(p2)
CREATE (p2)-[:ALSO_PURCHASED]->(p3)
CREATE (p3)-[:ALSO_PURCHASED]->(p4)
CREATE (p4)-[:ALSO_PURCHASED]->(p5)
CREATE (p5)-[:ALSO_PURCHASED]->(p1)
CREATE (p1)-[:ALSO_PURCHASED]->(p3)
CREATE (p3)-[:ALSO_PURCHASED]->(p5)
CREATE (p5)-[:ALSO_PURCHASED]->(p2)
CREATE (p2)-[:ALSO_PURCHASED]->(p4)
CREATE (p4)-[:ALSO_PURCHASED]->(p1);

motifs's People

Contributors

maxdemarzi avatar

Stargazers

Jakob avatar

Watchers

James Cloos avatar

motifs's Issues

Add procedure compiler

All you need is to add this to your POM:

<dependency>
  <groupId>org.neo4j</groupId>
  <artifactId>procedure-compiler</artifactId>
  <version>${neo4j.version}</version>
  <optional>true</optional>
</dependency>

And you get (some) compile-time sanity checks run against your extension(s).

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.