Skip to content

Instantly share code, notes, and snippets.


Anders Nawroth nawroth

View GitHub Profile
nawroth / doctests.adoc
Last active Aug 29, 2015
location of doc tests in neo4j
View doctests.adoc

Neo4j Documentation

The Neo4j Manual is versioned and released together with the product. An overview of parts of the documentation workflow is found in the manual itself, in the chapter Writing Neo4j Documentation. We use several different approaches to verify our documentation by tests running in CI when the product is built. Testing as much as possible of examples especially makes sense, as we also provide ways to interactively play with Neo4j, see for example Create nodes and relationships.

The documentation toolchain also makes sure that all cross references have valid targets.

The core tools for our documentation are AsciiDoc and DocBook.

View gist:f14959bb57bc5a5d776f
= Donations to German parties
:neo4j-version: 2.1.0
Data from here:
== Sample Data Set
View gist:d482cc2da0bb4030c271
= The news reads us data in Neo4J
Data by:
== Intro
Interesting data created by
I converted the data from the links.json file and converted it into two simple csv files.
LOAD CSV FROM "" AS csvline
View colors.adoc

Color test

CREATE (x:T1),(:T2),(:T3),(:T4),(:T5),(:T6),(:T7),(:T8),(:T9),(:T10),(:T11),(:T12)
View icon-test.adoc

Document Title

Asciidoctor supports font-based admonition icons, powered by Font Awesome!
View hierarchy graphgist
= (Product) Hierarchy GraphGist =
This gist is a complement to[blogpost that I wrote] about managing hierarchical data structures in[neo4j]..
In this example, we are using a "product hierarchy", essentially holding information about the composition of a product (what is it made of, how many of the components are used, and at the lowest level, what is the price of these components). The model looks like this:
Note that in the graphgist, I have cut the tree depth to 5 levels (product to costs) instead of 6 in the blogpost - and that I also reduced the width of the tree to make it manageable in a gist.

Keybase proof

I hereby claim:

  • I am nawroth on github.
  • I am nawroth ( on keybase.
  • I have a public key whose fingerprint is 0B8E 3712 631C B720 A210 437F 7762 533E 3F71 7B33

To claim this, I am signing this object:

View merge.adoc

Failed merge

Here’s a failed merge that would just render as normal text:


| hpc          | The High-Performance Cache. Provides means of assigning a specific amount of memory to dedicate to caching loaded nodes and relationships.
nawroth /
Created Feb 15, 2013
Importing dbpedia into Neo4j.
package y;
import java.util.HashMap;
import java.util.Iterator;
View tutorial-test
= The Neo4j GraphGist Console =
This is a sample GraphGist explaining some of the base concepts of sharing graphs using[the Cypher query language].
// The following is a placeholder for a Cypher console.
You can’t perform that action at this time.