From ee8424f4c8a06ab37ada1c17039e5a36289587b8 Mon Sep 17 00:00:00 2001 From: lltommy Date: Sat, 14 Nov 2020 10:47:09 +0100 Subject: Adding an additional example to the SPARQL playground --- bh20simplewebuploader/static/main.js | 62 +++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 26 deletions(-) (limited to 'bh20simplewebuploader/static/main.js') diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index 0e642c1..da196cf 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -164,29 +164,52 @@ let fetchCountDB = () => { fetchAPI("/api/getCountDB"); } +////// old API functions, some might no be used // +let fetchSEQCountByTech = () => { + fetchHTMLTable("/api/getSEQCountbytech"); +} + +let fetchAllaccessions = () => { + fetchHTMLTable("/api/getAllaccessions"); +}; + +let fetchMap = () => { + fetchAPI("/api/getCountByGPS"); + updateMapMarkers(); +}; + +let fetchSEQByLocation = () => { + console.log("Missing - set parameter for request, retrieve data") +}; + +let fetchSEQCountbyContinent = () => { + fetchHTMLTable("/api/getSEQCountbyContinent"); +} +/////////////////////////////////// End "old" function + -//****** SPARQL playground functions // keep old functionality as comments for now, might be transfered elsewhere -let fetchSEQCountBySpecimen = (toHTML) => { +////****** SPARQL playground functions ***************//// +let demoFetchSEQCountBySpecimen = (toHTML) => { //fetchHTMLTable("/api/getSEQCountbySpecimenSource"); demofetchHTMLTable("/api/demoGetSEQCountbySpecimenSource") } -let fetchSEQCountByLocation = () => { +let demoFetchSEQCountByLocation = () => { //fetchHTMLTable("/api/getSEQCountbyLocation"); demofetchHTMLTable("/api/demoGetSEQCountbyLocation") } //Get authors and there country/contitent where they come from -let fetchAuthors = () => { +let demoGetAuthors = () => { demofetchHTMLTable("/api/demoGetAuthors") } // Fetch all institutes/originating labs and their associeted publications -let fetchInstitutesPublications = () => { +let demoFetchInstitutesPublications = () => { demofetchHTMLTable("/api/demoInstitutesPublications") } -//Fetch seqeenctechnologies used by continent +// Fetch sequence technology used by continent let demoGetSEQCountbytechContinent = () => { demofetchHTMLTable("/api/demoGetSEQCountbytechContinent") } @@ -199,35 +222,22 @@ let demoGetSequencePerDate = () => { demofetchHTMLTable('/api/demoGetSequencePerDate') } -let demoLocationGps = () => { - demofetchHTMLTable("/api/demoLocationGps") +let demoGetLocationGps = () => { + demofetchHTMLTable("/api/demoGetLocationGps") } -let getNYsamples = () => { - demofetchHTMLTable("/api/getNYsamples") +let demoGetNYsamples = () => { + demofetchHTMLTable("/api/demoGetNYsamples") } -//old/unused functions -let fetchSEQCountByTech = () => { - fetchHTMLTable("/api/getSEQCountbytech"); +let demoGetSouthAmericaSeq = () => { + demofetchHTMLTable("/api/demoGetSouthAmericaSeq") } -let fetchAllaccessions = () => { - fetchHTMLTable("/api/getAllaccessions"); -}; -let fetchMap = () => { - fetchAPI("/api/getCountByGPS"); - updateMapMarkers(); -}; -let fetchSEQByLocation = () => { - console.log("Missing - set parameter for request, retrieve data") -}; -let fetchSEQCountbyContinent = () => { - fetchHTMLTable("/api/getSEQCountbyContinent"); -} +////****** SPARQL playground functions ***************//// /* -- cgit v1.2.3