I recently looked at the whole Star Wars universe from a computational perspective, where I extracted and analyzed social networks from all seven films. The social network structure revealed some interesting differences between the individual films, especially between the original trilogy and the prequels. Here I’ll look at how we can represent and explore the same network using a Neo4j database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load "packages/FsLab/FsLab.fsx" | |
open FSharp.Data | |
open XPlot.GoogleCharts | |
let bondUrl = "https://en.wikipedia.org/w/index.php?title=List_of_James_Bond_films&oldid=688916363" | |
type BondProvider = HtmlProvider<"https://en.wikipedia.org/w/index.php?title=List_of_James_Bond_films&oldid=688916363"> | |
let bondWiki = BondProvider.Load(bondUrl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r @"packages/FSharp.Data.2.0.14/lib/net40/FSharp.Data.dll" | |
#load @"packages/Deedle.1.0.6/Deedle.fsx" | |
#load @"packages/FSharp.Charting.0.90.9/FSharp.Charting.fsx" | |
open FSharp.Data | |
open Deedle | |
open FSharp.Charting | |
type Tweets = CsvProvider<"fsharp_2013-2014.csv"> | |
let tweets' = Tweets.Load("fsharp_2013-2014.csv") |