Case #1: Tokyo Metro
Rail networks make for great examples of applied graphs. In the early years of RDF development, I felt compelled to model the London Underground (or Tube) map as an RDF graph. (I’m surely not the only person who ever tried that.) Here we are going to use an example of the Tokyo Metro that has been modeled as an RDF graph and published as public domain open data—see RDF datasets from DataDock.[70] There are three separate RDF datasets for the lines, stations, and stops listed as tokyo_metro-*.nt.gz. You can simply download, unzip, and concatenate those files into a single source file tokyo_metro.nt. These are in RDF N-Triples format, a subset of the RDF Turtle format.
So now, we’ve got a local copy of the graph, and we can ...
Get Exploring Graphs with Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.