source: FederatedSearch/examples/Example-Resource-with-Custom-Extension.xml @ 4496

Last change on this file since 4496 was 4496, checked in by oschonef, 10 years ago
  • fix typos
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 2.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<Resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3    xsi:schemaLocation="http://clarin.eu/fcs/1.0 ../schema/Resource.xsd
4                        http://clarin.eu/fcs/1.0/hits ../schema/DataView-HITS.xsd"
5    xmlns="http://clarin.eu/fcs/1.0"
6    pid="hdl:4711/00-0000-0000-0000-0000-0">
7    <DataView type="application/x-clarin-fcs-hits+xml"
8              ref="http://repos.example.org/corpus1/00-0000-0000-0000-0000-0#S0815">
9        <!--
10            NOTE: File formatted for brevity.
11                  Indention and formatting should be avoided.
12        -->
13        <hits:Result xmlns:hits="http://clarin.eu/fcs/1.0/hits">
14            Und so will ich denn hier auch noch anfÃŒhren, daß ich in diesem
15            Elend das neckische GelÃŒbde getan: man solle, wenn ich uns
16            erlöst und mich wieder zu Hause sÀhe, von mir niemals wieder
17            einen Klagelaut vernehmen ÃŒber den meine freiere Zimmeraussicht
18            beschrÀnkenden Nachbargiebel, den ich vielmehr jetzt recht
19            sehnlich zu erblicken wÃŒnsche; ferner wollt' ich mich ÃŒber
20            Mißbehagen und Langeweile im deutschen Theater nie wieder
21            beklagen, wo man doch immer
22            <hits:Hit>
23                Gott
24            </hits:Hit>
25            danken könne, unter Dach zu sein, was auch auf der BÃŒhne vorgehe.
26        </hits:Result>
27    </DataView>
28   
29    <!--
30        NOTE: this is purly fictional and only serves to demonstrate how
31              to add custom extensions to the result representation
32              within CLARIN-FCS.
33
34        A hypothetical Endpoint extension for navigation in a result set:
35        it basically provdes a set of hrefs, that a GUI can convert into
36        navigation buttions.   
37    -->
38    <nav:navigation xmlns:nav="http://repos.example.org/navigation">
39        <nav:curr href="http://repos.example.org/resultset/4711/4611" />
40        <nav:prev href="http://repos.example.org/resultset/4711/4610" />
41        <nav:next href="http://repos.example.org/resultset/4711/4612" />
42    </nav:navigation>
43</Resource>
Note: See TracBrowser for help on using the repository browser.