Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Results Page:  Previous Next
Author Jean-Baptiste, Lamy, author.

Title Ontologies with Python : programming OWL 2. 0 ontologies with Python and Owlready2 / Lamy Jean-Baptiste. [O'Reilly electronic resource]

Publication Info. [Berkeley, CA] : Apress, [2021]
QR Code
Description 1 online resource (353 pages)
text file
PDF
Summary 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. You will: 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.
Contents Intro -- Table of Contents -- About the Author -- About the Technical Reviewers -- Acknowledgments -- Chapter 1: Introduction -- 1.1 Who is this book for? -- 1.2 Why ontologies? -- 1.3 Why Python? -- 1.4 Why Owlready? -- 1.5 Book outline -- 1.6 Summary -- Chapter 2: The Python language: Adopt a snake! -- 2.1 Installing Python -- 2.2 Starting Python -- 2.3 Syntax -- 2.3.1 Comments -- 2.3.2 Writing on screen -- 2.3.3 Help -- 2.3.4 Variables -- 2.3.5 Indentation -- 2.4 Main datatypes -- 2.4.1 Integer (int) and floating-point numbers (float) -- 2.4.2 Booleans (bool)
2.4.3 Character strings (str) -- 2.4.4 Lists (list) -- 2.4.5 Tuples (tuple) -- 2.4.6 Dictionaries (dict and defaultdict) -- 2.4.7 Sets (set) -- 2.4.8 Files (open) -- 2.4.9 Conversion between datatypes -- 2.5 Conditions (if) -- 2.6 Loops (for) -- 2.7 Generators -- 2.8 Functions (def) -- 2.9 Classes (class) -- 2.9.1 Classes and instances -- 2.9.2 Inheritance -- 2.9.3 Special method names -- 2.9.4 Functions and operators for object-oriented programming -- 2.10 Python modules -- 2.10.1 Importing a module -- 2.10.2 Installing additional modules -- 2.11 Installing Owlready2
2.11.1 Installing Owlready2 from terminal -- 2.11.2 Installing Owlready2 from IDLE or Spyder (or any Python shell) -- 2.11.3 Manual installation of Owlready2 -- 2.12 Summary -- Chapter 3: OWL ontologies -- 3.1 An ontology... what does it look like? -- 3.2 Creating ontologies manually with the Protégé editor -- 3.3 Example: An ontology of bacteria -- 3.4 Creating a new ontology -- 3.4.1 Classes -- 3.4.2 Disjoints -- 3.4.3 Partitions -- 3.4.4 Data properties -- 3.4.5 Object properties -- 3.4.6 Restrictions -- 3.4.7 Union, intersection, and complement -- 3.4.8 Definitions (equivalent-to relations)
3.4.9 Individuals -- 3.4.10 Other constructs -- 3.5 Automatic reasoning -- 3.6 Modeling exercises -- 3.7 Summary -- Chapter 4: Accessing ontologies in Python -- 4.1 Importing Owlready -- 4.2 Loading an ontology -- 4.3 Imported ontologies -- 4.4 Listing the content of the ontology -- 4.5 Accessing entities -- 4.5.1 Individuals -- 4.5.2 Relations -- 4.5.3 Classes -- 4.5.4 Existential restrictions -- 4.5.5 Properties -- 4.6 Searching for entities -- 4.7 Huge ontologies and disk cache -- 4.8 Namespaces -- 4.9 Modifying entity rendering as text -- 4.10 Local directory of ontologies
4.11 Reloading an ontology in the quadstore -- 4.12 Example: creating a dynamic website from an ontology -- 4.13 Summary -- Chapter 5: Creating and modifying ontologies in Python -- 5.1 Creating an empty ontology -- 5.2 Creating classes -- 5.2.1 Creating classes dynamically -- 5.3 Creating properties -- 5.4 Creating individuals -- 5.5 Modifying entities: relations and existential restrictions -- 5.6 Creating entities within a namespace -- 5.7 Renaming entities (refactoring) -- 5.8 Multiple definitions and forward declarations -- 5.9 Destroying entities -- 5.10 Destroying an ontology
Note Includes index.
Subject Python (Computer program language)
Ontologies (Information retrieval)
Python (Langage de programmation)
Ontologies (Recherche de l'information)
Computer programming
Python (Computer program language)
Other Form: Print version: Jean-Baptiste, Lamy. Ontologies with Python : Programming OWL 2. 0 Ontologies with Python and Owlready2. Berkeley, CA : Apress L.P., ©2021 9781484265512
ISBN 1484265521 (electronic book)
9781484265536 (print)
148426553X
9781484265529 (electronic bk.)
Standard No. 10.1007/978-1-4842-6552-9 doi
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information