crossref
zocrates.discovery.providers.crossref ¶
Crossref DOI metadata validator and resolver.
CrossrefValidator ¶
Validates DOI metadata and queries bibliographic records via Crossref REST API.
Initialize the Crossref validator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email
|
str
|
Contact email used for polite-pool API identification. |
DEFAULT_POLITE_EMAIL
|
timeout
|
float
|
HTTP request timeout in seconds. |
5.0
|
Source code in zocrates/discovery/providers/crossref.py
validate_doi
async
¶
Validate and retrieve Crossref work metadata for a given DOI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
doi
|
str
|
Digital Object Identifier. |
required |
email
|
str | None
|
User or developer email for polite pool identification. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
Dictionary containing Crossref 'message' payload if valid, or None. |
Source code in zocrates/discovery/providers/crossref.py
make_user_agent ¶
Build a respectful User-Agent header string adhering to API etiquette.
Source code in zocrates/discovery/providers/base.py
normalize_doi ¶
Normalize DOI by stripping standard URI and resolver prefixes and lowercasing.