<!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>FCAWarehouse, a prototype online data repository for FCA</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Constantinos Orphanides</string-name>
          <email>c.orphanides@shu.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>George Georgiou</string-name>
          <email>georgios.georgiou@student.shu.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Conceptual Structures Research Group Communication and Computing Research Centre Faculty of Arts, Computing, Engineering and Sciences She eld Hallam University</institution>
          ,
          <addr-line>She eld</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper presents FCAWarehouse, a prototype online data repository for FCA. The paper explains the motivation behind the development of FCAWarehouse and the features available, such as the ability to donate datasets and their respective formal contexts, the ability to generate arti cial formal contexts on-the- y, and how these features are also available through a set of web-services. The paper concludes by suggesting future work in order to enhance it's usability.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In recent years, di erent means of archiving empirical data have been considered
and implemented to build a space where data collection could be exploited and
analyzed accordingly, if required. The di erent archiving techniques not only
introduced communities an alternative approach of maintaining the quality and
accessibility of data, but also improved the indexing of available data collections
with proper categorization. An example of such an archiving technique are online
data repositories.</p>
      <p>
        Online data repositories are digital libraries which allow the comprehensive
collection, management and preservation of digital content and the ability to
o er it to targeted user communities [
        <xref ref-type="bibr" rid="ref10 ref7 ref8">10,7,8</xref>
        ]. An example of such a repository is
the UCI Machine Learning Repository, a repository used by the machine learning
community for the empirical analysis of machine learning algorithms [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Data
repositories exist for numerous targeted communities; however, a centralized,
public resource of data in FCA formats for the FCA community has not been
implemented to date.
      </p>
      <p>
        The idea of an FCA online data repository, to provide FCA practitioners with
a resource of public datasets in FCA formats, was proposed in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] at 2009. The
proposal envisioned the automatic conversion of uploaded traditional datasets
into formal contexts, as well as the ability to generate arti cial datasets in CSV
format, to be then converted into a formal context with the user being able
to determine the number of objects, number of attributes and the density. The
automatic conversion of datasets to formal contexts would be handled by a
\Data-to-FCA" converter and the tool FcaStone1 would be used to convert
formal contexts from one FCA format to another. Both of these tools would be
incorporated in the repository as components. The architecture of the proposed
repository is shown in Figure 1.
      </p>
      <p>
        The \Data-to-FCA" converter of the proposed repository was the most
complex component to implement with regards to the e ort and time needed to
develop it. However, since the publication of the aforementioned paper, the
\Datato-FCA" converter has been developed as a standalone desktop application called
FcaBedrock2, a formal context creator for FCA with the ability of converting
datasets in various formats to formal contexts in the Burmeister (.cxt) or FIMI
(.dat) formats [
        <xref ref-type="bibr" rid="ref4 ref5">5,4</xref>
        ]. The formal contexts generated by FcaBedrock can be then
loaded in In-Close3, a fast formal concept miner, to count the number of
formal concepts in a formal context and produce, if necessary, smaller sub-contexts
based on the well-known notion of minimum support [
        <xref ref-type="bibr" rid="ref1 ref3">3,1</xref>
        ]. Subsequently, the
motivation behind implementing an FCA data repository became stronger and
resulted in the development of a prototype data repository for FCA, named
FCAWarehouse.
      </p>
      <sec id="sec-1-1">
        <title>1 http://sourceforge.net/projects/fcastone</title>
      </sec>
      <sec id="sec-1-2">
        <title>2 http://sourceforge.net/projects/fcabedrock</title>
      </sec>
      <sec id="sec-1-3">
        <title>3 http://sourceforge.net/projects/inclose</title>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>FCAWarehouse</title>
      <p>
        FCAWarehouse4 is a prototype data repository for FCA developed as part of a
BSc Computing nal year project [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] at She eld Hallam University (SHU). It
provides the ability of donating datasets and their respective formal contexts,
browsing and searching datasets, an administration back-end for librarians to
manage donated datasets, creating arti cial formal contexts, as well as
providing all of it's functionality through a set of ReSTful5 web services to make
FCAWarehouse interoperable with third-party FCA tools. A diagram of it's
architecture is shown in Figure 2 and an explanation of it's features is given in the
following sections.
Each dataset in FCAWarehouse is comprised of metadata such as name,
additional information, original source as well as the original data and it's respective
formal context (Figure 3).
      </p>
      <p>All of the les and metadata are provided by the donator during the
