xquery version "1.0"; import module namespace zorba-rest = "http://www.zorba-xquery.com/zorba/rest-functions"; declare namespace xlink="http://www.w3.org/1999/xlink"; declare namespace mods="http://www.loc.gov/mods/v3"; declare namespace skos="http://www.w3.org/2004/02/skos/core#"; declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; let $headers :=
application/rdf+xml
let $payload := () let $response := zorba-rest:get("http://id.loc.gov/authorities/sh00000011", $payload, $headers) let $header := $response/zorba-rest:headers/*[@zorba-rest:name='X-PrefLabel']/text() let $concept := $response/zorba-rest:payload/child::*[1] return $concept