source: FederatedSearch/Scan-Resource-Info.xsd @ 4487

Last change on this file since 4487 was 2453, checked in by oschonef, 11 years ago
  • use CLARIN-FCS instead of CLARIN FCS
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3    xmlns:ri="http://clarin.eu/fcs/1.0/resource-info" elementFormDefault="qualified"
4    xmlns="http://www.w3.org/1999/xhtml"
5    targetNamespace="http://clarin.eu/fcs/1.0/resource-info" xml:lang="en">
6
7    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
8
9    <xs:element name="ResourceInfo">
10        <xs:annotation>
11            <xs:documentation>
12                <p>
13                    A CLARIN-FCS extension describing a corpus to the SRU protocol to be put
14                    inside a <code>&lt;extraTermData&gt;</code> element of a <em>scan</em>
15                    operation result. This information is intended to be used by CLARIN-FCS
16                    aggregators.
17                </p>
18                <p>
19                    A CLARIN-FCS endpoint should make this information only available if
20                    explicitly asked by the client by using the "x-cmd-resource-info" extra
21                    request parameter is set to "true".
22                </p>
23            </xs:documentation>
24        </xs:annotation>
25        <xs:complexType>
26            <xs:sequence>
27                <xs:element name="Title" type="ri:i18nString" maxOccurs="unbounded">
28                    <xs:annotation>
29                        <xs:documentation>
30                            <p>
31                                A human readable title for the corpus. An English version is
32                                mandatory.
33                            </p>
34                        </xs:documentation>
35                    </xs:annotation>
36                </xs:element>
37                <xs:element name="Description" type="ri:i18nString" minOccurs="0" maxOccurs="unbounded">
38                    <xs:annotation>
39                        <xs:documentation>
40                            <p>
41                                An optional human-readable description of the corpus. Is should
42                                be at most one sentence. If supplied, an English version is
43                                mandatory.
44                            </p>
45                        </xs:documentation>
46                    </xs:annotation>
47                </xs:element>
48                <xs:element name="LandingPageURI" type="xs:anyURI" minOccurs="0">
49                    <xs:annotation>
50                        <xs:documentation>
51                            <p>
52                                A link to a website for this resource, e.g. a landing page for a corpus.
53                            </p>
54                        </xs:documentation>
55                    </xs:annotation>
56                </xs:element>
57                <xs:element name="Languages">
58                    <xs:annotation>
59                        <xs:documentation>
60                            <p>
61                                The (relevant) languages available within the resource.
62                            </p>
63                        </xs:documentation>
64                    </xs:annotation>
65                    <xs:complexType>
66                        <xs:sequence>
67                            <xs:element name="Language" maxOccurs="unbounded">
68                                <xs:annotation>
69                                    <xs:documentation>
70                                        <p>
71                                            A ISO 639-3 three letter language code. This
72                                            element should be repeated for all languages
73                                            (relevant) available within the resource.
74                                        </p>
75                                    </xs:documentation>
76                                </xs:annotation>
77                                <xs:simpleType>
78                                    <xs:restriction base="xs:string">
79                                        <xs:pattern value="[a-zA-Z]{3}"/>
80                                    </xs:restriction>
81                                </xs:simpleType>
82                            </xs:element>
83                        </xs:sequence>
84                    </xs:complexType>
85                </xs:element>
86            </xs:sequence>
87            <xs:attribute name="hasSubResources" type="xs:boolean" use="optional" default="false">
88                <xs:annotation>
89                    <xs:documentation>
90                        <p>
91                            A flag denoting that this resource contains one or more
92                            sub-collections. An CLARIN-FCS aggregator may perform
93                            a recursive <em>scan</em> on this resource
94                            to find out further details about the sub-collections.
95                        </p>
96                    </xs:documentation>
97                </xs:annotation>
98            </xs:attribute>
99        </xs:complexType>
100    </xs:element>
101
102    <xs:complexType name="i18nString">
103        <xs:simpleContent>
104            <xs:extension base="xs:string">
105                <xs:attribute ref="xml:lang" use="required" />
106            </xs:extension>
107        </xs:simpleContent>
108    </xs:complexType>
109</xs:schema>
Note: See TracBrowser for help on using the repository browser.