Skip to content

Instantly share code, notes, and snippets.

@jexp
Created June 28, 2016 10:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jexp/56f7689897847c9c02de50f902991674 to your computer and use it in GitHub Desktop.
Save jexp/56f7689897847c9c02de50f902991674 to your computer and use it in GitHub Desktop.
neo4j knowledge base template

How is X done

To display the nodes with the most properties defined, run the following Cypher Statement:

Example Cypher Query
MATCH (n)
RETURN labels(n), keys(n), size(keys(n)), count(*)
ORDER BY size(keys(n)) DESC

Sample Sub-Header

Representative output is similar to:

labels(n) keys(n) size(keys(n)) count(*)

[Movie]

[TotalRevenue, year_of_release, name, id]

4

1 …​

The first row of output indicates that there is a Label named Movie, which has 4 properties (TotalRevenue, year_of_release, name, id) and there is 1 node defined with that Label and those properties.

See also this sample image

Neo4j knowledge base example article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment