A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
#!/bin/bash | |
# usage neo.sh [-h host:port] [-u user:pass] [cmd] | |
# end cypher statements with semicolon | |
# terminate read loop with ^d or return | |
HOST="localhost:7474" | |
if [ "$1" == "-h" ]; then | |
shift; HOST="$1";shift; | |
fi | |
AUTH="" |
This is a Neo4J GraphGist where I discover how to model pedigrees in Neo, and various Cypher queries to explore the data.
The data used is from a public available online pedigree of cats. I have stripped of all the names and registration data for simplicity. From a large dataset, I have extracted all the cats belonging to the very small breeds, giving a total of about 600 cats instead of 200K.
The following picture shows a sketch of my general data-model. The arrows between cats could also have been illustrated as "recursive" arrows back to the same cat node-type, but I think that this visualisation better describes the DAG (Directed Acyclical Graph) property of a pedigree/family tree.
START
each keyword clauseON
a new line.camelCase
or snake_case
for node identifiers but be consistent.UPPER_CASE_AND_UNDERSCORES
.CamelCaseWithInitialCaps
.MATCH (clauses)-->(should)-->(always)-->(use)-->(parentheses)-->(around)-->(nodes)