November 2022
Intermediate to advanced
294 pages
5h 58m
English
Let’s build a small toy—a linked data explorer. We’re going to look up Wikipedia links in DBpedia and see if there’s a link from one Wikipedia page to another. We can then follow our nose and see if that link is linked to another Wikipedia page, and so on.
Create a new walk_links.ex file under the rdf_graph/lib/rdf_graph/examples/ folder:
| | . |
| | ├── rdf_graph |
| | │ ├── examples |
| » | │ │ ├── walk_links.ex |
| | │ │ └── walk_query.ex |
| | │ ├── service.ex |
| | │ └── vocab.ex |
| | └── rdf_graph.ex |
And create a new module:
| | defmodule RDFGraph.Examples.WalkLinks do |
| | use Tesla |
| | |
| | # ... |
| | |
| | end |
Note that we add a use Tesla macro as we’ll be using the Tesla framework for HTTP requests.
We can then add a couple of middleware ...
Read now
Unlock full access