aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/general.py
AgeCommit message (Expand)Author
2022-11-02Re-implement RDF related code to use monads in its own module...* gn3/api/general.py: Replace gn3.db.datasets import with gn3.db.rdf. (dataset_metadata) <jsonify>: Replace datasets.dataset_metadata with rdf.get_dataset_metadata. * gn3/db/datasets.py: Remove unused imports. (sparql_query, dataset_metadata): Delete. * gn3/db/rdf.py: (sparql_query, get_dataset_metadata): New functions. Munyoki Kilyungi
2021-12-02Implement 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. Arun Isaac
2021-08-18Fix obvious linting errors...* Fix linting errors that do not change the function of the code. Muriithi Frederick Muriuki
2021-08-07Add gunicorn support for productionPjotr Prins
2021-05-13Add end-point for running an rQTL program...* gn3/api/general.py (run_r_qtl): New function. * gn3/settings.py: New variable. BonfaceKilz
2021-05-13Rename file_utils to fs_helpers...Generally avoid naming things with a "utils" prefix/ suffix since it encourages contributors to dump any new functions there; and over time, as the code grows, things get messy... BonfaceKilz
2021-03-10Add extra endpoint for when TOKEN isn't providedBonfaceKilz
2021-03-08Replace APP_DEFAULTS dict with actual conf paramsBonfaceKilz
2021-03-08Use new extract_uploaded_file fn when uploading metadata...* gn3/api/general.py (upload_metadata): Update docstrings and update the use of "extract_uploaded_file" fn. BonfaceKilz
2021-02-16Return the correct message and status code in "/metadata/upload"BonfaceKilz
2021-02-16Add new endpoint for uploading dataBonfaceKilz