TNS Internal:CollectionAPI/AtomPub/BrandImageFeedWalkthrough

From NSDLWiki

Jump to: navigation, search
<?xml version="1.0" encoding='utf-8'?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <id>http://ndr.nsdl.org/collections/NSDL_BRANDS</id>
   <updated>2009-10-02T05:09:42.015Z</updated>
   <author>
       <name>NSDL</name>
   </author>
   <title>NSDL Brand Images</title>
   <link rel="self"
       href="http://ndrtest.nsdl.org/api/get/2200/test.20091014135416752T/content" />
   <link rel="related" type="application/atom+xml;type=entry" title="collection"
       href="http://ndrtest.nsdl.org/api/get/2200/test.20091014203202437T/content" />

Yes, this still has links to itself and the collection it belongs to


   <entry>
       <id>http://nsdl.org/collections/2200/123</id>
       <title>1007936.gif</title>

Just used the file name as the title


       <updated>2009-07-13T16:56:52Z</updated>
       <content type="image/gif" src="1007936.gif" />

The binary content as the entry content


       <summary>
           MSP2: Math and Science Pathways 
       </summary>

Someone used an intelligent summary here


       <category scheme="http://ns.nsdl.org/collections/type"
           term="media" />        
       <link rel="edit" type="application/atom+xml;type=entry" href="http://example.org/XXX" />
       <link rel="edit-media" type="image/gif"
           href="1007936.gif" />        
       <link rel="via" type="application/atom+xml;type=feed" 
           href="http://ndrtest.nsdl.org/api/get/2200/test.20091014203202437T/content" />        
       <link rel="enclosure" type="image/gif" title="content"
           href="1007936.gif" />

Note that there is NO rel="alternate" link here, since this is not a cataloged record, it's just raw media. The primary raw media is still duplicated as an enclosure. What would additional enclosures be used for here? Nothing? Other formats (png, jpeg, tiff)?


   </entry>    
   <entry>
       <id>http://nsdl.org/collections/2200/456</id>
       <title>928276.jpg</title>
       <updated>2009-03-16T21:41:56Z</updated>        
       <content type="image/jpeg" src="928276.jpg" />
       <summary>
           TeachEngineering Digital Collection
       </summary>
       <category scheme="http://ns.nsdl.org/collections/type"
           term="media" />
       <link rel="edit" type="application/atom+xml;type=entry" href="http://example.org/XXX" />
       <link rel="edit-media" type="image/jpeg"
           href="928276.jpg" />                
       <link rel="via" type="application/atom+xml;type=feed" 
           href="http://ndrtest.nsdl.org/api/get/2200/test.20091014203202437T/content" />
       <link rel="enclosure" type="application/xml" title="content"
           href="928276.jpg" />
   </entry>    
   <entry>     
       <id>http://nsdl.org/collections/2200/789</id>
       <title>nsdl.nsdl.gif</title>
       <updated>2005-06-04T01:00:56Z</updated>
       <content type="image/gif" src="nsdl.nsdl.gif" />
       <summary>
           nsdl.nsdl.gif (image/gif 572 bytes)
       </summary>

Just file metadata as summary if nothing else is available.


       <category scheme="http://ns.nsdl.org/collections/type"
           term="media" />
       <link rel="edit" type="application/atom+xml;type=entry" href="http://example.org/XXX" />
       <link rel="edit-media" type="image/gif"
           href="nsdl.nsdl.gif" />
       <link rel="via" type="application/atom+xml;type=feed"
           href="http://ndrtest.nsdl.org/api/get/2200/test.20091014203202437T/content" />
       <link rel="enclosure" type="image/gif" title="content"
           href="nsdl.nsdl.gif" />
   </entry> 
</feed>
Personal tools