The following are code listings from this book. These are, generally, the longer code listings.
The ontologies below are based on the OWL snippets in the book. We have combined several snippets into the following documents, cleaning them up (fixing typos) and adding boilerplate. The resulting documents can be validated from an OWL validator.