Nobody named the links between your data. An ontology does: supplier, part, product, customer, so a late supplier leads straight to the affected customers, Kestrel and Orbis.
python3 --version.git clone https://github.com/DayanEbrar0X/data-anatomy.ai.git cd data-anatomy.ai
python3 -m venv .venv source .venv/bin/activate
cd methodologies/04-ontology python3 src/ontology.py
from facts import FACTS
found = {"Acme"}
for rel in ["supplies", "used_in", "ordered_by"]:
found = {o for s, r, o in FACTS
if s in found and r == rel}
print("affected:", sorted(found))One supplier is late. Which customers get hurt? Your agent can miss it. The links sit in three systems.
An ontology names every link, like a family tree. Facts are triples: thing, relation, thing. Start at Acme. Follow the ontology: supplies, used in, ordered by.
Each hop keeps what links to what it found. Print who's affected. Run it: Kestrel and Orbis. Two customers, with the path as proof.
Name the links, and your agent can follow them.
Read the lesson on GitHub →