TNS Internal:NDR/API/2.0/Schemata/Instances

From NSDLWiki

Jump to: navigation, search

The schema definitions are available here.

Contents

[hide]

model

agent

<?xml version="1.0" encoding="UTF-8"?>
<agent handle="2200/324534576537643653" state="active" type="user" value="bob"/>
<agent handle="2200/324534576537643653" state="active" type="host" value="expertvoices.nsdl.org"/>

aggregator

<?xml version="1.0" encoding="UTF-8"?>

<aggregator handle="2200/324534576537643653" state="active">
	<agent handle="2200/324534576537643653" state="active" type="host" value="expertvoices.nsdl.org"/>
	<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/"/>
</aggregator>

<aggregator handle="2200/324534576537643653" state="active"/>

collection

<collection handle="ndr:892" state="active" title="Middle School Portal (MSP2)">
	<children/>
	<contacts>
		<contact name="Katy Ginger" email="ginger@ucar.edu"/>
		<contact name="E. Lynette Rayle" email="elrayle@cs.cornell.edu"/>
	</contacts>
	<description>The MSP2 collection</description>
	<externalIdentifier>NDR-000-000-000-0001</externalIdentifier>
	<parents/>
	<resourceURL>http://msteacher2.org/</resourceURL>
</collection> 

metadata

<?xml version="1.0" encoding="UTF-8"?>

<metadata handle="2200/324534576537643653" state="active">
	<provider handle="2200/3459873095687"/>
	<annotations/>
	<collections/>
	<data>
		<datum format="plain" url="http://nsdl.org/api/get/2200/324534576537643653/format_plain" mimeType="text/plain" size="54364">blah</datum>
		<datum format="nsdl_dc" url="http://nsdl.org/api/get/2200/324534576537643653/format_nsdl_dc" mimeType="application/xml" size="85684"/>
	</data>
	<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/"/>
</metadata>

<metadata handle="2200/324534576537643653" state="active"/>

metadataprovider

<?xml version="1.0" encoding="UTF-8"?>

<metadataProvider handle="2200/324534576537643653" state="active">
	<agent handle="2200/43560987465978"/>
	<aggregators/>
	<collections/>
</metadataProvider>

<metadataProvider handle="2200/324534576537643653" state="active"/>

resource

<?xml version="1.0" encoding="UTF-8"?>

<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/">
	<annotations/>
	<metadata handle="2200/70968750987908" identifier="blah">
		<annotations/>
		<collections>
			<collection name="wacky stuff" handle="2200/234908234792387" agentName="dashboard" agentHandle="2200/324508798770"/>
		</collections>
		<data>
			<datum format="text/plain">green blueberries!</datum>
		</data>
	</metadata>
</resource>

<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/"/>

requests

responses

getcollection

<response>
    <collection>
        <children>
        </children>
        <contacts>
            <contact name="Katy Ginger" email="ginger@ucar.edu"/>
            <contact name="Lynette" email="elrayle@cs.cornell.edu"/>
        </contacts>
        <description>The MSP2 collection</description>
        <externalIdentifier source="NCS">NDR-000-000-000-0001</externalIdentifier>
        <parents>
        </parents>
        <resourceURL>http://msteacher2.org</resourceURL>
        <title>Middle School Portal (MSP2)</title>
    </collection>
</response>

listcollections

<response>
    <collection>
        <children>
        </children>
        <contacts>
            <contact name="Katy Ginger" email="ginger@ucar.edu"/>
            <contact name="Lynette" email="elrayle@cs.cornell.edu"/>
        </contacts>
        <description>The MSP2 collection</description>
        <externalIdentifier source="NCS">NDR-000-000-000-0001</externalIdentifier>
        <parents>
        </parents>
        <resourceURL>http://msteacher2.org</resourceURL>
        <title>Middle School Portal (MSP2)</title>
    </collection>
    <collection>
        <children>
        </children>
        <contacts>
            <contact name="Katy Ginger" email="ginger@ucar.edu"/>
            <contact name="Lynette" email="elrayle@cs.cornell.edu"/>
        </contacts>
        <description>The MSP2 collection</description>
        <externalIdentifier source="NCS">NDR-000-000-000-0001</externalIdentifier>
        <parents>
        </parents>
        <resourceURL>http://msteacher2.org</resourceURL>
        <title>Middle School Portal (MSP2)</title>
    </collection>
    <collection>
        <children>
        </children>
        <contacts>
            <contact name="Katy Ginger" email="ginger@ucar.edu"/>
            <contact name="Lynette" email="elrayle@cs.cornell.edu"/>
        </contacts>
        <description>The MSP2 collection</description>
        <externalIdentifier source="NCS">NDR-000-000-000-0001</externalIdentifier>
        <parents>
        </parents>
        <resourceURL>http://msteacher2.org</resourceURL>
        <title>Middle School Portal (MSP2)</title>
    </collection>
</response>

listresourcemetadata

<response>
	<metadata handle="2200/324534576537643653" state="active">
		<provider handle="2200/3459873095687"/>
		<annotations/>
		<collections/>
		<data>
			<datum format="plain" url="http://nsdl.org/api/get/2200/324534576537643653/format_plain" mimeType="text/plain" size="54364">blah</datum>
			<datum format="nsdl_dc" url="http://nsdl.org/api/get/2200/324534576537643653/format_nsdl_dc" mimeType="application/xml" size="85684"/>
		</data>
		<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/"/>
	</metadata>
	<metadata handle="2200/324534576537643653" state="active">
		<provider handle="2200/3459873095687"/>
		<annotations/>
		<collections/>
		<data>
			<datum format="plain" url="http://nsdl.org/api/get/2200/324534576537643653/format_plain" mimeType="text/plain" size="54364">blah</datum>
			<datum format="nsdl_dc" url="http://nsdl.org/api/get/2200/324534576537643653/format_nsdl_dc" mimeType="application/xml" size="85684"/>
		</data>
		<resource handle="2200/2349087093575" state="active" url="http://www.foo.com/"/>
	</metadata>
</response>
Personal tools