Commit 678d8e42 authored by Dr. Martin Goik's avatar Dr. Martin Goik

Exam Sda1 Summer 2018

parent 037b7757
/target/
/.settings/
.classpath
.project
dependency-reduced-pom.xml
*.log
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
# Gradle:
.idea/**/gradle.xml
.idea/**/libraries
# CMake
cmake-build-debug/
# Mongo Explorer plugin:
.idea/**/mongoSettings.xml
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
<xs:element name="bibliography">
<xs:complexType>
<xs:sequence>
<!-- TODO: Implement me! -->
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
<publisher id="addWesley">
<name>Addison-Wesley</name>
<city>Reading, Massachusetts / USA</city>
</publisher>
</publishers>
<book id="ab94" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
<author>Kim C. Border</author>
</book>
<book id="goossens93" publisher="addWesley" year="1993">
<title>The LaTeX Companion</title>
<author>Michel Goossens</author>
<author>Frank Mittelbach</author>
<author>Alexander Samarin</author>
</book>
<website id="bibtex" access="2018-07-15">
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
<!-- Optional: <author>...</author> -->
</website>
</bibliography>
\ No newline at end of file
DROP TABLE IF EXISTS Competition;
DROP TABLE IF EXISTS Athlete;
/* TODO add schema here */
INSERT INTO Athlete VALUES(1, 'Jesse Owens');
INSERT INTO Athlete VALUES(2, 'Tim Culver');
INSERT INTO Athlete VALUES(3, 'Sid Gascoine');
INSERT INTO Athlete VALUES(4, 'John Hooker');
INSERT INTO Athlete VALUES(5, 'Brad Duncan');
/* 100 metre race results */
INSERT INTO Competition VALUES(1, 1, 10.23, 0); /* Jesse Owens */
INSERT INTO Competition VALUES(2, 2, 11.55, 0); /* Tim Culver */
INSERT INTO Competition VALUES(3, 3, 11.94, 0); /* Sid Gascoine */
INSERT INTO Competition VALUES(4, 4, 10.02, 0); /* John Hooker */
INSERT INTO Competition VALUES(5, 5, 10.84, 0); /* Brad Duncan */
INSERT INTO Competition VALUES(6, 2, 10.02, 0); /* Tim Culver */
INSERT INTO Competition VALUES(7, 3, 10.49, 0); /* Sid Gascoine */
INSERT INTO Competition VALUES(8, 2, 9.35, 1); /* Tim Culver */
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" />
<?xmlTest points = "1"
expectedToBeValid = "true" ?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers/>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="one">
<name>Publisher 1</name>
<city>City 1</city>
</publisher>
</publishers>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="one">
<name>Publisher 1</name>
<city>City 1</city>
</publisher>
<publisher id="two">
<name>Publisher 1</name>
<city>City 2</city>
</publisher>
<publisher id="three">
<name>Publisher 2</name>
<city>City 1</city>
</publisher>
</publishers>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="one">
<name>Publisher 1</name>
<city>City 1</city>
</publisher>
<publisher id="one"> <!-- Duplicate @id value »one« -->
<name>Publisher 2</name>
<city>City 2</city>
</publisher>
</publishers>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0230_valid_multiplePublisher.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="one">
<name>Publisher 1</name>
<city>City 1</city>
</publisher>
<publisher id="two">
<!-- Error: duplicate both <name> and <city> -->
<name>Publisher 1</name>
<city>City 1</city>
</publisher>
</publishers>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0230_valid_multiplePublisher.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<!-- Wrong level: Only <publishers> allowed here -->
<publisher id="unknown">Nobody</publisher>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0230_valid_multiplePublisher.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
<publisher id="addWesley">
<name>Addison-Wesley</name>
<city>Reading, Massachusetts / USA</city>
</publisher>
</publishers>
<book id="ab92" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
</book>
<book id="ab94" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
</book>
<book id="ab95" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
<author>Kim C. Border</author>
</book>
<book id="goossens93" publisher="addWesley" year="1993">
<title>The LaTeX Companion</title>
<author>Michel Goossens</author>
<author>Frank Mittelbach</author>
<author>Alexander Samarin</author>
</book>
<book id="ab96" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
<editor>Kim C. Border</editor>
</book>
<book id="ab97" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
<author>Kim C. Border</author>
</book>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="ab94" publisher="springer" year="1994">
<!-- Error: Missing <title> -->
<author>Charalambos D. Aliprantis</author>
<author>Kim C. Border</author>
</book>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0300_valid_books.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="ab94" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<!-- Neither <author> nor <editor> -->
</book>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0300_valid_books.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<website id="bibtex" access="2018-07-15">
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
</website>
<website id="bibtex2" access="2018-07-15">
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
<author>Unknown</author>
</website>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<website id="bibtex" access="15.7.2018"> <!-- Error: Wrong date format -->
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
</website>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0400_valid_websites.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<website id="bibtex"> <!-- Error: missing access date -->
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
</website>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0400_valid_websites.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<website id="bibtex" access="2018-07-15">
<!-- Error: Missing <uri> -->
<title>BiBTeX - Wikipedia</title>
</website>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0400_valid_websites.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<website id="bibtex" access="2018-07-15">
<!-- Error: Invalid URI -->
<uri>Jodel dodel düüh</uri>
<title>BiBTeX - Wikipedia</title>
</website>
</bibliography>
<?xmlTest points = "2"
expectedToBeValid = "false"
preconditionValid = "0400_valid_websites.xml"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="ab92" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
</book>
<book id="ab94" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
</book>
<website id="bibtex" access="2018-07-15">
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
</website>
<book id="ab95" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
<author>Kim C. Border</author>
</book>
<book id="ab96" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
<editor>Kim C. Border</editor>
</book>
<book id="ab97" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
<author>Kim C. Border</author>
</book>
<website id="bibtex2" access="2018-07-15">
<uri>https://en.wikipedia.org/wiki/BibTeX</uri>
<title>BiBTeX - Wikipedia</title>
<author>Unknown</author>
</website>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "true"
?>
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="ab92" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
</book>
<!-- Error: Duplicate @id value -->
<book id="ab92" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<editor>Charalambos D. Aliprantis</editor>
</book>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "false"
preconditionValid = "0500_valid_booksWebsites.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="ab92" publisher="springer" year="nineteenhundred"> <!-- Error: @year not an integer value -->
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
</book>
</bibliography>
<?xmlTest points = "1"
expectedToBeValid = "false"
preconditionValid = "0500_valid_booksWebsites.xml"
?>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<bibliography xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../Schema/bib.xsd" >
<publishers>
<publisher id="springer">
<name>Springer</name>
<city>Berlin / Germany</city>
</publisher>
</publishers>
<book id="bibtex" publisher="springer" year="1994">
<title>Infinite Dimensional Analysis</title>
<author>Charalambos D. Aliprantis</author>
</book>
<!-- Error: Duplicate @id value -->