larsgw / citation.js

Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.
https://citation.js.org/
MIT License
226 stars 30 forks source link

Change and add Wikidata publication type mappings #78

Closed larsgw closed 7 years ago

larsgw commented 7 years ago

See also #76


Wikidata item Current mapping Expected mapping Notes Status
Q49848 - article via Zotero/zotkat v0.3.3
Q38926 - article-newspaper right? v0.3.3
Q5707594 - article-newspaper v0.3.3
Q30070590 - article-magazine v0.3.3
Q686822 - bill v0.3.3
Q1555508 - broadcast via Zotero v0.3.3
Q15416 - broadcast via Zotero v0.3.3
Q1980247 - chapter v0.3.3
Q1172284 - dataset v0.3.3
Q10389811 - entry via Zotero v0.3.3
Q19389637 - entry used for both dictionaries and encyclopedias v0.3.3
Q17329259 - entry-encyclopedia via Zotero v0.3.3
Q30070753 - figure v0.3.3
Q1027879 - graphic v0.3.3
Q4502142 - graphic v0.3.3
Q478798 - graphic v0.3.3
Q838948 - graphic via Zotero v0.3.3
Q178651 - interview v0.3.3
Q49371 - legislation v0.3.3
Q820655 - legislation v0.3.3
Q2334719 - legal_case v0.3.3
Q87167 - manuscript v0.3.3
Q4006 - map v0.3.3
Q11424 - motion_picture v0.3.3
Q30070675 - motion_picture via Zotero v0.3.3
Q187947 - musical_score v0.3.3
Q18536349 - pamphlet v0.3.3
Q190399 - pamphlet v0.3.3
Q26973022 - paper-conference v0.3.3
Q23927052 - paper-conference v0.3.3
Q253623 - patent v0.3.3
Q30070565 - personal_communication via Zotero v0.3.3
Q30070439 - personal_communication via Zotero/zotkat v0.3.3
Q133492 - personal_communication via Zotero/zotkat v0.3.3
Q628523 - personal_communication v0.3.3
Q7216866 - post via Zotero/zotkat v0.3.3
Q17928402 - post-blog v0.3.3
Q10870555 - report v0.3.3
Q265158 - review v0.3.3
Q637866 - review-book v0.3.3
Q7366 - song v0.3.3
Q3741908 - song via Zotero v0.3.3
Q30070318 - song via Zotero/zotkat v0.3.3
Q24634210 - song via Zotero v0.3.3
Q861911 - speech v0.3.3
Q1266946 - thesis v0.3.3
Q187685 - thesis v0.3.3
Q131569 - treaty v0.3.3
Q36774 - webpage v0.3.3
  • 'unreleased' is implemented, but not yet released
  • versions in the status column mean completed in $VERSION

WIP. Feel free to add more mappings.

Helpful docs:

zuphilip commented 7 years ago

I use this map for mapping Zotero itemTypes to Wikidata: https://github.com/UB-Mannheim/zotkat/blob/bfc1f795f3500a99b9345368b91b2f2be68bfe9b/Wikidata%20QuickStatements.js#L40-L86

zuphilip commented 7 years ago

I'd call a podcast a speech, but Zotero doesn't. Via Zotero

Zotero has an item type podcast, but this is mapped to the CSL type song, see https://aurimasv.github.io/z2csl/typeMap.xml

larsgw commented 7 years ago

I know Zotero has a podcast type, and that it maps to CSL song type; that's what I meant. I think I remember seeing a discussion (or comment) somewhere on whether that's appropriate or not, but I can't remember where.

I'll take a look at the zotkat mappings (and I think I forgot stuff from the translator too).

larsgw commented 7 years ago

All in this batch are implemented, I'll close this for now.