Skip to main content
Journal of Biomedical Semantics logoLink to Journal of Biomedical Semantics
. 2014 Apr 15;5:17. doi: 10.1186/2041-1480-5-17

A rule-based ontological framework for the classification of molecules

Despoina Magka 1,, Markus Krötzsch 2, Ian Horrocks 1
PMCID: PMC4040517  PMID: 24735706

Abstract

Background

A variety of key activities within life sciences research involves integrating and intelligently managing large amounts of biochemical information. Semantic technologies provide an intuitive way to organise and sift through these rapidly growing datasets via the design and maintenance of ontology-supported knowledge bases. To this end, OWL—a W3C standard declarative language— has been extensively used in the deployment of biochemical ontologies that can be conveniently organised using the classification facilities of OWL-based tools. One of the most established ontologies for the chemical domain is ChEBI, an open-access dictionary of molecular entities that supplies high quality annotation and taxonomical information for biologically relevant compounds. However, ChEBI is being manually expanded which hinders its potential to grow due to the limited availability of human resources.

Results

In this work, we describe a prototype that performs automatic classification of chemical compounds. The software we present implements a sound and complete reasoning procedure of a formalism that extends datalog and builds upon an off-the-shelf deductive database system. We capture a wide range of chemical classes that are not expressible with OWL-based formalisms such as cyclic molecules, saturated molecules and alkanes. Furthermore, we describe a surface ‘less-logician-like’ syntax that allows application experts to create ontological descriptions of complex biochemical objects without prior knowledge of logic. In terms of performance, a noticeable improvement is observed in comparison with previous approaches. Our evaluation has discovered subsumptions that are missing from the manually curated ChEBI ontology as well as discrepancies with respect to existing subclass relations. We illustrate thus the potential of an ontology language suitable for the life sciences domain that exhibits a favourable balance between expressive power and practical feasibility.

Conclusions

Our proposed methodology can form the basis of an ontology-mediated application to assist biocurators in the production of complete and error-free taxonomies. Moreover, such a tool could contribute to a more rapid development of the ChEBI ontology and to the efforts of the ChEBI team to make annotated chemical datasets available to the public. From a modelling point of view, our approach could stimulate the adoption of a different and expressive reasoning paradigm based on rules for which state-of-the-art and highly optimised reasoners are available; it could thus pave the way for the representation of a broader spectrum of life sciences and biomedical knowledge.

Keywords: Semantic technologies, Knowledge representation and reasoning, Logic programming and answer set programming, Datalog extensions, Cheminformatics

Background

Life sciences data generated by research laboratories worldwide is increasing at an astonishing rate turning the need to adequately catalogue, represent and index the rapidly accumulating bioinformatics resources into a pressing challenge. Semantic technologies have achieved significant progress towards the federation of biochemical information via the definition and use of domain vocabularies with formal semantics, also known as ontologies[1-3]. OWL [4], a family of logic-based knowledge representation (KR) formalisms standardised by the W3C, has played a pivotal role in the advent of Semantic technologies. This is to a great extent thanks to the availability of robust OWL-based tools that are capable of deriving knowledge that is not explicitly stated by means of logical inference. In particular, OWL bio- and chemo-ontologies with their intuitive hierarchical structure and their formal semantics are widely used for the building of life sciences terminologies [5,6].

Taxonomies provide a compelling way of aggregating information, as hierarchically organised knowledge is more accessible to humans. This is evidenced, e.g. by the pervasive use of the periodic table in chemistry, one of the longest-standing and most widely adopted classification schemes in natural sciences. Organising a large number of different objects into meaningful groups facilitates the discovery of significant properties pertaining to that group; these discoveries can then be used to predict features of subsequently detected members of the group. For instance, esters with low molecular weight tend to be more volatile and, so, a newly found ester with low weight is expected to be highly volatile, too. As a consequence, classifying objects on the basis of shared characteristics is a central task in areas such as biology and chemistry with a long tradition of taxonomy use. Due to the availability of performant OWL reasoners, life scientists can employ OWL to represent expert human knowledge and thus drive fast, automatic and repeatable classification processes that produce high quality hierarchies [7,8]. Nevertheless, a prerequisite is that OWL is expressive enough to model the entities that need to be classified as well as the properties of the superclasses that lie higher up in the hierarchy.

Two main restrictions have been identified in the expressive power of OWL as hindering factors for the representation of biological knowledge [9,10]. First, due to the tree-model property of OWL [11] (which otherwise accounts for the robust computational properties of the language) one is not able to describe cyclic structures with adequate precision. Second, because of the open-world assumption adopted in OWL (according to which missing information is treated as not known rather than false) it is difficult to define classes based on the absence of certain characteristics. These limitations manifest themselves—among others—via the inability to define a broad range of classes in the chemical domain. For instance, one cannot effectively encode in OWL the class of compounds that contain a benzene ring or the class of molecules that do not contain carbon atoms, i.e. inorganic molecules.

These inadequacies obstruct the full automation of the classification process for chemical ontologies, such as the ChEBI (Chemical Entities of Biological Interest) ontology, an open-access dictionary of molecular entities that provides high quality annotation and taxonomical information for chemical compounds [6]. ChEBI fosters interoperability between researchers by acting as the primary chemical annotation resource for various biological databases such as BioModels [12], Reactome [13] and the Gene Ontology [5]. Moreover, ChEBI supports numerous tasks of biochemical knowledge discovery such as the study of metabolic networks, identification of disease pathways and pharmaceutical design [14,15]. ChEBI is manually curated by human experts who annotate and check the validity of existing and new molecular entries. Currently, ChEBI describes 36,660 fully annotated entities (release 110) and grows at a rate of approximately 4,500 entities per year (estimate based on previous releases [16]). Given the size of other publicly available chemical databases, such as PubChem [17] that contains records for 19 million molecules, there is clearly a strong potential for ChEBI to expand by speeding up curating tasks. ChEBI curating tasks span a wide range of activities such as adding natural language definitions and structure information or classifying chemical entities by determining their position in the ChEBI taxonomy. Thus automating chemical classification could free up human resources and accelerate the addition of new entries to ChEBI.

As the classification of compounds is a key task of the drug development process [18], the construction of chemical hierarchies has been the topic of various investigations capitalising on logic-based KR [19-23], statistical machine learning (ML) [24-26] and algorithmic [27-29] techniques. In KR approaches, molecule and class descriptions are represented with logical axioms crafted by experts and subsumptions are identified with the help of automated reasoning algorithms; in ML approaches a set of annotated data is used to train a system and the system is then employed to classify new entries. So, KR approaches are based on the explicit axiomatisation of knowledge, whereas ML algorithms specify for new entries superclasses that are highly probable to be correct. As a consequence, the taxonomies produced using logic-based techniques are provably correct (as long as the modelling of the domain knowledge is faithful), but the statistically produced hierarchies (although much faster) need to be evaluated against a curated gold standard. Algorithmic techniques involve the definition of imperative procedures for determining classes of molecules. These approaches are usually much quicker than logic-based techniques but have the disadvantage of requiring a programmer for defining new classes or for modifying the existing ones, as opposed to ontological knowledge bases that can be manipulated and extended by non-programmers. Here, we focus on logic-based chemical classification, which in certain cases can complement statistical and algorithmic approaches [8,15].

