Questions tagged [anormcypher]

AnormCypher is a Scala library for Neo4j which provides an API to use Cypher based on Anorm in the Play Framework.

AnormCypher is a library for which provides an to use based on in the . The usage of AnormCypher is very close to that of Play's Anorm.

Useful Links:

16 questions
5
votes
1 answer

Spring Data Neo4j in Play 2.x app using Scala

I am currently working on a web service backed by Neo4j (v2.1.2, hosted on GrapheneDB) and Play (v2.3) using Scala (2.11.1) (hosted on Heroku). Until now AnormCypher connects the Play app with the Neo4J instance and all things are working as…
4
votes
2 answers

Pushing Spark Streaming RDDs to Neo4j -Scala

I need to establish a connection from Spark Streaming to Neo4j graph database.The RDDs are of type((is,I),(am,Hello)(sam,happy)....). I need to establish a edge between each pair of words in Neo4j. In Spark Streaming documentation I found…
Naren
  • 457
  • 2
  • 10
  • 19
2
votes
1 answer

how to Connect to NEO4J in Spark worker nodes?

I need to get a small subgraph in a spark map function. I have tried to use AnormCypher and NEO4J-SPARK-CONNECTOR, but neither works. AnormCypher will lead to a java IOException Error (I build the connection in a mapPartition function, test at…
Mazz
  • 71
  • 1
  • 8
2
votes
0 answers

How to connect Blueprints to a remote neo4j server

I am trying to merge two separate efforts. I have an application that currently uses anormcypher to talk to a remote neo4j database, and I am now developing an application that uses TinkerPop Blueprints. In Blueprints I can create a new embedded…
egprentice
  • 814
  • 7
  • 15
2
votes
0 answers

Library dependencies with AnormCypher

I would like to use AnormCypher in my Scala project (with SBT). I am not using Play! Framework. Can I use AnormCypher anyway? If yes, how can I install the library. There is no .jar file or something. As the official github page said, I added…
JC R
  • 314
  • 2
  • 10
2
votes
1 answer

Spatial cypher queries don't work

I configured the spatial plugin for Neo4j with the following REST API Calls: POST http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer { "layer" : "geom", "lat" : "lat", "lon" : "lon" } POST…
Robin des Bois
  • 355
  • 2
  • 6
  • 20
2
votes
1 answer

Cypher: find path using Scala AnormCypher?

AnormCypher doc provides an example how to retriev data using the Stream API: http://anormcypher.org/ "The first way to access the results of a return query is to use the Stream API. When you call apply() on any Cypher statement, you will receive a…
DarqMoth
  • 603
  • 1
  • 13
  • 31
1
vote
1 answer

Neo4j Cypher find two disjoint nodes

I'm using Neo4j to try to find any node that is not connected to a specific node "a". The query that I have so far is: MATCH p = shortestPath((a:Node {id:"123"})-[*]-(b:Node)) WHERE p IS NULL RETURN b.id as b So it tries to find the shortest path…
ThatOneGuy
  • 160
  • 4
  • 12
1
vote
1 answer

Configuring spatial plugin for neo4j

To learn some new things I recently started a web project based on Scala, Play and Neo4j. My Play application connects to Neo4j using AnormCypher. Everything works fine, but at the moment I am struggling to implement a proximity search feature...…
Robin des Bois
  • 355
  • 2
  • 6
  • 20
1
vote
1 answer

How to connect graphenedb / neo4j to play app running on heroku?

I have a Play application (Scala) setup on heroku. Now I want to connect this application to a neo4j database using the graphenedb addon for heroku. I would like to use AnormCypher to interact with neo4j. Which steps give me such a setup? I would…
Robin des Bois
  • 355
  • 2
  • 6
  • 20
0
votes
1 answer

RedisGraph - Combining multiple directives with MERGE

I am currently running the below query on Neo4J match (p:Initial{state: 'Initial', name: 'Initial'}), (c:Encounter{code:'abcd', state: 'Encounter', name: 'Encounter1'}) merge (p)-[:raw {person_id:'1234', type:'Encounter', code:'abcd'}]->(c) However…
0
votes
1 answer

how can i avoid visiting a node with same property more than once in neo4j?

My Cypher query: MATCH p =(o:Order)-[r:seeks*2..8]->(o:Order) WHERE o.Name="000093" AND ALL(x IN tail(nodes(p)) WHERE SINGLE(y IN tail(nodes(p)) WHERE x=y)) RETURN extract(n IN nodes(p)| n.Name) AS OrderID, extract(u IN nodes(p)| u.UserName) AS…
MUHAMMAD
  • 61
  • 6
0
votes
1 answer

Why doesn't 'AND NOT (value.title IN ['item1','item2']' return the correct result in anormcypher but works in the neo4j console?

Anormcypher 0.80, Scala 2.11.7 I'm attempting to exclude a list of items from a cypher result set by using 'AND NOT (value.title IN ['item1','item2']'. The cypher query I'm running works in the neo4j console but does not exlcude item1 and item2…
fin
  • 39
  • 5
0
votes
2 answers

Storing current day, month, year as properties in a relation in neo4j using cypher query

I want to create a relationship in neo4j having properties as day, time, year of the current date. how can I get the current day,month, year using cypher neo4j??
RH1212354
  • 17
  • 7
0
votes
1 answer

Cypher Search Query Fuzzy query

I want to use cypher to search, I have four movie enerties, forrest, sky, sky1, sky2 I want search sky I want it returns sky, sky1, sky2 My cypher is @Query("MATCH (movie:Movie) WHERE movie.title =~ '.*{0}.*' RETURN movie") or @Query("MATCH…
yang
  • 183
  • 12
1
2