What is an ontology?
An ontology describes the kinds of things in a domain and the relationships between them. Consider a library with two copies of the same book. A reader asks, “Can I borrow it today?”
One title, two copies
Both copies are in good condition. The library has no reservations or other lending restrictions in this example. In this example, a copy is available when it has no open loan. The catalogue contains every loan for these two copies.
Library catalogue
Only copy B is available. Loan 17 refers to copy A.
Three ways to describe the same library
- Glossary
- Defines a word. A “copy” is one physical book with its own inventory ID.
- Taxonomy
- Groups things into categories. The catalogue places The Secret Garden in Children’s fiction, a category within Fiction.
- Ontology
- Connects kinds of things. A title has copies. A loan is a record of someone borrowing one physical copy. Record 17 links to copy A and stays in the catalogue after the return. These relationships tell the librarian which copy to check when recording a return.
Try answering a different question
The reader gives you the title but no copy ID. Can you tell from the title alone which copy was returned?
Check your answer
You need the copy ID or the loan record. Both copies share a title. Loan 17 identifies copy A, so closing it changes only the loan status of that copy.
Continue with your library in Studio
Open the same catalogue, add copy C and check how many copies can be lent. Loan 17 keeps the state you chose here.
Open my library in Studio