Spring Data Neo4J - Create new nodes via REST endpoint - neo4j

Does Spring Data provide a way to create new nodes via a REST endpoint? I don't think so but would like to make sure.

Which version are you referring to?
SDN works in both versions also with Neo4j server but using the Cypher Endpoint under the hood.

Related

How do I create a GraphQL API that resolve to a cypher query?

I am designing an API for a prototype project we have created that uses AgensGraph as the graph database. Now that we have a working graph database, we need an API (RESTful or GraphQL) that can be used to query the graph without directly using a cypher query. I am looking into using GraphQL. It appears that Neo4j has a GraphQL to Cypher resolver. Is there a similar way to create a GraphQL API for AgensGraph?
There is nothing that I'm aware but ...
There is a graphql plugin for postgres, and AgensGraph is based on PG
you can fork the neo4j-graphql-js project, and change the driver. This project is a Cypher generator for a GraphQL schema, but it uses Neo4j as a backend.
Otherwise try Neo4j :)

Neo4j OGM library with embedded server

Is it possible to use the OGM library with one embedded server ?
The examples I have seen so for the session is always obtain via remote http connection to the neo4j server.
I would like to have the elegant programming model of the OGM library without the having the make network IO to the database.
Thank you, kindly
Oscar
The current release of the OGM (1.1.4) supports only the Neo4j remote server.
OGM 2.0 will provide support for Neo4j remote server (http) and embedded Neo4j. Once Neo4j 3.0 is released, OGM 2.x will support the new binary (Bolt) protocol as well.
The first milestone of OGM 2.0 is expected within the next two weeks.

Neo4J REST API's

I need some conceptual understanding of Neo4j REST api's usage. I went through the tutorial of neo4j RESt api and got some idea. So is it like these REST api's are used only to CREATE nodes and Relationships and also to fetch data from the neo4j graph database? So can you give me one example/scenario where and how these neo4j REST api's are used?
Thanks,
Shree
Historically the very granular REST API calls for e.g. creating nodes, setting properties were there before Cypher was established. Cypher is a way more concise and compact way to query and modify the graph compared to the granular REST calls. These days you typically use Cypher over the transactional http endpoint.
For some usage examples refer to the manual as well.

neo4j server version - traversal framework and number of http requests

I know that neo4j database can be used both as embedded or server.
In neo4j documentation it says that REST API has an endpoint for Cypher queries, so if I issue Cypher query using spring-data-neo4j #Query annotated method, this query is sent to the database, executed on database side and then the result is sent back.
What about traversal API then? If I would submit traversal description using
findAllByTraversal(N startNode, org.neo4j.graphdb.traversal.TraversalDescription traversalDescription)
does it send all traversal description to the server and executes it in server context (so there it is only one HTTP request)?
Traversal API (package org.neo4j.graphdb.traversal) is only available via Java API. To expose your code using traversal API via REST, the recommended way is to wrap it into a unmanaged extension.

How to connect to neo4j server in spring via rmi?

How to connect to neo4j server in spring via rmi? I found http://mvnrepository.com/artifact/org.neo4j/neo4j-remote-graphdb. Is it component neo4j-remote-graphdb supported?
You can connect with that library, which is also in http://github.com/neo4j/java-rest-binding
But you shouldn't use individual operations over the wire for higher performance operations, use Cypher instead (using RestGraphDatabase.query(query, params)) with Cypher Parameters.

Resources