<?xml version="1.0" encoding="utf-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hal="http://hal.archives-ouvertes.fr/" xmlns:gml="http://www.opengis.net/gml/3.3/" xmlns:gmlce="http://www.opengis.net/gml/3.3/ce" version="1.1" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://api.archives-ouvertes.fr/documents/aofr-sword.xsd">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>HAL TEI export of hal-01592746</title>
      </titleStmt>
      <publicationStmt>
        <distributor>CCSD</distributor>
        <availability status="restricted">
          <licence target="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 - Universal</licence>
        </availability>
        <date when="2026-04-24T12:18:21+02:00"/>
      </publicationStmt>
      <sourceDesc>
        <p part="N">HAL API Platform</p>
      </sourceDesc>
    </fileDesc>
  </teiHeader>
  <text>
    <body>
      <listBibl>
        <biblFull>
          <titleStmt>
            <title xml:lang="en">Owlready: Ontology-oriented programming in Python with automatic classification and high level constructs for biomedical ontologies</title>
            <author role="aut">
              <persName>
                <forename type="first">Jean-Baptiste</forename>
                <surname>Lamy</surname>
              </persName>
              <email type="md5">ce40b0808842f1e38ccf0753765a459b</email>
              <email type="domain">free.fr</email>
              <idno type="idhal" notation="string">jean-baptiste-lamy</idno>
              <idno type="idhal" notation="numeric">20907</idno>
              <idno type="halauthorid" notation="string">8538-20907</idno>
              <idno type="ORCID">https://orcid.org/0000-0002-5477-180X</idno>
              <idno type="IDREF">https://www.idref.fr/110052773</idno>
              <affiliation ref="#struct-247177"/>
            </author>
            <editor role="depositor">
              <persName>
                <forename>Jean-Baptiste</forename>
                <surname>Lamy</surname>
              </persName>
              <email type="md5">ce40b0808842f1e38ccf0753765a459b</email>
              <email type="domain">free.fr</email>
            </editor>
          </titleStmt>
          <editionStmt>
            <edition n="v1" type="current">
              <date type="whenSubmitted">2017-09-25 12:38:15</date>
              <date type="whenModified">2025-08-12 17:00:40</date>
              <date type="whenReleased">2017-09-25 15:41:35</date>
              <date type="whenProduced">2017-07</date>
              <date type="whenEndEmbargoed">2017-09-25</date>
              <ref type="file" target="https://hal.science/hal-01592746v1/document">
                <date notBefore="2017-09-25"/>
              </ref>
              <ref type="file" subtype="author" n="1" target="https://hal.science/hal-01592746v1/file/article5.pdf" id="file-1592746-1645015">
                <date notBefore="2017-09-25"/>
              </ref>
              <ref type="externalLink" target="https://hal.archives-ouvertes.fr/hal-01592746/file/article5.pdf"/>
            </edition>
            <respStmt>
              <resp>contributor</resp>
              <name key="189116">
                <persName>
                  <forename>Jean-Baptiste</forename>
                  <surname>Lamy</surname>
                </persName>
                <email type="md5">ce40b0808842f1e38ccf0753765a459b</email>
                <email type="domain">free.fr</email>
              </name>
            </respStmt>
          </editionStmt>
          <publicationStmt>
            <distributor>CCSD</distributor>
            <idno type="halId">hal-01592746</idno>
            <idno type="halUri">https://hal.science/hal-01592746</idno>
            <idno type="halBibtex">lamy:hal-01592746</idno>
            <idno type="halRefHtml">&lt;i&gt;Artificial Intelligence in Medicine&lt;/i&gt;, 2017, 80, pp.11 - 28. &lt;a target="_blank" href="https://dx.doi.org/10.1016/j.artmed.2017.07.002"&gt;&amp;#x27E8;10.1016/j.artmed.2017.07.002&amp;#x27E9;&lt;/a&gt;</idno>
            <idno type="halRef">Artificial Intelligence in Medicine, 2017, 80, pp.11 - 28. &amp;#x27E8;10.1016/j.artmed.2017.07.002&amp;#x27E9;</idno>
            <availability status="restricted">
              <licence target="https://about.hal.science/hal-authorisation-v1/">HAL Authorization<ref corresp="#file-1592746-1645015"/></licence>
            </availability>
          </publicationStmt>
          <seriesStmt>
            <idno type="stamp" n="UNIV-PARIS13">Université Paris-Nord - Paris XIII </idno>
            <idno type="stamp" n="UPMC" corresp="SORBONNE-UNIVERSITE">Université Pierre et Marie Curie</idno>
            <idno type="stamp" n="SANTE_PUB_INSERM" corresp="INSERM">Santé Publique à l'Inserm</idno>
            <idno type="stamp" n="LIMICS" corresp="SORBONNE-UNIVERSITE">Laboratoire d'Informatique Médicale et Ingénierie des Connaissances en e-Santé</idno>
            <idno type="stamp" n="USPC">Université Sorbonne Paris Cité</idno>
            <idno type="stamp" n="UPMC_POLE_1" corresp="UPMC">UPMC Pôle 1</idno>
            <idno type="stamp" n="SORBONNE-UNIVERSITE">Sorbonne Université</idno>
            <idno type="stamp" n="SU-SCIENCES" corresp="SORBONNE-UNIVERSITE">Faculté des Sciences de Sorbonne Université</idno>
            <idno type="stamp" n="SORBONNE-PARIS-NORD">Université Sorbonne Paris Nord</idno>
            <idno type="stamp" n="SU-TI">Sorbonne Université - Texte Intégral</idno>
            <idno type="stamp" n="ALLIANCE-SU"> Alliance Sorbonne Université</idno>
            <idno type="stamp" n="ACT-R" corresp="UNIV-PARIS13">Act'R </idno>
          </seriesStmt>
          <notesStmt>
            <note type="audience" n="2">International</note>
            <note type="popular" n="0">No</note>
            <note type="peer" n="1">Yes</note>
          </notesStmt>
          <sourceDesc>
            <biblStruct>
              <analytic>
                <title xml:lang="en">Owlready: Ontology-oriented programming in Python with automatic classification and high level constructs for biomedical ontologies</title>
                <author role="aut">
                  <persName>
                    <forename type="first">Jean-Baptiste</forename>
                    <surname>Lamy</surname>
                  </persName>
                  <email type="md5">ce40b0808842f1e38ccf0753765a459b</email>
                  <email type="domain">free.fr</email>
                  <idno type="idhal" notation="string">jean-baptiste-lamy</idno>
                  <idno type="idhal" notation="numeric">20907</idno>
                  <idno type="halauthorid" notation="string">8538-20907</idno>
                  <idno type="ORCID">https://orcid.org/0000-0002-5477-180X</idno>
                  <idno type="IDREF">https://www.idref.fr/110052773</idno>
                  <affiliation ref="#struct-247177"/>
                </author>
              </analytic>
              <monogr>
                <idno type="halJournalId" status="VALID">10797</idno>
                <idno type="issn">0933-3657</idno>
                <title level="j">Artificial Intelligence in Medicine</title>
                <imprint>
                  <publisher>Elsevier</publisher>
                  <biblScope unit="volume">80</biblScope>
                  <biblScope unit="pp">11 - 28</biblScope>
                  <date type="datePub">2017-07</date>
                </imprint>
              </monogr>
              <idno type="doi">10.1016/j.artmed.2017.07.002</idno>
            </biblStruct>
          </sourceDesc>
          <profileDesc>
            <langUsage>
              <language ident="en">English</language>
            </langUsage>
            <textClass>
              <keywords scheme="author">
                <term xml:lang="en">OWL</term>
                <term xml:lang="en">Biomedical ontology</term>
                <term xml:lang="en">Local closed world reasoning</term>
                <term xml:lang="en">Automatic classification</term>
                <term xml:lang="en">Ontology-oriented programming</term>
                <term xml:lang="en">Semantic web</term>
              </keywords>
              <classCode scheme="halDomain" n="sdv.spee">Life Sciences [q-bio]/Santé publique et épidémiologie</classCode>
              <classCode scheme="halDomain" n="info.info-ai">Computer Science [cs]/Artificial Intelligence [cs.AI]</classCode>
              <classCode scheme="halTypology" n="ART">Journal articles</classCode>
              <classCode scheme="halOldTypology" n="ART">Journal articles</classCode>
              <classCode scheme="halTreeTypology" n="ART">Journal articles</classCode>
            </textClass>
            <abstract xml:lang="en">
              <p>Objective: Ontologies are widely used in the biomedical domain. While many tools exist for the edition, alignment or evaluation of ontologies, few solutions have been proposed for ontology programming interface, i.e. for accessing and modifying an ontology within a programming language. Existing query languages (such as SPARQL) and APIs (such as OWLAPI) are not as easy-to-use as object programming languages are. Moreover, they provide few solutions to difficulties encountered with biomedical ontologies. Our objective was to design a tool for accessing easily the entities of an OWL ontology, with high-level constructs helping with biomedical ontologies. Methods: From our experience on medical ontologies, we identified two difficulties: (1) many entities are represented by classes (rather than individuals), but the existing tools do not permit manipulating classes as easily as individuals, (2) ontologies rely on the open-world assumption, whereas the medical reasoning must consider only evidence-based medical knowledge as true. We designed a Python module for ontology-oriented programming. It allows access to the entities of an OWL ontology as if they were objects in the programming language. We propose a simple high-level syntax for managing classes and the associated " role-filler " constraints. We also propose an algorithm for performing local closed world reasoning in simple situations. Results: We developed Owlready, a Python module for a high-level access to OWL ontologies. The paper describes the architecture and the syntax of the module version 2. It details how we integrated the OWL ontology model with the Python object model. The paper provides examples based on Gene Ontology (GO). We also demonstrate the interest of Owlready in a use case focused on the automatic comparison of the contraindications of several drugs. This use case illustrates the use of the specific syntax proposed for manipulating classes and for performing local closed world reasoning. Conclusion: Owlready has been successfully used in a medical research project. It has been published as Open-Source software and then used by many other researchers. Future developments will focus on the support of vagueness and additional non-monotonic reasoning feature, and automatic dialog box generation.</p>
            </abstract>
          </profileDesc>
        </biblFull>
      </listBibl>
    </body>
    <back>
      <listOrg type="structures">
        <org type="laboratory" xml:id="struct-247177" status="OLD">
          <idno type="RNSR">201420870D</idno>
          <orgName>Laboratoire d'Informatique Médicale et Ingénierie des Connaissances en e-Santé</orgName>
          <orgName type="acronym">LIMICS</orgName>
          <desc>
            <address>
              <addrLine>Campus des Cordeliers/Escalier D - 15 rue de l'Ecole de Médecine 75006 Paris</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://ics.upmc.fr/</ref>
          </desc>
          <listRelation>
            <relation active="#struct-15786" type="direct"/>
            <relation active="#struct-93591" type="direct"/>
            <relation name="U1142" active="#struct-303623" type="direct"/>
          </listRelation>
        </org>
        <org type="institution" xml:id="struct-15786" status="VALID">
          <idno type="ROR">https://ror.org/05f82e368</idno>
          <orgName>Université Paris 13</orgName>
          <orgName type="acronym">UP13</orgName>
          <desc>
            <address>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.univ-paris13.fr/</ref>
          </desc>
        </org>
        <org type="institution" xml:id="struct-93591" status="OLD">
          <idno type="ROR">https://ror.org/02en5vm52</idno>
          <orgName>Université Pierre et Marie Curie - Paris 6</orgName>
          <orgName type="acronym">UPMC</orgName>
          <date type="end">2017-12-31</date>
          <desc>
            <address>
              <addrLine>4 place Jussieu - 75005 Paris</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.upmc.fr/</ref>
          </desc>
        </org>
        <org type="institution" xml:id="struct-303623" status="VALID">
          <idno type="IdRef">026388278</idno>
          <idno type="ROR">https://ror.org/02vjkv261</idno>
          <orgName>Institut National de la Santé et de la Recherche Médicale</orgName>
          <orgName type="acronym">INSERM</orgName>
          <desc>
            <address>
              <addrLine>101, rue de Tolbiac, 75013 Paris</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.inserm.fr</ref>
          </desc>
        </org>
      </listOrg>
    </back>
  </text>
</TEI>