Materials from two iterations of a maplib masterclass: building knowledge graphs from tabular data using Polars and OTTR templates.
cdl25/ Connected Data London 2025
The original masterclass, using a dataset of planets and their satellites.
kgc26/ Knowledge Graph Conference 2026
An updated and expanded version. Uses a dataset of fantasy and science fiction books and adds SPARQL CONSTRUCT inference (with recursion and arithmetic), SHACL validation, SKOS vocabularies, and DCAT cataloguing.
Each folder is self-contained, with its own README and run instructions.
For a more thorough treatment of the same ideas, aimed squarely at data engineers, see the Substack series From Data Engineering to Knowledge Engineering:
- Part 0 — Why should you care about Knowledge Graphs
- Part 1 — From Data Engineering to Knowledge Engineering
- Part 2 — Data Engineering Ontologies
- Part 3 — SPARQL for SQL Developers
- Part 4 — From SQL Constraints to SHACL Shapes
- Part 5 — Putting it all together
The series has a companion code repository: veleda/data-engineering-to-knowledge-engineering with a richer CRM-domain pipeline that handles Parquet, Excel, CSV, and SQL sources side by side.