<?xml version="1.0" encoding="UTF-8"?>
<!-- NB - not started - this will be a definition of ssa -->
<ri:VOResources
   xmlns:ri="http://www.ivoa.org/xml/ResourceSet/v1.0"
   xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0"
   xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.0"
   xmlns:ssa="http://www.ivoa.net/xml/ssa/v1.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:cea="http://www.ivoa.net/xml/CEA/v1.0rc1"
   xsi:schemaLocation="http://www.ivoa.org/xml/ResourceSet/v1.0
                      ResourceSet-v1.0.xsd
                                             http://www.ivoa.net/xml/ssa/v1.0
                      ssa-v1.0r1.xsd
                    ">
   <ri:Resource>

      <title>
         NCSA Astronomy Digital Image Library Simple Image Access
      </title>
      <shortName>ADIL</shortName>
      <identifier>ivo://adil.ncsa/ssa</identifier>

      <curation>
         <publisher ivo-id="ivo://adil.ncsa/adil">
            NCSA Astronomy Digital Image Library (ADIL)
         </publisher>
         <creator>
            <name>Ramon Williamson</name>
            <logo>http://adil.ncsa.uiuc.edu/gifs/adilfooter.gif</logo>
         </creator>
         <contributor>Dr. Raymond Plante</contributor>
         <date role="created">2003-01-01</date>
         <contact>
            <name>ADIL Librarian</name>
            <email>adil@ncsa.uiuc.edu</email>
         </contact>
      </curation>

      <content>
         <subject>data repositories</subject>
         <subject>digital libraries</subject>
         <description>
            This Simple Image Access Protocol implementation allows
            clients to progrommatically search for images in the ADIL
            that overlap with the given region.
         </description>
         <referenceURL>http://adil.ncsa.uiuc.edu/</referenceURL>
         <type>Archive</type>
         <contentLevel>University</contentLevel>
         <contentLevel>Research</contentLevel>
         <contentLevel>Community College</contentLevel>

         <relationship>
            <relationshipType>service-for</relationshipType>
            <relatedResource ivo-id="ivo://adil.ncsa/adil">
               NCSA Astronomy Digital Image Library
            </relatedResource>
         </relationship>
      </content>
      <!-- the only reason that you cannot put a vr:capability here (inaddition to the ssa:capability) is because it is abstract - I think good code generators will get confused by this.
         - in fact this is the natural place for non-standard capabilities.. -->
      <capability standardID="ivo://ivoa.std/CEA">
         <standardInterface xsi:type="vr:WebService">
            <accessURL>
               http://astrogrid.jb.man.ac.uk:8080/astrogrid-cea-http/services/CommonExecutionConnectorService
            </accessURL>
         </standardInterface>
         <cea:ManagedApplications>
            <cea:ApplicationReference>
               ivo://org.astrogrid/cea/ssaP
            </cea:ApplicationReference>
         </cea:ManagedApplications>
      </capability>
      <ssa:capability xmlns="http://www.ivoa.net/xml/ssa/v1.0">
         <!-- for the standard identifier perhaps it is just best to put the string in directly - the type obscures this slightly... -->
         <standardIdentifier xsi:type="ssa:ssaStandard" version="1.0" />
         <standardInterface xsi:type="vs:ParamHTTP" qtype="GET"
            xmlns="http://www.ivoa.net/xml/VODataService/v1.0">
            <accessURL use="base">
               http://adil.ncsa.uiuc.edu/cgi-bin/voimquery?survey=f&amp;
            </accessURL>
            <resultType>text/xml+votable</resultType>

            <!-- 
               -  These are the supported input parameters taken from the ADIL
               -  ssa service's "Metadata" operation.  
            -->
            <param>
               <name>POS</name>
               <description>
                  Search Position in the form "ra,dec" where ra and dec
                  are given in decimal degrees in the ICRS coordinate
                  system.
               </description>
               <dataType arraysize="2">float</dataType>
               <unit>degrees</unit>
            </param>
            <param>
               <name>SIZE</name>
               <description>
                  Size of search region in the RA and Dec. directions.
               </description>
               <dataType arraysize="2">float</dataType>
               <unit>degrees</unit>
            </param>
            <param>
               <name>FORMAT</name>
               <description>Requested format of images.</description>
               <dataType arraysize="*">char</dataType>
            </param>
            <param>
               <name>INTERSECT</name>
               <description>
                  Choice of intersection of matched images with the
                  region of interest.
               </description>
               <dataType arraysize="*">char</dataType>
            </param>
            <param>
               <name>FREQ</name>
               <description>Frequency of observation.</description>
               <dataType>float</dataType>
               <unit>Hz</unit>
            </param>
         </standardInterface>
         <vs:dataCollection>ivo://adil.ncsa/adil</vs:dataCollection>
         <!-- would this table be better described in the data collection?
         -->


         <ssa:table
            xmlns="http://www.ivoa.net/xml/VODataService/v1.0">
            <column>
               <name>Codename</name>
               <description>
                  ADIL Image Identifier - Unique identifier for image,
                  as assigned by the ADIL
               </description>
               <dataType arraysize="*">char</dataType>
            </column>
            <column>
               <name>Image Name</name>
               <description>
                  Image Filename, as provide by author
               </description>
               <dataType arraysize="*">char</dataType>
            </column>
            <column>
               <name>Source Name</name>
               <description>Target Source of Image</description>
               <dataType arraysize="*">char</dataType>
               <ucd>ID_MAIN</ucd>
            </column>
            <column>
               <name>RA (Center)</name>
               <description>RA of Image Center (J2000)</description>
               <dataType>float</dataType>
               <unit>degrees</unit>
               <ucd>POS_EQ_RA_MAIN</ucd>
            </column>
            <column>
               <name>Dec (Center)</name>
               <description>Dec of Image Center (J2000)</description>
               <dataType>float</dataType>
               <unit>degrees</unit>
               <ucd>POS_EQ_DEC_MAIN</ucd>
            </column>
            <column>
               <name>Number of Axes</name>
               <description>Number of axes in the image</description>
               <dataType>int</dataType>
               <ucd>VOX:Image_Naxes</ucd>
            </column>
            <column>
               <name>Naxis</name>
               <description>
                  Size of Image for each dimension
               </description>
               <dataType>int</dataType>
               <ucd>VOX:Image_Naxis</ucd>
            </column>
            <column>
               <name>Scale</name>
               <description>Scale of Image</description>
               <dataType>double</dataType>
               <unit>degrees/pixel</unit>
               <ucd>VOX:Image_Scale</ucd>
            </column>
            <column>
               <name>Image Format</name>
               <description>Format of Image</description>
               <dataType arraysize="*">char</dataType>
               <ucd>VOX:Image_Format</ucd>
            </column>
            <column>
               <name>Central Frequency</name>
               <description>
                  Frequency at center of the image wavehand
               </description>
               <dataType>double</dataType>
               <unit>Hz</unit>
               <ucd>VOX:BandPass_RefValue</ucd>
            </column>
            <column>
               <name>Description</name>
               <description>Image Description</description>
               <dataType>char</dataType>
               <ucd>VOX:Image_Title</ucd>
            </column>
            <column>
               <name>Source Types</name>
               <description>
                  a list of Source Types associated with this image
               </description>
               <dataType arraysize="*">char</dataType>
            </column>
            <column>
               <name>Telescopes</name>
               <description>
                  a list of Telescopes used to create this image
               </description>
               <dataType arraysize="*">char</dataType>
               <ucd>TEL_ID</ucd>
            </column>
            <column>
               <name>Observation Epoch</name>
               <description>
                  Upper bound on the epoch of the observations
               </description>
               <dataType>double</dataType>
               <unit>years</unit>
               <ucd>NVOX:Image_Epoch</ucd>
            </column>
            <column>
               <name>URL</name>
               <description>The URL for downloading image</description>
               <dataType arraysize="*">char</dataType>
               <ucd>VOX:Image_AccessReference</ucd>
            </column>
         </ssa:table>


         <imageServiceType>Pointed</imageServiceType>
         <maxQueryRegionSize>
            <long>360.0</long>
            <lat>180.0</lat>
         </maxQueryRegionSize>
         <maxImageExtent>
            <long>360.0</long>
            <lat>180.0</lat>
         </maxImageExtent>
         <maxImageSize>
            <long>5000</long>
            <lat>5000</lat>
         </maxImageSize>
         <maxFileSize>100000000</maxFileSize>
         <maxRecords>5000</maxRecords>
      </ssa:capability>

   </ri:Resource>
   <ri:Resource created="2000-01-01T09:00:00" status="active"
      updated="2000-01-01T09:00:00" xsi:type="vs:DataCollection">
      <title>NCSA Astronomy Digital Image Library</title>
      <shortName>ADIL</shortName>
      <identifier>ivo://adil.ncsa/adil</identifier>
      <curation>
         <publisher ivo-id="ivo://adil.ncsa/adil">
            NCSA Astronomy Digital Image Library
         </publisher>
         <creator>
            <name>Dr. Raymond Plante</name>
            <logo>http://adil.ncsa.uiuc.edu/gifs/adilfooter.gif</logo>
         </creator>
         <contributor>Raymond Plante</contributor>
         <contact>
            <name>Dr. Raymond Plante</name>
            <email>adil@ncsa.uiuc.edu</email>
         </contact>
      </curation>
      <content>
         <subject>radio astronomy</subject>
         <subject>data repositories</subject>
         <subject>digital libraries</subject>
         <description>
            The ADIL collects published image data in FITS format from a
            variety of telescopes and wavebands and makes them available
            to the astronomical community. Users can search, browse, and
            download images as well as upload their own published
            images.
         </description>
         <referenceURL>http://adil.ncsa.uiuc.edu/</referenceURL>
         <type>Archive</type>
         <contentLevel>University</contentLevel>
         <contentLevel>Research</contentLevel>
      </content>
      <vs:coverage>
         <vs:spatial>
            <vs:region xsi:type="vs:AllSky" />
         </vs:spatial>
         <vs:spectral>
            <vs:waveband>Radio</vs:waveband>
            <vs:waveband>Millimeter</vs:waveband>
            <vs:waveband>Infrared</vs:waveband>
            <vs:waveband>Optical</vs:waveband>
            <vs:waveband>UV</vs:waveband>
         </vs:spectral>
      </vs:coverage>
      <vs:format isMIMEType="false">FITS</vs:format>
      <vs:format isMIMEType="false">GIF</vs:format>
      <vs:format isMIMEType="false">HTML</vs:format>
      <vs:rights>public</vs:rights>
   </ri:Resource>
</ri:VOResources>
