collections.volume¶
Volume ¶
Bases: SlottedDict[Paper]
A publication volume.
Provides dictionary-like functionality mapping paper IDs to Paper objects in the volume.
Required Attributes:
Name | Type | Description |
---|---|---|
id |
str
|
The ID of this volume (e.g. "1" or "main"). |
parent |
Collection
|
The collection this volume belongs to. |
type |
VolumeType
|
Value indicating the type of publication, e.g., journal or conference proceedings. |
title |
MarkupText
|
The title of the volume. (Aliased to |
year |
str
|
The year of publication. |
List Attributes:
Name | Type | Description |
---|---|---|
editors |
list[NameSpecification]
|
Names of editors associated with this volume. |
venue_ids |
list[str]
|
List of venue IDs associated with this volume. See also venues. |
Optional Attributes:
Name | Type | Description |
---|---|---|
address |
Optional[str]
|
The publisher's address for this volume. |
doi |
Optional[str]
|
The DOI for the volume. |
ingest_date |
Optional[str]
|
The date of ingestion. |
isbn |
Optional[str]
|
The ISBN for the volume. |
journal_issue |
Optional[str]
|
The journal's issue number, if this volume belongs to a journal. |
journal_volume |
Optional[str]
|
The journal's volume number, if this volume belongs to a journal. |
journal_title |
Optional[str]
|
The journal's title (without volume/issue/subtitle), if this volume belongs to a journal. |
month |
Optional[str]
|
The month of publication. |
pdf |
Optional[PDFReference]
|
A reference to the volume's PDF. |
publisher |
Optional[str]
|
The volume's publisher. |
shorttitle |
Optional[MarkupText]
|
A shortened form of the title. (Aliased to |
full_id
property
¶
full_id
The full anthology ID of this volume (e.g. "L06-1" or "2022.emnlp-main").
full_id_tuple
property
¶
full_id_tuple
The full anthology ID of this volume, as a tuple (e.g. ("L06", "1", None)
).
from_xml
classmethod
¶
from_xml(parent, meta)
Instantiates a new volume from its <meta>
block in the XML.
get_events ¶
get_events()
get_ingest_date ¶
get_ingest_date()
Returns:
Type | Description |
---|---|
date
|
The date when this volume was added to the Anthology. If not set, will return constants.UNKNOWN_INGEST_DATE instead. |
get_journal_title ¶
get_journal_title()
Returns:
Type | Description |
---|---|
str
|
The journal title for this volume, fetching this information from the associated venue if it isn't explicit set. |
Raises:
Type | Description |
---|---|
TypeError
|
If this volume doesn't represent a journal. |
ValueError
|
If the journal title isn't explicitly set, but there isn't exactly one venue associated with this volume. |
to_bibtex ¶
to_bibtex()
to_xml ¶
to_xml(with_papers=True)
Serialize this volume in the Anthology XML format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
with_papers |
bool
|
If False, the returned |
True
|
Returns:
Type | Description |
---|---|
_Element
|
A serialization of this volume as a |