<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1" elementFormDefault="unqualified" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:sawsdl="http://www.w3.org/ns/sawsdl">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/XML/1998/namespace"/>
  <xs:include schemaLocation="../documentation/schema.xsd"/>
  <xs:include schemaLocation="../application-profile/schema.xsd"/>
  <xs:include schemaLocation="../data-service/schema.xsd"/>
  <xs:include schemaLocation="../checksum/schema.xsd"/>
  <xs:include schemaLocation="../media-type/schema.xsd"/>
  <xs:include schemaLocation="../file/schema.xsd"/>
  <xs:include schemaLocation="../format/schema.xsd"/>
  <xs:complexType name="distribution">
    <xs:choice>
      <xs:element name="distribution_-_data_service">
        <xs:complexType sawsdl:modelReference="https://model.ccmm.cz/vocabulary/ccmm#Distribution-DataService">
          <xs:annotation>
            <xs:documentation xml:lang="en">
              Distribution - data service - Physical embodiment of the dataset distribution as a particular data service. 
            </xs:documentation>
          </xs:annotation>
          <xs:sequence>
            <xs:element minOccurs="0" name="iri" type="xs:anyURI"/>
            <xs:element name="title">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  title
                </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:string">
                    <xs:attribute ref="xml:lang" use="required"/>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="description">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  description - A free-text account of the Distribution.
                </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:string">
                    <xs:attribute ref="xml:lang" use="required"/>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="documentation" type="documentation" sawsdl:modelReference="http://xmlns.com/foaf/0.1/page">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  has documentation - A page or document about this Distribution.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="specification" type="application_profile" sawsdl:modelReference="http://purl.org/dc/terms/conformsTo">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  conforms to specification - An established standard to which the distribution conforms.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="access_service" type="data_service" sawsdl:modelReference="http://www.w3.org/ns/dcat#accessService">
              <xs:annotation>
                <xs:documentation xml:lang="cs">
                  služba pro přístup k datům - Umístění či přístupový bod zpřístupňující distribuci datové sady.
                </xs:documentation>
                <xs:documentation xml:lang="da">
                  dataadgangstjeneste - Et websted eller endpoint der giver adgang til en repræsentation af datasættet.
                </xs:documentation>
                <xs:documentation xml:lang="en">
                  has access service - A site or end-point that gives access to the distribution of the dataset.
                </xs:documentation>
                <xs:documentation xml:lang="es">
                  servicio de acceso de datos - Un sitio o end-point que da acceso a la distribución de un conjunto de datos.
                </xs:documentation>
                <xs:documentation xml:lang="it">
                  servizio di accesso ai dati - Un sito o end-point che dà accesso alla distribuzione del set di dati.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="distribution_-_downloadable_file">
        <xs:complexType sawsdl:modelReference="https://model.ccmm.cz/vocabulary/ccmm#Distribution-DownloadableFile">
          <xs:annotation>
            <xs:documentation xml:lang="en">
              Distribution - downloadable file - Physical embodiment of the dataset in a particular format. 
            </xs:documentation>
          </xs:annotation>
          <xs:sequence>
            <xs:element minOccurs="0" name="iri" type="xs:anyURI"/>
            <xs:element name="title">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  title
                </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:string">
                    <xs:attribute ref="xml:lang" use="required"/>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
            <xs:element name="byte_size" type="xs:integer" sawsdl:modelReference="http://www.w3.org/ns/dcat#byteSize">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  byte size - The size of a Distribution in bytes. 
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="checksum" type="checksum" sawsdl:modelReference="http://spdx.org/rdf/terms#checksum">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  has checksum - A mechanism that can be used to verify that the contents of a distribution have not changed.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="conforms_to_schema" type="application_profile" sawsdl:modelReference="http://purl.org/dc/terms/conformsTo">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  conforms to schema - An established standard to which the distribution conforms.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" name="media_type" type="media_type" sawsdl:modelReference="http://www.w3.org/ns/dcat#mediaType">
              <xs:annotation>
                <xs:documentation xml:lang="ar">
                  نوع الميديا - يجب استخدام هذه الخاصية إذا كان نوع الملف معرف ضمن IANA
                </xs:documentation>
                <xs:documentation xml:lang="cs">
                  typ média - Typ média distribuce definovaný v IANA.
                </xs:documentation>
                <xs:documentation xml:lang="da">
                  medietype - Medietypen for distributionen som den er defineret af IANA.
                </xs:documentation>
                <xs:documentation xml:lang="el">
                  τύπος μέσου - Η ιδιότητα αυτή ΘΑ ΠΡΕΠΕΙ να χρησιμοποιείται όταν ο τύπος μέσου μίας διανομής είναι ορισμένος στο IANA, αλλιώς η ιδιότητα dcterms:format ΔΥΝΑΤΑΙ να χρησιμοποιηθεί με διαφορετικές τιμές.
                </xs:documentation>
                <xs:documentation xml:lang="en">
                  media type - The media type of the distribution as defined by IANA
                </xs:documentation>
                <xs:documentation xml:lang="es">
                  tipo de media - Esta propiedad debe ser usada cuando está definido el tipo de media de la distribución en IANA, de otra manera dcterms:format puede ser utilizado con diferentes valores
                </xs:documentation>
                <xs:documentation xml:lang="fr">
                  type de média - Cette propriété doit être utilisée quand c'est définit le type de média de la distribution en IANA, sinon dcterms:format DOIT être utilisé avec différentes valeurs.
                </xs:documentation>
                <xs:documentation xml:lang="it">
                  tipo di media - Il tipo di media della distribuzione come definito da IANA
                </xs:documentation>
                <xs:documentation xml:lang="ja">
                  メディア・タイプ - このプロパティーは、配信のメディア・タイプがIANAで定義されているときに使用すべきで（SHOULD）、そうでない場合には、dcterms:formatを様々な値と共に使用できます（MAY）。
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element maxOccurs="unbounded" name="access_url" type="file" sawsdl:modelReference="http://www.w3.org/ns/dcat#accessURL">
              <xs:annotation>
                <xs:documentation xml:lang="ar">
                  رابط وصول - أي رابط يتيح الوصول إلى البيانات. إذا كان الرابط هو ربط مباشر لملف يمكن تحميله استخدم الخاصية downloadURL
                </xs:documentation>
                <xs:documentation xml:lang="cs">
                  přístupová adresa - URL zdroje, přes které je přístupná distribuce datové sady. Příkladem může být vstupní stránka, RSS kanál či SPARQL endpoint. Použijte ve všech případech kromě URL souboru ke stažení, pro které je lepší použít dcat:downloadURL.
                </xs:documentation>
                <xs:documentation xml:lang="da">
                  adgangsadresse - En URL for en ressource som giver adgang til en repræsentation af datsættet. Fx destinationsside, feed, SPARQL-endpoint. Anvendes i alle sammenhænge undtagen til angivelse af et simpelt download link hvor anvendelse af egenskaben downloadURL foretrækkes.
                </xs:documentation>
                <xs:documentation xml:lang="el">
                  URL πρόσβασης - Μπορεί να είναι οποιουδήποτε είδους URL που δίνει πρόσβαση στη διανομή ενός συνόλου δεδομένων. Π.χ. ιστοσελίδα αρχικής πρόσβασης, μεταφόρτωση, feed URL, σημείο διάθεσης SPARQL. Να χρησιμοποιείται όταν ο κατάλογος δεν περιέχει πληροφορίες εαν πρόκειται ή όχι για μεταφορτώσιμο αρχείο.
                </xs:documentation>
                <xs:documentation xml:lang="en">
                  access URL - A URL that gives access to a Distribution of the Dataset.
                </xs:documentation>
                <xs:documentation xml:lang="es">
                  URL de acceso - Puede ser cualquier tipo de URL que de acceso a una distribución del conjunto de datos, e.g., página de destino, descarga, URL feed, punto de acceso SPARQL. Esta propriedad se debe usar cuando su catálogo de datos no tiene información sobre donde está o cuando no se puede descargar.
                </xs:documentation>
                <xs:documentation xml:lang="fr">
                  URL d'accès - Ceci peut être tout type d'URL qui donne accès à une distribution du jeu de données. Par exemple, un lien à une page HTML contenant un lien au jeu de données, un Flux RSS, un point d'accès SPARQL. Utilisez le lorsque votre catalogue ne contient pas d'information sur quoi il est ou quand ce n'est pas téléchargeable.
                </xs:documentation>
                <xs:documentation xml:lang="it">
                  indirizzo di accesso - Un URL di una risorsa che consente di accedere a una distribuzione del set di dati. Per esempio, pagina di destinazione, feed, endpoint SPARQL. Da utilizzare per tutti i casi, tranne  quando  si tratta di un semplice link per il download nel qual caso è preferito downloadURL.
                </xs:documentation>
                <xs:documentation xml:lang="ja">
                  アクセスURL - データセットの配信にアクセス権を与えるランディング・ページ、フィード、SPARQLエンドポイント、その他の種類の資源。
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="download_url" type="file" sawsdl:modelReference="http://www.w3.org/ns/dcat#downloadURL">
              <xs:annotation>
                <xs:documentation xml:lang="ar">
                  رابط تحميل - رابط مباشر لملف يمكن تحميله. نوع الملف يتم توصيفه باستخدام الخاصية dcterms:format dcat:mediaType 
                </xs:documentation>
                <xs:documentation xml:lang="cs">
                  URL souboru ke stažení - URL souboru ke stažení v daném formátu, například CSV nebo RDF soubor. Formát je popsán vlastností distribuce dcterms:format a/nebo dcat:mediaType.
                </xs:documentation>
                <xs:documentation xml:lang="da">
                  downloadURL - URL til fil der kan downloades i et bestemt format. Fx en CSV-fil eller en RDF-fil. Formatet for distributionen angives ved hjælp af egenskaberne dcterms:format og/eller dcat:mediaType.
                </xs:documentation>
                <xs:documentation xml:lang="el">
                  URL μεταφόρτωσης - Είναι ένας σύνδεσμος άμεσης μεταφόρτωσης ενός αρχείου σε μια δεδομένη μορφή. Π.χ. ένα αρχείο CSV ή RDF. Η μορφη αρχείου περιγράφεται από τις ιδιότητες dcterms:format ή/και dcat:mediaType της διανομής.
                </xs:documentation>
                <xs:documentation xml:lang="en">
                  download URL - A URL that is a direct link to a downloadable file in a given format.
                </xs:documentation>
                <xs:documentation xml:lang="es">
                  URL de descarga - La URL de un archivo descargable en el formato dato. Por ejemplo, archivo CSV o archivo RDF. El formato se describe con las propiedades de la distribución dcterms:format y/o dcat:mediaType.
                </xs:documentation>
                <xs:documentation xml:lang="fr">
                  URL de téléchargement - Ceci est un lien direct à un fichier téléchargeable en un format donnée. Exple fichier CSV ou RDF. Le format est décrit par les propriétés de distribution dcterms:format et/ou dcat:mediaType.
                </xs:documentation>
                <xs:documentation xml:lang="it">
                  URL di scarico - Questo è un link diretto al file scaricabile in un dato formato. E.g. un file CSV o un file RDF. Il formato è descritto dal dcterms:format e/o dal dcat:mediaType della distribuzione.
                </xs:documentation>
                <xs:documentation xml:lang="ja">
                  ダウンロードURL - dcat:downloadURLはdcat:accessURLの特定の形式です。しかし、DCATプロファイルが非ダウンロード・ロケーションに対してのみaccessURLを用いる場合には、より強い分離を課すことを望む可能性があるため、この含意を強化しないように、DCATは、dcat:downloadURLをdcat:accessURLのサブプロパティーであると定義しません。
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="format" type="format" sawsdl:modelReference="http://purl.org/dc/terms/format">
              <xs:annotation>
                <xs:documentation xml:lang="en">
                  has format - The file format of the distribution.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
  <xs:element name="distribution" type="distribution"/>
</xs:schema>
