diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-09 20:30:38 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-09 20:30:38 +0200 |
commit | 39f93c8de5c67b7fc204e89b19421628b7f7f4c8 (patch) | |
tree | d214ba0d38f1cab5694c3359b3fca42aab5ed6cb /python | |
parent | 1dca296529faa7929800667a27d5fc36bac0d1b9 (diff) | |
download | refcat-39f93c8de5c67b7fc204e89b19421628b7f7f4c8.tar.gz refcat-39f93c8de5c67b7fc204e89b19421628b7f7f4c8.zip |
tasks: BrefZipWikiDOI
Diffstat (limited to 'python')
-rw-r--r-- | python/refcat/tasks.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py index ce89ace..8fdef31 100644 --- a/python/refcat/tasks.py +++ b/python/refcat/tasks.py @@ -1433,6 +1433,9 @@ class WikipediaDOI(Refcat): class BrefZipWikiDOI(Refcat): + """ + Generate biblioref for inbound wikipedia articles through exact matches. + """ def requires(self): return { "wiki": WikipediaDOI(), @@ -1440,7 +1443,11 @@ class BrefZipWikiDOI(Refcat): } def run(self): - raise NotImplementedError() + output = shellout(""" + skate-reduce -m wiki -W {wiki} -L {fatcat} | zstd -T0 -c > {output} + """, + wiki=self.input().get("wiki").path, + fatcat=self.input().get("fatcat").path) def output(self): return luigi.LocalTarget(path=self.path(ext="json.zst"), format=Zstd) |