<!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>Brede Wiki: Neuroscience data structured in a wiki</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Finn A˚rup Nielsen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Center for Integrated Molecular Brain Imaging</institution>
          ,
          <addr-line>Copenhagen</addr-line>
          ,
          <country country="DK">Denmark</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Setup in January 2009 the Brede Wiki contains data from neuroscience, particularly from published neuroimaging peer-reviewed papers. Data is stored in simple MediaWiki templates and it can automatically be extracted and represented in an SQL format. Off-wiki Web-scripts can use the SQL database so items in the wiki can be queried efficiently, e.g., to find close brain activations to a given coordinate. Template content is non-nested and without wiki markup making extraction simple and complete.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Background</title>
      <p>for recording data or describing its content more semantically. Exceptions are
NeuroLex and NeuroCommons.</p>
      <p>
        We have gained some experience in processing the templates of Wikipedia
(more specifically the journal field of the cite journal template for scientific
citations) and for submitting the processed templates to statistical analyses [
        <xref ref-type="bibr" rid="ref6 ref7">6,
7</xref>
        ]. The DBpedia effort [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] has shown the possibility for large-scale databasing
with data extracted from Wikipedia.
      </p>
      <p>Here I describe a system, the Brede Wiki (http://neuro.imm.dtu.dk/wiki/),
that use MediaWiki and its template functionality to record neuroinformatics
data. Associated scripts can extract the template content from the entire XML
dump of the wiki and automatically construct SQL representation of the data.
The SQL database enables more advanced queries than is possible with the
present standard MediaWiki.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Methods</title>
      <p>To avoid making data extraction unnecessarily complex and to match with the
SQL language the application of MediaWiki templates has been kept simple:
Present templates do not nest, have lower-case characters (except for first letter)
and wiki markup is avoided within the template field values. The following is an
example of an application of the paper template:
{{Paper
| author1 = Daniela Balslev | author2 = Finn Nielsen
| author3 = Olaf B. Paulson | author4 = Ian Law
| title = Right Temporoparietal Cortex Activation during</p>
      <p>Visuo-proprioceptive Conflict
| journal = Cerebral Cortex
| volume = 15 | issue = 2 | pages = 166-169 | year = 2004
| pmid = 15238438 | doi = 10.1093/cercor/bhh119 | wobib = 128
}}</p>
      <p>In the present wiki one page may contain multiple templates, e.g., a page
for a specific neuroimaging paper can contain the paper template as well as
multiple templates for brain coordinates: the Talairach coordinate template.
Most template definitions format the template content by construction of an
infobox as known from Wikipedia. What is somewhat different from Wikipedia
is the extensive use of wiki links within the template definitions. For example,
for the paper template wiki links to the authors and journal is constructed, with
MediaWiki template definitions like [[{{{author1}}}]]. External links are
created from the external database identifiers, such as DOI and the PubMed
Identifier (PMID). For the templates which usually come in sets, such as Talairach
coordinate, each application of a template defines a row in a table.</p>
      <p>An example of a page within the Brede Wiki is displayed in Figure 1 on page 4
with the paper template as the upper right infobox and with three formatted
applications of the Talairach coordinate template at the bottom. The x, y
and z fields of the template can be combined in a query to external specialized
coordinate search engines. These links are displayed in the right-most column.</p>
      <p>As the templates are not nested relatively simple Perl regular expressions
retrieve them with m/{{(.*?)}}/sg and subsequently extract the template name
and its content with
m/([a-z][a-z0-9]*(?:[ _][a-z0-9]+)*)\s*(\|.*)?/si
Spaces are later substituted with underscores. Another regular expression in the
same style extracts name-value pairs from each field. The extracted content is
written to SQL tables, where the master table is presently defined for SQLite as
CREATE TABLE brede(id INTEGER, pid INTEGER, title, tid INTEGER, template,
field, fid INTEGER, value);</p>
      <p>id is the row identifier, pid an identifier for the wiki page which title is also
(redundantly) represented in the title column. tid and template are identifier
and name of the template, while field is the field name, fid the field number
and value the value, i.e., the actual content of the field. An insert with the
author2 field from the above displayed paper template example may be issued
as:
INSERT INTO brede VALUES(387, 31, ’Right temporoparietal cortex
activation during visuo-proprioceptive conflict’,
136, ’paper’, ’author’, 2, ’Finn Nielsen’);</p>
      <p>Apart from the master table several other tables are built: One for each
template. For the paper template the SQL definition for the corresponding table
may look like the following:
CREATE TABLE brede_paper(__tid, __pid, __title, _author1, _author2,
_author3, _author4, _title, _journal, _volume, _issue, _pages, _year,
_pmid, _doi, _wobib);</p>
      <p>
        The final number of columns will depend on the number of different field
names discovered during reading of the XML dump. The table names are prefixed
with brede and the column names with an underscore to avoid clashes between
Brede Wiki names and SQL reserved words. A specialized search engine use the
constructed SQL database when searching for nearby Talairach coordinates to
a query coordinate [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>At the time of writing 43 papers were represented in the Brede Wiki, 31
which potentially contain Talairach coordinates. In comparison the Brede and
BrainMap databases have presently 186 and 1711 papers, respectively. Apart
from templates for papers and Talairach coordinates, the Brede Wiki has also
templates for, e.g., brain regions, researchers, subject groups and brain volume
results.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Discussion</title>
      <p>There are both advantages and disadvantages with the Brede Wiki compared to
our previous system. Some of the advantages are online versioning, immediate
access to entered data,
incremental addition of
data, the possibility for
free format text
descriptions as well as discussion
pages. Furthermore the
data structure is
extensible, i.e., it is relatively
easy for editors to add
new ‘columns’ (fields).</p>
      <p>
        The wiki does not solve the data entry problem per se. The data in the Brede
Wiki has so far for the most part been entered manually in the raw wiki text. A
small Matlab script can convert results from SPM so they appear in the Brede
Wiki template format. Our small fielded wiki with form entry for personality
genetics association studies [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] can also output its data for inclusion in the
Brede Wiki. Entry with forms within the wiki would be a natural next step
as well as possibly the adding of Semantic MediaWiki functionality [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Yet
another option for data entry is scripts that automatically setup wiki pages
from information in other databases, — an approach taking for Gene Wiki in
Wikipedia [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Using this scheme it should be possible to augment the Brede
Wiki with information from the Brede Database.
      </p>
      <p>The present consensus on notability in Wikipedia restricts the information
that a Wikipedian can enter: If it is not notable enough another Wikipedian
might delete it. Ordinary researchers and individual research articles do not
have sufficient notability such that individual pages can be constructed for each
of them. When DPpedia relies on Wikipedia then this combination does not
suffice for our purpose.</p>
      <p>Compared to true semantic wikis the Brede Wiki cannot perform ‘in-wiki’
semantic queries. However, an off-wiki Web-script using the SQLite database can
search for Talairach foci extracted from the Talairach coordinate templates,
and the wiki and the Web-script link between each others. In the wiki such
links are automatically constructed by the template. Similar Web-scripts may
be setup that utilize other parts of the extracted data in more complex ways.</p>
      <p>
        In our small fielded wiki of personality genetics we can perform on-the-fly
meta-analysis and data plotting. The vision is that the Brede Wiki can constitute
the basis for large-scale Web-based meta-analyses similar to that of the
(nonwiki) AlzGene database [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
4
      </p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>The Brede Wiki is one of the first steps in neuroinformatics with Web 2.0 and
with a high degree of structured content. It shows the possibility to output
structured MediaWiki content to an SQL database.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Talairach</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tournoux</surname>
            ,
            <given-names>P.:</given-names>
          </string-name>
          <article-title>Co-planar Stereotaxic Atlas of the Human Brain. Thieme Medical Publisher Inc</article-title>
          , New York (
          <year>January 1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Fox</surname>
          </string-name>
          , P.T.,
          <string-name>
            <surname>Lancaster</surname>
            ,
            <given-names>J.L.:</given-names>
          </string-name>
          <article-title>Neuroscience on the net</article-title>
          .
          <source>Science</source>
          <volume>266</volume>
          (
          <issue>5187</issue>
          ) (
          <year>November 1994</year>
          )
          <fpage>994</fpage>
          -
          <lpage>996</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Derrfuss</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mar</surname>
            ,
            <given-names>R.A.</given-names>
          </string-name>
          :
          <article-title>Lost in localization: The need for a universal coordinate database</article-title>
          .
          <source>NeuroImage</source>
          , doi:10.1016/j.neuroimage.
          <year>2009</year>
          .
          <volume>01</volume>
          .053 (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>A˚.: The Brede database: a small database for functional neuroimaging</article-title>
          .
          <source>NeuroImage</source>
          <volume>19</volume>
          (
          <issue>2</issue>
          ) (
          <year>June 2003</year>
          )
          <article-title>Presented at the 9th International Conference on Functional Mapping of the Human Brain</article-title>
          , June 19-22,
          <year>2003</year>
          , New York, NY. Available on CD-Rom.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Wilkowski</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Szewczyk</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rasmussen</surname>
            ,
            <given-names>P.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hansen</surname>
            ,
            <given-names>L.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>A˚.: Coordinate-based meta-analytic search for the SPM neuroimaging pipeline</article-title>
          .
          <source>In: International Conference on Health Informatics (HEALTHINF</source>
          <year>2009</year>
          ).
          <article-title>(</article-title>
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>A˚.: Scientific citations in Wikipedia</article-title>
          .
          <source>First Monday</source>
          <volume>12</volume>
          (
          <issue>8</issue>
          ) (
          <year>August 2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>A˚.: Clustering of scientific citations in Wikipedia</article-title>
          . In: Wikimania. (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Auer</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bizer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kobilarov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cyganiak</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ives</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>DBpedia: A nucleus for a web of open data</article-title>
          .
          <source>In: The Semantic Web</source>
          . Volume
          <volume>4825</volume>
          of Lecture Notes in Computer Science., Heidelberg/Berlin, Springer (
          <year>2008</year>
          )
          <fpage>722</fpage>
          -
          <lpage>735</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Szewczyk</surname>
            ,
            <given-names>M.M.</given-names>
          </string-name>
          :
          <article-title>Databases for neuroscience</article-title>
          .
          <source>Master's thesis</source>
          , Technical University of Denmark, Kongens Lyngby,
          <string-name>
            <surname>Denmark</surname>
          </string-name>
          (
          <year>2008</year>
          )
          <article-title>IMM-MSC-</article-title>
          <year>2008</year>
          -92.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <article-title>A˚.: A small wiki for personality genetics</article-title>
          .
          <source>37th Annual Meeting on Biochemistry and Molecular Biology: Frontiers in Genomics (October</source>
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. Kr¨otzsch, M., Vrandeˇci´c, D., V¨olkel, M.:
          <article-title>Semantic MediaWiki</article-title>
          . In Cruz, I.,
          <string-name>
            <surname>Decker</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Allemang</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Preist</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schwabe</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mika</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Uschold</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aroyo</surname>
          </string-name>
          , L., eds.: The Semantic Web - ISWC
          <year>2006</year>
          . Volume
          <volume>4273</volume>
          of Lecture Notes in Computer Science., Berlin/Heidelberg, Springer (
          <year>2006</year>
          )
          <fpage>935</fpage>
          -
          <lpage>942</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Huss</surname>
            , III,
            <given-names>J.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Orozco</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goodale</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chunlei</surname>
            , Batalov,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vickers</surname>
            ,
            <given-names>T.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Valafar</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Su</surname>
            ,
            <given-names>A.I.:</given-names>
          </string-name>
          <article-title>A gene wiki for community annotation of gene function</article-title>
          .
          <source>PLoS Biology</source>
          <volume>6</volume>
          (
          <issue>7</issue>
          )
          <issue>(</issue>
          <year>July 2008</year>
          ) e175
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Bertram</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McQueen</surname>
            ,
            <given-names>M.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mullin</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Blacker</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tanzi</surname>
          </string-name>
          , R.E.:
          <article-title>Systematic meta-analyses of Alzheimer disease genetic association studies: the AlzGene database</article-title>
          .
          <source>Nature Genetics</source>
          <volume>39</volume>
          (
          <issue>1</issue>
          ) (
          <year>January 2007</year>
          )
          <fpage>17</fpage>
          -
          <lpage>23</lpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>