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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access