5DV248 · Trustworthy Human-AI Interaction · Interactive laboratory

Lab 13B — Build a Plant Ontology

Use rdflib.js to create a small ontology (T-box) and a knowledge graph of individual plant components (A-box). Create classes, subclass relationships, properties and individuals—without automated reasoning.

Intermediate · Real JavaScript RDF library

Learning objectives

Loading rdflib.js…

Synthetic teaching scenario. This page creates and serialises RDF statements; it does not run an OWL reasoner or validate logical consistency.

1 · T-box: Classes

2 · T-box: Object properties

3 · Inspect T-box

Classes, subclass links, and property definitions describe the conceptual vocabulary.

Generated T-box (Turtle)

Waiting for library…

4 · A-box: Individuals

5 · A-box: Relationships

6 · Inspect and export A-box

Generated A-box (Turtle)

Create or extend the model, then export it.

7 · T-box versus A-box

T-box · Schema

Classes, subclass relationships, object properties, domain and range.

A-box · Assertions

Named individuals, their class membership and relationships between individuals.

Scope: This lab constructs RDF/OWL statements. It does not infer class membership, perform automatic classification or check consistency. Those are reserved for a later reasoning exercise.