OmicsDI / ddi-web-service

Web service of the DDI Project
http://wwwdev.ebi.ac.uk/Tools/ddi/ws/
Apache License 2.0
0 stars 2 forks source link

web service APIs #1

Closed baimingze closed 9 years ago

baimingze commented 9 years ago

API1:

Interface: /getTissueSpeciesChartData/

Return(JSON format data):

{   "Tissue": [
    { "label":"tissue1" , "value":"10" },
    { "label":"tissue2" , "value":"20" },
    { "label":"tissue3" , "value":"30" },
    { "label":"tissue4" , "value":"25" },
    { "label":"tissue5" , "value":"15" }
    ],

    "Species": [
    { "label":"homosapiens" , "value":"20" },
    { "label":"panda" , "value":"15" },
    { "label":"firefox" , "value":"30" },
    { "label":"elephant" , "value":"35" },
    { "label":"fish" , "value":"15" },
    { "label":"frog" , "value":"15" }
    ]
}

API2:

Interface: /getOmicsRepositoryData/

Return(JSON format data):

{   "Omics": [
    { "label":"Proteomics" , "value":"1000" },
    { "label":"Metabolomics" , "value":"450" },
    { "label":"Genomics" , "value":"3089" }
    ],

    "Repository": [
    { "label":"PRIDE" , "value":"520" },
    { "label":"MetaboLights" , "value":"223" },
    { "label":"EGA" , "value":"2892" },
    { "label":"PeptideAtlas" , "value":"350" },
    { "label":"Repo1" , "value":"15" },
    { "label":"Repo2" , "value":"15" }
    ]
}

API3:

Interface: /getLatestDataset/

Return(JSON format data):

{   "Latestdataset": [
    { "ID":"PXD001611" , "Title":"Defining a minimal..." },
    {  "ID":"PXD001612" , "Title":"Defining a minimal..."  },
    {  "ID":"PXD001613" , "Title":"Defining a minimal..." },
    { "ID":"MXD001611" , "Title":"Defining a minimal..." },
    {  "ID":"MXD001612" , "Title":"Defining a minimal..."  },
    {  "ID":"MXD001613" , "Title":"Defining a minimal..." }
    ]

}

API4:

Interface: /getHotWords/

Return(JSON format data):

{   "HotWords": [
    { "Label":"cancer" , "value":"100" },
    { "Label":"lung" , "value":"80" },
    { "Label":"Homo Sapiens" , "value":"100" },
    { "Label":"panda" , "value":"30" }
    ]
}

API5:

Interface: /getStatistics/

Return(JSON format data):

{   "Statistics": [
    { "Label":"RepositoriesNo" , "value":"10" },
    { "Label":"Datasets No" , "value":"4000" },
    { "Label":"ContributorsNo" , "value":"10000" },
    { "Label":"UsersNo" , "value":"300000" }
    ]
}
baimingze commented 9 years ago

please feel free to comment on these APIs.

ypriverol commented 9 years ago

Under: Retrieve the number of entries for all the resources.

/statistics/omicsid/count

{   "domains": {
          "label": "omics",
          "value":"5000",
          "subdomains": [
                   { "label":"PRIDE" , "value":"1000" },
                   { "label":"Metaboligths" , "value":"450" },
                   { "label":"EGA" , "value":"3089" }
           ]
        }
}
baimingze commented 9 years ago

API6

Interface: /getdatasetentry

return

{
        "Title":"Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacteriumi",
        "Description":"Identifying all essential genomic components is critical for the ......",
        "Repository":"PettideAtlas",
        "Type":"Metabolomics dataset",
        "Publications":[
                { "publication":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."  },
                { "publication":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."  },
                { "publication":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."  },
                { "publication":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."  }
        ],
        "Files":[
            {"name":"20130705_s1_20130923095617.zip ", "size":"6.228MB","url":"http://www.ebi.ac.uk/pride/data/archive/2014/12/PXD001577/20130705_s1_20130923095617.zip"},
            {"name":"20130705_s1_20130923095617.zip ", "size":"6.228MB","url":"http://www.ebi.ac.uk/pride/data/archive/2014/12/PXD001577/20130705_s1_20130923095617.zip"},
            {"name":"20130705_s1_20130923095617.zip ", "size":"6.228MB","url":"http://www.ebi.ac.uk/pride/data/archive/2014/12/PXD001577/20130705_s1_20130923095617.zip"},
            {"name":"20130705_s1_20130923095617.zip ", "size":"6.228MB","url":"http://www.ebi.ac.uk/pride/data/archive/2014/12/PXD001577/20130705_s1_20130923095617.zip"}

        ],

        "RelatedDatasets":[
            {"value":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."},
            {"value":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."},
            {"value":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."},
            {"value":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."},
            {"value":"Lluch-Senar M, Delgado J, Chen WH. Defining a minimal cell: essentiality of small ORFs and ncRNAs in a genome-reduced bacterium. Mol Syst Biol. 2015 Jan 21;11:780. doi: 10.15252/msb.20145558."}
        ]

}
baimingze commented 9 years ago

API7

Interface: /query?[parameters]

return

[
{"ID":" PXD002037",
"Title":"Reanalysis of spike-in samples",
"Species":"Streptoccous pyogenes",
"Description":"Two samples in submission PXD001091 were reanalysed 22 months la",    /*less than 80 characters*/
"PublicDate":" 2015-04-20",
"Keywords":[
    {"value":"Biological Dataset",
     "value":"Other Dataset"
    }
    ]
},

{"ID":" PXD002037",
"Title":"Reanalysis of spike-in samples",
"Species":"Streptoccous pyogenes",
"Description":"Two samples in submission PXD001091 were reanalysed 22 months la",    /*less than 80 characters*/
"PublicDate":" 2015-04-20",
"Keywords":[
    {"value":"Biological Dataset",
     "value":"Other Dataset"
    }
    ]
},

{"ID":" PXD002037",
"Title":"Reanalysis of spike-in samples",
"Species":"Streptoccous pyogenes",
"Description":"Two samples in submission PXD001091 were reanalysed 22 months la",    /*less than 80 characters*/
"PublicDate":" 2015-04-20",
"Keywords":[
    {"value":"Biological Dataset",
     "value":"Other Dataset"
    }
    ]
},

{"ID":" PXD002037",
"Title":"Reanalysis of spike-in samples",
"Species":"Streptoccous pyogenes",
"Description":"Two samples in submission PXD001091 were reanalysed 22 months la",    /*less than 80 characters*/
"PublicDate":" 2015-04-20",
"Keywords":[
    {"value":"Biological Dataset",
     "value":"Other Dataset"
    }
    ]
},

{"ID":" PXD002037",
"Title":"Reanalysis of spike-in samples",
"Species":"Streptoccous pyogenes",
"Description":"Two samples in submission PXD001091 were reanalysed 22 months la",    /*less than 80 characters*/
"PublicDate":" 2015-04-20",
"Keywords":[
    {"value":"Biological Dataset",
     "value":"Other Dataset"
    }
    ]
}
]
ypriverol commented 9 years ago

The freqTerms is done

ypriverol commented 9 years ago

The statistics API is done the function is /stats/general

ypriverol commented 9 years ago

I will close the issue because most of these things are done