Jon Arrien

Tag: Graph Database

Fixing Gephi on MacOSX

If you want to use the visualization software Gephi on Mac OSX, but it hangs on launch, luckily, there is a solution.

Just install this Java update from Apple:
Java for OS X 2014-001

Screenshot of gephi:
gephi0.8.2_running_on_macosx_10.8.5

Neo4j & Cypher

fdc05cea-e18b-44ea-8ba9-e119d7a8f872

Neo4j is a Property-Graph database that consists of labeled nodes and relationships each with properties.

Nodes are just data records, and properties are simple key:value pairs that allow you to store information in Neo4j. Properties can be attached to both nodes and relationships and are referred to by node.property or relationship.property.

There is no schema, just structure.

Cypher instead, is a declarative, SQL inspired language for describing patterns in graphs. It allows us to describe what we get from a graph database without requiring us to describe exactly how to do it.

Example query to retrieve a species:
[cc lang=”sql”]
MATCH (s:Species)
WHERE s.scientific_name = “Canis Lupus”
RETURN s;
[/cc]

Example query top return all the species living in a Habitat:
[cc lang=”sql”]
MATCH (s:Species)-[:LIVE_IN]->(h:HabitatType {name: “Sierra de Gredos”} )
RETURN s.scientific_name;
[/cc]

Copyright © 2017 Jon Arrien

Theme by Anders NorenUp ↑