From fb4bb0939460f754d0e2d00b03bf6dcf9839832e Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Mon, 15 Jun 2015 18:57:44 +0200 Subject: [PATCH] Detail corrections --- Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml | 15 ++++---- Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml | 40 +++++++++++---------- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml b/Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml index 6435c6733..d3a922b3f 100644 --- a/Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml +++ b/Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml @@ -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> diff --git a/Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml b/Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml index bda524c13..3a027cdff 100644 --- a/Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml +++ b/Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml @@ -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><university> + <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><university> <studyCourses/> <students/> </university></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> -- GitLab