Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to meet Biothings plugin standard #1

Merged
merged 11 commits into from
Aug 10, 2022
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Data Plugin

[_DDInter_](http://ddinter.scbdd.com/) is a comprehensive, professional, and open-access database specific to Drug-Drug INTeractions. The [download data](http://ddinter.scbdd.com/download/) are published under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license (see [terms](http://ddinter.scbdd.com/terms/)).

This repo is the Biothings plugin for _DDInter_. The requirements were discussed in [pending.api - Issue#68](https://github.com/biothings/pending.api/issues/68). The data files in use are the eight `csv` datasheets available in the [download page](http://ddinter.scbdd.com/download/), and a [`drug_data.json`](drug_data.json) generated by [`webscraper.py`](webscraper.py).
1 change: 0 additions & 1 deletion ddinter_data.json

This file was deleted.

1 change: 1 addition & 0 deletions ddinter_sample_output.json

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"version": "0.2",
"__metadata__": {
"url": "http://ddinter.scbdd.com/"
"url": "http://ddinter.scbdd.com/",
"license_url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
"license": "CC BY-NC-SA 4.0"
},
"dumper" : {
"data_url" : ["http://ddinter.scbdd.com/download/"],
"data_url" : [
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_A.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_B.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_D.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_H.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_L.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_P.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_R.csv",
"http://ddinter.scbdd.com/static/media/download/ddinter_downloads_code_V.csv",
"http://localhost:8080/dataupload/mysrc/drug_data.json"
],
"uncompress" : false,
"release": "version:get_release"
},
Expand Down
4 changes: 4 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def get_release(self):
# As shown in the bottom of http://ddinter.scbdd.com/
# Current Release: DDInter 1.0 | Last update: 2020-09-04
return "1.0"