Demonstrate neo4j-core Ruby GEM API to Access Neo4j Database

This post demonstrates basic neo4j-core Ruby GEM API to access Neo4j database. Topics covered:

  • installing and configuring development server
  • starting and stopping development server
  • create API session
  • creating nodes and relationships using
    • Node.create and Relationship.create -methods
    • Session.query -method
      • using fixed Cypher query language strings
      • using Cypher query language strings with parameters

:More:

Advertisements

A Case for RSPEC Custom Matcher

Introduction

Amazon Web Service uses Security Group to act as a virtual firewall that controls the traffic for one or more instances. According to Amazon documentation “rules from each security group are effectively aggregated to create one set of rules”. For a better support in RSPEC to validate AWS Security Group Rules, we need to extend the built-in include matcher. The built-in include matcher works fine for validating that an implemented rule satisfies an expected rule, but needs to be extended to validate that a set of rules satisfy a given specification.

This post first demonstrates, how RSPEC built-in include matcher works in validating one rule, and presents an extension for validating a set of rules.

:More: