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.

Constructors

Link copied to clipboard
constructor(schemaText: String)

Initialize a Schema from the schemaText.

Types

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.

Properties

Link copied to clipboard

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.