Changes between Version 26 and Version 27 of FCS-specification


Ignore:
Timestamp:
01/07/13 11:11:05 (11 years ago)
Author:
oschonef
Comment:

minor formatting

Legend:

Unmodified
Added
Removed
Modified
  • FCS-specification

    v26 v27  
    5353
    5454== Referring to an SRU endpoint from a CMDI file ==
    55 This can be done with a !ResourceProxy where:
    56  * !ResourceType = !SearchService
    57  * mimetype = application/sru+xml
     55This can be done with a !ResourceProxy with {{{ResourceType}}} set to {{{SearchService}}} and {{{mimetype}}} set to {{{application/sru+xml}}}:
    5856{{{#!xml
    5957 <ResourceProxy id="d55">
     
    252250
    253251==== Restricting the search ====
    254 In general, an endpoint is '''required''' to accept an unrestricted search and perform the search operation on all resources. An agent can ask an endpoint to restrict the search to a sub-set of the available resources. This is done by passing a comma-separated list of resource identifiers (!MdSelfLinks obtained from a scan operation) in the {{{x-cmd-context}} parameter of the !SearchRetrieve request. The list can get extensive, but an agent can use HTTP POST instead of HTTP GET, which means that the parameters would be passed in the body of the HTTP request instead of appending them to the URL. This has the consequence that the practical limit for the number of !MdSelfLinks and other arguments becomes a lot higher.
     252In general, an endpoint is '''required''' to accept an unrestricted search and perform the search operation on all resources. An agent can ask an endpoint to restrict the search to a sub-set of the available resources. This is done by passing a comma-separated list of resource identifiers (!MdSelfLinks obtained from a scan operation) in the {{{x-cmd-context}}} parameter of the !SearchRetrieve request. The list can get extensive, but an agent can use HTTP POST instead of HTTP GET, which means that the parameters would be passed in the body of the HTTP request instead of appending them to the URL. This has the consequence that the practical limit for the number of !MdSelfLinks and other arguments becomes a lot higher.
    255253
    256254For example, in order to only search for the occurrence of the string "bellen" within the CGN corpus as offered by our hypothetical endpoint (used throughout this document) we could format the !SearchRetrieve query as follows: \\
    257 {{{http://clarin_sru_endpoint?version=1.2&operation=searchRetrieve&x-cmd-context=hdl:1839/00-0000-0000-0001-53A5-2&query=bellen}}} \\
     255{{{http://endpoint.example.org?version=1.2&operation=searchRetrieve&query=bellen&x-cmd-context=hdl:1839/00-0000-0000-0001-53A5-2}}}
    258256
    259257==== Query Expansion ====