In previous work, we laid the theoretical foundation of nonmonotonic existential rules which is an expressive ontology language that is sound and complete and that is suitable for the representation of graph-shaped objects; additionally, we demonstrated how nonmonotonic existential rules can be applied to the classification of molecules [9]. The aforementioned formalism addressed the expressivity limitations outlined above; however, the performance of the implementation—although faster than previous approaches—was not satisfactory (more than 7 minutes were needed to classify 70 molecules under 5 chemical classes on a standard desktop computer) failing thus to confirm practicability of the formalism.

In the current work, we describe an improved practical framework that relies on the same formalism but with enhanced performance. Our contributions can be summarised as follows:

1. We present a prototype that performs logic-based chemical classification based on a sound, complete and terminating reasoning algorithm; we model more than 50 chemical classes and we show that the superclasses of 500 molecules are computed in 33 seconds.

2. We harness the expressive power of nonmonotonic existential rules to axiomatise a variety of chemical classes such as classes based on the containment of functional groups (e.g. esters) and on the exact cardinality of parts (e.g. dicarboxylic acids), classes depending on the overall atomic constitution (e.g. hydrocarbons) and cyclicity-related classes (e.g. compounds containing a cycle of arbitrary length or alkanes).

3. We present a surface syntax that enables application experts to create ontological description of chemical entities without prior knowledge of logic. The syntax we propose is closer to natural language than to first-order logic notation and is uniquely translatable to logical axioms.

4. We exhibit a significant speedup in comparison with previous ontology-based chemical classification implementations.

5. We identify examples of missing and contradictory subsumptions from the expert curated ChEBI ontology that are present and absent, respectively, from the hierarchy computed by our prototype.

Concerning future benefits, our prototype could form the basis of an ontology-mediated application to assist biocurators of ChEBI towards the sanitisation and the enrichment of the existing chemical taxonomy. Automating the maintenance and expansion of ChEBI taxonomy could contribute to a more rapid development of the ChEBI ontology and to the efforts of the ChEBI team to make annotated chemical datasets available to the public. From a modelling point of view, our approach could stimulate the adoption of a different and expressive reasoning paradigm based on rules for which state-of-the-art and highly optimised reasoners are available; it could thus pave the way for the representation of a broader spectrum of life sciences knowledge.

Methods

Knowledge base design

The reasoning task carried out using our methodology is the identification of chemical classes for molecules, e.g. assigning water to the class of inorganic molecules or benzene to cyclic molecules. In this section we provide a high-level description of the knowledge base (KB) we built for the purposes of our chemical classification experiments. We use the word ‘classification’ to refer to the detection of subsumptions between molecules and chemical classes rather than to the computation of the partial order for the set comprising the chemical classes and molecules w.r.t. the subclass relation. The KB consists of nonmonotonic existential rules that formally describe molecular structures and chemical classes; this representation can subsequently be used to determine the chemical class subsumers of each molecule. For a formal definition of syntax and semantics of nonmonotonic existential rules as well as decidability proofs, we refer the interested reader to the relevant articles [9,30,31].

For each chemical entity that we model using rules, we also provide its axiomatisation in the surface syntax—a less-logician-like syntax which we designed and which enables the ontological description of structured objects without the use of logic. Our surface syntax is in the same style of the Manchester OWL syntax [32] and draws inspiration from a syntax suggested for OWL 2 rules [33]. The main motivation for designing this syntax is to provide a means for creating ontological descriptions in a more succinct way and without the use of special symbols. We have formally defined the surface syntax and its translation into nonmonotonic existential rules, but we have not implemented an ontology editor that would allow to write axioms in the new syntax. Similarly, we have not conducted experiments evaluating the use of surface syntax by application experts, but given that the Manchester OWL syntax has been well received by non-logicians [32] and there is active development of tools for supporting more human readable ontology query languages [34], we believe that the suggested syntax has the potential to facilitate curating tasks. Since our main focus is to illustrate the transformation of molecular graphs and chemical class definitions into rules, we omit the technical details and describe our methodology by means of running examples. For a complete specification of the surface syntax including a BNF grammar and mappings to nonmonotonic existential rules we provide an online technical report [35].

Molecular structures

Next, we describe how a molfile can be converted into a surface syntax axiom and subsequently a rule that encodes its structure. We use as an example the molecule of ascorbic acid, a naturally occurring organic compound commonly known as vitamin C. The molecular graph of ascorbic acid is depicted in the upper right corner of Figure 1.

Figure 1.

Figure 1

Ascorbic acid representations. Molfile (left), molecular graph (top right) and description graph (bottom right) encoding the molecular structure of ascorbic acid.

Conceptually, the structure of ascorbic acid can be abstracted with the help of a directed labeled graph such as the one that appears in the lower right corner of Figure 1 and which in our framework is called description graph (DG) [9]. The description graph of a molecule is a labeled graph whose nodes correspond to the atoms of the molecule (nodes 1–13 for ascorbic acid) plus an extra node for the molecule itself (node 0) and whose edges correspond to the bonds of the molecule (e.g. (1,7)) plus some additional edges that connect the molecule node with each one of the atom nodes (e.g. (0,1)); additionally, the atom nodes are labeled with the respective chemical elements (e.g. o for node 1) and the bond edges with the corresponding bond order (e.g. single for (1,7)); finally, the molecule node is labeled with molecule and the edges that connect the molecule node with each of the atom nodes are labeled with hasAtom. In order to simplify the depiction of the ascorbic acid DG in Figure 1 a legend is used for the edge labels; all arrowless edges are assumed to be bidirectional. In our setting, we follow the implicit hydrogen assumption according to which hydrogen atoms are usually suppressed (excluding cases where stereochemical information is provided for the formed bond and hydrogens are explicitly stated as in node 13). Finally, we point out that both the nodes and the edges can have multiple labels, allowing us to also encode molecular properties, such as charge values for atoms. The description graph of ascorbic acid can be converted into the following surface syntax definition. In the rest of the text we use alphanumeric strings starting with a lower-case letter to denote predicates, that is names of classes (e.g. ascorbicAcid) and properties (e.g. hasAtom).

ascorbicAcidSubClassOfmoleculeAND(hasAtomSOMEGraph(Nodes(1 o,2 o,3 o,4 o,5 o,6 o,7 c,8 c,9 c,10 c,11 c,12 c,13 h)Edges(1 2 single,1 10 single,2 7 double,3 8 single4 9 single,5 12 single,6 11 single,7 1 single8 7 single,9 8 double,10 9 single,11 10 single12 11 single,13 10 single)))

The surface syntax axiom above can next be translated into the rule below. In fact we need a separate rule for each conjunct in the head but we use just one rule here to simplify the presentation; for the sake of brevity only one direction of the bonds appear and we shorten an expression of the form ∧C1…∧C n with i=1nCi:

ascorbicAcid(x)molecule(x)i=113hasAtom(x,fi(x))i=16o(fi(x))i=712c(fi(x))h(f13(x))single(f8(x),f3(x))single(f9(x),f4(x))i=1,9,11,13single(f10(x),fi(x))i=5,11single(f12(x),fi(x))i=1,8single(f7(x),fi(x))single(f11(x),f6(x))double(f2(x),f7(x))double(f8(x),f9(x))

