Community:NDR/countMembers

From NSDLWiki

Jump to: navigation, search

Contents

[hide]

countMembers

Counts the number of NDR objects that are members of an NDR object. For a MetadataProvider object, this is the number of Metadata objects provided.

Request URL

http://ndr.nsdl.org/api/countMembers/[handle]
where [handle] is an NDR handle for an Aggregator or MetadataProvider object.
May be an HTTP GET or POST request.

Arguments

(the handle is at the end of the requestURL)

Response Fields

  • handle – the handle for the object whose members were counted.
  • count – the number of members for the object. For an Aggregator object, this is the number of objects that have a "membersOf" relationship with the Aggregator object; for a MetadataProvider object, this is the number of metadata objects that have a "metadataProvidedBy" relationship with the MetadataProvider object. For more information, see ObjectTypes.

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<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>2005-10-26T18:42:05Z</responseTime>
<requestURL>http://repository.nsdl.org/countMembers/2200/200505051205123T</requestURL>
<resultData>
<handle>2200/200505051205123T</handle>
<count>15</count>
</resultData>
</NSDLDataRepository>

API Links:

Personal tools