<!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>Pro ting from Kitties on Ethereum: Leveraging Blockchain RDF Data with SANSA</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Damien Graux</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Gezim Sejdiu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hajira Jabeen</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jens Lehmann</string-name>
          <email>jens.lehmanng@cs.uni-bonn.de</email>
          <email>jens.lehmanng@iais.fraunhofer.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Danning Sui</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dominik Muhs</string-name>
          <email>dmuhs@protonmail.ch</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Johannes Pfe er</string-name>
          <email>johannes.pfefferg@consensys.net</email>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Fraunhofer IAIS</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Smart Data Analytics, University of Bonn</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this poster, we will present attendees how the recent stateof-the-art Semantic Web tool SANSA could be used to tackle blockchain speci c challenges. In particular, the poster will focus on the use case of CryptoKitties: a popular Ethereum-based online game where users are able to trade virtual kitty pets in a secure way. During the recent years, the interest of the research community for blockchain technologies has raised up since the Bitcoin white paper published by Nakamoto [4]. Indeed, several applications either practical or theoretical have been made, for instance with crypto-currencies or with secured exchanges of data. More speci cally, several blockchain systems have been designed, each one having their own set of properties, for example Ethereum [6] {further described in Section2{ which provides access to so-called smart-contracts. Recently, Mukhopadhyay et al. surveyed major crypto-currencies in [3]. In parallel to ongoing blockchain development, the research community has focused on the possibilities o ered by the Semantic Web such as designing e cient data management systems, dealing with large and distributed knowledge RDF graphs. As a consequence, recently, some studies have started to connect the Semantic Web world with the blockchain one, see for example the study of English et al. presented in [1]. In this poster, we will o er attendees the possibility of discovering the blockchain world, with the Semantic Web framework SANSA applied in the CryptoKitties use case.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        smart contracts and deploy them on the Ethereum network, to create
applications. Moreover, anyone can also interact with them; this is done by calling
contract functions, which in turn trigger events logged to a public record. Costly
interactions requiring computational resources are provided with a fee given to
the Ethereum block miners. Via smart contracts, applications are supposed to
run exactly as de ned without any possibility of downtime, censorship, fraud or
any third-party interferences [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Despite the ecosystem's security measurements
and audits, there are some cases where the smart contracts are attacked, with
e.g., the DAO attack.1 With hundred-thousands of activities happening every
day on the Ethereum network, the need for tracing, as well as monitoring has
risen over time. Although all the blockchain data is stored publicly and
transparently, it is hard for non-technical participants to access or understand it.
      </p>
      <p>
        Alethio2 is a spin-o working with Ethereum technologies. It is an advanced
analytics platform making Ethereum more accessible and digestible for everyone.
It could be seen as a \blockchain archeology" of the Ethereum main network,
providing not only all the original transaction data and log messages, but also
analytic results with speci c metrics. Their extensive data set (currently
encompassing 36 billion rows of records) contains large-scale blockchain transaction
data modelled in RDF according to the structure of the Ethereum ontology.
EthOn (The Ethereum Ontology) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] formalizes all the concepts and terms of
the Ethereum ecosystem in OWL. EthOn describes all the Ethereum objects
as classes in the ontology. Also, it depicts all the interactions and attributes of
objects, as properties from the ontology perspective of view.
      </p>
      <p>
        The SANSA stack [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is an open source framework3 that allows RDF
processing at scale. It provides a set of libraries for distributed reading,
executing SPARQL queries, performing inference as well as analytics over large-scale
knowledge graphs.
3
      </p>
      <p>SemanticWeb &amp; Ethereum: the CryptoKitties Use Case
The Ethereum ecosystem generates a large amount of data, including but not
limited to protocol-level data (e.g. average block time, gas prices), as well as
application-level data (e.g. account interactions, smart contract deployments).
To e ciently handle this volume of data, Alethio has investigated di erent tools
and frameworks with one focus: the infrastructure should be resilient,
loadbearing, and most importantly, scalable. And so, for that reason to overcome
the variety of the di erent data sources, Alethio introduces semanti cation of
Ethereum network and uses SANSA as an underlying engine for large scale
distributed RDF based querying, reasoning, and machine learning on top of these
RDF datasets. To show the joint e ort between SANSA and Alethio, we describe
a use case on how SANSA can be used to analyze Ethereum at new scales.
1 https://www.coindesk.com/understanding-dao-hack-journalists/
2 https://aleth.io/ (last accessed June 11th 2018)
3 https://github.com/SANSA-Stack</p>
      <p>(a) The unique attributes of a Kitty.
(b) An instance of a Kitty.</p>
      <p>(c) History of three types of auction events.
(d) The process pipeline.</p>
      <p>(e) An illustration of a small family tree.</p>
      <p>CryptoKitties4 is one of the rst games to be built on blockchain technology.
In particular, CryptoKitties initiated and released the rst generation virtual
kitties, with delicately designed icons and genes sequences. All the kitties are
virtual with some biological feature settings. Shown in Figure 1b is a kitty with
its speci c biological attributes displayed in Figure 1a. The attributes are stored
in a sequence, succeeded from its parents' gene sequences, with possibility of
mewtations. An owner can sell, breed or gift it to other user. When users sell or
breed it, they will send transactions to the CryptoKitties smart contracts, which
will complete the execution of either transferring ownership between users, or
generating a new kitty. Based on that, game users can trade or breed kitties like
traditional collectibles, while having the guarantee that the blockchain will track
ownership securely. Moreover, one can breed two kitties to create a brand-new,
genetically unique o spring.
4 https://www.cryptokitties.co/ (last accessed June 11th 2018)
Data Challenges. Alethio has been exploring e cient means of processing large
RDF data sets. SANSA empowers Alethio to read and query the data at scale
as described in Figure 1d. Indeed, once the complete RDF data set is loaded,
SANSA lters it to retain only the CryptoKitties triples {transactions, contract
messages and log information{ before performing more speci c analyses.</p>
      <p>Practically, the challenges tackled with SANSA can be divided into two
groups: game performance and customer behaviors. The rst one focuses on
time series metrics: throughout time, the event volume, number of active users
and amount of spent Ether, which can jointly estimate the trend of popularity
for the game. In Figure 1c, the history of CryptoKitties auctions events shows
clearly that there was a peak of tra c in December after the game was launched
for around one month. By this time series, we can estimate the popularity of the
game throughout history. The second one requires machine learning algorithms
to detect correlations between indicators (e.g. to determine whether richer
owners have the tendency to collect special/rare kitties which are more expensive).
and topology from a network view. In Figure 1e, we present a small subset of
the kitty family tree, where incest happened during the reproduction: kitty 1057
is the secondary-degree relative (grandparent) of kitty 3200, while later it bred
with kitty 3200 and gave birth to kitty 3225.
4</p>
    </sec>
    <sec id="sec-2">
      <title>Conclusion</title>
      <p>During this poster session, attendees will be able to discover the blockchain world
and the speci cities of the Ethereum through the CryptoKitties use case. In
addition, we will present how the SANSA stack {and the Semantic Web standards{
has been used to tackle some speci c problems dealing with blockchain analyses.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>English</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Auer</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Domingue</surname>
          </string-name>
          , J.:
          <article-title>Block chain technologies &amp; the semantic web: A framework for symbiotic development</article-title>
          . In: Computer Science Conference for University of Bonn Students,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Thakkar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Halilaj</surname>
          </string-name>
          , and R. Asmat, Eds. pp.
          <volume>47</volume>
          {
          <issue>61</issue>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sejdiu</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          , Buhmann, L.,
          <string-name>
            <surname>Westphal</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stadler</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ermilov</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bin</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chakraborty</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Saleem</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ngonga</surname>
            ,
            <given-names>A.C.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jabeen</surname>
          </string-name>
          , H.:
          <article-title>Distributed semantic analytics using the SANSA stack</article-title>
          .
          <source>In: Proceedings of 16th International Semantic Web</source>
          Conference - Resources
          <string-name>
            <surname>Track</surname>
          </string-name>
          (ISWC'
          <year>2017</year>
          ) (
          <year>2017</year>
          ), http://svn.aksw.org/ papers/2017/ISWC_SANSA_SoftwareFramework/public.pdf
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Mukhopadhyay</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Skjellum</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hambolu</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oakley</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brooks</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>A brief survey of cryptocurrency systems</article-title>
          .
          <source>In: Privacy, Security and Trust (PST)</source>
          ,
          <year>2016</year>
          14th Annual Conference on. pp.
          <volume>745</volume>
          {
          <fpage>752</fpage>
          .
          <string-name>
            <surname>IEEE</surname>
          </string-name>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Nakamoto</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Bitcoin: A peer-to-peer electronic cash system (</article-title>
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Pfe</surname>
            <given-names>er</given-names>
          </string-name>
          , J.,
          <string-name>
            <surname>Beregszazi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Detrio</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Junge</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chow</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oancea</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pietrzak</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Khatchadourian</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bertolo</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Ethon - An Ethereum ontology (</article-title>
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Wood</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Ethereum: A secure decentralised generalised transaction ledger</article-title>
          .
          <source>Ethereum project yellow paper 151</source>
          , 1{
          <fpage>32</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>