aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-09 20:30:38 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-09 20:30:38 +0200
commit39f93c8de5c67b7fc204e89b19421628b7f7f4c8 (patch)
treed214ba0d38f1cab5694c3359b3fca42aab5ed6cb
parent1dca296529faa7929800667a27d5fc36bac0d1b9 (diff)
downloadrefcat-39f93c8de5c67b7fc204e89b19421628b7f7f4c8.tar.gz
refcat-39f93c8de5c67b7fc204e89b19421628b7f7f4c8.zip
tasks: BrefZipWikiDOI
-rw-r--r--python/refcat/tasks.py9
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)