- Open Access
The semantics of Chemical Markup Language (CML) for computational chemistry : CompChem
Journal of Cheminformatics volume 4, Article number: 15 (2012)
This paper introduces a subdomain chemistry format for storing computational chemistry data called CompChem. It has been developed based on the design, concepts and methodologies of Chemical Markup Language (CML) by adding computational chemistry semantics on top of the CML Schema. The format allows a wide range of ab initio quantum chemistry calculations of individual molecules to be stored. These calculations include, for example, single point energy calculation, molecular geometry optimization, and vibrational frequency analysis. The paper also describes the supporting infrastructure, such as processing software, dictionaries, validation tools and database repositories. In addition, some of the challenges and difficulties in developing common computational chemistry dictionaries are discussed. The uses of CompChem are illustrated by two practical applications.
Computational Quantum Chemistry is a very popular area of research today and will be even more popular in the future. This is due to several emerging key technologies. Developments in computational quantum theory, better numerical methods, as well as parallel and distributed computing, have significantly reduced the computational time (from months to days or hours). With software packages such as Gaussian , GAMESS (US) , and GAMESS-UK  properties of large or short-lived molecules can be calculated which may be difficult or impossible to obtain experimentally. Increasingly, this is done with little human intervention, as automated chemical model generators are becoming more and more popular . As a consequence the amount of data available will very soon become too vast to be analyzed manually. Regardless of how advanced the technology is, these calculations will always require resources which may be wasted if somebody else has completed the same calculation already. For this reason efficient storage and retrieval of computational chemistry data is an important issue. To address this issue the development of an easily accessible and usable infrastructure is necessary.
At present, most computational results are output as “log files” which are designed to record information as human-readable plain text. The log files contain not only information about the calculated properties, but also metadata, such as computing environments, errors, warnings, etc. Many crucial pieces of information, such as units, computational methods or algorithms, are usually omitted from the outputs because they are often considered to be “obvious”  or are provided in separate documentation. Moreover, the structure of the log files depends on the software used, which creates difficulties in retrieving textual information among the different formats. This impedes the automation of the data analysis which is essential in the study of a large chemical system.
A typical solution to the problem is to extract the information from the log files (known as “parsing”) and cast them into a format that is more efficient for retrieval and processing. The eXtensible Markup Language  (XML) is usually selected for storing data due to its universality and extensibility for both simple and complex data. Furthermore, XML provides the means for checking conformance of the structure and data ensuring that the XML instances meet the requirements of the application in question. The fact that XML has become an industrial standard for data storage, in addition to the fact that most modern software is built to support it, are the strongest testaments to its usefulness.
For chemistry applications, the Chemical Markup Language (CML) [7–10] has been developed based on the XML standard in order to provide the semantics for chemical data. CML allows the representation of complex chemical objects by using the hierarchical tree structure of XML. In addition, CML is accompanied by a number of methodologies [11–13] and infrastructures, such as CMLXOM , Jumbo6 , Jumbo-Converter  and CMLValidator , which support the development of a more general computational chemistry format. The following features make CML specifically suited for our purpose:
CML contains a set of hundreds of chemical name tags covering all aspects of chemistry and so allows one to compose a suitable representation for any chemical data;
CML is widely supported by chemistry software, such as, OpenBabel , PyBel , Jmol , Avogadro , making it easy to integrate a subdomain format of CML into most of the existing systems which use these libraries with little modification;
CML has been developed over 15 years so the terminology, concepts and semantics have become highly stable, complete and well understood with relatively small changes in its schema and, as a result, it has been accepted by the chemistry community.
The purpose of this paper is to use CML to develop a standard called CompChem, which is suitable to represent computational chemistry information, including a set of supporting open-source tools. Furthermore, we illustrate the use of CompChem for managing computational chemistry data and for calculating thermodynamic properties.
The paper is structured as follows. We briefly review the important CML concepts used throughout this paper in section “CML overview”. In section “Methodology in CompChem”, we describe the requirements for the design of CompChem and the semantics and the detailed specification of CompChem. Finally, in section “Utility : example use cases”, we report a recent application with examples.
In this section, we briefly outline the key CML concepts and terminologies, which are adopted by CompChem, for readers who are not familiar with CML. Detailed discussions have already been published in Murray-Rust et al. and Townsend et al.. The latest information of the ongoing developments are also publicly available online at http://www.xml-cml.org. The development of CompChem is based on the following components and concepts:
· XML Schema  is an XML-based schema language which specifies the constraints on the structure of an XML document. It is also written in XML and referred to as XML Schema Definition (XSD). The term “XML Schema” (with a capital “S”) should not be confused with XML schema. The latter is a term describing schema languages in general. XML Schema is one of the most commonly used schema languages today. It was published as a W3C recommendation in 2001  to replace Document Type Definition (DTD) and provide additional features for defining the constraints and validating the contents of XML document.
· CML Schema [10, 24] is an XML Schema containing hundreds of chemical definitions (XML tags and attributes). It covers most aspects of chemistry, e.g., CMLReact  for chemical reactions, CMLSpec  for spectral data, CML for crystallography  and CML for polymers (PML) . With the CML Schema, one can determine if a CML document conforms to the specification or not. For example, the schema will tell whether a CML document contains a misspelled element name or an undefined attribute. This ensures that the applications will not generate any errors due to using a “bad” CML document as their input. In the latest version of CML Schema (version 3), the content model restrictions have been lifted in order to make it more flexible for creating any type of chemical documents.
· CML Convention is a set of rules and constraints on the content model of a CML document. It is a subset of the CML Schema with some additional rules for a specific chemistry domain, some of which cannot be defined using XSD. When a convention is specified on a CML element (using the @convention attribute), the structure of the element must conform to the rules defined by the convention. The convention is represented by a short-hand notation, known as a qualify name (QName ), which represents a globally unique Uniform Resource Locator (URL).
· CML Dictionary is a collection of “controlled vocabularies” which are used to add semantics to generic CML elements, especially for <parameter> and <property>. There are several types of CML dictionaries, for example, property and parameter dictionaries (specified using @dictRef), unit dictionaries (specified using @unit) and unit type dictionaries (specified using @unitType). The existing dictionaries can be found at http://www.xml-cml.org/dictionary/.
· Validation is the most important step to verify whether a CML document conforms to the structure required by your application. The CML approach to validation  consists of several steps, e.g., CML Schema, CML convention, CML dictionary validations, and so on. These are usually performed sequentially (as shown in Figure 1), however, they are completely independent. A sophisticated online validator is available at http://validator.xml-cml.org/.
Methodology in CompChem
The development of CompChem started back in the summer of 2009 with the initial goal of archiving our published computational quantum chemistry results [30–34], which were calculated using the convenient software Gaussian 03, in a machine readable format and stored in a queriable database for automating the studies of chemical reactions in a combustion system. It was a collaborative effort between chemical engineers and cheminformatic scientists to explore the power of Semantic Web technologies for storing scientific data. The format was developed purely using the existing CML without making any modification to its schema. The number of elements we use in CompChem, see sections “CompChem convention” and 2, is currently relatively small compared to the whole set of CML elements available, but it is sufficient for most of the data that needs to be stored in the current work. It is very likely that other CML elements will be included to support other functionalities in later years as CompChem evolves.
Like other XML standards, the CompChem convention can only work well if it is widely accepted and, until now, there has not been one for computational chemistry, due to the varied nature of studies. This is a fact that we have to accept and, therefore, we only focus on formalizing the data calculated from the quantum chemistry software in this work.
The design of the CompChem convention shares and inherits the common goals of CML, Polymer Markup Language (PML) and other XML standards, which are quoted from XML 1.0 W3C Recommendation . (Readers are advised to read this documentation for further details) These are as follows:
CompChem shall be straightforwardly usable over the Internet;
CompChem shall support a wide variety of applications;
CompChem shall be compatible with Standard Generalized Markup Language (SGML);
It shall be easy to write programs which process CompChem documents;
The number of optional features in CompChem is to be kept to the absolute minimum, ideally zero;
CompChem documents should be human-legible and reasonably clear;
The CompChem design should be prepared quickly;
The design of CompChem shall be formal and concise;
CompChem documents shall be easy to create;
Terseness in CompChem markup is of minimal importance.
Apart from these general goals, there are more specific goals which distinguish CompChem from CML and other XML standards:
CompChem should be based on CML and reuse its components where appropriate. This is a typical goal of all subdomain formats of CML. Reusing CML and its components is the fundamental key to improve the quality and consistency of the format and reduce development cost and effort. In addition, any future improvement made into CML and its technologies will also be immediately applied to CompChem. In the development of CompChem, we introduced no new components into the CML Schema. Instead, the new concepts are defined using CML dictionaries and are applied to generic CML containers, see Section “Using dictionary in CompChem”.
CompChem should capture the semantics of most computational chemistry calculations. This is the main goal of our work. It is to reduce the flexibility in CML Schema and introduce a stricter structure into the documents so that software and applications know exactly how to process the information. The semantics of CompChem is modelled based on the typical nature of computational simulations or calculations, i.e., contains model input and output steps, see Section “CompChem convention”.
CompChem shall support any chemical data. CML provides a rich set of chemical data types in addition to standard XML data types. It is also possible to build more complex chemical objects from the abstract CML data types and components, thus, CompChem has gained this advantages from reusing CML.
CompChem should be able to be validated using standard processing tools. This is an important consideration to make the CompChem platform independent. The development of CompChem involves using both CML components and CML technologies. The CML components, i.e., CML elements and attributes, are validated using CML Schema and any standard XML Schema processor. The XML stylesheet, XPath  and XSLT  are chosen for implementing and validating the CML conventions. Therefore, one should be able to validate the CompChem convention by using any web browser capable of rendering XSLT.
CompChem should represent both computational input and output. CompChem is designed to be used as both input and output for the calculations. The computation input contains critical information, such as calculation model, basis set, level of theory, job type, etc., that defines the calculation itself. This information is required for the search functionality of the digital repository and the calculation output is usually what is returned from the search. Being able to store input and output are required features of CompChem.
CompChem should interoperate with other XML or CML models (conventions). This is one of the common goals that is shared by all CML works. Interoperability is a requirement for CompChem to be used in conjunction with other existing XML-based formats such as Dublin CoreⒸMetadata (DCMI) and Object Reuse and Exchange (OAI-ORE) standards. This makes CompChem not only reuse the CML components but also other well established formats.
CompChem shall allow users to define and insert new concepts. As discussed earlier, new concepts are added into CompChem through the use of a dictionary mechanism. This is not only applied to the basic values, such as <property>, <parameter>, @unit and @unitType, but also the complex model objects. It is feasible to insert an entire new convention into CompChem, although, it may not be understood by all standard chemistry tools.
CompChem Convention rules must be clear and well documented. Although the convention rules are implemented into the CompChem convention validator using stylesheets, it is important that there must also be human readable documentation. Clear documentation benefits both users and developers in the long term. We will adhere to this in all of our development. In practice, we make the decisions on what are the rules that should be in CompChem and then write documentation from these rules. After that, we implement the rules into the convention validator. This discipline ensures that there is always documentation for every convention we develop.
Using dictionary in CompChem
Because dictionaries play a central role in defining the semantics within a CompChem document, it is essential to fully understand the concepts and how the dictionary referencing mechanism works. Both are explained in detail in this section.
Concepts are the building blocks of scientific knowledge. In natural language, similar concepts can be expressed using several words or synonyms which are the common causes of ambiguity, confusion and error when the information is being processed. In software development, several similar concepts or synonyms can be grouped and represented by a carefully pre-determined term or vocabulary, commonly known as controlled vocabulary. Using controlled vocabulary, one can impose an order and reduce ambiguity by allowing the same concepts to be labelled using a single unique term.
In XML, the tags and attributes are predetermined terms, in other words, an XML schema is a set of controlled vocabularies. CML is no exception. The CML elements and attributes are predefined to cover almost all general aspects of chemistry and computational chemistry. However, it is impossible and futile to predefine every possible chemistry concept into CML. For example, concepts like boiling point, melting point, basis set, entropy, enthalpy, methodology, algorithm, etc., are not included in the CML Schema. Instead, CML uses a dictionary and a referencing mechanism to specify a new concept on the generic CML containers, such as <parameter>, <property>, <scalar>, <matrix>, etc., which can be used to hold the values of any types.
A new concept can be added as an entry into a CML dictionary without requiring the CML Schema to be modified. The dictionary referencing mechanism consists of 3 steps; defining the new concept, creating a reference to the defined concept and applying the referenceto the CML generic container.
· Defining a new concept. In Figure 2 (1), we show a snippet of a CML dictionary which is created according to the CML dictionary convention. A dictionary can contain multiple child elements of entries allowing the vocabulary in the same category to be grouped as one set. The figure only briefly illustrates how a dictionary and its vocabulary should be defined so readers are strongly advised to read the latest detailed specifications of the dictionary convention on www.xml-cml.orgfor more information.
· Creating a reference to the defined concept. In CML, a qualify name (QName)  is used to identify an entry in the dictionary. A QName contains a namespace URI , a local part and a prefix. The prefix is only used as a placeholder for the associated namespace URI and is declared in a namespace declaration. Therefore, in order to be able to identify the dictionary, each dictionary must have a unique identifier and it is specified using @namespace on <dictionary>. This is not to be confused with the XML namespace which is denoted by @xmlns. Specifying @namespace on <dictionary> does not change the actual XML namespace of <dictionary>; it remains in the CML namespace (http://www.xml-cml.org/schema).Each entry must have a unique @id (unique within the dictionary) and this is used as the local part of the QName. The combination of the dictionary @namespace and entry @id generates a globally unique reference for the defined concept. In Figure 2 (2), the prefix “cc” is associated to the same URI (http://www.xml-cml.org/dictionary/compchem/) that is declared for the CompChem-core dictionary’s @namespace. Using the entry id “job”, a QName “cc:job” is constructed as a reference in this step.
· Applying the reference. The reference or QName can be applied to a container using @dictRef, shown in Figure 2 (3).
This referencing mechanism is not only applied to @dictRef but also @units, @unitType and other attributes. Although the mechanisms are similar, the unit and unit type dictionaries are not defined using <dictionary> but rather <unitList> and <unitTypeList> respectively. This is because the unit and unit type are common concepts for scientific data so it has been defined in the CML Schema.
According to our design criteria that CompChem convention should capture the typical underlying processes of quantum calculations and their relationships, the proposed architecture described here is broad and may be applied to any computational modeling in general. The core concepts of CompChem contain the following components:
Job list(jobList) In computational quantum chemistry, calculations are often comprised of a series of subtasks, e.g., coarse optimization → fine optimization → NMR Spectrum Analysis. Each job performs a different type of calculation and passes the results to the next calculation job; this is because most quantum chemistry software packages are designed to be modularized and only to perform a single task at a time. The jobList concept is introduced to capture this series of successive subtasks and links the information from one subtask to the next subtask. It behaves like a wrapper for job modules.
Job(job) The job concept represents a computational job or a computer simulation task, e.g., geometry optimization and frequency analysis jobs, performed by quantum chemistry software. The job concept is the smallest module that fully describes an overall picture of a computational modeling unit. It consists of model parameters (initialization) and model optimizations or calculations (calculation), model results (finalization) and computing environments (environment). These four components are fundamental to every simulation. However, it is not required that all four components be present in every job. Only model parameters are mandatory. A module that contains only model parameters may be used as an abstract quantum chemistry input.
Model initialization(initialization) The model initialization concept represents the model parameters and inputs for a computational job. The model parameters are one of the most important elements that exist in every modeling study. Therefore, it is required in the CompChem convention.
Model calculation(calculation) A model calculation concept represents the computation, the optimization or the iteration processes for the computational job specified by the initialization. The calculation process may or may not be of interest to some scientists; therefore, it is an optional information in CompChem.
Model finalization(finalization) A model finalization concept represents the model output or result of a computational job. In some cases, a CompChem module may only represent the model inputs and does not contain any calculations, therefore, it is optional in CompChem.
Computing environment(environment) The computing environment concept refers to the configuration settings with respect to the hardware platform, software application and operating system. The environment also includes metadata such as machine id, username, starting and finishing date time, tools, compilers, and Internet Protocol address (IP address).
User defined concept CompChem allows users to define their own concepts if the recommended concepts above do not fit into their requirements. A user defined concept in CompChem is represented by a module element with a @dictRef attribute whose value points to an entry in a dictionary that defines the concept. Users are free to design any structure for a user defined module. However, it is recommended to use existing structures or a structure that has a schema for validation. Information in a user defined module cannot be guaranteed to be understandable by all processing software tools.
Each concept, defined above, is associated with the core CompChem dictionary (available at http://www.xml-cml.org/dictionary/compchem/), whose @dictRefs and rules are given in Table 1. The rules in this table are coded into a stylesheet which can be used to validate a CompChem document. It is anticipated that the rules need to be modified or extended when more complex calculations, such as transition state searches or molecular dynamic simulations are included in CompChem.
Figure 3 shows a snippet of a CompChem document with the key features labeled accordingly.
Semantics of properties and parameters
There is a core set of CML which is required for storing the actual contents and data. Since CML Schema are content model free, it is necessary to precisely define how the elements should be used. In this section, we list and describe the CML elements which are often found to be useful in CompChem documents. The rules given here for these components are meant to serve only as a guideline for using the common CML components, such as <property>, <parameter>, <scalar>, <array>, and <matrix>. If the given rules are not applicable, users are allowed to define their own structures and annotate it with their own dictionary reference using the @dictRef attribute. However, the new structures should be clearly specified and documented in the user dictionary so that anyone is able to write a code that can process the dictionary.
Parameter and property containers
A container is a general notion for an XML element that contains data. The CompChem element parameter is also a container. The exact definition of parameter depends on the context where it is used. In the context of CompChem, parameters are a set of model conditions which can be numerical quantities, options, constraints, text or any chemical objects, for example, a basis set (e.g., 6-311+G(d,p)), level of theory, convergence criteria, calculation type (e.g., geometry optimization, frequency analysis, NMR). Some values can be enumerated. For example, Gaussian 03/09  may need to know whether it should use symmetry in the wave function or not. This option can be set to only either “NoSymm” or “Symm” according to the online manual for Gaussian software  and this can be pre-enumerated for use in a CompChem document with values “On” or “Off”.
In CompChem, a value cannot be added directly as a text child of a parameter. It must be wrapped by a CML primitive data container, see Section “Data containers”, which is usually one of <scalar>, <array> or <matrix>. For plain text, a scalar should be used. This allows the computer software to understand exactly which variable type (i.e., variable type in programming language) is suitable for the value of a given parameter. In many cases, a primitive container is not sufficient and it requires a complex object representation to hold the data. Figure 4 shows examples of both primitive and complex chemistry objects. In Figure 4(b), we illustrate a complex object using <table>.
Similar to parameter, a property is also another CML generic container which is used to wrap any primitive or complex object data type. In the context of CompChem, properties are derived quantities from the output of the model calculation, for example, a set of vibrational frequencies of a molecule, electronic energy, derived thermodynamical properties from statistical mechanics calculations. It is often found that properties are numerical quantities rather than enumerated values or text so primitive containers such as <scalar>, <array> and <matrix>, are usually sufficient for storage. For complex objects, they are supported in exactly the same ways as for the parameters.
CompChem also uses @dictRef to provide the semantics for parameter and property. For example, in Figure 3, a parameter has a @dictRef value of cc:basis which points to a cc:basis entry in a CompChem dictionary. Thus, this parameter can be interpreted using the definition of the associated dictionary entry, i.e., cc:basis.
However, there is one exception for molecule elements. Although, an initial molecular geometry can be considered as a model parameter or a model input, CompChem does not categorize it as parameter or property. This is to avoid creating unnecessary concepts and to distinguish the molecule, which is fundamental to every computational chemistry calculation, from other parameters and properties. The semantics of a molecule is considered to be implicit and is determined by its location in the CompChem document. For example, if a molecule is a child of initialization or calculation module, it is considered as an input, i.e., parameter, of that model or calculation. If it is found as a child of finalization module, it is considered to be an output, i.e., property, of the model.
CML provides elements to hold many different types of mathematical, scientific and computational values, e.g., scalar, vector, matrix, array, etc., which we will refer to as “data containers”. The rules of the key containers are given in Table 2. We will briefly describe the more commonly used data containers.
· scalar is used to hold scalar data, which is a single value of type integer, real, boolean, string, date, etc.
· array is used to hold a one dimensional array data structure of primitive data type such as integer, real or boolean but it is not suitable for all data types such as string and date, for example.
· matrix is used to hold a two-dimensional rectangular matrix data structure of primitive data type such as integer and real, and it is not suitable for all data types such as string, date or boolean, for example.
· zMatrix In many quantum chemistry calculations, some atomic coordinates are represented using a z-Matrix coordinate system. CompChem adopts the <zMatrix> from the CML schema and uses it as container for <length>, <angle> and <torsion>.
Utility : example use cases
MolHub is an online infrastructure for chemical data that is used in combustion kinetic studies (http://como.cheng.cam.ac.uk/molhub/), a web browser snapshot is shown in Figure 5. Its architecture is highly flexible allowing add-on modules, i.e., plugins, to be added independently. It was originally named “CoMo CompChem” (CMCC), which was published as part of Shirley et al. for determining thermochemistries and studying the equilibrium of new titanium gas phase species which are involved in an industrial rutile chlorinator.
In MolHub the operating data resources are mainly in XML format (CompChem for computational chemistry data) but it also offers alternative access to the raw data (in legacy format), in the case that the XML formats do not contain the required information. The resources are uniquely identified by URLs and linked semantically by the Resource Description Framework (RDF)  allowing the data to be accessed and queried using standard HTTP protocol. The design of URLs and services are based on the REpresentational State Transfer (REST) principles in which the URL represents the location of the resource and the HTTP method represents the operation that can be applied to the resources.
Example A: Indexing computational chemistry data
Semantics in CompChem are implicit, i.e., the relationships of elements are conveyed based on a mutual understanding (not by RDF  and OWL ontologies ). The implicit semantics of CompChem can be easily translated into RDF allowing each resource to be identified and related in the form of subject-predicate-object triples (RDF statements). So far, there exist no ontology for computational chemistry which can be used as a starting point for a semantic conversion from CompChem to RDF. The development of relationships in RDF is currently based on the demand for very specific applications. The graph database (Triple store for RDF) has proven to be easy to understand and maintain (in comparison to multiple tables in a relational database management system), especially for scientific data in which the information is not frequently changing all the time.
At the current stage, MolHub has been developed to support the data of Gaussian 03 calculations (by converting into CompChem format) providing several online services for calculating thermochemistries of existing online molecular resources. It automatically converts the uploaded Gaussian log files into CompChem, RDF, HTML, N3 (Notation3, an RDF alternative) and PNG (Portable Network Graphics) images. The RDF files are added to a triple store, i.e., we use OpenRDF  in this work, offering a queriable back-end through SPARQL . Various data formats are viewable from the web browser without any additional software which makes it easy for users to explore, and for search engines to discover and index our data.
Example B: titanium species’ Thermochemistries
In our recent publication, Shirley et al., we have demonstrated the use of CompChem and RDF for investigating the thermodynamic properties of new titanium-oxygen molecules. In that paper, the python codes were implemented to make a SPARQL query to an early prototype of MolHub, i.e., “CoMo CompChem”. We successfully illustrated several advantages of the graph database. First, the relationships between chemical entities are clear and it is easy to define a graph pattern to match the desired criteria. Users with no specific training can quickly learn how to make a query and produce a useful result. Second, resources are uniquely labeled with a URL and exist online which make them promptly accessible from a small script to a large application. Third, visualization of the data is very useful as the molecule’s geometry reveals problems instantaneously if there are any. In MolHub an embedded Jmol applet is implemented allowing users to rapidly see the 3D structure of the molecules in the database and hence there is no need to use an external viewer.
In Figure 6, a snippet of a TiO2 molecule is shown. The calculations consist of two separate jobs, which are the geometry optimization and the frequency analysis. Our thermochemistry software, which runs on MolHub, reads the information in CompChem format and produces the thermodynamic properties, such as entropy (S), enthalpy (H), and specific heat capacity ( C p and C v ) and returns it as a downloadable web resource.
An XML-based data storage format, CompChem, has been proposed to capture common aspects of computational chemistry modeling, i.e., model inputs (parameters), application model, calculation steps and model outputs (computed properties), into a well-formed structured manner. The new format minimizes the loss of information from its original source and adds semantics to the data set. The main contributions are:
· The development of CompChem convention;
· The development of the validation tools, such as stylesheet and online CMLValidator;
· The digital repository, MolHub.
An important problem of the Semantic Web is that there is no generally-accepted standardized concept in use today, causing difficulty in the ontology design. This problem also applies to other chemistry domains. In order to insert a certain level of semantic information to CompChem, the concept of control vocabulary has been brought into use through a CML dictionary. The vocabulary terms used in CompChem can be documented and inserted to CompChem documents. The term modifiers, such as datatype, units, relationships, etc., can be added into a CML dictionary providing additional instructions to the processing software. The recent work by Shirley et al. uses this method to process thermochemistry as part of an automated species screening investigation. However, we have yet to finalize a formal computational chemistry ontology. It is clear that the development of such an ontology cannot be undertaken by an individual, but must be driven by the community and experts in related fields in order to guarantee that it will be of benefit to the maximum number of people and therefore widely adopted.
For data validation, a rule-based schema language for CompChem has been developed to ensure that computational chemistry data is formed according to our specifications. The rule-based schema is developed using the XSLT standard and provided in the form of a stylesheet which can be processed separately from CML grammar-based validation using any XSLT processor. Although CompChem rules in the stylesheet can check for all the structural details, it cannot be used to check the validity of contents. For example, it cannot test whether the data type of a property for the associated term matches the data type defined in a dictionary. Such an assertion can be easily added to the stylesheet. A new method may be employed to solve this problem in future work.
Availability and requirements
The CompChem Convention is available at http://www.xml-cml.org/convention/compchem and the CompChem dictionary is available at http://www.xml-cml.org/dictionary/compchem/. The code of CompChem validation stylesheet is available at https://bitbucket.org/wwmm/cml-specs and the CMLValidator is available at http://bitbucket.org/cml/cmllite-validator-code.
Chemical Markup Language
CML for computational chemistry
eXtensible Markup Language
A Java XML Object Model library for CML
A set of chemistry libraries which provide abilities to manipulate CMLXOM
A set of libraries (“converters”) which provide conversion to and from CML
A CML library for CML Convention validation
XML Schema Definition
Document Type Definition
The World Wide Web Consortium
CML for spectral data
CML for chemical reactions
Polymer Markup Language
A Qualified Name as defined in the XML specifications
Uniform Resource Locator
Uniform Resource Identifier
Standard Generalized Markup Language
A syntax for defining parts of an XML document
eXtensible Stylesheet Language
Object Reuse and Exchange standards
Nuclear Magnetic Resonance
An online infrastructure for chemical data (http://como.cheng.cam.ac.uk/ molhub/)
Resource Description Framework
Hypertext Transfer Protocol
REpresentational State Transfer
Application Programming Interface
Web Ontology Language
Portable Network Graphics
SPARQL Protocol and RDF Query Language
An RDF Schema-based Repository and Querying facility (http://www.openrdf.org/).
Frisch MJ, Trucks GW, Schlegel HB, Scuseria GE, Robb MA, Cheeseman JR, Montgomery JAJr, Vreven T, Kudin KN, Burant JC, Millam JM, Iyengar SS, Tomasi J, Barone V, Mennucci B, Cossi M, Scalmani G, Rega N, Petersson GA, Nakatsuji H, Hada M, Ehara M, Toyota K, Fukuda R, Hasegawa J, Ishida M, Nakajima T, Honda Y, Kitao O, Nakai H, Klene M, Li X, Knox JE, Hratchian HP, Cross JB, Bakken V, Adamo C, Jaramillo J, Gomperts R, Stratmann RE, Yazyev O, Austin AJ, Cammi R, Pomelli C, Ochterski JW, Ayala PY, Morokuma K, Voth GA, Salvador P, Dannenberg JJ, Zakrzewski VG, Dapprich S, Daniels AD, Strain MC, Farkas O, Malick DK, Rabuck AD, Raghavachari K, Foresman JB, Ortiz JV, Cui Q, Baboul AG, Clifford S, Cioslowski J, Stefanov BB, Liu G, Liashenko A, Piskorz P, Komaromi I, Martin RL, Fox DJ, Keith T, Al-Laham MA, Peng CY, Nanayakkara A, Challacombe M, Gill PMW, Johnson B, Chen W, Wong MW, Gonzalez C, Pople JA: Gaussian 03, Revision C.02 2003. 2004, Gaussian, Inc., Wallingford, CT
Schmidt M, Baldridge K, Boatz J, Elbert S, Gordon M, Jensen J, Koseki S, Matsunaga N, Nguyen K, SSu T, Windus DupuisM, Montgomery J: General Atomic and Molecular Electronic Structure System. J Comput Chem. 1993, 14: 1347-1363. 10.1002/jcc.540141112.
Guest MF, Bush IJ, Van Dam HJJ, Sherwood P, Thomas JMH, Van Lenthe, Havenith RWA, Kendrick J: The GAMESS-UK electronic structure package: algorithms, developments and applications. Mol Phy. 2005, 103 (6–8): 719-747.
Song J: Building Robust Chemical Reaction Mechanisms: Next Generation of Automatic Model Construction Software. PhD thesis. 2004, Massachusetts Institute of, Technology, Cambridge, MA, USA, http://hdl.handle.net/1721.1/30058,
Wakelin J, Murray-Rust P, Tyrrell S, Zhang Y, Rzepa HS, García A: CML tools and information ow in atomic scale simulations. Mol Simul. 2005, 31 (5): 315-322. 10.1080/08927020500065850.
Bray T, Paoli J, Sperberg-McQueen CM, Maler E, Yergeau F: Extensible Markup Language (XML) 1.0 (Fifth Edition), W3C. 2008, http://www.w3.org/TR/xml/,
Murray-Rust P, Rzepa HS: Chemical Markup, XML , and the Worldwide Web. 1. Basic Principles. J Chem Inf Comput Sci. 1999, 39 (6): 928-942. 10.1021/ci990052b.
Murray-Rust P, Rzepa HS: Chemical Markup, XML and theWorld-WideWeb. 2. Information Objects and the CMLDOM. J Chem Inf Comput Sci. 2001, 41 (5): 1113-1123. 10.1021/ci000404a.
Gkoutos GV, Murray-Rust P, Rzepa HS, Wright M: Chemical Markup, XML , and the World-Wide Web. 3. Toward a Signed Semantic Chemical Web of Trust. J Chem Inf Comput Sci. 2001, 41 (5): 1124-1130. 10.1021/ci000406v.
Murray-Rust P, Rzepa HS: Chemical Markup, XML , and the World Wide Web. 4. CML Schema. J Chem Inf Comput Sci. 2003, 43 (3): 757-772. 10.1021/ci0256541.
Townsend J, Murray-Rust P: CMLLite: a design philosophy for CML. J Cheminformatics. 2011, 3: 39-10.1186/1758-2946-3-39.
Murray-Rust P, Adams S, Downing J, Townsend J, Zhang Y: The semantic architecture of theWorld-Wide Molecular Matrix (WWMM). J Cheminformatics. 2011, 3: 42-10.1186/1758-2946-3-42.
Murray-Rust P, Townsend J, Adams S, Phadungsukanan W, Thomas J: The semantics of Chemical Markup Language (CML): dictionaries and conventions. J Cheminformatics. 2011, 3: 43-10.1186/1758-2946-3-43.
CMLXOM . [Online; accessed 20-December-2011]. [https://bitbucket.org/wwmm/cmlxom/]
Jumbo6 . [Online; accessed 20-December-2011]. [https://bitbucket.org/wwmm/jumbo6/]
JUMBO-Converters . [Online; accessed 20-December-2011]. [https://bitbucket.org/wwmm/jumbo-converters/]
CMLValidator service . [Online; accessed 20-December-2011]. [http://validator.xml-cml.org/]
O’Boyle N, Banck M, James C, Morley C, Vandermeersch T, Hutchison G: OpenBabel: An open chemical toolbox. J Cheminformatics. 2011, 3: 33-10.1186/1758-2946-3-33.
O’Boyle N, Morley C, Hutchison G: Pybel: a Python wrapper for the OpenBabel cheminformatics toolkit. Chem Cent J. 2008, 2: 5-10.1186/1752-153X-2-5.
Jmol: an open-source Java viewer for chemical structures in 3D. [Online; accessed 24-October-2011]. [http://www.jmol.org/]
Avogadro: an open-source molecular builder and visualization tool. Version 1.0.3. [Online; accessed 25-April-2011]. [http://avogadro.openmolecules.net/]
Thompson HS, Beech D, Maloney M, Mendelsohn N: XML Schema Part 1: Structures Second Edition, W3C Recommendation. 2004, [Online; accessed 21-December-2011]. [http://www.w3.org/TR/xmlschema-1/]
w3schools: Introduction to XML Schema. [Online; accessed 21-December-2011]. [http://www.w3schools.com/schema/schemaintro.asp]
Murray-Rust P, Rzepa H: Chemical Markup Language (CML) Schema version 3. [Online; accessed 24-December-2011]. [http://www.xml-cml.org/schema/]
Holliday GL, Murray-Rust P, Rzepa HS: Chemical Markup, XML , and the World Wide Web. 6. CML- React, an XML Vocabulary for Chemical Reactions. J Chem Inf Model. 2006, 46: 145-157. 10.1021/ci0502698.
Kuhn S, Helmus T, Lancashire RJ, Murray-Rust P, Rzepa HS, Steinbeck C, Willighagen EL: Chemical, Markup, XML and the World Wide Web. 7. CMLSpect, an XML Vocabulary for Spectral Data. J Chem Inf Model. 2007, 47 (6): 2015-2034. 10.1021/ci600531a.
Day N, Downing J, Adams S, England NW, Murray-Rust P: CrystalEye. [Online; accessed 26-December-2011]. [http://wwmm.ch.cam.ac.uk/crystaleye/]
Adams N, Winter J, Murray-Rust P, Rzepa HS: Chemical Markup, XML and the World-Wide Web. 8. Polymer Markup Language. J Chem Inf Model. 2008, 48 (11): 2118-2128. 10.1021/ci8002123.
Bray T, Hollander D, Layman A, Tobin R, Thompson H S Rzepa: CrystalEye. 2009, [Online; accessed 26-December-2011]. [http://www.w3.org/TR/xml-names/]
Totton TS, Shirley R, Kraft M: First-principles thermochemistry for the combustion of in a methane flame. Proc Combust Inst. 2011, 33: 493-500. 10.1016/j.proci.2010.05.011.
West RH, Beran GJO, Green WH, Kraft M: First-Principles Thermochemistry for the Production of TiO2 from TiCl4. J Phys Chem A. 2007, 111 (18): 3560-3565. 10.1021/jp0661950.
Shirley R, Liu Y, Totton TS, West RH, Kraft M: First-Principles Thermochemistry for the Combustion of a TiCl4 and AlCl3 Mixture. J Phys Chem A. 2009, 113 (49): 13790-13796. 10.1021/jp905244w.
Shirley R, Phadungsukanan W, Kraft M, Downing J, Day NE, Murray-Rust P: First-Principles Thermochem- istry for Gas Phase Species in an Industrial Rutile Chlorinator. J Phys Chem A. 2010, 114 (43): 11825-11832. 10.1021/jp106795p.
Phadungsukanan W, Shekar S, Shirley R, Sander M, West RH, Kraft M: First-Principles Thermochemistry for Silicon Species in the Decomposition of Tetraethoxysilane. J Phys Chem A. 2009, 113 (31): 9041-9049. 10.1021/jp905494s.
Berglund A, Boag S, Chamberlin D, Fernández MF, Kay M, Robie J, Siméon J: XML Path Language (XPath) 2.0 (Second Edition). 2010, [Online; accessed 26-December-2011]. [http://www.w3.org/TR/xpath20/]
Kay M: XSL Transformations (XSLT) Version 2.0. 2007, [Online; accessed 26-December-2011]. [http://www.w3.org/TR/xslt20/]
Bradner S: Key words for use in RFCs to Indicate Requirement Levels. 1997, [Online; accessed 24-December-2011]. [http://www.ietf.org/rfc/rfc2119.txt]
Manola F, Miller E: Resource Description Framework (RDF) Primer. 2004, [Online; accessed 6-February-2012]. [http://www.w3.org/TR/rdf-primer/]
OWL 2 Web Ontology Language, 2009. [Online; accessed 6-February-2012]. [http://www.w3.org/TR/owl2-overview/]
OpenRDF - Aduna Software. [Online; accessed 11-May-2012]. [http://www.openrdf.org/]
Prud’hommeaux E, Seaborne A: SPARQL Query Language for RDF. 2008, [Online; accessed 11-May-2012].[http://www.w3.org/TR/rdf-sparql-query/]
The authors are grateful to Churchill College Cambridge and the Development and Promotion of Science and Technology Talents Project for the financial support of WP.
The authors declare that they have no competing interests.
WP and JAT developed the specification for CompChem, created the codes and CompChem dictionary. WP wrote the manuscript and was checked by MK and PMR. All authors read and approved the final manuscript.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
About this article
Cite this article
Phadungsukanan, W., Kraft, M., Townsend, J.A. et al. The semantics of Chemical Markup Language (CML) for computational chemistry : CompChem. J Cheminform 4, 15 (2012) doi:10.1186/1758-2946-4-15
- Resource Description Framework
- Internet Protocol Address
- Uniform Resource Locator
- Document Type Definition
- Schema Language