<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Representing Mathematical Formulae in Content MathML using Wikidata</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Philipp Scharpf</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Moritz Schubotz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bela Gipp</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Information Science Group University of Konstanz</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we describe how to represent mathematical formulae in Content MathML referring to the open knowledge-base Wikidata for the grounding of the semantics. By doing so, we link identi ers and symbols in MathML to Wikidata items to annotate mathematical identi ers or operators. In contrast to other mathematical knowledgebases, which de ne symbols in a deductive fashion, the terms in Wikidata emerged inductively from Wikipedia articles in di erent languages. In this context, we discuss the term of a mathematical formula content and its relation to the data representation in Content MathML and Wikidata in detail.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        We are confronted with a constantly increasing rate of published documents from
the disciplines of Science Technology, Mathematics and Engineering (STEM)
that contain a large amount of mathematical formulae [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. While there are
already advancements to process their textual contents using technologies from
Natural Language Processing (NLP) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], there is still a huge potential for
development concerning the processing of mathematical content. Pagel and Schubotz
coined an analogous term of Mathematical Language Processing (MLP) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
Exceeding a mere processing, it will certainly be bene cial if the computer is able
to understand and interpret the processed content. This means being able to
include the semantics of the mathematical formulae and their constituents in
the computational analysis. To achieve this, approaches will be developed and
re ned that enable automated semantic enrichment of mathematical formulae,
i.e., the computer should be able to automatically infer the meaning of a formula
and its constituents from the context (surrounding text, mathematical topic or
discipline, etc.). Furthermore, a de nition of a formula content is needed to
formalize a mapping to its digital representation in a markup language and
semantic database. To assess the quality of the semantic enrichment by various
approaches and tools, we need a benchmark dataset as a reference. So far, there
are only little high-quality samples available. In the remainder of this paper, we
will develop a de nition of a mathematical formula content, which can be
represented in the Content MathML language making use of the semantic
knowledgebase Wikidata as a Content Dictionary as proposed in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. One crucial bene t
of linking semantic elements of a formula to Wikidata is to have a
languageindependent representation that can be used to retrieve information in a large
number of languages, which do not provide thorough textbooks. Furthermore,
we will describe our annotation tool that we used to construct a Gold Standard
MathMLben [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], which was recently introduced to facilitate the conversion
between di erent mathematical formats such as LaTeX variations and Computer
Algebra Systems (CAS). Finally, we assess the quality of the MathML
benchmark and its suitability for the evaluation of automatic semantic enrichment
approaches or tools.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>
        In this chapter, we will review the currently available encoding standards for the