donation process. In cases where the formal contexts are created using FcaBedrock, a</p>
      <sec id="sec-2-1">
        <title>4 http://www.fcawarehouse.com</title>
        <p>5 Representational State Transfer (ReST). http://www.ibm.com/developerworks/
webservices/library/ws-restful/
Bedrock le (.bed) is also provided which contains the metadata of the
conversion so that users can load the original data and the Bedrock le in FcaBedrock
and have a look at, or modify, the parameters and conversion criteria set for
each attribute in the original dataset (Figure 4).</p>
        <p>The les donated for each dataset are stored physically on the server, with
the database only holding the URL to each dataset. As the prototype is currently
hosted on a server with limited storage capabilities, all les uploaded for a dataset
during the donation process are automatically compressed as .zip les.</p>
        <p>After a user has donated a dataset, the librarians are noti ed about the new
submission and have the ability of accepting or declining the submitted dataset.
Consequently, only datasets marked as `Accepted' by the librarians are visible
to end-users.
FCAWarehouse provides the ability of generating arti cial formal contexts in the
Burmeister (.cxt) format by prede ning the number of formal objects, number
of formal attributes and the density. Developers of tools such as the formal
concept miners In-Close6 and FCbO7 can use this feature to generate formal
contexts of size of their choice in order to test the limits and e ciency of their
algorithms.</p>
        <p>The generated arti cial formal contexts are randomly generated by prede
ning the number of objects, number of attributes and density of the formal
context. The density is de ned as a percentage indicating the minimum amount
of crosses (formal attributes) that each row (formal object) should contain in
the formal context. Setting for example number of objects to 10, number of
attributes to 10 and density percentage to 70% will result in a formal context with
10 formal objects and 10 formal attributes where at least 70% of each row is
consisted of crosses (Figure 5). Setting the density to 0 will generate a random
arti cial formal context with no density criteria.</p>
      </sec>
      <sec id="sec-2-2">
        <title>6 http://sourceforge.net/projects/inclose</title>
      </sec>
      <sec id="sec-2-3">
        <title>7 http://sourceforge.net/projects/fcalgs</title>
        <p>FCAWarehouse implements a set of web services for the interoperability of
FCAWarehouse with third-party FCA applications. At the moment there are
a total of four web services, namely:
{ GenerateContext: Accepts as input the number of objects, number of
attributes, density percentage and outputs a corresponding arti cial
Burmeister formal context in XML.
{ GetAllDataSets: Returns all datasets, along with their metadata, in XML.</p>
        <p>Only datasets marked as `Accepted' by the librarians are returned.
{ Get10MostRecentDatasets: Returns the 10 most recent datasets along
with their metadata, in XML. Only datasets marked as `Accepted' by the
librarians are returned.
{ SearchDataset: Accepts a string as input and returns any datasets which
contain the given string in their name, along with their metadata, in XML.</p>
        <p>Only datasets marked as `Accepted' by the librarians are returned.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Further Work and Conclusion</title>
      <p>While useful in it's current state, FCAWarehouse is still in a prototypical state;
a number of improvements can be implemented to enhance it's usability. For
example, the feature of arti cially generating formal contexts can be extended to
simulate formal contexts that real datasets would produce. This can be achieved
by de ning sets of adjacent columns in the formal context to represent a single
attribute. Assuming, for example, a categorical attribute (with each of it's values
being a formal attribute in the formal context) and each formal object only being
able to have one of it's values (quite common in real datasets), will result in a
formal context where no more than one cross will exist in the columns
representing that attribute. The same logic can be applied to various type of attribute:
boolean attributes could be interpreted as single formal attributes in the formal
context and continuous attributes could be grouped using ranges rather than
one formal attribute for each numerical value. In this way, FCAWarehouse can
act as a benchmarker for the comparison of tools and algorithms by providing
citable random data as well as converted real datasets.</p>
      <p>A feature which could prove quite useful in the future, with some
modications and adjustments, are FCAWarehouse's web services. Interesting
usecases can emerge from this feature; for example, the formal context creator
FcaBedrock could feature a \Create formal context from FCAWarehouse"
option. By using the provided web services, a list of the available datasets could
appear in FcaBedrock. Selecting one of the datasets could automatically
download the dataset and start auto detecting its values to create a formal context.
Creating a formal context in FcaBedrock requires inputting a dataset, de ning
its metadata and then creating the formal context; considering, however, the
\Generate Context" web service, the ability of creating arti cial formal contexts
in FcaBedrock without requiring initial data as input could be made possible
with minimal e ort.</p>
      <p>Further work also includes the incorporation of the tool FcaStone, to convert
data between FCA and non-FCA formats, in FCAWarehouse to o er the power
of FCA to those currently outside of the FCA community.</p>
      <p>The nal vision of FCAWarehouse is of an online FCA data repository which
facilitates the creation, conversion and donation of datasets for FCA, providing
a useful collection of real and arti cial datasets in a wide variety of FCA and
non-FCA formats to open the way for the wider use of FCA.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Andrews</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2011</year>
          ).
          <article-title>In-Close2, a High Performance Formal Concept Miner</article-title>
          .
          <source>In: Proceedings of the 19th International Conference on Conceptual Structures (ICCS) 2011. LNAI 6828</source>
          . Berlin: Springer-Verlag. pp.
          <volume>50</volume>
          {
          <fpage>62</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Andrews</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2009a</year>
          ).
          <article-title>Data Conversion and Interoperability for FCA</article-title>
          .
          <source>In: Proceedings of the 4th Conceptual Structures Tool Interoperability Workshop (CS-TIW)</source>
          <year>2009</year>
          ,
          <article-title>held in conjunction with the 17th International Conference on Conceptual Structures (ICCS)</article-title>
          <year>2009</year>
          :
          <article-title>\Leveraging Semantic Technologies"</article-title>
          . pp.
          <volume>42</volume>
          {
          <fpage>49</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Andrews</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2009b</year>
          ).
          <article-title>In-Close, a Fast Algorithm for Computing Formal Concepts</article-title>
          .
          <source>In: Rudolph</source>
          , Dau, Kuznetsov (Eds.):
          <source>Supplementary Proceedings of ICCS'09</source>
          ,
          <string-name>
            <surname>CEUR</surname>
            <given-names>WS</given-names>
          </string-name>
          483.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Andrews</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Orphanides</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          (
          <year>2012</year>
          ).
          <article-title>Knowledge Discovery Through Creating Formal Contexts</article-title>
          .
          <source>In: International Journal of Space-Based and Situated Computing</source>
          ,
          <volume>2</volume>
          (
          <issue>2</issue>
          ). pp.
          <volume>123</volume>
          {
          <fpage>138</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Andrews</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Orphanides</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          (
          <year>2010</year>
          ).
          <article-title>FcaBedrock, a Formal Context Creator</article-title>
          . In: \Conceptual Structures:
          <article-title>From Information to Intelligence"</article-title>
          ,
          <source>Proceedings of the 18th International Conference on Conceptual Structures (ICCS)</source>
          <year>2010</year>
          , LNAI 6208. pp.
          <volume>181</volume>
          {
          <fpage>184</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Bache</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Lichman</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          (
          <year>2013</year>
          )
          <article-title>UCI Machine Learning Repository</article-title>
          [http: //archive.ics.uci.edu/ml]. Irvine, CA: University of California, School of Information and Computer Science.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Candela</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Athanasopoulos</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Castelli</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>El Raheb</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Innocenti</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ioannidis</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Katifori</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nika</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vullo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Ross</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2011</year>
          )
          <article-title>The Digital Library Reference Model</article-title>
          .
          <source>Last accessed 01 April</source>
          <year>2013</year>
          at: http://bscw.research-infrastructures.eu/pub/bscw.
          <source>cgi/d222816/D3.2b% 20Digital%20Library%20Reference%20Model.pdf</source>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. DSpace Cambridge (
          <year>2012</year>
          ). Digital Repositories. [online].
          <source>Last accessed 18 April</source>
          at http://www.lib.cam.ac.uk/dataman/pages/repositories.html
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Georgiou</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2013</year>
          ).
          <article-title>FCAWarehouse, an Online FCA Data Repository. BSc (Hons) Computing nal year project</article-title>
          , She eld Hallam University, She eld, UK,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Scherle</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Carrier</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Greenberg</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lapp</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thompson</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vision</surname>
          </string-name>
          , T. and
          <string-name>
            <surname>White</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          (
          <year>2008</year>
          ).
          <article-title>Building Support for a Discipline-Based Data Repository</article-title>
          .
          <source>In: Third International Conference on Open Repositories</source>
          <year>2008</year>
          ,
          <article-title>Southampton</article-title>
          .
          <source>Last accessed 20 March</source>
          <year>2013</year>
          at: http://pubs.or08.ecs.soton.ac.uk/35/1/ submission_177.pdf
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>