<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yuan He on Medium]]></title>
        <description><![CDATA[Stories by Yuan He on Medium]]></description>
        <link>https://medium.com/@yuanhe.cs.ai?source=rss-268e096e0482------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*it36TXhg3BPCcqgESQEEwQ.jpeg</url>
            <title>Stories by Yuan He on Medium</title>
            <link>https://medium.com/@yuanhe.cs.ai?source=rss-268e096e0482------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:20:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yuanhe.cs.ai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Revolutionising Ontology Engineering with Deep Learning: An Introduction to DeepOnto]]></title>
            <link>https://medium.com/@yuanhe.cs.ai/revolutionising-ontology-engineering-with-deep-learning-an-introduction-to-deeponto-3c42e6e6b9dd?source=rss-268e096e0482------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c42e6e6b9dd</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ontology]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[knowledge-engineering]]></category>
            <dc:creator><![CDATA[Yuan He]]></dc:creator>
            <pubDate>Sat, 05 Aug 2023 00:04:42 GMT</pubDate>
            <atom:updated>2023-08-05T00:11:07.181Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of Artificial Intelligence (AI), ontology engineering plays a pivotal role in structuring knowledge and facilitating semantic interoperability. In this article, we introduce <a href="https://krr-oxford.github.io/DeepOnto/"><strong>DeepOnto</strong></a>, a Python package that synergises ontology engineering with deep learning and especially language models, offering a convenient toolkit for researchers and developers alike.</p><blockquote>Documentation: <a href="https://krr-oxford.github.io/DeepOnto/"><em>https://krr-oxford.github.io/DeepOnto/</em></a></blockquote><blockquote>GitHub Repository: <a href="https://github.com/KRR-Oxford/DeepOnto"><em>https://github.com/KRR-Oxford/DeepOnto</em></a></blockquote><h4>What is an Ontology?</h4><p>In the context of AI, an <strong>ontology</strong> is a formal representation of knowledge within a domain. It is defined by a set of logical axioms that represent semantic relationships between concepts. Ontologies provide a structured framework that enables not only the sharing and re-use of data but also automated reasoning about it. Due to the underlying logic formalism, ontologies are suitable for modelling conceptual knowledge, and thus are commonly adopted in life science and biomedical domains.</p><p>The figure below depicts a snapshot of the Health Lifestyle Support (HeLis) ontology, where several food-related <strong>concepts</strong> are presented in ellipses, <strong>instances</strong> of concepts are presented in single-corner-snipped rectangles, and <strong>attributes</strong> of concepts are presented in rectangles. The edges between shapes represent different semantic relationships such as subsumption (<em>rdfs:subClassOf</em>), membership (<em>rdfs:type</em>), and annotation (e.g., <em>vc:unit</em>). This example shows that ontologies are equipped with a highly expressive syntax for knowledge representation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Og2tSt67Kj85IlviDT16pQ.png" /><figcaption>Figure 1: Fragment of the HeLis ontology (Source: Chen et al., “OWL2Vec*: Embedding of OWL Ontologies”, <em>Machine Learning, </em>2021).</figcaption></figure><p>However, constructing and curating ontologies can be a complex task. This is where DeepOnto comes into play.</p><h4>What is DeepOnto?</h4><p>DeepOnto is a Python package designed to provide building blocks for processing ontologies, implementing deep learning models, constructing resources, and conducting evaluations for various ontology engineering purposes. It leverages the <a href="https://owlapi.sourceforge.net/">OWL API</a> version 4 for ontology processing and <a href="https://pytorch.org/">Pytorch</a> for the deep learning framework. DeepOnto comes packed with a suite of features that make ontology engineering a breeze.</p><blockquote>DeepOnto can be installed from PyPI or directly from the GitHub repository. See the installation guide <a href="https://krr-oxford.github.io/DeepOnto/#installation">here</a>.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29GFUfT9qfxD2qPPdmLHKg.png" /><figcaption>Figure 2. An illustration of DeepOnto’s architecture (Source: He et al., “DeepOnto: A Python Package for Ontology Engineering with Deep Learning”, preprint under review at Semantic Web Journal<em>, </em>2023)</figcaption></figure><h4>Ontology Processing</h4><p>The base class of DeepOnto is Ontology, which serves as the main entry point for introducing the OWLAPI’s features. This includes accessing ontology entities, querying for ancestor/descendent (and parent/child) concepts, deleting entities, modifying axioms, retrieving annotations, and so on. A local ontology file (e.g., <a href="https://protege.stanford.edu/ontologies/pizza/pizza.owl">pizza ontology</a>) can be easily loaded using the following code:</p><pre>from deeponto.onto import Ontology<br><br>onto = Ontology(ontology_file_path)  # ended with .owl, .ttl, etc.</pre><p>We can then access the sets of named concepts and properties:</p><pre>onto.owl_classes  # concepts<br>onto.owl_object_properties  # object properties<br>onto.owl_data_properties  # data properties</pre><p>We can also access a concept’s annotations (e.g., <em>rdfs:label</em>) through:</p><pre>some_concept = onto.owl_classes[0]  # the first concept<br>onto.get_owl_object_annotations(some_concept, annotation_property_iri=&quot;http://www.w3.org/2000/01/rdf-schema#label&quot;)  # rdfs:label</pre><p>Or build an annotation index for all concepts using:</p><pre>annotation_index, used_annotation_properties = onto.build_annotation_index()<br>annotation_index[&quot;some_concept_iri&quot;]  # access concept annotations through IRI</pre><blockquote>Click <a href="https://krr-oxford.github.io/DeepOnto/deeponto/onto/ontology/">here</a> to see full usage of Ontology .</blockquote><p>Based on the base Ontology class, we further implemented several ontology processing modules that are commonly required in the development of deep learning-based ontology engineering solutions, including the following:</p><ul><li><strong>Ontology Reasoning</strong> (deeponto.onto.OntologyReasoner): Each instance of Ontology has a reasoner (onto.reasoner) as its attribute, used for conducting reasoning activities such as obtaining inferred subsumers and subsumees, as well as checking entailment and consistency.</li><li><strong>Ontology Pruning </strong>(deeponto.onto.OntologyPruner):<strong> </strong>Pruning refers to extracting a sub-ontology from the input ontology to meet certain criteria.</li><li><strong>Ontology Verbalisation</strong> (deeponto.onto.OntologyVerbaliser): Verbalisation refers to automatically transform a complex logical expression into a textual sentence based on entity names or labels available in the ontology. This is particularly useful for preparing<em> </em>textual inputs for language models. We made available a <a href="https://krr-oxford.github.io/DeepOnto/verbaliser/">tutorial</a> for using the verbaliser.</li><li><strong>Ontology Projection</strong>(deeponto.onto.OntologyProjector): Projection refers to transform ontology axioms into a set of corresponding RDF triples so that we can view an ontology as a graph.</li><li><strong>Ontology Normalisation</strong>(deeponto.onto.OntologyNormaliser): Normalisation refers to transform ontology axioms into normalised forms. Such process is often required in geometric ontology embeddings.</li></ul><h4>Tools and Resources</h4><p>DeepOnto not only provides an API for ontology processing, but also a range of tools and resources built upon its API. Currently, DeepOnto incorporates the following:</p><ul><li><strong>BERTMap</strong>: A BERT-based ontology matching (OM) system, with a focus of named concept equivalence. It successfully integrates the masked language model BERT into the OM pipeline. [<a href="https://krr-oxford.github.io/DeepOnto/bertmap/"><strong>tutorial</strong></a>]</li><li><strong>Bio-ML</strong>: An machine learning-friendly OM resource that has been used in the <a href="https://www.cs.ox.ac.uk/isg/projects/ConCur/oaei/">Bio-ML track</a> of the OAEI. The dataset construction and evaluation methods are implemented in DeepOnto. [<a href="https://krr-oxford.github.io/DeepOnto/bio-ml/"><strong>tutorial</strong></a>]</li><li><strong>BERTSubs</strong>: A sibling system of BERTMap focusing on intra-ontology subsumption prediction (ontology completion), and inter-ontology subsumption alignment (OM). [<a href="https://krr-oxford.github.io/DeepOnto/bertsubs/"><strong>tutorial</strong></a>]</li><li><strong>OntoLAMA</strong>: A set of language model probing datasets for ontology subsumption inference. The corresponding probing method can also be used for subsumption-based ontology completion. [<a href="https://krr-oxford.github.io/DeepOnto/ontolama/"><strong>tutorial</strong></a>]</li></ul><h4>Conclusion</h4><p>This article provides a brief introduction to DeepOnto. For more detailed information, you can visit the <a href="https://krr-oxford.github.io/DeepOnto/">documentation</a> and the Github <a href="https://github.com/KRR-Oxford/DeepOnto">repository</a>.</p><p>Whether you’re a researcher or a developer looking to playing around with ontologies or implementing deep learning models for ontology engineering, DeepOnto offers a comprehensive toolkit to support your work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Od7NxDVZ0uG_aW5" /><figcaption>Photo by <a href="https://unsplash.com/@portablepeopleproductions?utm_source=medium&amp;utm_medium=referral">James Toose</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a>. The cute owl is also a standardised ontology language!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c42e6e6b9dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>