Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
fb4bb093
Commit
fb4bb093
authored
9 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
Detail corrections
parent
603da8eb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml
+8
-7
8 additions, 7 deletions
Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml
Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml
+21
-19
21 additions, 19 deletions
Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml
with
29 additions
and
26 deletions
Exam/Sda1/RdbmsStudents2xml/exercise1.xhtml
+
8
−
7
View file @
fb4bb093
...
...
@@ -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=
"/il
iasData/goik/rdbmsStudents2xml_zcx9sazr3FFDS_++vcds/rdbmsStudents2xml.zip"
>
rdbmsStudents2xml
.zip
</a>
href=
"/
f
il
es/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>
This diff is collapsed.
Click to expand it.
Exam/Sda1/RdbmsStudents2xml/exercise2.xhtml
+
21
−
19
View file @
fb4bb093
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment