source: FederatedSearch/schema/DataView-Hits.xsd @ 4677

Last change on this file since 4677 was 4677, checked in by Oliver Schonefeld, 10 years ago
  • update Schemas:
    • remove version number from namespace URI (and sanitize them a little)
    • Endpoint Description:
      • change element names <Collection*> to <Resource*>
      • drop <Profile> element
      • add extension points for Endpoint customizations
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3    xmlns:h="http://www.w3.org/1999/xhtml"
4    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
5    xmlns:hits="http://clarin.eu/fcs/1.0/hits"
6    xml:lang="en" vc:minVersion="1.0" vc:maxVersion="1.1"
7    targetNamespace="http://clarin.eu/fcs/dataview/hits" elementFormDefault="qualified">
8
9    <xs:annotation>
10        <xs:documentation>
11            <h:p>
12                This schema defines the structure of a
13                <h:em>generic result</h:em> data view. All CLARIN-FCS endpoints
14                MUST support this data view.
15            </h:p>
16            <h:p>
17                The value <h:code>application/x-clarin-fcs-hits+xml</h:code>
18                MUST be used to indicate a <h:em>generic result</h:em> data view.
19            </h:p>
20        </xs:documentation>   
21    </xs:annotation>
22
23    <xs:element name="Result">
24        <xs:annotation>
25            <xs:documentation>
26                <h:p>
27                    A single result line with one or more marked hits.
28                    White-space is considered <h:em>non-signification</h:em>,
29                    except for delimiting tokens.
30                </h:p>
31                <h:p>
32                    CLARIN-FCS client MAY
33                    normalize white-space and strip leading and tailing
34                    white-space and collapse all white-space between
35                    tokens to a single #x20 character.
36                </h:p>
37            </xs:documentation>
38        </xs:annotation>
39        <xs:complexType mixed="true">
40            <xs:sequence>
41                <xs:element name="Hit" type="xs:string" maxOccurs="unbounded">
42                    <xs:annotation>
43                        <xs:documentation>
44                            <h:p>
45                                A hit highlight. It SHALL not be empty.
46                            </h:p>
47                            <h:p>
48                                One <h:code>Result</h:code> element MUST
49                                one <h:code>Hit</h:code> element, but MAY
50                                contain more than one.
51                            </h:p>
52                        </xs:documentation>
53                    </xs:annotation>
54                </xs:element>
55            </xs:sequence>
56        </xs:complexType>
57    </xs:element>
58</xs:schema>
Note: See TracBrowser for help on using the repository browser.