Reputation: 405
I am pretty much a beginner, and for a personal project have decided to map a relatively straightforward dataset describing some internet connections. I know a bit of SQL and worked previously with Postgres. But I am curios also about Graph databases such as Neo4j.
The dataset is composed by 3 tables:
A - (nodes)
nodeID: i1 i2 ... in
N33 91.6.6 44.55 99.32.1
B - (links)
linkID N1:i1 N2:i2 ... Nm:im
link99 N33:5.32.4 N14:11.49.66
C - (node attributes)
nodeID country region city latitude longitude
N54: CH WF Lausanne 19.3267 34.8167
As an additional information I might add that these data have a spatial component, and I would like to come up with a visualization that takes that into account (ie. map the nodes/links according to their lat/lon locations).
This is a crucial point for me.
I know Gephi has a geo-plugin, but I also know that it requires a precise data structure, which at the moment differs from mine, ie:
links:
source | target
1 | 2
1 | 43
1 | 27
nodes:
nodeId | attribute1 | attribute2 ...
1 Lausanne CH
My question in broad terms is thus: what should be my best options to import and query/visualize the data?
Thanks everyone in advance for your answers, and sorry for the long post.
Upvotes: 1
Views: 612
Reputation: 10856
I think a lot of it depends on how you want to query the data. I'm not familiar with the capabilities of Gephi with respect to spatial, but there is a plugin for Neo4j directly which does spatial querying:
https://github.com/neo4j-contrib/spatial
Generally, though, that part is sort of perpendicular to the traversal query power of Neo4j. With spatial queries you're generally narrowing a set of nodes down by an area. You might then optionally browse across the links between nodes.
Upvotes: 3