The rule above is a typical first-order implication with a single atomic formula in the body and a conjunction of atomic formulae in the head. Informally, the rule ensures that every time that the ascorbic acid molecule instantiated, its structure is unfolded according to its specified DG. Thus, triggering of the rule implies that (i) new terms that correspond to the DG’s nodes are generated (excluding node 0), e.g. f1(x) represents atom node 1 (ii) each new term is typed according to the label of the relevant node with the help of a unary atomic formula (e.g. o(f1(x))) and (iii) each pair of terms with corresponding nodes connected in the DG is assigned the respective label with the help of a binary atomic formula (e.g. single(f1(x),f7(x))). In order to ensure disjointness of the several molecular structures on the interpretation level, distinct function symbols are used in the rule of each molecule.

General chemical knowledge and chemical classes

Before presenting the modelling of various chemical classes, we demonstrate how we can encode background chemical knowledge with surface syntax axioms that can subsequently be mapped to rules. Three such axioms appear next.

bondSuperPropertyOfsingleORdoubleORtriple
chargedSuperClassOfpositiveORnegative
horcSuperClassOfhORc

Examples of such knowledge include the fact that single and double bonds are kinds of bonds or that atoms with positive or negative charge are charged; we can also denote a particular class of atoms, e.g. atoms that are hydrogens or carbons. The translation of the above mentioned surface syntax axioms into rules appears below.

single(x,y)bond(x,y)negative(x)charged(x)h(x)horc(x)double(x,y)bond(x,y)positive(x)charged(x)c(x)horc(x)triple(x,y)bond(x,y)

For our experiments, we represented 51 chemical classes using rules; we based our chemical modelling on the textual definitions found in the ChEBI ontology [16].

We covered a diverse range of classes that can be categorised into four groups. For each class that we discuss, we provide the surface syntax definition and its corresponding translation into one or more rules. Certain classes with an intricate definition (such as the class of cyclic molecules that appears later) are not expressible in surface syntax; these can be directly added as rules. Here we show in full detail only a sample of the rules; the complete set of rules is available in Additional files 1, 2 and 3[36].

Existence of subcomponents

The great majority of the modelled chemical classes is defined via containment of atoms, functional groups or other atom arrangements. Examples of this type include carbon molecular entities, halogens, molecules that contain a benzene ring, carboxylic acids, carboxylic esters, polyatomic entities, amines, aldehydes and ketones. Next we show the surface syntax axioms that define the classes of carbon molecular entities, polyatomic entities, carboxylic acids and esters. In the following axioms we use the keyword ‘ GraphNL’ in contrast to the previously used ‘ Graph’ as our surface syntax grammar requires the use of the former when specifying nodes that are either labeled with negative literals or are specified to be disjoint.

carbonEntitySuperClassOfhasAtomSOMEc
polyatomicEntitySuperClassOfmoleculeAND(hasAtomSOMEGraphNL(DisjointNodes(1,2)Edges()))
heteroOrganicEntitySuperClassOfhasAtomSOMEGraphNL(Nodes(1c,2NOTcNOTh)Edges(1 2bond))
middleOxygenSuperClassOfoAND(bondSOME GraphNL(DisjointNodes(1,2)Edges()))
carboxylicAcidSuperClassOfmoleculeAND(hasAtomSOME GraphNL(Nodes(1 c,2 o,3 o NOT middleOxygen NOT charged,4 horc)Edges(1 2 double,1 3 single,1 4 single)))
carboxylicEsterSuperClassOfmoleculeAND(hasAtomSOME Graph(Nodes(1 c,2 o,3 o,4 c,5 horc)Edges(1 2 double,1 3 single,1 5 single,3 4 single)))

One can find below the corresponding translations into rules. We define as carbon molecular entities the molecules that contain carbon; polyatomic entities are the entities that contain at least two different atoms. Heteroorganic entities are the ones containing carbon atoms bonded to non-carbon atoms. Carboxylic acids are defined as molecules containing at least one carboxy group (a functional group with formula C(=O)OH) attached to a carbon or hydrogen; due to the implicit hydrogens assumption we are not able to distinguish between an oxygen and a hydroxy group and, so, we need to specify that the oxygen of the hydroxy group is not charged (NOTcharged) and participates to only one bond (NOTmiddleOxygen). Similarly, carboxylic esters contain a carbonyl group connected to an oxygen ((C=O)O) which is further attached to two atoms that are carbon or hydrogen.

molecule(x)hasAtom(x,y)c(y)carbonEntity(x)molecule(x)hasAtom(x,y1)hasAtom(x,y2)y1y2polyatomicEntity(x)i=12hasAtom(x,zi)c(z1)notc(z2)noth(z2)bond(z1,z2)heteroOrganicEntity(x)i=13hasAtom(x,yi)o(y1)i=23bond(y1,yi)y2y3middleOxygen(y1)molecule(x)i=14hasAtom(x,yi)c(y1)o(y2)o(y3)horc(y4)double(y1,y2)single(y1,y3)single(y1,y4)notmiddleOxygen(y3)notcharged(y3)carboxylicAcid(x)molecule(x)i=15hasAtom(x,yi)i=1,4c(yi)i=2,3o(yi)horc(y5)double(y1,y2)i=3,5single(y1,yi)single(y3,y4)carboxylicEster(x) ()
Exact cardinality of parts

Here we describe chemical classes of molecules with an exact number of atoms or of functional groups. Examples include molecules that contain exactly two carbons, molecules that contain only one atom and dicarboxylic acids, that is molecules with exactly two carboxy groups. The surface syntax axiom for the definition of molecules with exactly two carbons appears next.

exactly2CarbonsSuperClassOfmoleculeANDhasAtomEXACTLY2c

The translation into rules follows. One can readily verify that the surface syntax formulation is more direct and intuitive than its equivalent translation into rules.

molecule(x)i=12hasAtom(x,yi)c(yi)y1y2atLeast2Carbons(x)molecule(x)i=13hasAtom(x,yi)c(yi)i=23y1yiy2y3atLeast3Carbons(x)atLeast2Carbons(x)notatLeast3Carbons(x)exactly2Carbons(x)
Exclusive composition

We next present classes of molecules such that each atom (or bond) they contain satisfies a particular property. These features are usually very naturally modelled with the help of nonmonotonic negation. Examples include inorganic molecules that consist exclusively of non-carbon atoms. In spite of the fact that there are many compounds with carbons considered inorganic, in this work we align our encoding with the ChEBI definition of inorganic molecular entities (CHEBI:24835), according to which no carbons occur in these entities; however, if the modeller wishes it, it is straightforward to declare exceptions within our formalism using nonmonotonic negation. Another example is the class of hydrocarbons which only contain hydrogens and carbons; also saturated compounds are defined as the compounds whose carbon to carbon bonds are all single. The corresponding surface syntax axioms appear next.

inorganicSuperClassOfmoleculeANDhasAtomONLY(NOTc)
hydroCarbonSuperClassOfcarbonEntityANDhasAtomONLY(hORc)
unsaturatedSuperClassOfmoleculeANDhasAtomSOME Graph(Nodes(1 c,2 c)Edges(1 2 double))
unsaturatedSuperClassOfmoleculeANDhasAtomSOME Graph(Nodes(1 c,2 c)Edges(1 2 triple))
saturatedSuperClassOfmoleculeANDNOTunsaturated