semantics of mathematical formulae to lay the foundations for our contribution
of a new semantic annotation in Content MathML linking to Wikidata items.
(La)TeX LaTeX (shortening of Lamport TeX named after its author) is a
software package for the typesetting system TeX that was rst released in 1983 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
TeX was initiated by Knuth in 1977 as both a typesetting for the annotation
of document parts (title, sections, etc.) and a markup macro language (font
style, math environments, etc.). So aside from being a standard for the
document layout, TeX can be used to annotate the semantic parts of a document,
but also within a formula. Kohlhase developed a semantic markup format for
LaTeX formulae [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. \sTeX: An Infrastructure for Semantic Preloading of LaTeX
Documents" is available as a package1 collection to bring a mathematical
document in a format that can be used for Mathematical Knowledge Management
(MKM). Moreover, LaTeX macros were de ned for the Digital Repository of
Mathematical Formulae (DRMF) [
        <xref ref-type="bibr" rid="ref8 ref9">8,9</xref>
        ], e.g. to annotate mathematical functions
such as the Euler Gamma function (z) as \EulerGamma@{z}.
      </p>
      <p>
        OpenMath \OpenMath is an extensible standard for representing the
semantics of mathematical objects" [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. It was developed to enable a representation
of the semantics of mathematical formulae and facilitate the exchange between
di erent mathematical software systems and languages. OpenMath encoding is
especially also bene cial in document analysis, for purposes of search,
recommendation, plagiarism and novelty detection where knowing the semantics of
a formula and its parts is required. The encoding of OpenMath objects allows
them to be rendered in browsers, exchanged between software systems or
transferred between di erent mathematical documents while preserving the semantics.
Moreover, it is an important step towards the goal of automatically checking the
soundness of mathematical statements by considering their semantic content.
While the OpenMath Standard was built to annotate individual formulae or
simple mathematical statements, an additional markup language was developed
to extend the markup to entire documents. The Open Mathematical Documents
1 https://github.com/KWARC/sTeX
(OMCDoc) standard [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is part of the MathWeb.org initiative for supporting
mathematics on the web, which is maintained by Michael Kohlhase on GitHub
at https://kwarc.github.io/mathweb-org/. OMDoc enables a markup for
mathematical expressions on three levels: The Object level (individual
formulae with Content MathML markup), the Statement level (de nitions, theorems,
proofs, examples and the relations between them) and the Theory level (set of
contextually related statements). Each level can possibly include both logical
syntax and natural language information. Since physics has its own
characteristics, a speci c dialect was developed, the PhysML content markup language for
physics, which is maintained by Hilf, Kohlhase, and Stamerjohanns on Github at
https://github.com/OMdoc/OMDoc/wiki/PhysML. It aims to extend the
OMDoc standard by \an infrastructure for the principal concepts of physics:
observables, physical systems, and experiments" [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. OpenMath, OMDoc, and
PhysML are all important steps towards a Semantic Web for mathematics and
physics, consisting of ontologies in OWL format, which contain mathematical or
physical markup.
      </p>
      <p>
        MathML The Mathematical Markup Language (MathML), is \an XML
application for encoding mathematics on the Web" [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. It encodes both the visual
structure (Presentation MathML) and the formula content (Content MathML)
of mathematical formulae. The original goal of MathML was to represent
mathematics on the web as a rst XML application, which was promoted by the
World Wide Web Consortium (W3C). In 1997, only three years after the W3C
was formed, the W3C Math Working Group began to design the MathML
standard, which was rst released (MathML 1.0) in 1999 and extended and re ned
(MathML 2.0) in 2001. It was gradually supported by numerous software systems
and browsers as well as organizations, prominently the American Mathematical
Society (AMS). According to its design by the W3C Math Working Group,
MathML is both human-readable for mathematicians with little computer
science background and machine-readable for software systems performing
calculations and automated reasoning. It is easily extensible by new markup tags,
dictionaries, rules, etc. Also, it enables the exchange of mathematical content
between various software systems, prominently Computer Algebra Systems and
LaTeX editors for academic writing, web pages, etc. A recent assessment of its
suitability as an intermediate language for the conversion between a collection
of mathematical tools and LaTeX was made by the authors [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Since HTML5,
MathML is an integral part of HTML. The markup is displayed in many, even
interactive browser environments. In comparison to other display methods for
online mathematics, such as formulae as images in gif, jpeg, png or pdf format,
it is much more exible, lean, combinable and reusable. Being an application of
XML, MathML extents its syntax and rules by additional restrictions on types
and values of content. For an extensive description of MathML, we refer to \the
W3C MathML standard", which is available online at https://w3.org/Math/.
Content MathML A central aspect of the OpenMath standard was to introduce
the possibility of Content Dictionaries, collections of symbols or identi ers with
declarations of their semantics - names, descriptions, and rules. According to
OM Society, they serve as an agreement on a joint \OpenMath language" [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
The Content Dictionaries are collected by the MathML CD Group. A list can be
found at http://www.openmath.org/cdgroups/mathml.html, comprising basic
algebraic concepts, symbols for common arithmetic functions and relations,
calculus operations, operations on and constructors for complex numbers, linear
algebra matrix operations, limits, basic logic functions, basic multiset theory,
symbols for creating numbers and constants, roundings etc. The o cial CD
collection is reviewed by the OpenMath Society. Content MathML was
introduced to complement Presentation MathML. While the latter focuses on the
visual structre of the marked mathematical formulae in documents or websites,
the former was built for the description of content elements (identi ers,
operators, functions, and bindings) by using the OpenMath speci cation [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Content
MathML adopts the pre x notation of OpenMath, which stems from the style of
functional programming languages such as Lisp or Scheme, allowing for nested
lists or tree-structured data when marking the application of operators. As an
example, the expression x + y is represented in pre x notation as +xy, meaning
that the operation + takes the arguments x and y as bound variables.
Wikidata Wikidata is an open semantic knowledge-base that can be read and
edited by humans and machines. It was initially built to provide well-maintained
high-quality structured data to other Wikimedia projects, prominently being a
source of the lean Wikipedia infoboxes. Wikidata aims to contain the \semantic
bones" extracted from Wikipedia, being its central data management platform.
It is an internationalized multilingual database for the collaborative adding and
editing of the world's knowledge. It allows inconsistent and contradictory facts to
coexist to represent the plurality of knowledge about a speci c topic [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Since
its start in 2012, Wikidata was enriched by an enormous amount of structured
data such as numbers, coordinates, dates, names, formulae, taxonomies, etc. The
data is disposed to be searched, analyzed and reused by direct access through
query services or regular (machine-readable) data exports2. Users can extend and
edit the content of Wikidata items even without having to create an account [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
References have to be provided and are checked by the community on a regular
basis. Wikidata is continuously growing in size: today (May 2018) it contains
almost 50 million items In 2014, Google o ered the data of Freebase to the
Wikidata community who developed the Primary Sources Tool [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] to facilitate
data migration by an interface in which users can approve or reject alleged
and referenced statement [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. In the last few years, many other datasets were
imported, including migration from Wikimedia sister projects. The data model
of Wikidata consists of entities or items (referenced by QIDs Qxxx) connected by
properties (referenced by Pxxx) as triples, e.g., Albert Einstein (Q937) - native
language (P103) - German (Q188). An illustration of the data model is shown
in Figure 1. In this case, London is the main item with a statement that consists
2 The RDF data dumps that connect Wikidata to the Linked Data Web are available
at http://tools.wmflabs.org/wikidata-exports/rdf [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ].
of a claim and a reference for that claim (statement = claim + reference). The
claim is formed by the main property-value pair that represents the main fact,
here population = value, speci ed by optional quali ers with values, the point in
time and determination method. Compared to the amount of non-mathematical
knowledge, Wikidata contains only a few mathematical formulae. To address
this issue, we recently have seeded around 17 thousand mathematical formulae
fetched from Wikipedia articles ( rst de ning formula) into Wikidata. They are
now at disposal to be approved or rejected by the community using the Primary
Sources Tool.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Approach</title>
      <sec id="sec-3-1">
        <title>Formula Content</title>
        <p>
          We de ne a mathematical formula content as the composition of its constituting
features, the properties or attributes that are relevant to identify the content.
There are mainly three types of formula constituents: numbers, identi ers, and
operators. To uniquely de ne the formula content, additional information on
the relations between these constituents is required. The Content MathML tree
can be visualized by VMEXT, as illustrated in [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]. Two formulae could
possibly contain the same identi ers or numbers, but with di erent conjunctions or
bindings. As a simple example, a = 2 + 3 b + c contains the same numbers (2
and 3), identi ers (a; b; c) and operators (+; ; =) as c = 2 + 3 a + b, but in a
di erent functional composition. Analogous to natural language, mathematical
language could be decomposed into a triple representation, where the
mathematical numbers or identi ers play the role of the natural language subject or
object, e.g., 3 &lt; 6, but this only applies to binary operators, inequalities, and
elementary expressions. For composite equations containing a variety of
arbitrary n-ary operators (e.g. an unary faculty x!), a general functional de nition
is necessary.
        </p>
        <p>This can be illustrated examining r = px2 + y2. This formula contains one
number (2), three identi ers (r; x; y) and three operators (=; p; +, ^), if we
classify the equality sign = as operator. In functional notation, it can be written
as a nested function:</p>
        <p>=(r,\sqrt(+(^(x,2),^(y,2))))</p>
        <p>Having included the set of numbers, identi ers, and operators as well as
their functional relations in our de nition of a formula content, we still need
a disambiguation of the identi ers (and operators - although they are much
less ambiguous) in the sense of de ning the mathematical data type and/or
physical units. In our example, the identi ers r; x and y could be any variables,
complex numbers, real numbers or represent radius and coordinates. Besides, also
a number could need clari cation of its meaning. E.g., 3:14 could be an arbitrary
value or a rounded representation of the irrational transcendent number . So a
clari cation of the meaning is the last ingredient to grasp the formula content.</p>
        <p>In short, we summarize our de nition of a formula content as:
{ The set of numbers, identi ers and operators (including equality = or
inequality signs &lt;; &gt;) the formula contains.
{ The (nested) functional relations of the identi ers and numbers, with the
operators being the functions and numbers or identi ers being the variables.
{ The individual meanings (disambiguation) of the numbers, identi ers, and
operators.
or more formally: A formula content F</p>
        <p>F = fN ; I; O; Rg
is given by the sets of the numbers N , identi ers I and operators O the
formula contains and the set of functional relations R. In the rst three sets,
each element is a (symbol, meaning)-tupel while the last set contains the nested
functionality of the formula.</p>
        <p>The example formula r = px2 + y2 is formalized as:</p>
        <p>Fr = fN = f(2, natural number)g;
I = f(r, radius), (x, dimension), (y, dimension)g;
O = f(=, equality sign),(\sqrt(), square root);
(^(), power operator)g;
R = f=(r, \sqrt(+(^(x,2),^(y,2))))gg</p>
        <p>The disambiguation of 2 as natural number, = as equality sign, \sqrt() as
square root and ^() as power operator could arguably be omitted, but for
completeness, we ll all tuples (number, disambiguation), (identi er,
disambiguation) and (operator, disambiguation).
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Wikidata annotation in Content MathML</title>
        <p>Our de nition of a formula content can be mapped into Content MathML with
Wikidata annotation, i.e., using Wikidata as an OpenMath Content Dictionary.
Figure 2 shows an example markup of the formula E = mc2 from physics with
its identi ers linked to Wikidata items referenced by their QID, e.g., Q11379 for
\energy".</p>
        <p>Since the semantics of the identi ers or operators is taken care of by the
Wikidata Content Dictionary, we claim that our de nition of a formula content can
fully be covered by a description in Content MathML with Wikidata markup.
In the following, we illustrate how the functionality of a formula can be mapped
to Strict Content MathML, an XML encoding of OpenMath objects with
Content Dictionaries. Table 1 contains the most important tags in Strict Content
MathML and OpenMath representation, which will be described below3.</p>
        <p>The tags are intended to use as follows:
{ The &lt;cn&gt; (\content number") element is built to contain numbers such as
integers, real and (double) oating point numbers. Additionally, an e-notation
as well as complex-cartesian and complex-polar notations are supported. In
the case of complex numbers, the real and imaginary part can be separated
using the &lt;sep&gt; tag (possibly be rewritten using the &lt;apply&gt; element).
{ The &lt;csymbol&gt; (\content symbol") element is used in &lt;annotation-xml&gt;
encoding to refer to a Content Dictionary by the cd attribute. Identi ers or
operators can be cross-referenced by an id and xref attribute respectively.
{ The &lt;ci&gt; (\content identi er") element is a markup for mathematical
variables who - in contrast to symbols - do not have a xed value. All variables
with the same name in the same scope (see bindings &lt;bind&gt; and bound
variables &lt;bvar&gt; below) are considered equal or identical.
3 The description follows the W3C Recommendation for Content Markup available
online at https://www.w3.org/TR/MathML3/chapter4.html#contm.cds.
{ The &lt;cs&gt; (\content string") element encodes string literals in the form of
text.
{ The &lt;apply&gt; element is used to fundamentally build compound objects by
recursively applying a function or an operator to some arguments (numbers,
symbols or variables). E.g. x + 3 can be implemented as
&lt;apply&gt;&lt;csymbol cd="arith1"&gt;plus&lt;/csymbol&gt;
&lt;ci&gt;x&lt;/ci&gt;&lt;cn&gt;3&lt;/cn&gt;&lt;/apply&gt;.
{ The &lt;bind&gt; element is indented to build mathematical expressions where a
variable is bound in the scope of a function, operator or quanti er. The latter
can be an integral, a sum, product or logical quanti er such as 8 (for all ) or
9 (there exists) while the former is the bound dummy variable (renaming it
does not change the meaning of the expression).
{ The &lt;bvar&gt; element denotes the individual bound variables that occur as
children in a nested binding expression.
{ The &lt;share&gt; can be used to avoid duplicate passages by allowing for copies
that are pasted by reference. This can be done using the href and id
attributes.
{ The &lt;semantics&gt;, &lt;annotation&gt;, and &lt;annotation-xml&gt; element wrap
content elements that provide additional semantic markup or annotations
via a Content Dictionary. The tags are regarded as part of both
Presentation MathML and Content MathML.</p>
        <p>Concluding, we claim that the semantic level of our de ned formula content
is covered by the &lt;semantics&gt;, &lt;annotation&gt; and &lt;annotation-xml&gt; markup
while the structure and functional level can be described by utilizing the &lt;apply&gt;
and &lt;bind&gt; environments.</p>
        <p>
          The remainder of this paper describes the construction, maintenance and
quality assessment of a MathML benchmark dataset for the evaluation of
automated semantic Information Retrieval. We recently introduced it [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] as a Gold
Standard for evaluating the conversion between di erent mathematical formats,
especially LaTeX markup and Computer Algebra Systems.
Our original motivation for MathML-Wikidata annotation was to de ne
semantic relatedness for formulae by counting Wikidata links between them. Having
relations with other Wikidata items enables to improve the taxonomic distance
measure [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ]. The dataset - MathMLben - comprises 305 mathematical
expressions (ranging from individual symbols up to complex multi-line formulae).
Additionally, it contains meta-information such as the source URL or document
page it is retrieved from. The expressions were selected from three di erent
sources [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]:
        </p>
        <p>
          Expressions 1 to 100 are random samples taken from the \National
Institute of Informatics Testbeds and Community for Information access Research
Project" (NTCIR) 11 Math Wikipedia Task [
          <xref ref-type="bibr" rid="ref22">22</xref>
          ].
        </p>
        <p>
          Expressions 101 to 200 are random samples taken from the \NIST
Digital Library of Mathematical Functions" (DLMF) [
          <xref ref-type="bibr" rid="ref23">23</xref>
          ] available on the website
https://dlmf.nist.gov/ containing around 10.000 labeled LaTeX formulae
with semantic markup classi ed in 36 categories [
          <xref ref-type="bibr" rid="ref8 ref9">8,9</xref>
          ]. In case of multiple
equations, we randomly chose one and discarded the others.
        </p>
        <p>
          Expressions 201 to 305 were selected from the NTCIR arXiv and
NTCIR12 Wikipedia dataset retrieval. 70 % of these formulae were taken from the
arXiv [
          <xref ref-type="bibr" rid="ref24">24</xref>
          ] and 30 % from a Wikipedia dump.
        </p>
        <p>
          We created a Graphical User Interface (see Figure 3) as a web application
with a variety of input elds to easily maintain the gold standard. For each Gold
ID entry or formula, you can chose a Formula Name, specify a Formula Type
(de nition, equation, relation or general formula) and insert the Original Input
TeX and manually Corrected TeX together with a Hyperlink to the source.
The Semantic LaTeX Input eld is used for the semantic annotations,
providing the basis for the generation of Content MathML with Wikidata annotations
by LaTeXML [
          <xref ref-type="bibr" rid="ref25 ref26">25,26</xref>
          ]. The corrected TeX is rendered in real time by Mathoid [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]
as an SVG image. Moreover, an expression tree is displayed, rendered by our
visualization tool VMEXT [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ]. For each symbol in the tree, the assigned
annotation is shown as a yellow mouse-over infobox containing the Wikidata QID,
name and description (if available).
        </p>
        <p>
          As described in the gold-standard [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], the data is publicly available at https:
//mathmlben.wmflabs.org with a user guide on how to access raw data or
contribute by extending or correcting the expression tree or (Wikidata) annotations.
4
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Discussion</title>
      <p>
        Finally, we will discuss in detail how our proposed usage of Wikidata both as
LaTeX markup and a MathML Content Dictionary will improve grasping the
semantics of formula content. We will compare our approach of implementing
Wikidata annotation in comparison to already existing DLMF LaTeX macros
and default OpenMath Content Dictionaries.
LaTeXML [
        <xref ref-type="bibr" rid="ref25 ref26">25,26</xref>
        ] supports the usage and conversion of a selection of DLMF
LaTeX macros, the community agreed upon [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ]. The macros are designed to
facilitate a human-readable semantic annotation and the compilation continously
will be extended. They are a huge bene t for the creation of semantically enriched
mathematical knowledge, since the direct editing in MathML can be tedious or
confusing and researchers and editors in the mathematical sciences are usually
more familiar with LaTeX markup [
        <xref ref-type="bibr" rid="ref28">28</xref>
        ]. Some examples are [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]:
{ \BesselJ{\nu}@{z}: J (z): Bessel function of the rst kind,
{ \LegendreQ[\mu]{\nu}@{z}: Q (z):
      </p>
      <p>associated Legendre function of the second kind or
{ \JacobiP{\alpha}{\beta}{n}@{x}: Pn( ; )(x):</p>
      <p>Jacobi polynomial.</p>
      <p>However, the de ned macros are naturally not extensive, and expansion
requires community consensus and implementation. In contrast, Wikidata items
can be easily created at any time by anyone. This is why we propose using
Wikidata markup as a supplement. We are aware of the fact that since the content
of Wikidata items is monitored by a much larger community than the DLMF
responsibles can be either bene cial or harmful to the quality of the semantic
markup.
4.2</p>
      <sec id="sec-4-1">
        <title>OpenMath and Wikidata Content Dictionaries</title>
        <p>To assess the quality of Wikidata annotations at the level of MathML markup,
we will now compare the Content Dictionaries (CDs) using the simple example
of adding two numbers a + b.</p>
        <p>Using the plus tag of the OpenMath CD arith1 for arithmetic operations4,
Strict Content MathML reads
&lt;apply&gt;&lt;csymbol cd="arith1"&gt;plus&lt;/csymbol&gt;&lt;ci&gt;a&lt;/ci&gt;&lt;ci&gt;b&lt;/ci&gt;&lt;/apply&gt;
&lt;apply&gt;&lt;csymbol cd="arith1"&gt;plus&lt;/csymbol&gt;&lt;ci&gt;b&lt;/ci&gt;&lt;ci&gt;a&lt;/ci&gt;&lt;/apply&gt;.
In contrast, a proposed Wikidata markup reads in LaTeX
\w{Q12916}{a} \w{Q32043}{+} \w{Q12916}{b}
and the Content MathML annotation generated by LaTeXML is
While the arith1 -markup allows for a speci cation of the identi ers a and b
as "integer", "rational", "real", "complex" etc., the Wikidata-markup assigns
them to the Wikidata item real number (Q12916). Additionally it is possible
to specify the meaning, e.g. annotate as a physical observable (Q845789). The
plus-operation is assigned to the Wikidata item addition (Q32043).</p>
        <p>The Wikidata markup is larger and maybe less easy to read, but as already
discussed it can be extended at all time by creating or adjusting Wikidata items.
Furthermore, it has the advantage that all items are linked to Wikipedia
articles that provide extensive human-readable descriptions. Moreoover, MathML is
seldomly edited manually. Therefore, we propose to use tools such as VMEXT,
which uses human readable labels rather than the Wikidata QIDs in the GUI.
4 For the speci cation see http://www.openmath.org/cd/arith1#sum.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion and Outlook</title>
      <p>With our proposed Wikidata markup, we achieved advantages of both LaTeX
and MathML markup at the same time. The Wikidata macros in LaTeX are
easy to write and read and thus adequate for editors who are not familiar with
the syntax and structure of MathML. It will be an important mission to
convince researchers in the mathematical sciences of the bene ts of making their
published content machine-readable. In their documents, they should mark as
many entities as possible:
- named entities, e.g. \w{Q210546}{Equivalence principle}
- whole formulae, e.g. \w{Q210546}{$E=mc^2$}
- parts of formulae, e.g. $\w{Q11379}{E} = \w{Q11423}{m} \w{Q2111}{c}^2$
We are planing to develop a GUI to facilitate the annotation process. This will
produce labeled data to use for the future discovery and recognition of formula
concepts, our long-term research goal.</p>
      <p>Formula Concept Discovery (FCD) will be an approach to develop an
understanding of the de nition of a mathematical concept by using labeled data from
Wikipedia, the arXiv, other resources and self-annotated formulae. We strive to
engineer an automatic retrieval of the de ning formula of a given mathematical
concept within a document. Machine Learning methods such as formula
clustering, decision trees, and feature analysis will help to approximate our ambition.</p>
      <p>Formula Concept Recognition (FCR) will subsequently be applicable to spot
the de ned formula concepts in given documents by identifying its semantic
components (i.e., the constituting identi ers, operators, and numbers) with Wikidata
items. If there is nally a su cient amount of labeled data, we can explore the
possibility of using neural networks to recognize a given formula by matching
its features to concept labels, starting with a small set of classi ers. Our future
research will eventually aim at a largely representation-independent de nition
and recognition of formula concepts.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>We thank Wikimedia Foundation and Wikimedia Deutschland providing cloud
computing facilities and inviting us for a research visit. This work was
supported by the FITWeltweit program of the German Academic Exchange Service
(DAAD) as well as the German Research Foundation (DFG grant GI-1259-1).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Radu</given-names>
            <surname>Hambasan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <article-title>Faceted search for mathematics</article-title>
          . In Ralph Bergmann, Sebastian Gorg, and Gilbert Muller, editors,
          <source>Proceedings of the LWA</source>
          <year>2015</year>
          <article-title>Workshops: KDML, FGWM, IR, and</article-title>
          <string-name>
            <surname>FGDB</surname>
          </string-name>
          , Trier, Germany, October 7-
          <issue>9</issue>
          ,
          <year>2015</year>
          ., volume
          <volume>1458</volume>
          <source>of CEUR Workshop Proceedings</source>
          , pages
          <volume>33</volume>
          {
          <fpage>44</fpage>
          . CEUR-WS.org,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Mohamed</given-names>
            <surname>Kurdi</surname>
          </string-name>
          .
          <source>Natural Language Processing and Computational Linguistics</source>
          <volume>2</volume>
          : Semantics,
          <source>Discourse and Applications</source>
          , volume
          <volume>2</volume>
          . John Wiley &amp; Sons,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Robert</given-names>
            <surname>Pagel</surname>
          </string-name>
          and
          <string-name>
            <given-names>Moritz</given-names>
            <surname>Schubotz</surname>
          </string-name>
          .
          <article-title>Mathematical language processing project</article-title>
          .
          <source>In Matthew England</source>
          , James Davenport, Andrea Kohlhase,
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          , Paul Libbrecht, Walther Neuper, Pedro Quaresma, Alan Sexton, Petr Sojka, Josef Urban, and Stephen Watt, editors,
          <source>Joint Proceedings of the MathUI</source>
          ,
          <article-title>OpenMath and ThEdu Workshops and Work in Progress track at CICM co-located with Conferences on Intelligent Computer Mathematics</article-title>
          (CICM
          <year>2014</year>
          ), Coimbra, Portugal, July 7-
          <issue>11</issue>
          ,
          <year>2014</year>
          ., volume
          <volume>1186</volume>
          <source>of CEUR Workshop Proceedings. CEUR-WS.org</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Moritz</given-names>
            <surname>Schubotz</surname>
          </string-name>
          and Gabriel Wicke.
          <article-title>Mathoid: Robust, scalable, fast and accessible math rendering for wikipedia</article-title>
          .
          <source>In Stephen Watt</source>
          , James Davenport, Alan Sexton, Petr Sojka, and Josef Urban, editors, Intelligent Computer Mathematics - International Conference, CICM 2014, Coimbra, Portugal, July 7-
          <issue>11</issue>
          ,
          <year>2014</year>
          . Proceedings, volume
          <volume>8543</volume>
          of Lecture Notes in Computer Science, pages
          <volume>224</volume>
          {
          <fpage>235</fpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Moritz</given-names>
            <surname>Schubotz</surname>
          </string-name>
          , Andre Greiner-Petter, Philipp Scharpf, Norman Meuschke, Howard Cohl, and
          <string-name>
            <given-names>Bela</given-names>
            <surname>Gipp</surname>
          </string-name>
          .
          <article-title>Improving the representation and conversion of mathematical formulae by considering their textual context</article-title>
          .
          <source>arXiv preprint arXiv:1804.04956</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Leslie</given-names>
            <surname>Lamport. LaTeX - A Document Preparation</surname>
          </string-name>
          <article-title>System: User's Guide and Reference Manual, Second Edition</article-title>
          . Pearson / Prentice Hall,
          <year>1994</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <article-title>Using as a semantic markup format</article-title>
          .
          <source>Mathematics in Computer Science</source>
          ,
          <volume>2</volume>
          (
          <issue>2</issue>
          ):
          <volume>279</volume>
          {
          <fpage>304</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Howard</given-names>
            <surname>Cohl</surname>
          </string-name>
          ,
          <string-name>
            <surname>Marjorie</surname>
            <given-names>McClain</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Bonita</given-names>
            <surname>Saunders</surname>
          </string-name>
          , Moritz Schubotz, and
          <string-name>
            <given-names>Janelle</given-names>
            <surname>Williams</surname>
          </string-name>
          .
          <article-title>Digital repository of mathematical formulae</article-title>
          .
          <source>In Conference on Intelligent Computer Mathematics (CICM)</source>
          , Coimbra, Portugal, pages
          <volume>419</volume>
          {
          <fpage>422</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Howard</given-names>
            <surname>Cohl</surname>
          </string-name>
          , Moritz Schubotz,
          <string-name>
            <surname>Marjorie</surname>
            <given-names>McClain</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Bonita</given-names>
            <surname>Saunders</surname>
          </string-name>
          , Cherry Zou, Azeem Mohammed, and
          <string-name>
            <given-names>Alex</given-names>
            <surname>Dano</surname>
          </string-name>
          .
          <article-title>Growing the digital repository of mathematical formulae with generic sources</article-title>
          . volume
          <volume>9150</volume>
          , pages
          <fpage>280</fpage>
          {
          <fpage>287</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>OpenMath</given-names>
            <surname>Society</surname>
          </string-name>
          . Openmath. http://www.openmath.org. Accessed:
          <fpage>2018</fpage>
          -05-09.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <source>OMDoc - An Open Markup Format for Mathematical Documents [version 1</source>
          .2], volume
          <volume>4180</volume>
          of Lecture Notes in Computer Science. Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>EberhardHilf</surname>
            , Michael Kohlhase, and
            <given-names>Heinrich</given-names>
          </string-name>
          <string-name>
            <surname>Stamerjohanns</surname>
          </string-name>
          .
          <article-title>Capturing the content of physics: Systems, observables, and experiments</article-title>
          . In Jonathan Borwein and William Farmer, editors,
          <source>Mathematical Knowledge Management, 5th International Conference, MKM</source>
          <year>2006</year>
          ,
          <article-title>Wokingham</article-title>
          ,
          <string-name>
            <surname>UK</surname>
          </string-name>
          ,
          <year>August</year>
          11-
          <issue>12</issue>
          ,
          <year>2006</year>
          , Proceedings, volume
          <volume>4108</volume>
          of Lecture Notes in Computer Science, pages
          <volume>165</volume>
          {
          <fpage>178</fpage>
          . Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <given-names>Pavi</given-names>
            <surname>Sandhu. The MathML Handbook CD-ROM. Charles River</surname>
          </string-name>
          <string-name>
            <surname>Media</surname>
          </string-name>
          , Inc.,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>Denny</given-names>
            <surname>Vrandecic</surname>
          </string-name>
          .
          <article-title>Wikidata: a new platform for collaborative data collection</article-title>
          . In Alain Mille, Fabien Gandon, Jacques Misselis,
          <string-name>
            <given-names>Michael</given-names>
            <surname>Rabinovich</surname>
          </string-name>
          , and Ste en Staab, editors,
          <source>Proceedings of the 21st World Wide Web Conference, WWW</source>
          <year>2012</year>
          , Lyon, France,
          <source>April 16-20</source>
          ,
          <year>2012</year>
          (Companion Volume), pages
          <fpage>1063</fpage>
          {
          <fpage>1064</fpage>
          . ACM,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Fredo</surname>
            <given-names>Erxleben</given-names>
          </string-name>
          , Michael Gunther, Markus Krotzsch, Julian Mendez, and
          <string-name>
            <given-names>Denny</given-names>
            <surname>Vrandecic</surname>
          </string-name>
          .
          <article-title>Introducing wikidata to the linked data web</article-title>
          . In Peter Mika, Tania Tudorache, Abraham Bernstein, Chris Welty, Craig Knoblock, Denny Vrandecic, Paul Groth, Natasha Noy, Krzysztof Janowicz, and Carole Goble, editors,
          <source>The Semantic Web - ISWC 2014 - 13th International Semantic Web Conference, Riva del Garda, Italy, October 19-23</source>
          ,
          <year>2014</year>
          . Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>I</given-names>
          </string-name>
          , volume
          <volume>8796</volume>
          of Lecture Notes in Computer Science, pages
          <volume>50</volume>
          {
          <fpage>65</fpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <article-title>Denny Vrandecic and Markus Krotzsch. Wikidata: a free collaborative knowledgebase</article-title>
          .
          <source>Commun. ACM</source>
          ,
          <volume>57</volume>
          (
          <issue>10</issue>
          ):
          <volume>78</volume>
          {
          <fpage>85</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Sebastian</surname>
          </string-name>
          <article-title>Scha ert (Google). Wikidata:primary sources tool</article-title>
          . https://www. wikidata.org/wiki/Wikidata:Primary_sources_tool. Accessed:
          <fpage>2018</fpage>
          -04-11.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18. Thomas Pellissier Tanon, Denny Vrandecic, Sebastian Scha ert, Thomas Steiner, and
          <string-name>
            <given-names>Lydia</given-names>
            <surname>Pintscher</surname>
          </string-name>
          .
          <article-title>From freebase to wikidata: The great migration</article-title>
          .
          <source>In Proceedings of the 25th international conference on world wide web</source>
          , pages
          <volume>1419</volume>
          {
          <fpage>1428</fpage>
          . International World Wide Web Conferences Steering Committee,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>Lydia</given-names>
            <surname>Pintscher</surname>
          </string-name>
          .
          <article-title>Wikidata statement</article-title>
          . https://commons.wikimedia.org/wiki/ File:Wikidata_statement.svg. Accessed:
          <fpage>2018</fpage>
          -05-09.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Moritz</surname>
            <given-names>Schubotz</given-names>
          </string-name>
          , Norman Meuschke, Thomas Hepp, Howard Cohl, and
          <string-name>
            <given-names>Bela</given-names>
            <surname>Gipp</surname>
          </string-name>
          .
          <article-title>VMEXT: A visualization tool for mathematical expression trees</article-title>
          .
          <source>In CICM, Edinburgh, UK</source>
          , pages
          <volume>340</volume>
          {
          <fpage>355</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Moritz</surname>
            <given-names>Schubotz</given-names>
          </string-name>
          , Abdou Youssef, Volker Markl, Howard Cohl, and
          <string-name>
            <given-names>Jimmy</given-names>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>Evaluation of similarity-measure factors for formulae based on the NTCIR-11 math task</article-title>
          . In Noriko Kando, Hideo Joho, and Kazuaki Kishida, editors,
          <source>11th NTCIR</source>
          , Tokyo, Japan,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Moritz</surname>
            <given-names>Schubotz</given-names>
          </string-name>
          , Abdou Youssef, Volker Markl, and
          <string-name>
            <given-names>Howard</given-names>
            <surname>Cohl</surname>
          </string-name>
          .
          <article-title>Challenges of mathematical information retrieval in the NTCIR-11 math wikipedia task</article-title>
          .
          <source>In Ricardo Baeza-Yates</source>
          , Mounia Lalmas, Alistair Mo at, and
          <string-name>
            <surname>Berthier</surname>
          </string-name>
          Ribeiro-Neto, editors, Special Interest Group on Information Retrieval (SIGIR), Santiago, Chile, pages
          <volume>951</volume>
          {
          <fpage>954</fpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23.
          <string-name>
            <given-names>Daniel</given-names>
            <surname>Lozier</surname>
          </string-name>
          .
          <article-title>NIST digital library of mathematical functions</article-title>
          . Ann. Math. Artif. Intell.,
          <volume>38</volume>
          (
          <issue>1-3</issue>
          ):
          <volume>105</volume>
          {
          <fpage>119</fpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Akiko</surname>
            <given-names>Aizawa</given-names>
          </string-name>
          , Michael Kohlhase, Iadh Ounis, and
          <string-name>
            <given-names>Moritz</given-names>
            <surname>Schubotz</surname>
          </string-name>
          . NTCIR-11 math
          <article-title>-2 task overview</article-title>
          .
          <source>In Proc. 11th NTCIR Conf. on Evaluation of Information Access Technologies</source>
          , Tokyo, Japan,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <given-names>Bruce</given-names>
            <surname>Miller</surname>
          </string-name>
          .
          <article-title>LaTeXML: A LATEX to XML converter</article-title>
          . http://dlmf.nist.gov/ LaTeXML/. Accessed:
          <fpage>2018</fpage>
          -05-09.
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>Deyan</surname>
            <given-names>Ginev</given-names>
          </string-name>
          , Heinrich Stamerjohanns, and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Kohlhase</surname>
          </string-name>
          .
          <article-title>The latexml daemon: Editable math on the collaborative web</article-title>
          .
          <source>In LWA</source>
          <year>2011</year>
          , Magdeburg, Germany, pages
          <volume>255</volume>
          {
          <fpage>256</fpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          27.
          <string-name>
            <given-names>Bruce</given-names>
            <surname>Miller</surname>
          </string-name>
          and
          <string-name>
            <given-names>Abdou</given-names>
            <surname>Youssef</surname>
          </string-name>
          .
          <article-title>Technical aspects of the digital library of mathematical functions</article-title>
          . Ann. Math. Artif. Intell.,
          <volume>38</volume>
          (
          <issue>1-3</issue>
          ):
          <volume>121</volume>
          {
          <fpage>136</fpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          28.
          <string-name>
            <surname>Howard</surname>
            <given-names>Cohl</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marjorie</surname>
            <given-names>McClain</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Bonita</given-names>
            <surname>Saunders</surname>
          </string-name>
          , Moritz Moritz Schubotz, and
          <string-name>
            <given-names>Janelle</given-names>
            <surname>Williams</surname>
          </string-name>
          .
          <article-title>Digital repository of mathematical formulae</article-title>
          .
          <source>In Intelligent Computer Mathematics</source>
          , pages
          <volume>419</volume>
          {
          <fpage>422</fpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>