Skip to content

Instantly share code, notes, and snippets.

@mredar
Created October 9, 2013 16:34
Show Gist options
  • Save mredar/6904128 to your computer and use it in GitHub Desktop.
Save mredar/6904128 to your computer and use it in GitHub Desktop.
Resourcelist sample v0.0. For harvesting of metadata and associated asset urls into the UCLDC solr instance. This is a bare minimum.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:rs="http://www.openarchives.org/rs/terms/">
<rs:ln rel="resourcesync" href="http://example.com/capabilitylist.xml"/>
<rs:md capability="resourcelist" modified="2013-01-03T09:00:00Z"/>
<url>
<!-- this could point directly to the asset if "canonical" used as
well. This will allow for a richer end user experience as we'll be
able to link directly to assets and embed them. -->
<loc>http://example.com/bitstream1.mp4</loc>
<lastmod>2013-01-02T17:00:00Z</lastmod>
<!-- pointer to metadata source -->
<rs:ln rel="describedBy" href="http://example.com/metadata-resource"/>
<!-- optional: harvester will get collection data from the
collection registry. This will provide a check for associated
resources -->
<rs:ln rel="collection" href="http://example.com/collection1"/>
<!-- Would like videos and images to have at least one alternate
pointing to a thumbnail.
-->
<rs:ln rel="alternate" href="http://example.com/bitstream1-thumb.jpg"
modified="2013-01-03T18:00:00Z"
type="image/jpeg"/>
<rs:ln rel="alternate" href="http://example.com/bitstream1-big.jpg"
modified="2013-01-03T18:00:00Z"
type="image/jpeg"/>
<!-- this points to local home for the object -->
<rs:ln rel="canonical" href="http://example.com/bitstream1"
modified="2013-01-03T18:00:00Z"
type="text/html"/>
<rs:md hash="md5:1e0d5cb8ef6ba40c99b14c0237be735e"
length="104599"
type="video/mp4"/>
</url>
<url>
<loc>http://example.com/metadata-resource</loc>
<lastmod>2013-01-02T17:00:00Z</lastmod>
<rs:ln rel="describes" href="http://example.com/bitstream1"/>
<!-- would like dc at a minimum -->
<rs:ln rel="describedBy" href="http://purl.org/dc/terms/"/>
<rs:ln rel="collection" href="http://example.com/collection1"/>
<rs:md hash="md5:1584abdf8ebdc9802ac0c6a7402c03b6"
length="8876"
type="application/xml"/>
</url>
</urlset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment