Skip to content
Snippets Groups Projects
Commit fb4bb093 authored by Goik Martin's avatar Goik Martin
Browse files

Detail corrections

parent 603da8eb
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
<body><h2>Objective</h2><p>Transforming a relational into an XML
schema</p><h2>Preparations / Description</h2><ol>
<li>Download <a
href="/iliasData/goik/rdbmsStudents2xml_zcx9sazr3FFDS_++vcds/rdbmsStudents2xml.zip">rdbmsStudents2xml.zip</a>
href="/files/goik/Sda1/RdbmsStudents2xml/hcewfdhw5YYYq_-pPPz.zip">hcewfdhw5YYYq_-pPPz.zip</a>
and import it as a project into your Eclipse workspace.</li>
<li><p>Your imported project <code>rdbmsstudent2xml</code>
......@@ -28,11 +28,12 @@
<li><p><strong> <code>Schema/university.xsd</code>, a sample XML
schema to be extended</strong></p></li>
</ul></li>
</ol><h2>ToDo</h2><p>Complete <code>Schema/university.xsd</code> to match
all integrity constraints of the corresponding relational
<code>Schema/schema.sql</code>. The XML sample
<code>Schema/testdata.xml</code> may guide you but may be misleading, too:
Examine the two <code>CREATE TABLE</code> statements thoroughly in order to
find all data integrity constraints.</p><p>On completion upload your file
</ol><h2>ToDo</h2><p>Complete <code>Schema/university.xsd</code> to
implement all integrity constraints of the corresponding relational
<code>Schema/schema.sql</code> as closely as possible.</p><p>Hint: The XML
sample <code>Schema/testdata.xml</code> may guide you but may be misleading,
too: Examine the two <code>CREATE TABLE</code> statements
<strong>thoroughly</strong> in order to find all relational data integrity
constraints.</p><p>On completion upload your file
<code>university.xsd</code> to the exam system.</p></body>
</html>
......@@ -5,42 +5,44 @@
<title>Exercise 2</title>
</head>
<body><h2>Objective</h2><p>Transforming relational data into XML
output.</p><h2>Preparations / Description</h2><ol>
<li>In case you did not download <a
href="/iliasData/goik/rdbmsStudents2xml_zcx9sazr3FFDS_++vcds/rdbmsStudents2xml.zip">rdbmsStudents2xml.zip</a>
and import it as a Maven project into Eclipse do it now.</li>
<body><h2>Objective</h2><p>Transforming relational data into XML output.
This exercise is independent from the previous <code>XSD</code>
part.</p><h2>Preparations / Description</h2><ol>
<li>In case you did not yet download and import <a
href="/files/goik/Sda1/RdbmsStudents2xml/hcewfdhw5YYYq_-pPPz.zip">hcewfdhw5YYYq_-pPPz.zip</a>
in part 1 do it now.</li>
<li><p>Your imported project <code>rdbmsstudent2xml</code>
contains:</p><ul>
<li><p><strong><code>Schema/schema.sql</code> describing university
data:</strong></p><ul>
<li><p><code><strong>Schema/schema.sql</strong></code> describing
university data:</p><ul>
<li>A relational schema consisting of two related tables
<code>StudyCourse</code> and <code>Student</code>.</li>
<li><code>INSERT</code> statements providing sample data.</li>
</ul></li>
<li><p><strong>A driver class
<code>de.hdm_stuttgart.mi/sda1.sql2catalog.Rdbms2Xml</code>:</strong></p><p>On
Java execution this class currently just produces:</p><pre>&lt;university&gt;
<li><p>A driver class
<code><strong>de.hdm_stuttgart.mi.sda1.sql2catalog.Rdbms2Xml</strong></code>:</p><p>On
execution this class currently just produces:</p><pre>&lt;university&gt;
&lt;studyCourses/&gt;
&lt;students/&gt;
&lt;/university&gt;</pre></li>
<li><p><strong><code>Schema/testdata.xml</code> corresponding to the
previously mentioned relational data being contained in
<code>Schema/schema.sql</code>.</strong></p></li>
<li><p><code><strong>Schema/testdata.xml</strong></code>
corresponding to the previously mentioned relational test data being
contained in <code>Schema/schema.sql</code>.</p></li>
</ul></li>
</ol><h2>ToDo</h2><p>Extend
<code>de.hdm_stuttgart.mi/sda1.sql2catalog.Rdbms2Xml</code> to generate
suitable XML data from relational sources. Data being contained in
<code>Schema/schema.sql</code> shall for example be transformed to
<code>Schema/testdata.xml</code>. Your implementation is
expected to work for arbitrary relational data being consistent with
the current relational schema.</p><p>It might be a good idea to extend class
corresponding XML data from relational sources. Data being contained e.g. in
<code>Schema/schema.sql</code> shall be transformed to
<code>Schema/testdata.xml</code>. </p><p>Hint: <strong>Your implementation
is expected to work for arbitrary relational data being consistent with the
current relational schema</strong> (and not just for the test data being
provided here).</p><p>It might be a good idea to extend class
<code>de.hdm_stuttgart.mi.sda1.sql2catalog.RdbmsAccess</code> implementing a
database access layer.</p><p>On completion export your project as a
database access layer.</p><p>On completion export your whole project as a
<code>.zip</code> file and upload it. Only the least uploaded file will
become subject to marking.</p></body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment