neo4j-graph-examples / template

Template repository with code rendering and checks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icon

Template Graph Example

Description: Template example

model
Figure 1. Model
example
Figure 2. Example
Example Query:
:param param => "param-value"
MATCH (n:Node {name:$param})
RETURN n.name as name

Setup

This is for Neo4j version: 3.5,4.0

Rendered guide available via: :play https://guides.neo4j.com/template/index.html

Load graph data via the following:

Data load script: scripts/template.cypher

bin/cypher-shell -u neo4j -p "password" -f scripts/template.cypher [-d "database"]

Or import in Neo4j Browser by dragging or pasting the content of scripts/template.cypher.

Code Examples

relate.project-install.json

Defining DBMSs:

The dbms key is an array containing information about sample dbms installation. It has four potential keys which of targetNeo4jVersion is required. See relate.project-install.json for reference.

  • targetNeo4jVersion: [required] A semver formatted version number defining which version of Neo4j to use. Use the semver calculator to verify the version.

  • plugins: (optional) An array of plugin IDs. For example ["apoc", "graph-data-science"].

  • dumpFile: (optional) Path to a local neo4j dump file or an http link that will be imported after the dbms has been created.

  • scriptFile: (optional) Path to a local cypher script or an http link that will be imported after the dbms has been created.

Feedback

Feel free to submit issues or pull requests for improvement on this repository.

About

Template repository with code rendering and checks


Languages

Language:Shell 37.2%Language:JavaScript 25.3%Language:Go 22.8%Language:Java 6.3%Language:C# 5.6%Language:Python 2.7%Language:Cypher 0.2%