Nsidc.ds.osdd

From Federation of Earth Science Information Partners
(Difference between revisions)
Jump to: navigation, search
(Sample NSIDC Dataset Level OpenSearch Description Document)
(Sample NSIDC Dataset Level OpenSearch Description Document)
 
Line 12: Line 12:
 
     -->
 
     -->
 
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"  
 
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"  
                       xmlns:nsidc="http://nsidc.org/-/opensearch/extensions/"
+
                       xmlns:time="http://a9.com/-/opensearch/extensions/time/1.0/"
 
                       xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/" >
 
                       xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/" >
  
Line 43: Line 43:
 
       indexOffset="1"
 
       indexOffset="1"
 
       pageOffset="1"
 
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={nsidc:start?}&amp;dtend={nsidc:end?}&amp;format=html"/>
+
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;format=html"/>
  
 
   <!-- Question: I'm not certain I need the version in the URL or if the
 
   <!-- Question: I'm not certain I need the version in the URL or if the
Line 49: Line 49:
 
       two OS versions at the same time?  -->
 
       two OS versions at the same time?  -->
  
   <!-- Question: Whould we use nsidc:start and nsidc:end since we're going to
+
   <!-- Question: Would we use time:start and time:end since we're going to
       limit times to GMT? I think so... so I'm including it.  Other places
+
       limit times to GMT?   -->
      use time:start and time:end -->
+
  
 
   <!-- URL Template for ATOM results Dataset level search -->
 
   <!-- URL Template for ATOM results Dataset level search -->
Line 58: Line 57:
 
       indexOffset="1"
 
       indexOffset="1"
 
       pageOffset="1"
 
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={nsidc:start?}&amp;dtend={nsidc:end?}&amp;format=atom"/>
+
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;format=atom"/>
  
 
   <Url type="text/html"
 
   <Url type="text/html"
Line 64: Line 63:
 
       indexOffset="1"
 
       indexOffset="1"
 
       pageOffset="1"
 
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={nsidc:start?}&amp;dtend={nsidc:end?}&amp;format=html"/>
+
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&amp;loc={geo:polygon?}&amp;dtstart={time:start?}&amp;dtend={time:end?}&amp;format=html"/>
 
    
 
    
  

Latest revision as of 10:49, 15 October 2009

back

[edit] Sample NSIDC Dataset Level OpenSearch Description Document

<?xml version="1.0" encoding="UTF-8"?>
<!--
    OpenSearch description document for nsidc.org. 

    Author: Matthew Savoie
    Date:   2009-10-09

    Copyright (c) 2009 National Snow and Ice Data Center. All rights reserved.
    -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" 
                       xmlns:time="http://a9.com/-/opensearch/extensions/time/1.0/"
                       xmlns:geo="http://a9.com/-/opensearch/extensions/geo/1.0/" >

  <!-- Note: nsidc namespace could be esipsearch if we decide to go standard -->
    
  <!-- Admin Details -->
  <ShortName>NSIDC Search</ShortName>
  <LongName>OpenSearch interface for nsidc.org</LongName>
  <Description>This is the opensearch description document that describes how to query our server for dataset level information.</Description>
  <Tags>nsidc.org opensearch</Tags>
  <Contact>[email protected]</Contact>
  
  <!-- Images -->
  <!-- 
       2009-10-09: Waiting for a 16x16 icon. And the other should really be 64x64 icon?
  -->
  <Image width="16" height="16" type="image/x-icon">http://nsidc.org/?</Image>
  <Image width="76" height="60" type="image/jpeg">http://nsidc.org/images/logo_nsidc_76x60.jpg</Image>

  <!-- URL Template for refreshing this file -->
  <Url type="application/opensearchdescription+xml"
       rel="self"
       template="http://nsidc.org/opensearch/datset"/>

  

  <!-- URL Template for HTML results Dataset level search -->
  <Url type="text/html"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=html"/>

  <!-- Question: I'm not certain I need the version in the URL or if the
       namespace above does everything we need?  Would we ever want to have
       two OS versions at the same time?  -->

  <!-- Question: Would we use time:start and time:end since we're going to
       limit times to GMT?   -->

  <!-- URL Template for ATOM results Dataset level search -->
  <Url type="text/xml"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=atom"/>

  <Url type="text/html"
       rel="results"
       indexOffset="1"
       pageOffset="1"
       template="http://www.nsidc.org/opensearch/1.1/service/variable={searchTerms?}&loc={geo:polygon?}&dtstart={time:start?}&dtend={time:end?}&format=html"/>
  

  <!-- Example Queries -->
  <Query role="example" variable="Air Temperature" />
  <Query role="example" variable="Brightness Temperature" 
         dtstart="2000-01-01T00:00:00Z"
         dtend="2000-01-31T23:59:59Z" />

  <!-- Control Params -->
  <Language>en-us</Language>
  <OutputEncoding>UTF-8</OutputEncoding>
  <InputEncoding>UTF-8</InputEncoding>
  <SyndicationRight>open</SyndicationRight>
  <AdultContent>false</AdultContent>
  <Attribution>© 2009 National Snow and Ice Data Center.</Attribution>
</OpenSearchDescription>


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox