Ignore:
Timestamp:
03/12/14 17:08:50 (10 years ago)
Author:
Oliver Schonefeld
Message:
  • 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
Location:
FederatedSearch/examples
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • FederatedSearch/examples/Endpoint-Description-Complex.xml

    r4503 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <EndpointDescription xmlns="http://clarin.eu/fcs/1.0/endpoint-description"
     2<EndpointDescription xmlns="http://clarin.eu/fcs/endpoint-description"
    33    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4     xsi:schemaLocation="http://clarin.eu/fcs/1.0/endpoint-description ../schema/Endpoint-Description.xsd">
    5     <Profile>basic</Profile>
     4    xsi:schemaLocation="http://clarin.eu/fcs/endpoint-description ../schema/Endpoint-Description.xsd"
     5    version="1">
     6    <Capabilities>
     7        <Capability>http://clarin.eu/fcs/capability/basic-search</Capability>
     8    </Capabilities>
    69    <SupportedDataViews>
    7         <SupportedDataView>application/x-clarin-fcs-hits+xml</SupportedDataView>
    8         <SupportedDataView>application/x-cmdi+xml</SupportedDataView>
     10        <SupportedDataView id="dv1">application/x-clarin-fcs-hits+xml</SupportedDataView>
     11        <SupportedDataView id="dv2">application/x-cmdi+xml</SupportedDataView>
    912    </SupportedDataViews>
    10     <Collections>
    11         <Collection pid="hdl:10932/goethe">
     13    <Resources>
     14        <Resource pid="hdl:10932/goethe">
    1215            <Title xml:lang="de">Goethe Corpus</Title>
    1316            <Title xml:lang="en">Goethe Korpus</Title>
     
    1821                <Language>deu</Language>
    1922            </Languages>
    20         </Collection>
    21         <Collection pid="hdl:10932/mannheimer_morgen">
     23        </Resource>
     24        <Resource pid="hdl:10932/mannheimer_morgen">
    2225            <Title xml:lang="de">Mannheimer Morgen newspaper Corpus</Title>
    2326            <Title xml:lang="en">Zeitungskorpus des Mannheimer Morgen</Title>
     
    2629                <Language>deu</Language>
    2730            </Languages>
    28             <Collections>
    29                 <Collection pid="hdl:10932/mannheimer_morgen_before_1990">
     31            <Resources>
     32                <Resource pid="hdl:10932/mannheimer_morgen_before_1990">
    3033                    <Title xml:lang="de">Mannheimer Morgen newspaper Corpus (before 1990)</Title>
    3134                    <Title xml:lang="en">Zeitungskorpus des Mannheimer Morgen (vor 1990)</Title>
     
    3437                        <Language>deu</Language>
    3538                    </Languages>
    36                 </Collection>
    37                 <Collection pid="hdl:10932/mannheimer_morgen_after_1990">
     39                </Resource>
     40                <Resource pid="hdl:10932/mannheimer_morgen_after_1990">
    3841                    <Title xml:lang="de">Mannheimer Morgen newspaper Corpus (after 1990)</Title>
    3942                    <Title xml:lang="en">Zeitungskorpus des Mannheimer Morgen (nach 1990)</Title>
     
    4245                        <Language>deu</Language>
    4346                    </Languages>
    44                 </Collection>
    45             </Collections>
    46         </Collection>
    47     </Collections>
     47                </Resource>
     48            </Resources>
     49        </Resource>
     50    </Resources>
    4851</EndpointDescription>
  • FederatedSearch/examples/Endpoint-Description-Simple.xml

    r4395 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <EndpointDescription xmlns="http://clarin.eu/fcs/1.0/endpoint-description"
     2<EndpointDescription xmlns="http://clarin.eu/fcs/endpoint-description"
    33    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4     xsi:schemaLocation="http://clarin.eu/fcs/1.0/endpoint-description ../schema/Endpoint-Description.xsd">
    5     <Profile>basic</Profile>
     4    xsi:schemaLocation="http://clarin.eu/fcs/endpoint-description ../schema/Endpoint-Description.xsd"
     5    version="1">
     6    <Capabilities>
     7        <Capability>http://clarin.eu/fcs/capability/basic-search</Capability>
     8        <Capability>http://clarin.eu/fcs/capability/a-b</Capability>
     9    </Capabilities>
    610    <SupportedDataViews>
    7         <SupportedDataView>application/x-clarin-fcs-hits+xml</SupportedDataView>
     11        <SupportedDataView id="dv1">application/x-clarin-fcs-hits+xml</SupportedDataView>
    812    </SupportedDataViews>
    9     <Collections>
    10         <Collection pid="hdl:10932/goethe">
     13    <Resources>
     14        <Resource pid="hdl:10932/goethe">
    1115            <Title xml:lang="de">Goethe Corpus</Title>
    1216            <Title xml:lang="en">Goethe Korpus</Title>
     
    1721                <Language>deu</Language>
    1822            </Languages>
    19         </Collection>
    20     </Collections>
     23        </Resource>
     24    </Resources>
    2125</EndpointDescription>
  • FederatedSearch/examples/Example-Resource-with-Custom-Extension.xml

    r4496 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<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"
     3    xsi:schemaLocation="http://clarin.eu/fcs/resource ../schema/Resource.xsd
     4                        http://clarin.eu/fcs/dataview/hits ../schema/DataView-Hits.xsd"
     5    xmlns="http://clarin.eu/fcs/resource"
    66    pid="hdl:4711/00-0000-0000-0000-0000-0">
    77    <DataView type="application/x-clarin-fcs-hits+xml"
     
    1111                  Indention and formatting should be avoided.
    1212        -->
    13         <hits:Result xmlns:hits="http://clarin.eu/fcs/1.0/hits">
     13        <hits:Result xmlns:hits="http://clarin.eu/fcs/dataview/hits">
    1414            Und so will ich denn hier auch noch anfÃŒhren, daß ich in diesem
    1515            Elend das neckische GelÃŒbde getan: man solle, wenn ich uns
  • FederatedSearch/examples/Example-Resource.xml

    r4496 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<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"
     3    xsi:schemaLocation="http://clarin.eu/fcs/resource ../schema/Resource.xsd
     4                        http://clarin.eu/fcs/dataview/hits ../schema/DataView-Hits.xsd"
     5    xmlns="http://clarin.eu/fcs/resource"
    66    pid="hdl:4711/00-0000-0000-0000-0000-0">
    77    <DataView type="application/x-clarin-fcs-hits+xml"
     
    1111                  Indention and formatting should be avoided.
    1212        -->
    13         <hits:Result xmlns:hits="http://clarin.eu/fcs/1.0/hits">
     13        <hits:Result xmlns:hits="http://clarin.eu/fcs/dataview/hits">
    1414            Und so will ich denn hier auch noch anfÃŒhren, daß ich in diesem
    1515            Elend das neckische GelÃŒbde getan: man solle, wenn ich uns
  • FederatedSearch/examples/Resource-Hit-Multi-Hit.xml

    r4395 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <Result xmlns="http://clarin.eu/fcs/1.0/hits"
     2<Result xmlns="http://clarin.eu/fcs/dataview/hits"
    33    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4     xsi:schemaLocation="http://clarin.eu/fcs/1.0/hits ../schema/Resource-Hits.xsd">
     4    xsi:schemaLocation="http://clarin.eu/fcs/dataview/hits ../schema/DataView-Hits.xsd">
    55    The quick brown <Hit>fox</Hit> jumps over the lazy <Hit>dog</Hit>.
    66</Result>
  • FederatedSearch/examples/Resource-Hit-Single.xml

    r4395 r4677  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <Result xmlns="http://clarin.eu/fcs/1.0/hits"
     2<Result xmlns="http://clarin.eu/fcs/dataview/hits"
    33    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4     xsi:schemaLocation="http://clarin.eu/fcs/1.0/hits ../schema/Resource-Hits.xsd">
     4    xsi:schemaLocation="http://clarin.eu/fcs/dataview/hits ../schema/DataView-Hits.xsd">
    55    The quick brown <Hit>fox</Hit> jumps over the lazy dog.
    66</Result>
Note: See TracChangeset for help on using the changeset viewer.