https://github.com/zotero/zotero-schema
JSON representation of the Zotero data model
https://github.com/zotero/zotero-schema
Last synced: 3 months ago
JSON representation
JSON representation of the Zotero data model
- Host: GitHub
- URL: https://github.com/zotero/zotero-schema
- Owner: zotero
- Created: 2019-04-19T06:38:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-05T07:48:50.000Z (over 1 year ago)
- Last Synced: 2025-05-07T13:36:08.767Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 140 KB
- Stars: 54
- Watchers: 8
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zotero Data Schema
This repo contains a schema file providing most of the information necessary for working with the Zotero data model. The file is served from the Zotero API at https://api.zotero.org/schema.
The schema file contains a JSON object with the following top-level properties:
- `version`: The version number of the schema
- `itemTypes`: A list of item types and their associated fields and creator types.
- `meta`: Additional field info, such as which fields are date fields
- `csl`: CSL type/field/creator mappings for converting between Zotero data and CSL JSON
- `locales`: Localized strings for item types, fields, and creator types in all locales supported by Zotero
## Downloading the schema from your app
The schema file is large, so be sure your app’s HTTP client is passing `Accept-Encoding: gzip` with the download request. Cache the file along with its `ETag` header and, when checking for updates, make a conditional request using `If-None-Match: `. In most cases, you will receive a `304` and should continue using the cached version.