Please note that one can use more than one surface syntax axioms (and thus rules) to define classes that emerge as a result of different structural configurations, which is the case for saturated molecules. Below we list the respective translation into rules.

molecule(x)notcarbonEntity(x)inorganic(x)hasAtom(x,z)notcarbon(z)nothydrogen(z)notHydroCarbon(x)carbonEntity(x)notnotHydroCarbon(x)hydroCarbon(x)molecule(x)hasAtom(x,z1)carbon(z1)hasAtom(x,z2)carbon(z2)double(z1,z2)unsaturated(x)molecule(x)hasAtom(x,z1)carbon(z1)hasAtom(x,z2)carbon(z2)triple(z1,z2)unsaturated(x)molecule(x)notunsaturated(x)saturated(x)
Cyclicity-related classes

These chemical classes include the category of molecules containing a ring of any length as well as other definitions that depend on the cyclicity of molecules, such as alkanes which are defined as saturated non-cyclic hydrocarbons. Assuming the (somewhat more technical) definition of cyclic molecules, the surface syntax axiom for alkanes appears next.

alkaneSuperClassOfsaturatedANDhydroCarbonANDNOTcyclic

The corresponding rule translation follows.

saturated(x)hydroCarbon(x)notcyclic(x)alkane(x)

Determining subclass relations

Finally, we demonstrate how meaningful subsumptions can be derived using a KB containing the rules outlined in the previous two sections. In order to determine the superclasses of a certain molecule, we extend the KB with a suitable fact (i.e., a variable-free atomic formula) and we examine the model that satisfies the KB under the stable model semantics (the addition of the fact and the examination of the model is done automatically by our implementation). A formal definition of the stable model semantics is provided by Gelfond and Lifschitz [37]. Intuitively, the stable model of a KB is the minimal set of facts that are derived by exhaustively applying the existing rules under a particular rule order; a rule is applied if its positive body can be matched to the so far derived facts and no atom of the negative body is in the already produced set of facts for the said matching.

The initially added fact is the molecule name predicate instantiated with a fresh constant so that the rule that encodes the structure of that molecule is triggered. For the case of ascorbic acid, if we append the fact ascorbicAcid(a) to the previously described KB, we obtain the stable model that appears below.

Stable model for ascorbic acidInput fact:ascorbicAcid(a)Stable model:ascorbicAcid(a),molecule(a),hasAtoma,aiffor1i13,oaiffor1i6,caiffor7i12,ha13f,singlea8f,a3f,singlea9f,a4f,singlea12f,aiffori{5,11},singlea10f,aiffori{1,9,11,13},singlea7f,aiffori{1,8},singlea11f,a6f,doublea2f,a7f,doublea8f,a9f,bonda8f,a3f,bonda9f,a4f,bonda12f,aiffori{5,11},bonda11f,a6f,bonda10f,aiffori{1,9,11,13},bonda7f,aiffori{1,8},bonda2f,a7f,bonda8f,a9f,horcaiffor7i13,carbonEntity(a),polyatomicEntity(a),heteroOrganicEntity(a),middleOxygena1f,carboxylicEster(a),atLeast2Carbons(a),atLeast3Carbons(a),notHydroCarbon(a),unsaturated(a),cyclic(a)Stable model of the KB with the input factascorbicAcid(a)and the rules described in Methods;fi(a)isabbreviated withaiffor1i13.

From the stable model atoms we can infer the superclasses of ascorbic acid, that is we deduce that ascorbic acid is—among others—an unsaturated, polyatomic, heteroorganic, cyclic molecular entity that contains carbon and a carboxylic ester. If there is no relevant atom for a chemical class in the stable model, then we conclude that the said class is not a valid subsumer, e.g. since carboxylicAcid(a) is not found in the stable model, carboxylic acid is not a superclass of ascorbic acid.

Decidability check

The KB discussed above contains rules with function symbols in the head, such as the rule used to encode the molecular structure of ascorbic acid. These rules may incur non-termination during the computation of the stable model due to the creation of infinitely many terms. In order to ensure termination of our reasoning process and thus decidability of the employed formalism, we perform a decidability check on the constructed KB. In a nutshell, the decidability check (also known and as model-summarising acyclicity[38]) involves transforming the rules of the KB and inspecting the stable models of the transformed KB for the existence of a special symbol. If the KB passes the decidability check, then termination is guaranteed; this is the case for the types of KBs that were previously described. Technical details of the aforementioned condition are out of the scope of this text and can be found in the relevant sources [38].

Prototype implementation

The current section provides an overview of LoPStER (Logic Programming for Structured Entities Reasoner) the prototype we developed for structure-based chemical classification. The implementation is wrapped around the DLV system, a powerful and efficient deductive database and logic programming engine [39]. DLV constitutes the automated reasoning component used by LoPStER for stable model computation of a rule set. Figure 2 depicts the basic processing steps as well as the different files that are parsed and produced by LoPStER. LoPStER is implemented in Java and is available online [36]; both LoPStER and the rules modelling chemical classes are open-source and released under GNU Lesser GPL. Next, we describe in more detail the several stages of execution.

Figure 2.

Figure 2

Architecture of LoPStER. Stages of the classification process using LoPStER.

1. CDK-aided parsing. LoPStER parses the molfiles [40] of the molecules to be classified using the Chemistry Development Kit Java library [41]. The molfile is a widely used chemical file format that describes molecular structures with a connection table; e.g. the molfile of ascorbic acid appears on the left of Figure 1. For each molecule, a description graph (e.g. Figure 1 bottom right) representation is generated from its molfile according to a transformation as the one described for ascorbic acid.

2. Compilation of the KB. For each molecule the description graph representation is used to produce a set of rules that encode the structure of the molecule, following the translation that was discussed in the previous section. These rules along with the classification rules and the facts necessary to determine subclass relations are combined to produce DLV programs (i.e. sets of rules) that are stored as plain text files on disk. In particular two kinds of DLV programs are created for each molecule, the program needed to perform the decidability check as described before and the program needed to compute subclass relations between the molecules and the chemical classes.

3. Invoke DLV for decidability check. During this step, the model of the program, which was produced in the previous step for acyclicity testing, is computed. If the check is successful, then execution proceeds to the next stage; otherwise, the program is exited with a suitable output message.

4. Invoke DLV for model computation. This is the stage where DLV is invoked to compute the stable model of the KB. Due to the check of the previous step, the computation is guaranteed to terminate.

5. Stable model storage. At this point, the stable model computed by DLV is stored in a file on disk to enable subsequent discovery of the subclass relations.

6. Subsumptions extraction. This is the final phase where the stable model file is parsed in order to detect the superclasses of each molecule. All the subsumee-subsumer pairs are stored in a separate spreadsheet file on disk.

Results

Empirical evaluation

