aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/schema.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-09-13 23:30:53 -0700
committerBryan Newbold <bnewbold@archive.org>2020-09-13 23:30:53 -0700
commit192ed94d2f3310913ebba62e24b313a8a4c8b2b2 (patch)
tree045c1a05dd067ce52eeb523be4e798642ec72d51 /fatcat_scholar/schema.py
parent7a8518adae2997a507e21eae6d6a99b25b03c52d (diff)
downloadfatcat-scholar-192ed94d2f3310913ebba62e24b313a8a4c8b2b2.tar.gz
fatcat-scholar-192ed94d2f3310913ebba62e24b313a8a4c8b2b2.zip
ref transform: support more GROBID fields
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r--fatcat_scholar/schema.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py
index d75dae8..ab58bf3 100644
--- a/fatcat_scholar/schema.py
+++ b/fatcat_scholar/schema.py
@@ -179,11 +179,13 @@ class ScholarDoc(BaseModel):
class RefBiblio(BaseModel):
+ unstructured: Optional[str]
title: Optional[str]
subtitle: Optional[str]
- contrib_raw_names: List[str]
+ contrib_raw_names: Optional[List[str]]
year: Optional[int]
container_name: Optional[str]
+ publisher: Optional[str]
volume: Optional[str]
issue: Optional[str]
pages: Optional[str]
@@ -199,6 +201,7 @@ class RefStructured(BaseModel):
biblio: RefBiblio
release_ident: Optional[str]
work_ident: Optional[str]
+ release_year: Optional[int]
index: Optional[int]
key: Optional[str]
locator: Optional[str]