<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//TaxonX//DTD Taxonomic Treatment Publishing DTD v0 20100105//EN" "../../nlm/tax-treatment-NS0.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tp="http://www.plazi.org/taxpub" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">17</journal-id>
      <journal-id journal-id-type="index">urn:lsid:arphahub.com:pub:8E638694-B4E0-570A-856A-746FF325BF6B</journal-id>
      <journal-title-group>
        <journal-title xml:lang="en">Research Ideas and Outcomes</journal-title>
        <abbrev-journal-title xml:lang="en">RIO</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="epub">2367-7163</issn>
      <publisher>
        <publisher-name>Pensoft Publishers</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3897/rio.2.e8767</article-id>
      <article-id pub-id-type="publisher-id">8767</article-id>
      <article-id pub-id-type="manuscript">5481</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Idea</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Towards a biodiversity knowledge graph</article-title>
      </title-group>
      <contrib-group content-type="authors">
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Page</surname>
            <given-names>Roderic</given-names>
          </name>
          <email xlink:type="simple">rdmpage@gmail.com</email>
          <xref ref-type="aff" rid="A1">‡</xref>
        </contrib>
      </contrib-group>
      <aff id="A1">
        <label>1</label>
        <addr-line content-type="verbatim">University of Glasgow, Glasgow, United Kingdom</addr-line>
        <institution>University of Glasgow</institution>
        <addr-line content-type="city">Glasgow</addr-line>
        <country>United Kingdom</country>
      </aff>
      <author-notes>
        <fn fn-type="corresp">
          <p>Corresponding author: Roderic Page (<email xlink:type="simple">rdmpage@gmail.com</email>).</p>
        </fn>
        <fn fn-type="edited-by">
          <p>Academic editor: </p>
        </fn>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2016</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>07</day>
        <month>04</month>
        <year>2016</year>
      </pub-date>
      <volume>2</volume>
      <elocation-id>e8767</elocation-id>
      <uri content-type="arpha" xlink:href="http://openbiodiv.net/BE1D412D-6527-5128-9D01-0D877CA179F7">BE1D412D-6527-5128-9D01-0D877CA179F7</uri>
      <uri content-type="zenodo_dep_id" xlink:href="https://zenodo.org/record/575826">575826</uri>
      <history>
        <date date-type="received">
          <day>07</day>
          <month>04</month>
          <year>2016</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>Roderic Page</copyright-statement>
        <license license-type="creative-commons-attribution" xlink:href="http://creativecommons.org/licenses/by/4.0" xlink:type="simple">
          <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License 4.0 (CC-BY), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <counts>
        <fig-count count="1"/>
        <table-count count="0"/>
        <ref-count count="11"/>
      </counts>
    </article-meta>
  </front>
  <body>
    <sec sec-type="Overview and background">
      <title>Overview and background</title>
      <p>One way to think about "core" biodiversity data is as a network of connected entities, such as taxa, taxonomic names, publications, people, species, sequences, images, collections, etc. (Fig. <xref ref-type="fig" rid="F3109227">1</xref>). Many tasks in biodiversity informatics correspond to tracing paths in this "knowledge graph". For example, someone wanting to do a phylogeographic analysis might want to go from a molecular phylogeny to the sequences used to build that tree, to the voucher specimens for those sequences, and then to the collecting localities in order to be able to place each tip of the tree on a map. This document sketches out some of the problems in building the biodiversity knowledge graph.</p>
      <p>Traditional semantic web approaches emphasise everything having a unique HTTP-URI identifier that can be resolved to yield data in RDF. That RDF would be rendered in XML, be stored in a triple store, and queried using SPARQL. The RDF might employ ontologies that support reasoning. Each of these components can be difficult (or, at least, time consuming) to implement individually, taken together is has so far proved to be a bridge too far for the biodiversity informatics community. We have had RDF being served for a decade now (principally by taxonomic name databases) and yet we are no nearer to having a knowledge graph, or being able to answer interesting questions using the data we are mobilising using RDF.</p>
      <p>In this document I argue that we can create a knowledge graph by cutting several Gordian knots. Instead of RDF as XML we can use JSON-LD, which is much more human-friendly (after all, software developers are people too). Instead of ontologies and inference we use controlled vocabularies, and wherever possible use ones that have wider use than just in our field (for example, <ext-link ext-link-type="uri" xlink:href="http://schema.org">http://schema.org</ext-link>). Lastly, we make use of <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/NoSQL">NoSQL</ext-link> databases such as document stores (e.g., CouchDB), and graph databases (e.g., Neo4J), coupled with full text search (e.g., Elastic Search) to create a knowledge graph. As an example of the power of this more flexible aproach, see <xref ref-type="bibr" rid="B3109194">Szekely et al. (2015)</xref>.</p>
      <sec sec-type="JSON-LD">
        <title>JSON-LD</title>
        <p>
          <bold>Recommendation: JSON-LD should be used as the standard format for describing data.</bold>
        </p>
        <p>JSON has become the <italic>lingua franca </italic>of data on the web. It's a simple way to represent data that works well with client-side code in web browsers. Here is an example:</p>
        <p>{ "image": "<ext-link ext-link-type="uri" xlink:href="http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c">http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c</ext-link>", "name": "Roderic D. M. Page", "homepage": "<ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.com">http://iphylo.blogspot.com</ext-link>" }</p>
        <p>This simple key-value format will be familiar to anyone writing programs that consume web services (such as those provided by GBIF), and JSON has become so ubiquitous that there are databases using JSON as their data format (e.g., CouchDB). One limitation, however, is that it lacks any information on the semantics of the keys. For example, if we have JSON from two different sources, and both use the key "name" how do we know that they mean the same thing? RDF solves this problem by using vocabularies with terms defined by URIs. Typically this comes at the cost of readability, but JSON-LD minimises this by having all the definitions in the context element. The JSON-LD below is based on the JSON above, but we've added @context to define the terms, and @id to provide a unique identifier.</p>
        <p>{ "@context": { "name": "<ext-link ext-link-type="uri" xlink:href="http://schema.org/name">http://schema.org/name</ext-link>", "homepage": { "@id": "<ext-link ext-link-type="uri" xlink:href="http://schema.org/url">http://schema.org/url</ext-link>", "@type": "@id" }, "image": { "@id": "<ext-link ext-link-type="uri" xlink:href="http://schema.org/image">http://schema.org/image</ext-link>", "@type": "@id" }, "ORCID": "<ext-link ext-link-type="uri" xlink:href="http://orcid.org/">http://orcid.org/</ext-link>" }, "@id": "ORCID:0000-0002-7101-9767", "image": "<ext-link ext-link-type="uri" xlink:href="http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c">http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c</ext-link>", "name": "Roderic D. M. Page", "homepage": "<ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.com">http://iphylo.blogspot.com</ext-link>" }</p>
        <p>The JSON-LD shown above can be rendered in another RDF format, such as n-quads:</p>
        <p>&lt;<ext-link ext-link-type="uri" xlink:href="http://orcid.org/0000-0002-7101-9767">http://orcid.org/0000-0002-7101-9767</ext-link>&gt; &lt;<ext-link ext-link-type="uri" xlink:href="http://schema.org/image">http://schema.org/image</ext-link>&gt; &lt;<ext-link ext-link-type="uri" xlink:href="http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c">http://www.gravatar.com/avatar/05d65783bec75fac4519ff111a69ba8c</ext-link>&gt;.</p>
        <p>&lt;<ext-link ext-link-type="uri" xlink:href="http://orcid.org/0000-0002-7101-9767">http://orcid.org/0000-0002-7101-9767</ext-link>&gt; &lt;<ext-link ext-link-type="uri" xlink:href="http://schema.org/name">http://schema.org/name</ext-link>&gt; "Roderic D. M. Page" .</p>
        <p>&lt;<ext-link ext-link-type="uri" xlink:href="http://orcid.org/0000-0002-7101-9767">http://orcid.org/0000-0002-7101-9767</ext-link>&gt; &lt;<ext-link ext-link-type="uri" xlink:href="http://schema.org/url">http://schema.org/url</ext-link>&gt; &lt;<ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.com">http://iphylo.blogspot.com</ext-link>&gt;.</p>
        <p>Hence we can move between a typical JSON document that we can use in a web interface, or as input into a JSON document store, and a classical triplet format.</p>
      </sec>
      <sec sec-type="Vocabularies">
        <title>Vocabularies</title>
        <p>
          <bold>Recommendation: Existing vocabularies with broad acceptance outside biodiversity should be used as much as possible, such as <ext-link ext-link-type="uri" xlink:href="http://schema.org">schema.org</ext-link>.</bold>
        </p>
        <p>There are numerous controlled vocabularies and ontologies for entities of interest to a given domain or field of study. At the same time, major search engines are promoting <ext-link ext-link-type="uri" xlink:href="http://schema.org/">schema.org</ext-link> as a standard vocabulary for marking up web pages. It makes sense to use this for at least two reasons. The first is that it covers many entities such as people, museums, and organisations that are often not included in domain specific vocabularies. Secondly, there is a strong incentive to include structured markup in web pages in order to improve discoverability by search engines, so that efforts to provide JSON-LD using <ext-link ext-link-type="uri" xlink:href="http://schema.org">schema.org</ext-link> can be part of a larger goal of increasing the visibility of a given institution's web site.</p>
        <p>In biodiversity informatics the best known vocabulary is Darwin Core (<ext-link ext-link-type="uri" xlink:href="http://rs.tdwg.org/dwc/terms/">http://rs.tdwg.org/dwc/terms/</ext-link>, <xref ref-type="bibr" rid="B3109282">Wieczorek et al. 2012</xref>) which provides an extensive set of terms for occurrence data. The <ext-link ext-link-type="uri" xlink:href="http://rs.tdwg.org/dwc/terms/guides/rdf/">Darwin Core RDF Guide</ext-link> adds a further set of terms based on the distinction between terms that have literal values (such as numbers and strings) and those that refer to other objects. In the context of the knowledge graph this seems to add more complexity than is necessary, especially if we want to keep occurrence JSON-LD as close to the JSON returned by the GBIF web services as possible.</p>
        <p>In the same spirit of keeping things simple, there is a tendency in some implementations of JSON-LD to retain some information about namespaces for each key in the form of a prefix. For example, in the document below the title key is of the form "dc:title" where the "dc:" prefix refers to the Dublin Core namespace "<ext-link ext-link-type="uri" xlink:href="http://purl.org/dc/terms/">http://purl.org/dc/terms/</ext-link>". This adds unnecessary complexity (why do we need to know that it's a "dc" title?). </p>
        <p>{ "@context": { "dc:title": "<ext-link ext-link-type="uri" xlink:href="http://purl.org/dc/terms/title">http://purl.org/dc/terms/title</ext-link>" }, "dc:title": "Darwin Core: An Evolving Community-Developed Biodiversity Data Standard" }</p>
        <p>The next document shows the key "title" without any namespace prefix.</p>
        <p>{ "@context": { "title": "<ext-link ext-link-type="uri" xlink:href="http://purl.org/dc/terms/title">http://purl.org/dc/terms/title</ext-link>" }, "title": "Darwin Core: An Evolving Community-Developed Biodiversity Data Standard" }</p>
      </sec>
      <sec sec-type="Identifiers">
        <title>Identifiers</title>
        <p>
          <bold>Recommendation: Within JSON-LD identifiers should be represented as CURIEs following existing practice in bioinformatics. CURIEs specific for biodiversity informatics sources should be created. Wherever possible URIs for identifiers should use identifiers.org.</bold>
        </p>
        <p>Once we think in terms of a graph then it is crucial that we can unambiguously identify the vertices in the graph. Each connection ("edge") in the graph is simply a pair of vertices. Furthermore, if we have globally recognised identifiers for the vertices we can distribute the problem of building the graph across numerous, independent sources. If we all agree that, say, a paper's unique identifer is a DOI, then we can independently connect that paper to other papers (the citation graph), to authors, to specimens, to cited sequences, etc. Hence we can only make the task decentralised if we have global identifiers.</p>
        <p>Few topics have caused as much grief in biodiversity informatics as identifiers (<xref ref-type="bibr" rid="B3109334">Guralnick et al. 2015</xref>). Arguments about which technology to use (e.g., HTTP-URIs versus LSIDs versus DOIs), difficulties agreeing on what gets an identifier, and a lack of obvious immediate value from assigning identifiers have all contributed to this situation. There has also been a degree of wishful thinking regarding the benefits of identifiers. <bold>Identifiers only have value in the context of tools and services that use them, simply minting identifiers and hoping value will emerge spontaneously is, at best, naive.</bold> For example, the academic publishing industry has settled on DOIs to identify publications. The value that people get from these identifiers, such as consistent resolution, easy access to metadata, automatically formatted citations for articles, citation counts, easy discovery of articles, and altmetrics, all require an underlying infrastructure, without which the DOI itself is of little use.</p>
        <p>Identifiers as URIs are not particularly stable as the mechanism of resolution can be subject to change. For example, the DOIs were originally recommend to be displayed in the form doi:&lt;doi&gt;, such as doi:10.1007/978-3-319-25010-6_12, but subsequently CrossRef recommended using the HTTP prefix <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org">http://dx.doi.org</ext-link> (see <xref ref-type="bibr" rid="B3109352">CrossRef 2011</xref>), so the DOI would be displayed as <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-319-25010-6_12">https://doi.org/10.1007/978-3-319-25010-6_12</ext-link>. But the DOI can also be displayed as <ext-link ext-link-type="uri" xlink:href="http://doi.org/10.1007/978-3-319-25010-6_12">http://doi.org/10.1007/978-3-319-25010-6_12</ext-link> (i.e., without the "dx." prefix), hence we have multiple ways to write the same identifier. Any querying that depends on exact string matching of identifiers will fail to recognise these strings as being the same. One way to insulate ourselves against this is to use indirection, for example by using on URIs that don't change as a proxy for the identifiers. To illustrate, the <ext-link ext-link-type="uri" xlink:href="http://identifiers.org/">identifiers.org</ext-link> service (<xref ref-type="bibr" rid="B3109262">Juty et al. 2011</xref>) represents a DOI as <ext-link ext-link-type="uri" xlink:href="http://identifiers.org/doi/10.1093/nar/gkr1097">http://identifiers.org/doi/10.1093/nar/gkr1097</ext-link> which means we can ignore whether the DOI should be written as <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org">http://dx.doi.org</ext-link> or <ext-link ext-link-type="uri" xlink:href="http://doi.org">http://doi.org</ext-link>.</p>
        <p>In the case of JSON-LD we can simplify further by representing identifiers as CURIEs, so that a DOI becomes "DOI:10.1093/nar/gkr1097". This reflects the long standing convention in bioinformatics of representing identifiers in the form <italic>database_abbreviation</italic>:<italic>record_identifier</italic> (see for example the <ext-link ext-link-type="uri" xlink:href="http://lsrn.org/">Life Science Resource Name Project</ext-link>). By adopting this approach we keep identifiers human-readable, easy to index, and stable. For an example of this apporach see <ext-link ext-link-type="uri" xlink:href="https://github.com/prefixcommons/biocontext">BioContext: JSON-LD Contexts for Bioinformatics Data</ext-link>.</p>
        <p>It has been said that there are only three numbers in computer science: 0, 1, and <italic>n</italic>, and this is true of identifiers. Typically an item either has no digital identifier, or it has many. Rarely are we fortunate to have a single, widely recognised identifier. This means that we will always be faced with having to map between identifiers for the "same" thing. This is a task that <ext-link ext-link-type="uri" xlink:href="http://sameas.org/">&lt;sameAs&gt;</ext-link> attempts, and more specifically for the biodiversity domain, <ext-link ext-link-type="uri" xlink:href="http://bioguid.org/">BioGUID.org</ext-link>.</p>
        <p>At the same time, having multiple identifiers can also be an opportunity to increase the amount of information in the knowledge graph. Projects such as <ext-link ext-link-type="uri" xlink:href="http://www.wikidata.org/">Wikidata</ext-link> are a potential treasure trove of crosslinks to other identifiers for people, journals, etc.</p>
      </sec>
      <sec sec-type="Crosslinking datasets">
        <title>Crosslinking datasets</title>
        <p>
          <bold>Recommendation: Priority should be given to assembling data sets that crosslink different identifiers.</bold>
        </p>
        <p>Given that the knowledge graph requires connections between different entities (the edges connecting the vertices), in many ways the most important data sets are those that make these connections. Many efforts to move to machinable-readable data ignore this, as a consequence we have lots of data that cannot be easily connected to other data. Many data sets contain attributes of a single class of entity (e.g., a specimen or a publication), and if other entities are mentioned they are identified using local identifiers (e.g., local identifiers for authors).</p>
        <p>Hence we will need to create data sets that act as "glue" to cross link different datasets. For example, a taxonomic dataset should include bibliographic identifiers to link to the literature, not just simply include "dumb" text string citations. Many sequences in GenBank are associated with publications that aren't indexed by PubMed, and hence lack a bibliographic identifier (even if one exists) (<xref ref-type="bibr" rid="B3109370">Miller et al. 2009</xref>). Adding these to the sequences will connect sequences to publications in the knowledge graph.</p>
      </sec>
    </sec>
    <sec sec-type="Objectives">
      <title>Objectives</title>
      <p>The core objective of this proposal is to sketch out the implementation of a biodiversity knowledge graph. The aim is to try and simplify the task by standardising on a simple data format (JSON-LD), defining a standard set of services (e.g., identifier resolvers, reconcilaition tools), and using existing JSON document stores and full-text search engines to store the graph. While there could be multiple instances of knowledge graphs, a single graph of global scope will have the greatest impact.</p>
    </sec>
    <sec sec-type="Impact">
      <title>Impact</title>
      <p>One reason biodiversity has yet to construct a knowledge graph is, I suspect, that it has been hard to articulate the tangible benefits of doing so. Hence we need a set of applications to demonstrate the value of the knowledge graph, and also to help frame the kinds of queries we need to support. These applications should be simple, easy to use, and actually useful. Below are some possibilities.</p>
      <sec sec-type="Annotate this!">
        <title>Annotate this!</title>
        <p>A visitor to any biodiversity data web page can discover further information by clicking on a bookmarklet which displays a popup window that augments the data on display. For example, a visitor to a GBIF occurrence page could see what papers cite that specimen, and the DNA sequences for which it is a voucher. This idea was sketched out in <xref ref-type="bibr" rid="B3109310">Page 2014</xref> and could also be implemented as an extension for the Google Chrome web browser.</p>
      </sec>
      <sec sec-type="I am a taxonomist">
        <title>I am a taxonomist</title>
        <p>A researcher with an ORCID uses that identifier to log into a web site that then shows the researcher what species they have published. This relies on links between ORCID for person, DOI for publication, and LSID for taxonomic name. Could be used to explore idea of experts being able to self identify their area of expertise, especially in the context of annotating and cleaning data. An expert becomes easy to recognise without them having to say "I am an expert".</p>
      </sec>
      <sec sec-type="iSpecies">
        <title>iSpecies</title>
        <p><ext-link ext-link-type="uri" xlink:href="file:///Users/rpage/Sites/towards-knowledge-graph/ispecies.org">iSpecies</ext-link> is a simple mashup of different sources of information, such as GBIF, EOL, CrossRef, TreeBASE, etc. What happens when we extract the identifiers from these sources, augment them and use that information to generate a synthesis (rather than simply an aggregation)? For example, the same paper may appear in different data sources, there may be connections between specimens, sequences and papers that aren't uncovered by a simple mashup. Conceptually the goal would be to create a subgraph of the knowledge graph corresponding to the original search term (typically a species or genus name) and compare that with the simple mashup approach.</p>
      </sec>
      <sec sec-type="Collection impact metrics">
        <title>Collection impact metrics</title>
        <p>If we can link specimens to outputs, such as publications and sequences, and link the specimens back to their host repository then we can compute measures of the "impact" of that collection. Hence any natural history collection should be able to quantify the use of its collection.</p>
      </sec>
      <sec sec-type="How open is the data? Evaluating the Bouchout Declaration">
        <title>How open is the data? Evaluating the Bouchout Declaration</title>
        <p>The <ext-link ext-link-type="uri" xlink:href="http://www.bouchoutdeclaration.org/declaration/">Bouchout Declaration</ext-link> includes numerous signatories pledging to open their data, but at present we have no means of determining to what extent they have done so. By linking collections and journals to institutions we can ask questions such as "is this institution's data in GBIF?", and "are this institution's in-house journals open access?".</p>
      </sec>
      <sec sec-type="Annotating BLAST hits">
        <title>Annotating BLAST hits</title>
        <p>A simple exploratory tool is to take genetic sequence and run the BLAST tool to locate similar sequences (for example (<ext-link ext-link-type="uri" xlink:href="http://iphylo.org/~rpage/phyloinformatics/blast">Phyloinformatics BLAST tools</ext-link>). These sequence may be linked to literature and specimen vouchers, which could be used to enrich the results (e.g., by adding geographic localities to the sequences).</p>
      </sec>
    </sec>
    <sec sec-type="Implementation">
      <title>Implementation</title>
      <p>Instead of building a monolithic system there is considerable scope for developing "microservices", that is each component required to construct the knowledge graph can be a standalone service that does one thing, well. If the inputs and outputs are well defined, this means we can easily distribute the task of building the infrastructure, as well as swap in and out alternative implementations of a specific service.</p>
      <sec sec-type="Entity extractors and reconciliation services">
        <title>Entity extractors and reconciliation services</title>
        <p>
          <bold>Recommendation: Develop a standard API and response format for extracting entities from text.</bold>
        </p>
        <p>Text in scientific papers and databases often mention entities such as taxonomic names, specimens, localities, and data items such as DNA sequences. There are various tools for identifying taxonomic names in text (e.g., <xref ref-type="bibr" rid="B3109241">Akella et al. 2012</xref>).</p>
        <p>It would be desirable to have a suite of tools that can take text (in various forms, such as plaint text, XML, HTML, PDF) and return a list of possible entities with their location indicated in the text. This can be seen as part of the more general problem of annotating text, and hence formats such as that used by the now defunct <ext-link ext-link-type="uri" xlink:href="https://github.com/readmill/API/wiki/Highlight-locators">Readmill</ext-link> could be the basis of a common format.</p>
        <p>{ position: 0.738, pre: "i am the text just before the highlighted text", mid: "i am the highlighted text", post: "i am the text just after the highlighted text", xpath: { start: "//*[@class='starttag']", end: "/*[@class='endtag']", }, file_id: "chapter-2" }</p>
        <p>Note the use of various methods to mark the location in the text (absolute position, position relative to surrounding text, and path to location document). We can use that information to "mark up" an entity in the text when it is displayed. Adopting a format that is compatible with annotation tools (such as <ext-link ext-link-type="uri" xlink:href="http://hypothes.is/">hypothes.is</ext-link>) means we can view entity extraction as part of the more general annotation problem, and combine automated markup with human annotation.</p>
      </sec>
      <sec sec-type="Reconciliation services (from strings to things)">
        <title>Reconciliation services (from strings to things)</title>
        <p>
          <bold>Recommendation: Services for mapping strings to things should adopt the Reconciliation Service API standard.</bold>
        </p>
        <p>Many entities are represented in databases by strings rather than identifiers, hence a key task in building the knowledge graph is to map these strings onto identifiers.</p>
        <p>The now defunct database <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Freebase">FreeBase</ext-link> developed a standardised <ext-link ext-link-type="uri" xlink:href="https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation-Service-API">Reconciliation Service API</ext-link> which is supported by the widely used tool <ext-link ext-link-type="uri" xlink:href="http://openrefine.org/">OpenRefine</ext-link> (itself originally a product of the same company, Metaweb, that produced FreeBase, see <ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/OpenRefine">Wikipedia article on OpenRefine</ext-link>). This API has also been adopted by <ext-link ext-link-type="uri" xlink:href="https://tools.wmflabs.org/wikidata-reconcile/?">Wikidata</ext-link>. For some examples of OpenRefine use see <ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.co.uk/2012/02/using-google-refine-and-taxonomic.html">Using Google Refine and taxonomic databases (EOL, NCBI, uBio, WORMS) to clean messy data</ext-link> and <ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.co.uk/2013/04/reconciling-author-names-using-open.html">Reconciling author names using Open Refine and VIAF</ext-link>.</p>
        <p>Services needed include (but need not be limited to):</p>
        <list list-type="bullet">
          <list-item>
            <p>Specimen code to GBIF occurrence URL</p>
          </list-item>
          <list-item>
            <p>Bibliographic citation to DOI</p>
          </list-item>
          <list-item>
            <p>Microcitation to DOI</p>
          </list-item>
          <list-item>
            <p>Person name to identifier</p>
          </list-item>
          <list-item>
            <p>Taxonomic name to identifier</p>
          </list-item>
          <list-item>
            <p>Geographic place name to latitude and longitude (<ext-link ext-link-type="uri" xlink:href="https://en.wikipedia.org/wiki/Geocoding">geocoding</ext-link>)</p>
          </list-item>
        </list>
        <p>A number of these services exist, but mostly as proof-of-concept demos (see links above, and <ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.co.uk/2015/04/linking-specimen-codes-to-gbif.html">Linking specimen codes to GBIF</ext-link>).</p>
      </sec>
      <sec sec-type="Identifier resolvers">
        <title>Identifier resolvers</title>
        <p>
          <bold>Recommendation: For every supported identifier type we need a resolver that can take the identifier and retrieve data. This means supporting LSIDs, DOIs, and URLs. Some resolvers will be generic, some will have to be programmed to a specific API.</bold>
        </p>
        <p>Multiple resolution is another service that could be provided via a proxy service. For exmaple, if we resolve a DOI and we know that other sources for that content exist (such as a free version of the article in BioStor) we could offer users the choice of destination. This proxy could also be used to gather metrics about resolution events. For example, DOI resolution statistics could be gathered so we can provide statistics to resource providers.</p>
        <p>We could also have "just in time linking", such as an OpenURL.</p>
      </sec>
      <sec sec-type="JSON-LD wrappers">
        <title>JSON-LD wrappers</title>
        <p>Few, if any, biodiversity data providers serve data in JSON-LD. Until such time as JSON-LD support becomes widely adopted the obvious strategy is to provide wrappers for each provider, in much the same way that the Bio2RDF project wraps numerous bioinformatics sources to produce RDF (<xref ref-type="bibr" rid="B3109251">Belleau et al. 2008</xref>).</p>
        <p>For existing providers that serve RDF (such as databases with LSIDs) we can simply transform the RDF/XML to JSON-LD. For other sources we may need to do some additional work.</p>
      </sec>
      <sec sec-type="Crawler">
        <title>Crawler</title>
        <p>For most objects the JSON-LD will contain identifiers to other, linked, objects. For example an article will link to a journal, an ORCID profile will link to articles, a DNA sequence will link to one or more publications and a specimen voucher. These will all need to be added to the knowledge graph. One approach is to have the resolvers put these additional identifiers into a queue of identifiers to resolve. We then have a process that pulls identifiers from that queue and resolves them. In order to avoid crawling the entire graph of data we could simply resolve each identifier in the queue without placing any linked identifiers on the queue. In other words, when resolving an identifier directly we get the entities that are one edge away in the graph and put these into the queue, but when we resolve identifiers in the queue we defer resolution of the additional identifiers until a user or process specifically asks for that identifier to be resolved.</p>
      </sec>
      <sec sec-type="Data import">
        <title>Data import</title>
        <p>In addition to resolving individual identifiers, we need mechanisms to import data in bulk. The biodiversity community has settled on Darwin Core Archive as a standard data format, so we need a parser to convert Darwin Core into JSON-LD. Another obvious format is triples, which is effectively a three (or four if we include n-quads) column table.</p>
        <p>Bulk data import also provides a mechanism to give credit to data providers if the data is, for example, published as a data paper or uploaded to a repository such as Zenodo.</p>
      </sec>
      <sec sec-type="Databases">
        <title>Databases</title>
        <p>
          <bold>Recommendation: A combined approach of document stores, graph database, and full-text search will be needed to support the constructing and querying the knowledge graph.</bold>
        </p>
        <p>One obvious approach to building the knowledge graph is to use a triple store. This has the advantage of being the native database for triples, but it is not clear that existing triple stores will support all the functionality needed.</p>
        <p>Graph databases, such as Neo4J are another option. These make modelling graphs straightforward (and fun), and support sophisticated queries. But it involves committing to a particular implementation. Other graph databases that could be explored include <ext-link ext-link-type="uri" xlink:href="http://google-opensource.blogspot.co.uk/2014/06/cayley-graphs-in-go.html">Cayley</ext-link>.</p>
        <p>JSON-based document stores such as CouchDB can store JSON-LD natively, and can also do some graph-like queries. By storing subject, predicate, object ({s, p, o}) triples in the six possible combinations ({s, p, o}, {s, o, p}, {p, s, o}, {p, s, o}, {o, s, p}, and {o, p, s}) it is possible to support graph queries. For a live demonstration and slideshow on hexastores see <ext-link ext-link-type="uri" xlink:href="http://nodejsconfit.levelgraph.io/">How to Cook a Graph Database in a Night</ext-link>, and for background see <xref ref-type="bibr" rid="B3109272">Weiss et al. (2008)</xref>. </p>
        <p>Full-text search is also a very powerful tool, and search engines such as Elastic Search can be used on structured data. Some products such as Cloudant combine CouchDB and Lucene to create fast, searchable document stores.</p>
        <p>There can be multiple instances of knowledge graphs, but a single graph of global scope is likely to have the greatest impact.There are several arguments for building a single, centralised knowledge graph.</p>
        <list list-type="bullet">
          <list-item>
            <p>Having data in one place makes discoverability easy (user only has to search in one place to find what they want.)</p>
          </list-item>
          <list-item>
            <p>As the graph gets bigger, simple text search becomes more useful. For example, CrossRef's database has grown to the point where simple text search for a bibliographic reference is more efficient that parsing the citation into component parts and using those to search the database.</p>
          </list-item>
          <list-item>
            <p>We can learn from the data. Tasks such as geocoding will become easier the more examples of geocoded data we have (a more impressive example is Google automating language translation because it had assembled a huge corpus of multilingual documents via its web crawling).</p>
          </list-item>
        </list>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B3109241">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Akella</surname>
              <given-names>Lakshmi</given-names>
            </name>
            <name name-style="western">
              <surname>Norton</surname>
              <given-names>Catherine N</given-names>
            </name>
            <name name-style="western">
              <surname>Miller</surname>
              <given-names>Holly</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <article-title>NetiNeti: discovery of scientific names from text using machine learning methods</article-title>
          <source>BMC Bioinformatics</source>
          <volume>13</volume>
          <issue>1</issue>
          <fpage>211</fpage>
          <uri>https://doi.org/10.1186/1471-2105-13-211</uri>
          <pub-id pub-id-type="doi">10.1186/1471-2105-13-211</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109251">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Belleau</surname>
              <given-names>François</given-names>
            </name>
            <name name-style="western">
              <surname>Nolin</surname>
              <given-names>Marc-Alexandre</given-names>
            </name>
            <name name-style="western">
              <surname>Tourigny</surname>
              <given-names>Nicole</given-names>
            </name>
            <name name-style="western">
              <surname>Rigault</surname>
              <given-names>Philippe</given-names>
            </name>
            <name name-style="western">
              <surname>Morissette</surname>
              <given-names>Jean</given-names>
            </name>
          </person-group>
          <year>2008</year>
          <article-title>Bio2RDF: Towards a mashup to build bioinformatics knowledge systems</article-title>
          <source>Journal of Biomedical Informatics</source>
          <volume>41</volume>
          <issue>5</issue>
          <fpage>706</fpage>
          <lpage>716</lpage>
          <uri>https://doi.org/10.1016/j.jbi.2008.03.004</uri>
          <pub-id pub-id-type="doi">10.1016/j.jbi.2008.03.004</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109352">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>CrossRef</surname>
            </name>
          </person-group>
          <article-title>CrossRef Revises DOI Display Guidelines</article-title>
          <uri>http://www.crossref.org/01company/pr/news080211.html</uri>
        </element-citation>
      </ref>
      <ref id="B3109334">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Guralnick</surname>
              <given-names>Robert P.</given-names>
            </name>
            <name name-style="western">
              <surname>Cellinese</surname>
              <given-names>Nico</given-names>
            </name>
            <name name-style="western">
              <surname>Deck</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Pyle</surname>
              <given-names>Richard L.</given-names>
            </name>
            <name name-style="western">
              <surname>Kunze</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Penev</surname>
              <given-names>Lyubomir</given-names>
            </name>
            <name name-style="western">
              <surname>Walls</surname>
              <given-names>Ramona</given-names>
            </name>
            <name name-style="western">
              <surname>Hagedorn</surname>
              <given-names>Gregor</given-names>
            </name>
            <name name-style="western">
              <surname>Agosti</surname>
              <given-names>Donat</given-names>
            </name>
            <name name-style="western">
              <surname>Wieczorek</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Catapano</surname>
              <given-names>Terry</given-names>
            </name>
            <name name-style="western">
              <surname>Page</surname>
              <given-names>Roderic</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <article-title>Community Next Steps for Making Globally Unique Identifiers Work for Biocollections Data</article-title>
          <source>ZooKeys</source>
          <volume>494</volume>
          <fpage>133</fpage>
          <lpage>154</lpage>
          <uri>https://doi.org/10.3897/zookeys.494.9352</uri>
          <pub-id pub-id-type="doi">10.3897/zookeys.494.9352</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109262">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Juty</surname>
              <given-names>N.</given-names>
            </name>
            <name name-style="western">
              <surname>Novere</surname>
              <given-names>N. Le</given-names>
            </name>
            <name name-style="western">
              <surname>Laibe</surname>
              <given-names>C.</given-names>
            </name>
          </person-group>
          <year>2011</year>
          <article-title>Identifiers.org and MIRIAM Registry: community resources to provide persistent identification</article-title>
          <source>Nucleic Acids Research</source>
          <volume>40</volume>
          <fpage>D580</fpage>
          <lpage>D586</lpage>
          <uri>https://doi.org/10.1093/nar/gkr1097</uri>
          <pub-id pub-id-type="doi">10.1093/nar/gkr1097</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109370">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Miller</surname>
              <given-names>Holly</given-names>
            </name>
            <name name-style="western">
              <surname>Norton</surname>
              <given-names>Catherine N</given-names>
            </name>
            <name name-style="western">
              <surname>Sarkar</surname>
              <given-names>Indra N</given-names>
            </name>
          </person-group>
          <year>2009</year>
          <article-title>GenBank and PubMed: How connected are they?</article-title>
          <source>BMC Research Notes</source>
          <volume>2</volume>
          <issue>1</issue>
          <fpage>101</fpage>
          <uri>https://doi.org/10.1186/1756-0500-2-101</uri>
          <pub-id pub-id-type="doi">10.1186/1756-0500-2-101</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109229">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Page</surname>
              <given-names>Roderic D. M.</given-names>
            </name>
          </person-group>
          <year>2013</year>
          <article-title>BioNames: linking taxonomy, texts, and trees</article-title>
          <source>PeerJ</source>
          <volume>1</volume>
          <fpage>e190</fpage>
          <uri>https://doi.org/10.7717/peerj.190</uri>
          <pub-id pub-id-type="doi">10.7717/peerj.190</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109310">
        <element-citation publication-type="website">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Page</surname>
              <given-names>Roderic D. M.</given-names>
            </name>
          </person-group>
          <article-title>Rethinking annotating biodiversity data</article-title>
          <uri>http://iphylo.blogspot.com/2014/03/rethinking-annotating-biodiversity-data.html</uri>
        </element-citation>
      </ref>
      <ref id="B3109194">
        <element-citation publication-type="chapter">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Szekely</surname>
              <given-names>Pedro</given-names>
            </name>
            <name name-style="western">
              <surname>Knoblock</surname>
              <given-names>Craig A.</given-names>
            </name>
            <name name-style="western">
              <surname>Slepicka</surname>
              <given-names>Jason</given-names>
            </name>
            <name name-style="western">
              <surname>Philpot</surname>
              <given-names>Andrew</given-names>
            </name>
            <name name-style="western">
              <surname>Singh</surname>
              <given-names>Amandeep</given-names>
            </name>
            <name name-style="western">
              <surname>Yin</surname>
              <given-names>Chengye</given-names>
            </name>
            <name name-style="western">
              <surname>Kapoor</surname>
              <given-names>Dipsy</given-names>
            </name>
            <name name-style="western">
              <surname>Natarajan</surname>
              <given-names>Prem</given-names>
            </name>
            <name name-style="western">
              <surname>Marcu</surname>
              <given-names>Daniel</given-names>
            </name>
            <name name-style="western">
              <surname>Knight</surname>
              <given-names>Kevin</given-names>
            </name>
            <name name-style="western">
              <surname>Stallard</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>Karunamoorthy</surname>
              <given-names>Subessware S.</given-names>
            </name>
            <name name-style="western">
              <surname>Bojanapalli</surname>
              <given-names>Rajagopal</given-names>
            </name>
            <name name-style="western">
              <surname>Minton</surname>
              <given-names>Steven</given-names>
            </name>
            <name name-style="western">
              <surname>Amanatullah</surname>
              <given-names>Brian</given-names>
            </name>
            <name name-style="western">
              <surname>Hughes</surname>
              <given-names>Todd</given-names>
            </name>
            <name name-style="western">
              <surname>Tamayo</surname>
              <given-names>Mike</given-names>
            </name>
            <name name-style="western">
              <surname>Flynt</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>Artiss</surname>
              <given-names>Rachel</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>Shih-Fu</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>Tao</given-names>
            </name>
            <name name-style="western">
              <surname>Hiebel</surname>
              <given-names>Gerald</given-names>
            </name>
            <name name-style="western">
              <surname>Ferreira</surname>
              <given-names>Lidia</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <chapter-title>Building and Using a Knowledge Graph to Combat Human Trafficking</chapter-title>
          <source>Lecture Notes in Computer Science</source>
          <uri>https://doi.org/10.1007/978-3-319-25010-6_12</uri>
          <pub-id pub-id-type="doi">10.1007/978-3-319-25010-6_12</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109272">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Weiss</surname>
              <given-names>Cathrin</given-names>
            </name>
            <name name-style="western">
              <surname>Karras</surname>
              <given-names>Panagiotis</given-names>
            </name>
            <name name-style="western">
              <surname>Bernstein</surname>
              <given-names>Abraham</given-names>
            </name>
          </person-group>
          <year>2008</year>
          <article-title>Hexastore</article-title>
          <source>Proceedings of the VLDB Endowment</source>
          <volume>1</volume>
          <issue>1</issue>
          <fpage>1008</fpage>
          <lpage>1019</lpage>
          <uri>https://doi.org/10.14778/1453856.1453965</uri>
          <pub-id pub-id-type="doi">10.14778/1453856.1453965</pub-id>
        </element-citation>
      </ref>
      <ref id="B3109282">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wieczorek</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Bloom</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>Guralnick</surname>
              <given-names>Robert</given-names>
            </name>
            <name name-style="western">
              <surname>Blum</surname>
              <given-names>Stan</given-names>
            </name>
            <name name-style="western">
              <surname>Döring</surname>
              <given-names>Markus</given-names>
            </name>
            <name name-style="western">
              <surname>Giovanni</surname>
              <given-names>Renato</given-names>
            </name>
            <name name-style="western">
              <surname>Robertson</surname>
              <given-names>Tim</given-names>
            </name>
            <name name-style="western">
              <surname>Vieglais</surname>
              <given-names>David</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <article-title>Darwin Core: An Evolving Community-Developed Biodiversity Data Standard</article-title>
          <source>PLoS ONE</source>
          <volume>7</volume>
          <issue>1</issue>
          <fpage>e29715</fpage>
          <uri>https://doi.org/10.1371/journal.pone.0029715</uri>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0029715</pub-id>
        </element-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="F3109227" position="float" orientation="portrait">
      <label>Figure 1.</label>
      <caption>
        <p>Biodiversity knowledge graph (from <xref ref-type="bibr" rid="B3109229">Page 2013</xref>).</p>
      </caption>
      <graphic xlink:href="rio-2-e8767-g001.png" position="float" id="oo_84208.png" orientation="portrait" xlink:type="simple"/>
    </fig>
  </floats-group>
</article>
