Skip to content

Template repository with code rendering and checks

Notifications You must be signed in to change notification settings

neo4j-graph-examples/template

Repository files navigation

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.