PBClient for RedisGraph
Latest version: 1.0.0.0
Category: Tags: , ,

Component for handling RedisGraph – a fast graph database powered by linear algebra and matrix multiplication based on Redis. 

According to RedisGraph official documentation its main features are:

  • Property graph model based on openCypher query language
  • Cypher queries translate into linear algebra expressions
  • Nodes can have any number of labels
  • Relationships have a relationship type
  • Graphs represented as sparse adjacency matrices
PBClient for RedisGraph will provide you with:
  • TPBRedisGraph.GRAPH_QUERY
  • TPBRedisGraph.GRAPH_LIST
  • TPBRedisGraph.GRAPH_PROFILE

A list of RedisGraph commands

Additional commands: CloneGraph, DumpGraph, RestoreGraph

Simplified Cypher commands for NODEs and EDGEs, like CREATE, MATCH and DELETE, will make sure you will get the data in the proper format:

  • GRAPH_NODE_CREATE(‘label’, ‘{“key_str”: “value_str”, “key_int”: value_int, …, “key_n”: “value_n”}’) – based on native GRAPH.QUERY CREATE this function creates a new ‘label’ node with corresponding ‘{“key”:”value”}’ pairs.
  • GRAPH_NODE_MATCH(‘label’, ‘{“key_1”: “value_1”, …, “key_n”: “value_n”}’, [‘key_1’, …, ‘key_n’]) – based on native GRAPH.QUERY MATCH this function searches for all the ‘label’ nodes with matching ‘{“key”:”value”}’ pairs, and returns values of selected [‘keys’]. 
  • GRAPH_EDGE_CREATE(source_int, destination_int, ‘label’, ‘{“key_str”: “value_str”, “key_int”: value_int, …, “key_n”:”value_n”}’) – based on native GRAPH.QUERY CREATE this function creates a new ‘label’ edge between source and destination nodes with corresponding ‘{“key”:”value”}’ pairs.
  • GRAPH_EDGE_MATCH(‘label’, ‘{“key_1”: “value_1”, …, “key_n”: “value_n”}’, [‘key_1’, …, ‘key_n’]) – based on native GRAPH.QUERY MATCH this function searches for all the ‘label’ edges with matching ‘{“key”:”value”}’ pairs, and returns values of selected [‘keys’]. 
  • res2dic(JsonString) – converts RedisGraph JSON string to the usual JSON string. This is necessary because JSON returned by RedisGraph has unusual formatting.

Prerequirements

  1. In order for this component to work you have to obtain, install and run the respective Redis software and its licenses. We do not provide any Redis software.
  2. PBClient for RedisGraph requires PBClient for Redis as the core component. It should be installed to provide a connection with the Redis server.

OS compatibility

Microsoft Windows
7 SP2 x64
8 x64
8.1 x64
10 x64
11 x64

RAD Studio compatibility

10 Seattle
10.1 Berlin
10.2 Tokyo
10.3 Rio
10.4 Sydney
11 Alexandria