Questions tagged [redisgraph]

97 questions
1
vote
1 answer

Substitute one chain of nodes into anoter chain of nodes in graphdb ? like string substitution

Let say I have a chain/list of nodes : (:node {uid:333})-->(:node {uid:102})-->(:node {uid:155})-->... I want to substitute/replace one or several consecutive nodes with another chain of nodes. (:node {uid:255})-->(:node {uid:107}) it seem to me…
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

Redis Graph : Searching for n-consecutive nodes with moded-property?

In python code I get a list of uids of nodes f.e. [1,2,3]. I want to build a query to find a consecutively connected nodes and return the parent. So in this case the query will look like this: match (n0)-->(n1)-->(n2)-->(n3) where n1.uid % 100…
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
0 answers

Redisgraph in Azure

Is Redisgraph available in Azure through the Market place? We only see Redis Cache service in Azure Market place. We wanted to deploy RedisGraph using the Azure arm template, is it possible?
user3023949
  • 121
  • 2
  • 8
1
vote
1 answer

Path that contains specific nodes in the middle?

In Cypher you can get path anchored on two nodes f.e. match path=(a)-[r:rel*1..5]->(b) where a.val = 1 and b.val = 2 return path the question is how can I get paths that contain say node '(x) where x.val = 5' in the middle, instead of all paths
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

RedisGraph: Specifing Integer type of values ? Max int?

Is there a way to specify which specific type of integer a property can use : int16, uint32 .. ? or is it just NUMBER ?? Second : which is the biggest integer value that we can use in RedisGraph ?
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

Finding the "GAP" in node values ? or next?

Let say I have a nodes with values a multiples of 10. I want to find the first GAP in the values. Here is how I would do it in numpy : > np.where(np.diff([11,21,31,51,61,71,91]) > 10)[0][0] + 2 > 4 i.e. 41 How would I do this in Cypher... ? …
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

RedisGraph: Merge nodes and move all the reletionships?

In RedisGraph using Cypher/python is there a way to Merge two nodes and move all the relationships from the old node to the new node ? I suspect there are no pure Cypher solution... in that case what will be the equivalent atomic operations and how…
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

conditional creations of relations?

I have a query to move relations, but if there are existing target relations they are not replaced, so I end up with two similar connections. match (new:state) where new.val = {new} match (b:state)-[r1:q]->(p:state)-[r2:q]->(n:state) …
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
2 answers

RedisGraph - UNWIND batch of queries

I would like to execute a batch of queries in RedisGraph with the Python API in order to speed up the creation of big knowledge graphs. In Neo4J, the UNWIND command can be used by the Neo4J Python API and allows to parallelize queries. In this…
1
vote
1 answer

MERGE the edges even if the values differ?

the following query will create (n1)->(n2) pair. If the nodes already exists they will be reused. match (n1:X),(n2:X) where n1.val = 11 and n2.val = 12 merge (n1)-[x:q {val: 0 }]->(n2) the problem is that if the edge with x.val that is…
sten
  • 7,028
  • 9
  • 41
  • 63
1
vote
1 answer

How to get all the indexes created on a label using cypher query in redisgraph

How to get all the indexes created on a label using cypher query in redisgraph. I tried below command, but it returned error message. CALL db.indexes(); ERROR:Procedure db.indexes is not registered
1
vote
1 answer

How to remove/delete duplicate nodes from RedisGraph

Can someone help me on deleting duplicate nodes from the RedisGraph for a particular label. I found cypher queries in Neo4j, but the are not supporting in Redis. Please help me on this. I used below query, then RedisInsight thrown error MATCH…
1
vote
1 answer

redisgraph-bulk-loader issues with huge data in csv file

Below are the few issues I am getting when I am trying to upload a file with around one million records. Help me on resolving the issues. When I am try to find the solution in blogs, all are suggesting to modify some logic. But I am using…
1
vote
1 answer

Java client Cypher query with RedisGraph redis.clients.jedis.exceptions.JedisDataException: errMsg: Invalid input 'p': expected PROFILE line: 1

Using RedishGraph from Redis Labs in Java project. Getting below error when I pass Map Properties as input to Cypher query. ObjectMapper oMapper = new ObjectMapper(); Person person=new Person(2, "Jagadeesh", 23); Map personMap =…
1
vote
1 answer

Can I rewrite this Cypher query to be compatible with Redis Graph?

My use-case is that I have some agents in organisation structure. I want select for some agent (can by me) to see sum (amount of money) of all contracts that that agents subordinates (and subordinates of their subordinates and so on...) created with…
Martin Sršeň
  • 407
  • 5
  • 14