In order to assess the applicability of our implementation, we measured the time required by LoPStER to perform classification of molecules. To obtain test data we extracted molfile descriptions of 500 molecules from the ChEBI ontology. The represented compounds were of diverse size, varying from 1 to 59 atoms. Next, we investigated the scalability of our prototype by altering two different parameters of the knowledge base, namely the number of represented molecules and the type of modelled chemical classes. Initially, we constructed ten DLV programs each of which contained rules encoding 50·i different compounds, where 1≤i≤10, and rules defining the chemical classes (a sample of which was previously described) excluding the cyclicity-related classes (48 classes in total). Next, we repeated the same construction but this time including the rules for the cyclicity-related classes (51 classes in total). In the rest of the section, we refer to the first setting as ‘no cyclic’ and to the second as ‘with cyclic’.

Additionally and in order to optimise the performance, we explored how classification times fluctuate depending on the size of DLV programs. In particular, we partitioned the DLV programs into modules, we measured classification times for each module separately and we summed up the times. Each module contains the facts and the rules describing a subset of the molecules represented in the initial DLV program; the rules defining chemical classes are included in each one of the modules. Thus, the size of each module depends on the number of encoded molecules. We tested modules of various sizes as well as DLV programs without any partitioning for both ‘no cyclic’ mode and ‘with cyclic’ mode. Modifying the size of the module had a clear impact on the measured times and performing classification with the modularised knowledge base was always quicker than with the unpartitioned one; we observed the shortest execution times for module size 50 when testing in ‘no cyclic’ mode and for module size 20 when testing in ‘with cyclic’ mode; the timings we provide next refer to the aforementioned module sizes.

Table 1 summarises the classification times for the previously described KBs. All the DLV programs that were tested passed the decidability check. The experiments were performed on a desktop computer (2GHz quadcore CPU, 4GB RAM) running Linux. The first column displays the number of molecules, the second column the number of rules contained in the corresponding DLV program and the third (fourth) column the time needed to perform classification in ‘no cyclic’ (‘with cyclic’) mode. We only display the number of rules for the ‘no cyclic’ mode because there are only six more rules in the DLV programs with cyclicity-related definitions. The classification experiments for each knowledge base were repeated three times and the results were averaged over the three runs; also, the durations of Table 1 are inclusive, that is they count the time spent from before the molfiles parsing until after the subsumptions extraction. Figure 3 depicts the plots of the time intervals appearing in Table 1 both with regard to the number of molecules and the number of rules contained in the respective DLV program.

Table 1.

Time measurements for classification

No molecules
No of rules
Time no cyclic
Time with cyclic
    (sec) (sec)
50
3614
4.81
7.85
100
6832
3.41
8.69
150
18072
4.25
9.97
200
23746
4.55
11.88
250
28502
6.60
18.71
300
31892
8.27
20.63
350
35046
8.14
22.58
400
38095
9.30
24.23
450
41536
9.94
29.68
500 43629 10.40 32.79

The first column is the number of molecules, the second is the number of rules in the corresponding rule set and the third and fourth are measurements in seconds for ‘no cyclic’ and ‘with cyclic’ mode, respectively.

Figure 3.

Figure 3

Classification times. Curves of classification times with respect to number of molecules (left) and number of rules (right). The lower line is for ‘with cyclic’ mode and the upper for ‘no cyclic’ mode.

The performance results of Table 1 are encouraging for the practical feasibility of our approach: the classification of 500 molecules was completed in less than 33 secons for the suite of 51 modelled chemical classes. The drop in classification times between the 50 and 100 molecules case is potentially due to JVM startup overhead. One can also observe that the rules encoding cyclicity-related classes introduce a significant overhead for the classification times. In fact, it is the class that recognises molecules with cycles of arbitrary length that incurs the performance penalty. The rules that encode the class of cyclic molecules need to identify patterns that are extremely frequent in molecular graphs; as a consequence, the amount of computational resources needed to detect ring-containing molecules is much higher. However, since our class definition for cyclic molecules detects compounds with cycles of variable length, which is a significant property for the construction of chemical hierarchies, we consider this overhead acceptable.

Discussion and related work

Concerning expressive power, the current approach allows for the representation of strictly more chemical classes in comparison with other logic-based applications for chemical classification. Villanueva-Rosales and Dumontier [19] describe an OWL ontology of functional groups for the classification of chemical compounds; in their work, they point out the inherent inability of OWL to represent cyclic functional groups and how this impedes the use of OWL in logic-based chemical classification. As a remedy, Hastings et al. [21] employ an extension of OWL [42] for the representation of non-tree-like structures and, thus, for the classification of molecular structures. However, the used formalism only allows for the identification of cycles of fixed length and with alternating single and double bonds. In the current approach we are able to recognise molecules containing cycles of both arbitrary and fixed length and without requiring a particular configuration of bonds.

Moreover, in both approaches outlined above the adopted open world assumption of OWL prevents one from defining structures based on the absence of certain characteristics. In our approach we operate under the closed world assumption which permits the definition of a broad range of chemical classes that were not expressible before such as the class of inorganic, hydrocarbon or saturated compounds. Finally and in comparison with previous work [9], we take full advantage of the suggested formalism by specifying a much wider range of chemical classes and we do not require from the modeller a precedence relation between the represented structures.

In terms of performance, the classification results appear more promising than previous and related work. Hastings et al. [21] report that a total of 4 hours was required to determine the superclasses of 140 molecules, whereas LoPStER identifies the chemical classes of 500 molecules in less than 33 seconds. LoPStER is quicker in comparison with previous work too [9] where 450 seconds were needed to classify 70 molecules (two orders of magnitude faster). Please note that both cases discussed above considered a subset of the chemical classes used here. Regarding the significant change in speed, we identify the following two factors that could explain it. First, DLV is a more suitable reasoner for our setting due to its bottom-up computation strategy as well as its active maintenance team and frequent releases. Second, we employ a more efficient condition (model-summarising acyclicity [38] instead of semantic acyclicity [9]) in order to obtain termination guarantees which allows for a more prompt decidability check. Finally, the classification times reported here are slightly improved in comparison with a preliminary version of this paper due to some modelling optimisations and the use of a recent new version of DLV.

While conducting the experiments we discovered a number of missing and inconsistent subsumptions from the manually curated ChEBI ontology; here we only mention a few of them. As one can infer from the molecular graph of ascorbic acid appearing in the top right of Figure 1, ascorbic acid is a carboxylic ester as well as a polyatomic cyclic entity. In spite of the fact that these superclasses were exposed by our classification methodology, we were not able to identify them in the ChEBI hierarchy. Figure 4 shows the ancestry of ascorbic acid (CHEBI:29073) in the OWL version of the ChEBI ontology; none of the concepts cyclic entity (CHEBI:33595), polyatomic entity (CHEBI:36357) or carboxylic ester (CHEBI:33308) is encountered among the superclasses of ascorbic acid. Moreover, ascorbic acid is asserted as a carboxylic acid (CHEBI:33575) which is not the case as it can be deduced by the lack of a carboxy group in the molecular graph of ascorbic acid (the most common tautomer of which appears in the top right corner of Figure 1). We interpret the revealing of these modelling errors as an indication of the practical relevance of our contribution.

Figure 4.

Figure 4

Ascorbic acid superclasses. Superclasses of ascorbic acid for the ChEBI OWL ontology release 102 as illustrated by the ChEBI graph-based visualisation interface.

