Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sim51/neo4j-plugin-xml
A simple Neo4j plugin
https://github.com/sim51/neo4j-plugin-xml
Last synced: about 2 months ago
JSON representation
A simple Neo4j plugin
- Host: GitHub
- URL: https://github.com/sim51/neo4j-plugin-xml
- Owner: sim51
- License: gpl-3.0
- Created: 2016-01-03T12:29:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-03T14:02:09.000Z (about 9 years ago)
- Last Synced: 2024-10-14T13:52:19.123Z (3 months ago)
- Language: Java
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Neo4j plugin XML
== Description
This project is just an example on how to make a Neo4j plugin.
It creates a new endpoint on which you can POST a cypher query, and it translates the response into a XML format.Moreover this plugin is compatible with JRebel. If you don't need this compatibility, you just have to remove the JRebel plugin from the pom.xml
== Installation
=== Compiling the code
* Go to the project folder
* just run `mvn package`=== Neo4j installation
* copy `neo4j-xml-1.0-SNAPSHOT-jar-with-dependencies.jar` from the target project folder to the plugins folder of Neo4j : `$>cp target/neo4j-xml-1.0-SNAPSHOT-jar-with-dependencies.jar NEO4J_HOME/plugins`
* Edit the file `NEO4J_HOME/conf/neo4j-server.properties`
* Add / modify the following line : `org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.plugin.xml=/xml`
* Restart the server== How to use it
There is two new endpoints :
The Ping one :
[source,shell]
----
$> curl -u neo4j:admin http://localhost:7474/xml/ping
Pong
----The cypher one :
[source,shell]
----
$> curl -u neo4j:admin http://localhost:7474/xml/cypher -d 'query=MATCH (n) RETURN n LIMIT 100'Benoit
----