From 39f93c8de5c67b7fc204e89b19421628b7f7f4c8 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 9 Jul 2021 20:30:38 +0200 Subject: tasks: BrefZipWikiDOI --- python/refcat/tasks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.2.3