aboutsummaryrefslogtreecommitdiff
path: root/gn3-guile/web
diff options
context:
space:
mode:
authorPjotr Prins2023-08-06 10:08:36 +0200
committerPjotr Prins2023-08-06 10:08:36 +0200
commit0ce6478df5680a3e54a002a9eb70543e06422bf5 (patch)
tree724af5f00c39992c689bc188f22448bfeb0aea66 /gn3-guile/web
parent99a7a89619ca3c511b8e2cd5550482758eba8f29 (diff)
downloadgenenetwork3-0ce6478df5680a3e54a002a9eb70543e06422bf5.tar.gz
Added commentgn-guile
Diffstat (limited to 'gn3-guile/web')
-rwxr-xr-xgn3-guile/web/webserver.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gn3-guile/web/webserver.scm b/gn3-guile/web/webserver.scm
index a04fd37..ce754d8 100755
--- a/gn3-guile/web/webserver.scm
+++ b/gn3-guile/web/webserver.scm
@@ -27,6 +27,8 @@
(web uri)
(fibers web server))
+;; basically lifted from https://lispdreams.wordpress.com/2016/04/08/lisp-memoization-techniques/
+
(define (memoize f)
"Simple memoize just uses alists at this point and does not expire"
(let ((result-table '()))
@@ -323,6 +325,11 @@ SELECT ?species ?p ?o WHERE {
(string-replace-substring str " " "_")
)
+(define (get-expanded-taxon id)
+ "Get information on a specific species, e.g. mouse"
+ #f
+ )
+
(define (get-expanded-species)
"Here we add information related to each species"
(map (lambda (rec)