Use ontologies in Python, with the Owlready2 module developed for ontology-oriented programming. You will start with an introduction and refresher on Python and OWL ontologies. Then, you will dive straight into how to access, create, and modify ontologies in Python. Next, you will move on to an overview of semantic constructs and class properties followed by how to perform automatic reasoning. You will also learn about annotations, multilingual texts, and how to add Python methods to OWL classes and ontologies. Using medical terminologies as well as direct access to RDF triples is also covered.
Python is one of the most used programming languages, especially in the biomedical field, and formal ontologies are also widely used. However, there are limited resources for the use of ontologies in Python. Owlready2, downloaded more than 60,000 times, is a response to this problem, and this book is the first one on the topic of using ontologies with Python.
What You Will Learn
• Use Owlready2 to access and modify OWL ontologies in Python
• Publish ontologies on dynamic websites
• Perform automatic reasoning in Python
• Use well-known ontologies, including DBpedia and Gene Ontology, and terminological resources, such as UMLS (Unified Medical Language System)
• Integrate Python methods in OWL ontologies
Who Is This Book For
Beginner to experienced readers from biomedical sciences and artificial intelligence fields would find the book useful.
Author(s): Jean-Baptiste Lamy
Edition: 1
Publisher: Apress
Year: 2021
Language: English
Commentary: Vector PDF
Pages: 364
City: New York, NY
Tags: Python; Ontologies; Object-Oriented Programming; UML; Polymorphism; Type Inference; OWL; Semantic Web; Ontology Engineering; Medicine; Automatic Reasoning
Front Matter ....Pages i-xvii
Introduction (Lamy Jean-Baptiste)....Pages 1-8
The Python language: Adopt a snake! (Lamy Jean-Baptiste)....Pages 9-48
OWL ontologies (Lamy Jean-Baptiste)....Pages 49-82
Accessing ontologies in Python (Lamy Jean-Baptiste)....Pages 83-112
Creating and modifying ontologies in Python (Lamy Jean-Baptiste)....Pages 113-133
Constructs, restrictions, and class properties (Lamy Jean-Baptiste)....Pages 135-156
Automatic reasoning (Lamy Jean-Baptiste)....Pages 157-185
Annotations, multilingual texts, and full-text search (Lamy Jean-Baptiste)....Pages 187-205
Using medical terminologies with PyMedTermino and UMLS (Lamy Jean-Baptiste)....Pages 207-239
Mixing Python and OWL (Lamy Jean-Baptiste)....Pages 241-264
Working with RDF triples and worlds (Lamy Jean-Baptiste)....Pages 265-289
Back Matter ....Pages 291-344