Kilden er diverse resultatlister, og datasettet er satt sammen for hånd
Resultatene fra sprintøvelsene (100m, 200m, 400m) fra de siste
sommerolympiadene (Barcelona til London) er lagret
som en XML-fil:
.
Den komplette adressen er:
https://borres.hiof.no/wep/data/olymp/all_results.xml
De olympiske sprintdataene slik som de er organisert ovenfor kan valideres
med følgende DTD-fil:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT IOC (OlympicGame+)>
<!ELEMENT OlympicGame (event+)>
<!ATTLIST OlympicGame
place CDATA #REQUIRED
year CDATA #REQUIRED
>
<!ELEMENT athlet (name, nation, result)>
<!ELEMENT event (athlet+)>
<!ATTLIST event
dist (100m | 200m | 400m) #REQUIRED
>
<!ELEMENT name (#PCDATA)>
<!ELEMENT nation (#PCDATA)>
<!ELEMENT result (#PCDATA)>
eller følgende Schema-fil:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="IOC">
<xs:complexType>
<xs:sequence>
<xs:element ref="OlympicGame" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="OlympicGame">
<xs:complexType>
<xs:sequence>
<xs:element ref="event" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="place" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="Athens"/>
<xs:enumeration value="Atlanta"/>
<xs:enumeration value="Barcelona"/>
<xs:enumeration value="Sidney"/>
<xs:enumeration value="Beijing"/>
<xs:enumeration value="London"/>
<xs:enumeration value="Rio"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="year" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="1992"/>
<xs:enumeration value="1996"/>
<xs:enumeration value="2000"/>
<xs:enumeration value="2004"/>
<xs:enumeration value="2008"/>
<xs:enumeration value="2012"/>
<xs:enumeration value="2016"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="athlet">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
<xs:element ref="nation"/>
<xs:element ref="result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="event">
<xs:complexType>
<xs:sequence>
<xs:element ref="athlet" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="dist" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="100m"/>
<xs:enumeration value="200m"/>
<xs:enumeration value="400m"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="name" type="xs:string"/>
<xs:element name="nation" type="xs:string"/>
<xs:element name="result" type="xs:string"/>
</xs:schema>
For illustrasjonenes skyld brukes også følgende bilder:
Reorganisert
Det finnes også en reorganisert versjon, slik:
.
Den komplette adressen er:
https://borres.hiof.no/wep/data/olymp/reorg_results.xml
som kan valideres
med følgende DTD-fil:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ELEMENT IOC (event+)>
<!ELEMENT athlet (name, nation, result)>
<!ELEMENT event (athlet+)>
<!ATTLIST event
dist (100m | 200m | 400m) #REQUIRED
place (Atlanta | Barcelona | Sidney | Athens | Beijing | London | Rio) #REQUIRED
year (1992 | 1996 | 2000 | 2004 | 2008 | 2012 | 2016) #REQUIRED
>
<!ELEMENT name (#PCDATA)>
<!ELEMENT nation (#PCDATA)>
<!ELEMENT result (#PCDATA)>
eller følgende Schema-fil:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="IOC">
<xs:complexType>
<xs:sequence>
<xs:element ref="event" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="name" type="xs:string"/>
<xs:element name="event">
<xs:complexType>
<xs:sequence>
<xs:element ref="athlet" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="dist" type="xs:string" use="required"/>
<xs:attribute name="place" type="xs:string" use="required"/>
<xs:attribute name="year" type="xs:short" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="athlet">
<xs:complexType>
<xs:sequence>
<xs:element ref="name"/>
<xs:element ref="nation"/>
<xs:element ref="result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="nation" type="xs:string"/>
<xs:element name="result" type="xs:decimal"/>
</xs:schema>