This project is an example you can use to build user defined procedures for Neo4j graph database. Japanese introduction is the following : https://qiita.com/ggszk/items/4884f764936686d740e1
This project requires a Neo4j 3.5.x dependency.
The user defined procedure allows you to join strings (sample4_1) and to get 1hop paths (sample4_2).
See Sample.java
.
MATCH (n:Person)
CALL example.sample4_1(n.name, n.name) yield out as out
return out limit 10
CALL example.sample4_2(1)
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/neo4j-exetnsion-sample-0.1.jar
,
that can be deployed in the plugin
directory of your Neo4j instance.