Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo4j-graph-examples/blank-sandbox
Blank Sandbox. Load your own data with LOAD CSV or create data from scratch
https://github.com/neo4j-graph-examples/blank-sandbox
blank blank-sandbox custom-data graphdb neo4j neo4j-playground
Last synced: 3 months ago
JSON representation
Blank Sandbox. Load your own data with LOAD CSV or create data from scratch
- Host: GitHub
- URL: https://github.com/neo4j-graph-examples/blank-sandbox
- Owner: neo4j-graph-examples
- Created: 2020-01-31T17:28:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-20T08:34:02.000Z (5 months ago)
- Last Synced: 2024-10-01T05:08:56.365Z (4 months ago)
- Topics: blank, blank-sandbox, custom-data, graphdb, neo4j, neo4j-playground
- Language: Go
- Homepage: https://sandbox.neo4j.com/?usecase=blank-sandbox
- Size: 105 KB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 26
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
:name: blank-sandbox
:long-name: Blank Sandbox
:description: Blank Sandbox. Load your own data with LOAD CSV or create data from scratch
:icon: documentation/img/graph-icon-green.png
:tags: blank,custom-data,blank-sandbox,neo4j-playground
:author: Neo4j Devrel
:demodb: false
:data: false
:use-load-script: false
:use-dump-file: false
:zip-file: false
:use-plugin: false
:target-db-version: 3.5,4.0
:bloom-perspective: false
:guide: documentation/blank-sandbox.neo4j-browser-guide
:rendered-guide: https://guides.neo4j.com/sandbox/{name}/index.html
:model:
:example::todo: false
image::{icon}[width=100]== {long-name} Graph Example
Description: _{description}_
ifeval::[{todo} != false]
To Do: {todo}
endif::[].Model
image::{model}[].Example
image::{example}[width=600].Example Query:
[source,cypher,role=query-example,param-name=limit,param-value=10,result-column=count,expected-result=0]
----
MATCH (n)
RETURN COUNT(n) AS count
LIMIT $limit
----=== Setup
This is for Neo4j version: {target-db-version}
ifeval::[{use-plugin} != false]
Required plugins: {use-plugin}
endif::[]ifeval::[{demodb} != false]
The database is also available on https://demo.neo4jlabs.com:7473Username "{name}", password: "{name}", database: "{name}"
endif::[]Rendered guide available via: `:play {rendered-guide}`
Unrendered guide: link:{guide}[]
Load graph data via the following:
ifeval::[{data} != false]
==== Data files: `{data}`Import flat files (csv, json, etc) using Cypher's https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/[`LOAD CSV`], https://neo4j.com/labs/apoc/[APOC library], or https://neo4j.com/developer/data-import/[other methods].
endif::[]ifeval::[{use-dump-file} != false]
==== Dump file: `{use-dump-file}`* Drop the file into the `Files` section of a project in Neo4j Desktop. Then choose the option to `Create new DBMS from dump` option from the file options.
* Use the neo4j-admin tool to load data from the command line with the command below.
[source,shell,subs=attributes]
----
bin/neo4j-admin load --from {use-dump-file} [--database "database"]
----* Upload the dump file to Neo4j Aura via https://console.neo4j.io/#import-instructions
endif::[]ifeval::[{use-load-script} != false]
==== Data load script: `{use-load-script}`[source,shell,subs=attributes]
----
bin/cypher-shell -u neo4j -p "password" -f {use-load-script} [-d "database"]
----Or import in Neo4j Browser by dragging or pasting the content of {use-load-script}.
endif::[]ifeval::[{zip-file} != false]
==== Zip fileDownload the zip file link:{repo}/raw/master/{name}.zip[{name}.zip] and add it as "project from file" to https://neo4j.com/developer/neo4j-desktop[Neo4j Desktop^].
endif::[]=== Code Examples
* link:code/javascript/example.js[JavaScript]
* link:code/java/Example.java[Java]
* link:code/csharp/Example.cs[C#]
* link:code/python/example.py[Python]
* link:code/go/example.go[Go]=== Feedback
Feel free to submit issues or pull requests for improvement on this repository.