Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: - finish up FM REST API Guide

...

Get an RDF stream of current products from CAS

Sample REST URL

httpshttp://host/fmprod/rdf?id=Image Modified<product type/dataset id>&type=<product type/dataset name>

...

Code Block
xml
xml
 <?xml version="1.0" ?>
   <rdf:RDF xmlns:cas="urn:oodt:" xmlns:edrn="urn:edrn:" 
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
        xmlns:x="http://edrn.nci.nih.gov/rdf/schema.rdf#">
  
   <edrn:WHIColonKarmanosCancerInstituteTainsky 
  rdf:about="http://edrn.jpl.nasa.gov/fmprodp3//data?productID=..">
    
    <edrn:ProductDescription>
      TBD
    </edrn:ProductDescription>
    <edrn:SpecimenType>
      Plasma
    </edrn:SpecimenType>
    <cas:FileLocation>
      /data/archive/kci/110901/Colon/Unknown
    </cas:FileLocation>
    <cas:CAS.ProductName>
      EDRN_WHI_Tainsky-rawData.csv
    </cas:CAS.ProductName>
    <edrn:DateProductFrozen>
      TBD
    </edrn:DateProductFrozen>
    
  </edrn:WHIColonKarmanosCancerInstituteTainsky>
  
 </rdf:RDF>

...

Get an RSS 2.0 feed of current products from

...

CAS

...

Sample REST URL ===

httpshttp://edrn.jpl.nasa.gov/fmprodp3host/fmprod/viewRecent?channel=ALLImage Removed

=== Parameters ===

...

Image Added<ALL or product type id>&topn=<some value>&id=<product type/dataset id>

Parameters

Panel
titleREST Parameters

query:
channel <A valid product type name, or ALL to denote all of them>

...


...

id

...

<A valid product type id; only use this when not using ALL>

...


...

topn (optional) ''

...

The number, by default 20, of results to show

...

_

=== Response ===
HTTP 200 OK

...

Response

No Format

   HTTP 200 OK
      - MIME: application/x-rss

...


      - RSS description of all matching product metadata and link 
        for all products, if ALL is used, or as identified by type 
        and id.

Sample

Code Block
xml
xml

 <?xml 

...

version="1.0" ?>

...


  <rss version="2.0" xmlns:cas="http://oodt.jpl.nasa.gov/1.0/cas">

...


  
  <channel>
    <title>
      ALL
    </title>
    <link>
    http://edrn.jpl.nasa.gov/fmprodp3//rdf/dataset?type=ALL

...


    </link>

...


    <description>
      ALL
    </description>

...


    <language>
      en-us

...


    </language>

...


    <copyright>
      Copyright 2010: Apache Software Foundation

...


    </copyright>

...


    <pubDate>
      Tue, 31 Jan 2012 13:56:27 PST

...


    </pubDate>

...


    <category>
      ALL
    </category>

...


    <generator>
      CAS File Manager
    </generator>
    <lastBuildDate>
      Tue, 31 Jan 2012 13:56:27 PST

...


    </lastBuildDate>

...


    <item>
      <title>
        05L54__UTSW Tumor Batch1 Illumina Expression

...

 processed
      </title>

...


      <description>
        UTSW_GeneExpressionAnalyzedData

...


      </description>

...


      <link>
      http://edrn.jpl.nasa.gov/fmprodp3//data?productID=

...

...

...


      </link>

...


      <pubDate>
        Tue, 06 Sep 2011 20:43:37

...

 PDT
      </pubDate>

...


      <cas:source>

...


        UTSW_GeneExpressionAnalyzedData

...


      </cas:source>

...


      <source>
        UTSW_GeneExpressionAnalyzedData

...


      </source>

...


      
    </item>

...


  </channel>

...


  
 </rss>