Schema

data class Schema : Record, Rule

A Schema describes the nodes and relationships in a Neo4j database via the (potentially) interconnected graphs.

Schema implements Rule, thus has the capability to Rule.validate that a Cypher query adheres to the nodes and relationships defined in the graphs.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Graph : Record

A Graph is a KList of nodes that specify the expected entities in a Neo4j database.

Link copied to clipboard

Graph entity Metadata.

Link copied to clipboard
data class Node : Record

A Node in the graph.

Link copied to clipboard
Link copied to clipboard

A Relationship in the graph.

Link copied to clipboard
sealed class Violation

A Schema caused by a Cypher query, or entities in the Neo4j graph.

Properties

Link copied to clipboard
Link copied to clipboard

the Nodes in the graphs indexed by Node.name

Functions

Link copied to clipboard
open infix fun excludes(regexes: Collection<Regex>): Rule

Exclude the Cypher query from Rule validation if it matches any of the regexes.

Link copied to clipboard
open infix fun then(that: Rule): Rule

Run this Rule then that.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun validate(cypher: String, parameters: Map<String, Any?>): Rule.Violation?

Validate the cypher and parameters.