The chemical classification methodology that we present here is similar to other classification efforts based on semantic technologies, such as classification of proteins [7] or lipids [8]. Wolstencroft et al. use a bioinformatics tool to extract composition information from protein descriptions and subsequently translate this information into OWL axioms; these axioms are next used to classify the proteins using a DL reasoner. Chepelev et al. use a cheminformatics tool to process lipid descriptions and produce annotated lipid specifications that are then classified using an OWL ontology. The motivation of these two investigations is similar to ours, i.e. alleviation of biocurating tasks; what distinguishes the two approaches from ours is the use of a different ontology language and the role that this language plays during classification. In particular, in our work we use nonmonotonic existential rules instead of OWL which, unlike OWL, are able to capture cyclic structures. Also, in the sequence of steps followed by our classification process we do not rely on a cheminformatics functionality to algorithmically annotate the molecular descriptions, but instead the identification of structural features forms integral part of reasoning. The framework we suggested can be suitable for the domains of lipids and proteins, as long as they are restricted to structures of finite size; however empirical evaluation would be needed to assess the suitability of the framework in practice. Regarding the application of our prototype to ChEBI classification, it could be used to classify ChEBI molecules under the chemical classes defined here, but more curating effort would be needed to model the thousands of chemical classes that appear in ChEBI.

In this work, we represent and reason about chemical knowledge using an ontology language. However, the majority of axioms constituting the ontology, that is the molecule descriptions, are sourced through molfiles that are parsed using cheminformatics libraries. The information provided by these files includes connectivity between atoms, types of atoms and bonds and charges of atoms. This information is converted into logical axioms that are subsequently processed by an automated reasoning algorithm to identify the chemical classes of the molecules. This approach has the advantage of allowing the knowledge modeller to define new classes in a declarative way, that is without the need of writing code for detecting their subsumees. However, a feature that could be detected using cheminformatics algorithms and become part of the ontology axioms is the existence of ring atoms. The benefits of such a modification could be twofold: it could considerably speed up the computation of all cyclicity-related classes (e.g. determining whether an atom is a ring atom can be done very quickly using the CDK library) and at the same time could allow for the definition of strictly more cyclicity-related classes, such as carbocyclic compounds.

An alternative approach could be to build rules from chemical identifiers other than molfiles, such as InChi [43] or preferred IUPAC names [44]. In particular, InChi with its abilitiy to encode isotopical and stereochemical information (which can be critical for biological applications) could lead to richer chemical modelling. Also, widely used chemical databases, such as ChemSpider [45], could be used as a resource for adding to rules information about molecular properties.

A category of molecules that our framework does not cover is tautomers. A tautomer is each of two or more isomers that exist together in equilibrium, and are readily interchanged by migration of an atom (usually hydrogen) or group within the molecule. InChi handles tautomerism by allowing a compound to contain mobile hydrogen atoms, that is some hydrogens are marked as being able to occur in different positions. This is an approach that could be adopted by our methodology too, if we extended our formalism with the ability to represent disjunctive information. However, enriching nonmonotonic existential rules with disjunction would require to alter the design and implementation of the reasoning algorithm, so treating tautomers could be part of a future extension of our framework.

Conclusion

We presented an implementation that performs logic-based classification of chemicals and builds upon a sound and complete reasoning procedure for nonmonotonic existential rules; our prototype relies on the DLV system and is considerably quicker than previous approaches. For our evaluation, we represented a wide variety of chemical classes that are not expressible with OWL-based formalisms and described a surface syntax that could enable cheminformaticians to define ontological descriptions of chemical entities intuitively and without the need to use first-order logic notation; additionally, our software revealed subclass relations that are missing from the manually curated ChEBI ontology as well as some erroneous ones. We demonstrated thus the capabilities of a datalog-based ontology language that displays a favourable trade-off between expressive power and performance for the purpose of structure-based classification.

Future research

For the future it would be interesting to further apply our framework towards supporting classification of other complex biological objects. For instance, one can exploit the expressive power of rules to represent biochemical processes and infer useful relations about them. Figure 5 depicts a description graph abstraction of a chemical reaction example discussed by Bölling et al. [46]. The process consists of parts that are arbitrarily interconnected and can thus be naturally modelled using our formalism. In the same vein, our methodology could provide rigorous definitions for the representation of lipid molecules that can be systematically classified according to their structural features. Low et al. [47,48] introduced the OWL DL Lipid Ontology which contains semantically explicit lipid descriptions. One could achieve more accurate modelling by casting lipids in terms of rules that capture frequent cyclic patterns in a concise way; for example, Figure 6 illustrates a description graph for jasmonic acid—one of the lipids encountered in the abovementioned OWL ontology.

Figure 5.

Figure 5

Transport reaction description graph.

Figure 6.

Figure 6

Jasmonic acid description graph. Molecular graph of jasmonic acid (left) and description graph of jasmonic acid based on the functional groups partonomy (right).

Further work could involve the building of an ontology editor for the creation of surface syntax expressions and their automatic conversion into nonmonotonic existential rules. We will also seek to extend our prototype to accommodate subsumption between chemical classes so as to generate a complete multi-level chemical hierarchy using ideas from our recent work [49,50]. We could extend our formalism with numerical value restrictions [51] in order to express e.g. classes depending on molecular weight. Moreover, it could be of interest exploring the integration of our prototype with Protégé [52], Life Sciences platforms [53] and chemical structure visualisation tools [54,55] as well as defining a mapping of the introduced formalism to RDF [56].

Abbreviations

OWL: Web ontology language; ChEBI: Chemical entities of biological interest; W3C: World wide web consortium, KR:Knowledge representation; ML: Machine learning; KB: Knowledge base; DG: Description graph; LoPStER: Logic programming for structure entities reasoner; RDF: RDFResource description framework.

Competing interests

The authors declare that they have no competing interests.

Authors’ contributions

All authors conducted research on the underlying decidability conditions for datalog-based rules and jointly discussed the present paper and its main contributions (surface syntax, chemical modelling, experimental setup). DM has specified the surface syntax grammar, assembled the knowledge base, carried out the experiments and led the writing of the manuscript. MK and IH contributed to the discussions and participated in the writing of the manuscript. All authors read and approved the final manuscript.

Supplementary Material

Additional file 1

Time measurements and produced hierarchy of the classification experiments. Description of data: Full list of computed subsumptions and time measurements for each of the five experiments discussed in Empirical evaluation.

Click here for file (1.5MB, zip)
Additional file 2

Logic program without cyclicity-related rules. Description of data: Set of rules modelling the chemical classes excluding the cyclicity-related classes.

Click here for file (10.7KB, txt)
Additional file 3

Complete logic program. Description of data: Set of rules modelling all the chemical classes.

Click here for file (10.7KB, txt)

Contributor Information

Despoina Magka, Email: magkades@gmail.com.

Markus Krötzsch, Email: markus.kroetzsch@tu-dresden.de.

Ian Horrocks, Email: ian.horrocks@cs.ox.ac.uk.

Acknowledgements

We would like to thank Dr Chris Batchelor-McAuley for answering our chemistry questions and the anonymous reviewers of this article for providing useful references and highly constructive comments. This work was supported by the Royal Society, the Seventh Framework Program (FP7) of the European Commission under Grant Agreement 318338, “Optique” and the EPSRC projects ExODA, Score! and MaSI3.

