Community:NDR/get

From NSDLWiki

Jump to: navigation, search

Contents

[hide]

get

Returns a profile of the object with the requested handle.


Request URL

http://ndr.nsdl.org/api/get/[handle]/[datastreamName]
where [handle] and [datastreamName] are defined in the Arguments section.
May be an HTTP GET or POST request.


Arguments

Parameters on Request URL:

  • [handle] (required) - the externally resolvable identifier of an NDR object.
  • [datastreamName] (optional) - the name of the datastream to get from the NDR object.


Response Example

When a datastreamName is specified, the response either forwards to an external URL, or returns the contents of the datastream.


The following is an example response when a datastreamName is not specified.

<NSDLDataRepository 
    schemaVersion="1.00.000" 
    xmlns="http://ns.nsdl.org/ndr/response_v1.00/" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://ns.nsdl.org/ndr/response_v1.00/ http://ns.nsdl.org/schemas/ndr/response_v1.00.xsd">
  <responseTime>2007-01-09T17:28:21Z</responseTime>
  <requestURL>http://repository.nsdl.org/get/2200/20061002140747404T</requestURL>
  <handle>2200/20061002140747404T</handle>
  <NDRObject 
      xmlns:fedora-model="info:fedora/fedora-system:def/model#" 
      xmlns:fedora-view="info:fedora/fedora-system:def/view#" 
      xmlns:nsdl="http://ns.nsdl.org/api/relationships#">
    <properties>
      <fedora-view:createdDate>2006-10-02T18:07:47.604Z</fedora-view:createdDate>
      <fedora-view:lastModifiedDate>2006-10-11T16:34:46.698Z</fedora-view:lastModifiedDate>
      <fedora-model:state>Active</fedora-model:state>
      <nsdl:objectType>Metadata</nsdl:objectType>
      <nsdl:uniqueID>oai:www.ilumina-dlib.org:1266-nsdl_dc</nsdl:uniqueID>
      <nsdl:itemId>oai:nsdl.org:2200-20061002140747404T</nsdl:itemId>
      <nsdl:state>Active</nsdl:state>
      <nsdl:hasHandle>2200/20061002140747404T</nsdl:hasHandle>
    </properties>
    <data>
      <format ID="format_native_nsdl_dc_v1.02" MIMETYPE="application/xml" SIZE="2132" type="nsdl_dc">http://ndr.nsdl.org/api/get/2200/20061002140747404T/format_native_nsdl_dc_v1.02</format>
      <format ID="format_native_nsdl_dc_v1.02_info" MIMETYPE="application/xml" SIZE="970" type="nsdl_dc">http://ndr.nsdl.org/api/get/2200/20061002140747404T/format_native_nsdl_dc_v1.02_info</format>
      <DC ID="DC" MIMETYPE="text/xml" SIZE="424">http://ndr.nsdl.org/api/get/2200/20061002140747404T/DC</DC>
      <format ID="format_nsdl_dc_info" MIMETYPE="application/xml" SIZE="970" type="nsdl_dc">http://ndr.nsdl.org/api/get/2200/20061002140747404T/format_nsdl_dc_info</format>
      <format ID="format_nsdl_dc" MIMETYPE="application/xml" SIZE="2183" type="nsdl_dc">http://ndr.nsdl.org/api/get/2200/20061002140747404T/format_nsdl_dc</format>
    </data>
    <relationships>
      <nsdl:metadataFor>2200/20061002223657699T</nsdl:metadataFor>
      <nsdl:metadataProvidedBy>2200/20061002124738843T</nsdl:metadataProvidedBy>
      <nsdl:metadataFor>2200/20061002140746960T</nsdl:metadataFor>
    </relationships>
  </NDRObject>
</NSDLDataRepository>


API Links:

Personal tools