Skip to content

Data structure

Lucas Gautheron edited this page Aug 31, 2016 · 7 revisions

Storage : data/*.xml

event

  • id
  • date (year, integer)
  • content id (integer)
  • hidden (optional, 1 or 0, default=0)
  • text

events.xml

<events>
    <event id="1" date="1905" content-id="particle-physics" hidden="0">Albert Einstein publie sa théorie de la Relativité Restreinte qui décrit l'électrodynamique classique </event>
</events>

content

  • id
  • ready (integer)
  • reviewed (integer)
  • title (string)
  • image (string)
  • text

contents.xml

<contents>
    <content id="physique-des-particules" uid="particle-physics" ready="1" reviewed="0">
        <title>Physique des particules</title>
        <image>modele_standard.jpg</image>
        <text>Le modèle standard...</text>
        <interviews>
            <interview>
                <description>This should blow your mind</description>
                <who name="Martin White">
                    <image></image>
                    <title>University of Adelaide</title>
                 </who>
                  <by name="Lucas Gautheron"></by>
                  <questions>
                      <question>What's the meaning of life ?</question>
                      <answer>...</answer>
                      <question>Another question</question>
                      <answer>...</answer>
                  </questions>
          </interview>
        </interviews>
        <further-readings>
            <further-reading id="1" content-id="1">
                <title>Quantum Field Theory in a Nutshell</title>
                <author>A. Zee</author>
                <text>Introduction à la théorie quantique des champs</text>
                <date>2003</date>
                <file>fichier.pdf</file>
                </further-reading>
        </further-readings>
    </content>
</contents>

ressource

  • id (integer)
  • title (string)
  • linkwords
  • text

ressources.xml

<appendices>    
    <appendix id="equation-de-schrodinger" uid="schrodinger-equation">
        <title>Equation de Schrödinger</title>
        <text>\begin{equation}...\end{equation}</text>
        <linkwords>
            <linkword>équation de Schrödinger</linkword>
            <linkword>Schrödinger's equation</linkword>
        </linkwords>
    </appendix>
</appendices>
Clone this wiki locally