Learn what an ontology is
Short lessons with things to try, from the first idea to R2RML, property graphs and SHACL, grounded in W3C specifications.
Part 0. Glossary
Every term used in the lessons, in one or two plain sentences. Keep it open while you read.
The big picture
Ontology, Vocabulary, Taxonomy, Thesaurus …
7 terms
What a graph is made of
Triple, Subject, predicate, object, IRI, Prefix and namespace …
9 terms
Parts of the blueprint
Class, Individual, Property, Object and datatype properties …
9 terms
Languages and standards
RDF, RDFS, OWL, SKOS …
14 terms
Inference and validation
Inference, Reasoner, Open-world assumption, Closed-world assumption …
8 terms
Connecting and reusing
Linked data, Content negotiation, Import, Term reuse …
10 terms
Storing and using
Triple store, SPARQL endpoint, Federated query, Property graph …
8 terms
Part 1. Foundations
What an ontology is, and how triples, classes, inference and queries work.
What an ontology is
A shared blueprint of the concepts and relations in a field, written so people and programs read it the same way.
Everything is a three-word sentence
Subject, predicate and object form a triple; triples together form a graph.
Classes, individuals and properties
Separate what belongs in the blueprint from what belongs in the data.
RDF, RDFS, OWL, SKOS, SHACL
Many names, each with a different job.
Finding facts nobody wrote
Inference is new facts following from the rules in the blueprint.
Asking questions, and building on others
Query a graph with SPARQL, and reuse existing ontologies by linking to them.
Part 2. Representing and connecting data
File formats, named graphs, linked data, RDF versus property graphs, and mapping tables with R2RML.
One graph, many file formats
Turtle, JSON-LD, RDF/XML and N-Triples are different notations for the same triples.
Who said so: named graphs and statements about statements
Ways to attach source and time to a triple: named graphs, intermediate nodes, RDF 1.2.
Linked data: data that connects like the web
Use IRIs as addresses, return a description when one is opened, and link elsewhere.
RDF graphs and property graphs (LPG)
Both are graphs; they differ in how edges carry values, in identifiers and in standards.
From tables to graphs: R2RML and mappings
Rules that turn relational databases and CSV into triples that fit an ontology.
Part 3. Design and quality
More OWL, validation with SHACL, SKOS and mappings, design method, and real-world use.
OWL, one step further: property characteristics and class definitions
Inverses, transitivity, disjointness and restrictions let a reasoner conclude more.
SHACL: checking that data has the right shape
Write required properties, counts and value types as shapes, and get violations reported.
SKOS and mappings: connecting concept schemes
A concept in a taxonomy is not a class. How to connect terms across schemes.
Building an ontology, and upper ontologies
Start from the questions to answer, reuse, and publish so it lasts.
Where it is used: knowledge graphs, stores and LLMs
Triple stores and SPARQL endpoints, federated queries, and working with language models.