axiothOntology Hub

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.

Open the glossary

Part 1. Foundations

What an ontology is, and how triples, classes, inference and queries work.

  1. 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.

  2. Everything is a three-word sentence

    Subject, predicate and object form a triple; triples together form a graph.

  3. Classes, individuals and properties

    Separate what belongs in the blueprint from what belongs in the data.

  4. RDF, RDFS, OWL, SKOS, SHACL

    Many names, each with a different job.

  5. Finding facts nobody wrote

    Inference is new facts following from the rules in the blueprint.

  6. 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.

  1. One graph, many file formats

    Turtle, JSON-LD, RDF/XML and N-Triples are different notations for the same triples.

  2. 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.

  3. Linked data: data that connects like the web

    Use IRIs as addresses, return a description when one is opened, and link elsewhere.

  4. RDF graphs and property graphs (LPG)

    Both are graphs; they differ in how edges carry values, in identifiers and in standards.

  5. 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.

  1. OWL, one step further: property characteristics and class definitions

    Inverses, transitivity, disjointness and restrictions let a reasoner conclude more.

  2. SHACL: checking that data has the right shape

    Write required properties, counts and value types as shapes, and get violations reported.

  3. SKOS and mappings: connecting concept schemes

    A concept in a taxonomy is not a class. How to connect terms across schemes.

  4. Building an ontology, and upper ontologies

    Start from the questions to answer, reuse, and publish so it lasts.

  5. Where it is used: knowledge graphs, stores and LLMs

    Triple stores and SPARQL endpoints, federated queries, and working with language models.