References

  1. Wolstencroft K, Lord PW, Tabernero L, Brass A, Stevens R. ISMB (Supplment of Bioinformatics) Oxford University Press; 2006. Protein classification using ontology classification; pp. 530–538. http://bioinformatics.oxfordjournals.org/content/22/14/e530. [DOI] [PubMed] [Google Scholar]
  2. Chepelev L, Dumontier M. Chemical entity semantic specification knowledge representation for efficient semantic cheminformatics and facile data integration. J Cheminformatics. 2011;3(20) doi: 10.1186/1758-2946-3-20. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Chepelev L, Dumontier M. Semantic Web integration of Cheminformatics resources with the SADI framework. J Cheminformatics. 2011;3(16) doi: 10.1186/1758-2946-3-16. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Horrocks I, Patel-Schneider PF, van Harmelen F. From SHIQ and RDF to OWL: the making of a web ontology language. J Web Sem. 2003;1:7–26. doi: 10.1016/j.websem.2003.07.001. [DOI] [Google Scholar]
  5. Chan J, Kishore R, Sternberg P, Van Auken K. The gene ontology enhancements for 2011. Nucleic Acids Res. 2012;40(D1):D559–D564. doi: 10.1093/nar/gkr1028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Hastings J, de Matos P, Dekker A, Ennis M, Harsha B, Kale N, Muthukrishnan V, Owen G, Turner S, Williams M, Steinbeck C. The ChEBI reference database and ontology for biologically relevant chemistry: enhancements for 2013. Nucleic Acids Res. 2013;41(Database-Issue):456–463. doi: 10.1093/nar/gks1146. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Wolstencroft K, Brass A, Horrocks I, Lord PW, Sattler U, Turi D, Stevens R. ISWC. Springer; 2005. A little semantic web goes a long way in biology. http://link.springer.com/chapter/10.1007%2F11574620_56. [Google Scholar]
  8. Chepelev LL, Riazanov A, Kouznetsov A, Low HS, Dumontier M, Baker CJO. Prototype semantic infrastructure for automated small molecule Classification and Annotation in Lipidomics. BMC Bioinformatics. 2011;12:303. doi: 10.1186/1471-2105-12-303. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Magka D, Motik B, Horrocks I. In: ESWC, Volume 7295 of Lecture Notes in Computer Science. Simperl E, Cimiano P, Polleres A, Corcho Ó, Presutti V, editor. Springer; 2012. Modelling structured domains using description graphs and logic programming; pp. 330–344. [Google Scholar]
  10. Mungall C. ICLP. Springer; 2009. Experiences using logic programming in bioinformatics; pp. 1–21. [Keynote talk]. http://link.springer.com/chapter/10.1007%2F978-3-642-02846-5_1. [Google Scholar]
  11. Vardi MY. Descriptive Complexity and Finite Models DIMACS Workshop. American Mathematical Society; 1996. Why is modal logic so robustly decidable? pp. 149–184. [Google Scholar]
  12. Li C, Donizelli M, Rodriguez N, Dharuri H, Endler L, Chelliah V, Li L, He E, Henry A, Stefan MI. et al. BioModels Database: An enhanced, curated and annotated resource for published quantitative kinetic models. BMC Syst Biol. 2010;4:92. doi: 10.1186/1752-0509-4-92. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Croft D, O’Kelly G, Wu G, Haw R, Gillespie M, Matthews L, Caudy M, Garapati P, Gopinath G, Jassal B, Jupe S, Kalatskaya I, Mahajan S, May B, Ndegwa N, Schmidt E, Shamovsky V, Yung C, Birney E, Hermjakob H, D’Eustachio P, Stein L. Reactome: a database of reactions, pathways and biological processes. Nucleic Acids Res. 2011;39(Database-Issue):691–697. doi: 10.1093/nar/gkq1018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Hoehndorf R, Dumontier M, Gkoutos GV. Identifying aberrant pathways through integrated analysis of knowledge in pharmacogenomics. Bioinformatics. 2012;28(16):2169–2175. doi: 10.1093/bioinformatics/bts350. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Ferreira JD, Couto FM. Semantic similarity for automatic classification of chemical compounds. PLoS Comput Biol. 2010;6(9):e1000937. doi: 10.1371/journal.pcbi.1000937. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. The database and ontology of chemical entities of biological interest. [ http://www.ebi.ac.uk/chebi/] [DOI] [PMC free article] [PubMed]
  17. Bolton EE, Wang Y, Thiessen PA, Bryant SH. PubChem: integrated platform of small molecules and biological activities. Ann Reports in Comput Chem. 2008;4:217–241. [Google Scholar]
  18. Wegner JK, Sterling A, Guha R, Bender A, Faulon JL, Hastings J, O’Boyle NM, Overington JP, van Vlijmen H, Willighagen EL. Cheminformatics. Commun ACM. 2012;55(11):65–75. doi: 10.1145/2366316.2366334. [DOI] [Google Scholar]
  19. Villanueva-Rosales N, Dumontier M. Describing chemical functional groups in OWL-DL for the classification of chemical compounds. OWLED CEUR-WS.org. 2007. http://ceur-ws.org/Vol-258/paper28.pdf.
  20. Konyk M, Battista ADL, Dumontier M. DILS. Evry, France: Springer; 2008. Chemical knowledge for the semantic web; pp. 169–176. [Google Scholar]
  21. Hastings J, Dumontier M, Hull D, Horridge M, Steinbeck C, Stevens R, Sattler U, Hörne T, Britz K. OWLED, Volume 614. CEUR-WS.org; 2010. Representing chemicals using owl, description graphs and rules. http://ceur-ws.org/Vol-614/owled2010_submission_13.pdf. [Google Scholar]
  22. Dumontier M. OWLED. CEUR-WS.org; 2012. Molecular symmetry and specialization of atomic connectivity by class-based reasoning of chemical structure. http://ceur-ws.org/Vol-849/paper_33.pdf. [Google Scholar]
  23. Hastings J, Magka D, Batchelor CR, Duan L, Stevens R, Ennis M, Steinbeck C. Structure-based classification and ontology in chemistry. J Cheminformatics. 2012;4:8. doi: 10.1186/1758-2946-4-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. King R, Muggleton S, Srinivasan A, Sternberg M. Structure-activity relationships derived by machine learning: the use of atoms and their bond connectives to predict mutagenicity by inductive logic programming. Proceedings of the National Academy of Sciences. 1996;93:438–442. doi: 10.1073/pnas.93.1.438. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Deshpande M, Kuramochi M, Wale N, Karypis G. Frequent substructure-based approaches for classifying chemical compounds. IEEE TKDE. 2005;17(8):1036–1050. [Google Scholar]
  26. Grego T, Pesquita C, Bastos HP, Couto FM. Chemical entity recognition and resolution to ChEBI. ISRN Bioinformatics. 2012;2012:Article ID 619427. doi: 10.5402/2012/619427. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Bobach C, Böhme T, Laube U, Püschel A, Weber L. Automated compound classification using a chemical ontology. J Cheminformatics. 2012;4:40. doi: 10.1186/1758-2946-4-40. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Sankar P, Aghila G. Design and development of chemical ontologies for reaction representation. J Chem Inform Modeling. 2006;46(6):2355–2368. doi: 10.1021/ci050533x. [DOI] [PubMed] [Google Scholar]
  29. Feldman HJ, Dumontier M, Ling S, Haider N, Hogue CW. CO: A chemical ontology for identification of functional groups and semantic comparison of small molecules. FEBS Lett. 2005;579(21):4685–4691. doi: 10.1016/j.febslet.2005.07.039. [DOI] [PubMed] [Google Scholar]
  30. Grau BC, Horrocks I, Krötzsch M, Kupke C, Magka D, Motik B, Wang Z. Acyclicity notions for existential rules and their application to query answering in ontologies. J Artif Intell Res (JAIR) 2013;47:741–808. [Google Scholar]
  31. Magka D. Foundations and applications of knowledge representation for Structured entities. PhD thesis. University of Oxford, 2013.
  32. Horridge M, Drummond N, Goodwin J, Rector AL, Stevens R, Wang H. In: OWLED, Volume 216 of CEUR Workshop Proceedings. Grau BC, Hitzler P, Shankey C, Wallace E, editor. CEUR-WS.org; 2006. The manchester OWL syntax. http://ceur-ws.org/Vol-216/submission_9.pdf. [Google Scholar]
  33. Glimm B, Horridge M, Parsia B, Patel-Schneider PF. In: OWLED, Volume 529 of CEUR Workshop Proceedings. Hoekstra R, Patel-Schneider PF, editor. CEUR-WS.org; 2009. A syntax for rules in OWL 2. http://ceur-ws.org/Vol-529/owled2009_submission_16.pdf. [Google Scholar]
  34. Tudose I, Hastings J, Muthukrishnan V, Owen G, Turner S, Dekker A, Kale N, Ennis M, Steinbeck C. OntoQuery: easy-to-use web-based OWL querying. Bioinformatics. 2013;29(22):2955–2957. doi: 10.1093/bioinformatics/btt514. [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Magka D, Krötzsch M, Horrocks I. A syntax for representing structured entities. Tech. rep., University of Oxford 2013. [ http://www.cs.ox.ac.uk/isg/people/despoina.magka/pubs/reports/MagkaKH-SS-13.pdf]
  36. LoPStER. [ https://github.com/magkades/lopster]
  37. Gelfond M, Lifschitz V. ICLP/SLP. MIT press; 1988. The stable model semantics for logic programming; pp. 1070–1080. [Google Scholar]
  38. Cuenca Grau B, Horrocks I, Krötzsch M, Kupke C, Magka D, Motik B, Wang Z. KR 2012. Rome, Italy: AAAI Press; 2012. Acyclicity conditions and their application to query answering in description logics. [Google Scholar]
  39. Leone N, Pfeifer G, Faber W, Eiter T, Gottlob G, Perri S, Scarcello F. The DLV system for knowledge representation and reasoning. ACM TOCL. 2006;7(3):499–562. doi: 10.1145/1149114.1149117. [DOI] [Google Scholar]
  40. Dalby A, Nourse JG, Hounshell WD, Gushurst AKI, Grier DL, Leland BA, Laufer J. Descriion of several chemical structure file formats used by computer programs developed at molecular design limited. J Chem Information and Comput Sci. 1992;32(3):244–255. [Google Scholar]
  41. Steinbeck C, Hoppe C, Kuhn S, Floris M, Guha R, Willighagen EL. Recent developments of the chemistry development kit (CDK) - an open-source java library for chemo- and bioinformatics. Curr Pharm Des. 2006;12(17):2111–2120. doi: 10.2174/138161206777585274. [DOI] [PubMed] [Google Scholar]
  42. Motik B, Cuenca Grau B, Horrocks I, Sattler U. Representing ontologies using description logics, description graphs, and rules. Art Int. 2009;173(14):1275–1309. doi: 10.1016/j.artint.2009.06.003. [DOI] [Google Scholar]
  43. Heller SR, McNaught AD. The IUPAC international chemical identifier (InChI) Chem Int. 2009;31:7. doi: 10.1186/s13321-015-0068-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. McNaught AD, Wilkinson A. Compendium of Chemical Terminology, Volume 1669. Oxford, UK: Blackwell Science Oxford; 1997. [Google Scholar]
  45. Pence HE, Williams A. ChemSpider: an online chemical information resource. J Chem Educ. 2010;87(11):1123–1124. doi: 10.1021/ed100697w. [DOI] [Google Scholar]
  46. Boelling C, Dumontier M, Weidlich M, Holzhütter HG. ICBO. CEUR-WS.org; 2012. Role-based representation and inference of biochemical processes. http://ceur-ws.org/Vol-897/session3-paper14.pdf. [Google Scholar]
  47. Low H, Baker C, Garcia A, Wenk M. ICBO. Nature precedings; 2009. An OWL-DL ontology for classification of lipids; pp. 3–3. http://precedings.nature.com/documents/3542/version/1. [Google Scholar]
  48. Sang LH. Knowledge representation and ontologies for lipids and lipidomics. Master’s Thesis. 2009.
  49. Magka D, Krötzsch M, Horrocks I. In: IJCAI. Rossi F, editor. IJCAI/AAAI; 2013. Computing stable models for nonmonotonic existential rules. http://www.aaai.org/ocs/index.php/IJCAI/IJCAI13/paper/view/6598. [Google Scholar]
  50. Krötzsch M, Magka D, Horrocks I. In: LPNMR, Volume 8148 of Lecture Notes in Computer Science. Cabalar P, Son TC, editor. Corunna, Spain: Springer; 2013. Concrete results on abstract rules; pp. 414–426. [Google Scholar]
  51. Magka D, Kazakov Y, Horrocks I. Tractable extensions of the description logicE, with numerical datatypes. J Autom Reasoning. 2011;47(4):427–450. doi: 10.1007/s10817-011-9235-0. [DOI] [Google Scholar]
  52. Protégé Ontology Editor. [ http://protege.stanford.edu]
  53. Spjuth O, Alvarsson J, Berg A, Eklund M, Kuhn S, Mäsak C, Torrance GM, Wagener J, Willighagen EL, Steinbeck C, Wikberg JES. Bioclipse 2: A scriptable integration platform for the life sciences. BMC Bioinf. 2009;10:397. doi: 10.1186/1471-2105-10-397. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Jmol: an open-source Java viewer for chemical structures in 3D. [ http://www.jmol.org]
  55. Krause S, Willighagen EL, Steinbeck C. JChemPaint - using the collaborative forces of the internet to develop a free editor for 2D chemical structures. Molecules. 2000;5(10):93–98. [Google Scholar]
  56. Klyne G, Carroll JJ, McBride B. Resource description framework (RDF) concepts and abstract syntax. W3C Recommendation. 2004,. 10. http://www.w3.org/TR/rdf-concepts/

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Additional file 1

Time measurements and produced hierarchy of the classification experiments. Description of data: Full list of computed subsumptions and time measurements for each of the five experiments discussed in Empirical evaluation.

Click here for file (1.5MB, zip)
Additional file 2

Logic program without cyclicity-related rules. Description of data: Set of rules modelling the chemical classes excluding the cyclicity-related classes.

Click here for file (10.7KB, txt)
Additional file 3

Complete logic program. Description of data: Set of rules modelling all the chemical classes.

Click here for file (10.7KB, txt)

Articles from Journal of Biomedical Semantics are provided here courtesy of BMC

RESOURCES