diff options
author | Arun Isaac | 2021-11-19 16:42:00 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-02 17:03:52 +0530 |
commit | 0a29e362bd8627b9346e2260a14c81a46e2a76d3 (patch) | |
tree | 5c5d061aec5fbef5a63a8ddbe95a9a59f72ded7f /guix.scm | |
parent | a1516993c7f6dc608f75ba42cb27b983e0c5c330 (diff) | |
download | genenetwork3-0a29e362bd8627b9346e2260a14c81a46e2a76d3.tar.gz |
Implement dataset metadata API endpoint.
* guix.scm: Import (gnu packages rdf).
(genenetwork3)[propagated-inputs]: Add python-sparqlwrapper.
* gn3/settings.py (SPARQL_ENDPOINT): New variable.
* gn3/api/general.py: Import datasets from gn3.db.
(dataset_metadata): New API endpoint.
* gn3/db/datasets.py: Import re, Template from string, Dict and Optional from
typing, JSON and SPARQLWrapper from SPARQLWrapper, SPARQL_ENDPOINT from
gn3.settings.
(sparql_query, dataset_metadata): New functions.
Diffstat (limited to 'guix.scm')
-rw-r--r-- | guix.scm | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -42,6 +42,7 @@ (gnu packages python-web) (gnu packages python-xyz) (gnu packages python-science) + (gnu packages rdf) ((guix build utils) #:select (with-directory-excursion)) (guix build-system python) (guix gexp) @@ -78,6 +79,7 @@ ("python-redis" ,python-redis) ("python-requests" ,python-requests) ("python-scipy" ,python-scipy) + ("python-sparqlwrapper" ,python-sparqlwrapper) ("r-optparse" ,r-optparse) ("r-qtl" ,r-qtl) ("r-rjson" ,r-rjson) |