<!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>Estimating the Cost of Knowledge Graph Creation</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Data and Web Science Group, University of Mannheim</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Estimating the Cost of Knowledge Graphs</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Knowledge graphs are used in various applications and have been widely analyzed. A question that is not very well researched is: what is the price of their production? In this paper, we propose ways to estimate the cost of those knowledge graphs. We show that the cost of manually curating a triple is between $2 and $6, and that the cost for automatically created knowledge graphs is by a factor of 15 to 250 cheaper (i.e., 1g to 15g per statement). Furthermore, we advocate for taking cost into account as an evaluation metric, showing the correspondence between cost per triple and semantic validity as an example.</p>
      </abstract>
      <kwd-group>
        <kwd>Knowledge Graphs</kwd>
        <kwd>Cost Estimation</kwd>
        <kwd>Automation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1.1</p>
    </sec>
    <sec id="sec-2">
      <title>Manual Curation: Cyc and Freebase</title>
      <p>For manually created knowledge graphs, we have to estimate the e ort of
providing the statements directly.</p>
      <p>
        Cyc [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] is one of the earliest general purpose knowledge graphs, and, at the
same time, the one for which the development e ort is known. At a 2017
conference, Douglas Lenat, the inventor of Cyc, denoted the cost of creation of Cyc
at $120M.1 In the same presentation, Lenat states that Cyc consists of 21M
assertions, which makes a cost of $5.71 per statement. As a footnote, the
development time of 1,000 person years boils down to 9.5 minutes per assertion.
1 http://www.ttivanguard.com/conference/Napa2017/4-Lenat.pdf
Freebase has been collaboratively created by volunteers [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and hence, its
development e ort is more di cult to assess. To assess the time for curating
the statements in Freebase, we follow the assumption that adding a statement
should be approximately as much e ort as adding a sentence to Wikipedia.2
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the time of creating the English language Wikipedia up to April 2011
has been estimated to a total of 41M working hours. At that time, Wikipedia
contained 3.6M pages,3 at an average of 36.4 sentences each [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. This boils down
to 18.7 minutes per sentence.4 Since the majority of Wikipedians is US-based,5
we use the US federal minimum wage of $7.25 per hour6 as an estimate for labor
cost, leading us to the cost of $2.25 per sentence.
      </p>
      <p>Therefore, we also assume a cost of $2.25 per statement in Freebase. This
is less than half of the price of a statement in Cyc { which is reasonable since
Cyc was created by experts, while Freebase was created by laymen users.</p>
      <p>
        In total, given that the last version of Freebase contains 3B facts [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], the cost
of creating Freebase totals to $6.75B.
1.2
      </p>
    </sec>
    <sec id="sec-3">
      <title>Automatic Creation: DBpedia, YAGO, and NELL</title>
      <p>
        The estimation of e ort for creating a knowledge graph automatically is di erent.
We consider the software used for creating the knowledge graph and estimate
its development e ort based on the lines of code (LOC).7 We follow the ndings
in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], stating that in a software development project, an average of 37 LOC are
produced by hour.8 Furthermore, since YAGO has been developed by a German
research institute and the majority of developers of DBpedia is also based in
German research institutions, we use the researcher salaries proposed by the
German national research funding agency DFG9 for our cost estimates.
DBpedia is created from Wikipedia dumps by running the DBpedia
Extraction Framework10, which uses mappings to a central ontology11 for creating the
knowledge graph. They account for 4.9M and 2.2M LOC, respectively. Using the
numbers above, this leads to a total development cost of $5.1M. Given the 400M
statements in the English language DBpedia [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], this boils down to 1.85g per
statement.12 Comparing this to the $2.25 per statement for manual curation,
the automation leads to savings by a factor of around 100.
2 Disclaimer: this is a debatable assumption, and it is by far not the only one in this
paper.
3 https://en.wikipedia.org/wiki/Wikipedia:Size_of_Wikipedia
4 This number may seem high, but it includes revisions and, since the measurement
is based on the length of edit sessions, even research for facts to a certain extent.
5 https://en.wikipedia.org/wiki/Wikipedia:Wikipedians
6 https://www.dol.gov/whd/minimumwage.htm
7 Determined using GitHub SLOC https://github.com/martianyi/github-sloc
8 The authors measured the total software development cost, not only the coding.
9 http://www.dfg.de/formulare/60_12/60_12_en.pdf
10 https://github.com/dbpedia/extraction-framework
11 https://github.com/dbpedia/mappings-tracker
12 We do not include the cost of creating Wikipedia in the rst place. Otherwise,
assuming that each statement in DBpedia has its root in one infobox entry (which
YAGO is a knowledge graph which combines information extracted from
Wikipedia with the ontology WordNet [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. For a fair comparison, the development
cost of WordNet is included. The YAGO codebase13 has 1.6M LOC (including
rules to map infoboxes to an ontology), which makes a total of $1.6M.
WordNet itself consists of 117k synsets,14 each including a gloss, and we estimate the
cost of de ning such a synset roughly the same as producing a Wikipedia page,
i.e., $10M on top. Given that YAGO has 1.4B statements [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], this totals to
0.83g per statement. Compared to the manual curation, automation leads to
savings by a factor of around 250 here.
      </p>
      <p>
        NELL is a system that learns patterns for relation extraction [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Its core
technology encompasses 103k LOC,15 which accounts for an estimated development
cost of $109k. Furthermore, 1,467 statements are manually validated per month.
Assuming that manually validating a statement costs as much as creating it, this
accounts for another $376k, i.e., a total development cost of $485k. Given the
size of NELL, this totals to 14.25g per statement, i.e., a savings factor of 16
compared to manual curation.
2
      </p>
      <sec id="sec-3-1">
        <title>Towards new Evaluation Metrics</title>
        <p>
          Introducing cost as a measure for knowledge graph creation can also pave the
way for other kinds of evaluation. For example, a new method for adding missing
knowledge to a knowledge graph [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] can be inspected by cost: e.g., an approach
developed by one person over half a year should add signi cantly more than
2,800 statements, which, according to the numbers used in this paper, would
be the amount of triples that person would produce manually in that time.
Furthermore, approaches that propose the creation a custom knowledge graph
for improving the performance of a speci c task can estimate the cost of that
improvement more e ciently.
        </p>
        <p>Another interesting consideration is the relation between development e ort
and data quality. In gure 1, we graphed the error rate of the knowledge graphs
discussed in this paper against the cost per triple. While the general trend that
can be observed is that triples created at higher expenses also have a higher
likelihood of being correct, NELL is an outlier here, depicting a much worse
relation between accuracy and cost.
3</p>
      </sec>
      <sec id="sec-3-2">
        <title>Concluding Remarks</title>
        <p>In this paper, we have shown estimates for the cost of the creation of popular
knowledge graphs, an aspect of knowledge graph creation that is currently
underrepresented in the literature. We have quanti ed the gain of automatic over
we could understand as a "`sentence"') in Wikipedia, the cost would always be higher
than that of manual curation.
13 https://github.com/yago-naga/yago3
14 https://wordnet.princeton.edu/
15 https://groups.google.com/forum/#!topic/cmunell/aAZVG9zVwSU
0.1
0
0</p>
        <sec id="sec-3-2-1">
          <title>NELL</title>
        </sec>
        <sec id="sec-3-2-2">
          <title>YAGO</title>
          <p>0.01
0.1
Cost (USD/Triple)
1</p>
        </sec>
        <sec id="sec-3-2-3">
          <title>Freebase Cyc</title>
          <p>manual curation (i.e., 2-3 orders of magnitude), and proposed using cost for the
de nition of new evaluation metrics, e.g., trading o cost for accuracy.</p>
          <p>That being said, we are aware that many of the assumptions and
approximations we took for computing those estimates are questionable (e.g., we did
not consider the cost of third party software libraries used by the approaches,
or the infrastructure cost), and one could have used other numbers in most of
the cases. Moreover, the cost of providing the knowledge graphs is currently not
considered. Nevertheless, we are con dent that shedding light at the cost aspect
of knowledge graph creation is valuable.</p>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bollacker</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Evans</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paritosh</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sturge</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Taylor</surname>
          </string-name>
          , J.:
          <article-title>Freebase: a collaboratively created graph database for structuring human knowledge</article-title>
          .
          <source>In: SIGMOD</source>
          . pp.
          <volume>1247</volume>
          {
          <issue>1250</issue>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Devanbu</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karstu</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Melo</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          , Thomas,
          <string-name>
            <surname>W.</surname>
          </string-name>
          :
          <article-title>Analytical and empirical evaluation of software reuse metrics</article-title>
          .
          <source>In: ICSE</source>
          . pp.
          <volume>189</volume>
          {
          <issue>199</issue>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. Farber,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Bartscherer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Menne</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Rettinger</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>Linked data quality of dbpedia, freebase, opencyc, wikidata, and yago</article-title>
          .
          <source>Semantic Web</source>
          <volume>9</volume>
          (
          <issue>1</issue>
          ),
          <volume>77</volume>
          {
          <fpage>129</fpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Geiger</surname>
            ,
            <given-names>R.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Halfaker</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Using edit sessions to measure participation in wikipedia</article-title>
          .
          <source>In: CSCW</source>
          . pp.
          <volume>861</volume>
          {
          <issue>870</issue>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          et al.:
          <article-title>DBpedia { A Large-scale, Multilingual Knowledge Base Extracted from Wikipedia</article-title>
          .
          <source>Semantic Web</source>
          <volume>6</volume>
          (
          <issue>2</issue>
          ) (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Lenat</surname>
          </string-name>
          , D.B.:
          <article-title>CYC: A large-scale investment in knowledge infrastructure</article-title>
          .
          <source>Communications of the ACM</source>
          <volume>38</volume>
          (
          <issue>11</issue>
          ),
          <volume>33</volume>
          {
          <fpage>38</fpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>G.A.</given-names>
          </string-name>
          :
          <article-title>Wordnet: a lexical database for english</article-title>
          .
          <source>Communications of the ACM</source>
          <volume>38</volume>
          (
          <issue>11</issue>
          ),
          <volume>39</volume>
          {
          <fpage>41</fpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. Mitchell, T. et al.:
          <article-title>Never-ending learning</article-title>
          .
          <source>In: AAAI</source>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>Knowledge graph re nement: A survey of approaches and evaluation methods</article-title>
          .
          <source>Semantic Web</source>
          <volume>8</volume>
          (
          <issue>3</issue>
          ),
          <volume>489</volume>
          {
          <fpage>508</fpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Ringland</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nothman</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Murphy</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Curran</surname>
            ,
            <given-names>J.R.</given-names>
          </string-name>
          :
          <article-title>Classifying articles in english and german wikipedia</article-title>
          .
          <source>In: ALTA</source>
          . pp.
          <volume>20</volume>
          {
          <issue>28</issue>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Ringler</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>One knowledge graph to rule them all? analyzing the di erences between dbpedia, yago, wikidata &amp; co</article-title>
          . In: KI. pp.
          <volume>366</volume>
          {
          <issue>372</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Suchanek</surname>
            ,
            <given-names>F.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kasneci</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weikum</surname>
          </string-name>
          , G.:
          <article-title>YAGO: A Core of Semantic Knowledge Unifying WordNet and Wikipedia</article-title>
          . In: WWW. pp.
          <volume>697</volume>
          {
          <issue>706</issue>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>