mirror of
https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
synced 2025-10-29 17:15:31 +00:00
75 lines
3.5 KiB
XML
75 lines
3.5 KiB
XML
<?xml version="1.0"?>
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
targetNamespace="https://www.koenigsberger-zeitungen.de"
|
|
xmlns="https://www.koenigsberger-zeitungen.de"
|
|
xmlns:kgpz="https://www.koenigsberger-zeitungen.de"
|
|
elementFormDefault="qualified">
|
|
|
|
<xsd:include schemaLocation="common.xsd" />
|
|
|
|
<xsd:element name="orte">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="ort" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="name" type="kgpz:NonEmptyString" minOccurs="1"
|
|
maxOccurs="unbounded" nillable="false">
|
|
<xsd:annotation>
|
|
<xsd:documentation> Pflicht: Der/die (normierte/n) Name/n des
|
|
Ortes.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
|
|
<!-- TODO: geonames URI regex -->
|
|
<xsd:element name="geonames" type="xsd:anyURI" minOccurs="0"
|
|
maxOccurs="1" nillable="false">
|
|
<xsd:annotation>
|
|
<xsd:documentation> Optional: Der Link zur Geonames-Seite des
|
|
Ortes.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
|
|
<xsd:element name="anmerkung" type="kgpz:text" minOccurs="0"
|
|
maxOccurs="unbounded">
|
|
<xsd:annotation>
|
|
<xsd:documentation> Optional: Eine Anmerkung zum Ort.
|
|
Öffentlich.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
|
|
<xsd:element name="vermerk" type="kgpz:text" minOccurs="0"
|
|
maxOccurs="unbounded">
|
|
<xsd:annotation>
|
|
<xsd:documentation> Optional: Ein Vermerk zum Ort. Intern.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
|
|
</xsd:sequence>
|
|
<xsd:attribute name="id" type="kgpz:NonEmptyString" use="required">
|
|
<xsd:annotation>
|
|
<xsd:documentation>Pflicht: Eindeutige ID des Ortes.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:attribute>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:unique name="uniqueIndexOrte">
|
|
<xsd:annotation>
|
|
<xsd:documentation>Jeder Ort hat eine eindeutige ID.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:selector xpath="kgpz:ort" />
|
|
<xsd:field xpath="@id" />
|
|
</xsd:unique>
|
|
<xsd:unique name="uniqueGeonames">
|
|
<xsd:annotation>
|
|
<xsd:documentation>Jeder Ort hat eine eindeutige Geonames-URI.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:selector xpath="kgpz:ort" />
|
|
<xsd:field xpath="kgpz:geonames" />
|
|
</xsd:unique>
|
|
</xsd:element>
|
|
|
|
</xsd:schema>
|