Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/netherlands citation page #1572

Merged
merged 8 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions backend/corpora/parliament/citation/netherlands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Citing the entire corpus

People & Parliament presents the *Dutch parliamentary data* corpus, which is a combination of the following:
- Dutch parliamentary proceedings from 1814-2013, harvested and enriched in the [Political Mashup project](https://ssh.datastations.nl/dataset.xhtml?persistentId=doi:10.17026/dans-xk5-dw3s), retrieved 2020
- Dutch parliamentary proceedings from 2014-2022, harvested and enriched by [ParlaMINT](https://www.clarin.eu/parlamint), first retrieved 2020 and updated 2023

### APA style

> University of Jyväskylä and Utrecht University (2020, 2023). *Dutch Parliamentary data* [data set]. People & Parliament: the Netherlands. {{ frontend_url }}/search/parliament-netherlands

### MLA style

[MLA guidelines](https://style.mla.org/) recommend against citing a database, and recommend [citing each individual work you use](https://style.mla.org/separate-entries-database-works/). If you want to cite the entire corpus nonetheless, we recommend the following format:

> University of Jyväskylä and Utrecht University. "Dutch Parliamentary data". *People & Parliament*, 2020/2023. {{ frontend_url }}/search/parliament-netherlands

## Referring to a debate
To get an URL for an entire debate, you can use the *view debate* link for a speech. This will get you a link like this:

{{ frontend_url }}/search/parliament-netherlands?debate_id=ParlaMint-NL_2021-12-21-eerstekamer-4&sort=sequence,asc

## Citing a specific speech

To cite a speech in the *Dutch Parliamentary data* corpus, you can retrieve a link by clicking the *link* icon underneath the speech's document tile. This should give you an url as follows:
{{ frontend_url }}/document/parliament-netherlands/ParlaMint-NL_2021-12-21-eerstekamer-4.u1

### APA style

> Rutte, M. (2021). In *Report of the meeting of the Dutch Lower House, Meeting 37, Session 2 (2021-12-21)*. {{ frontend_url }}/document/parliament-netherlands/ParlaMint-NL_2021-12-21-tweedekamer-2.u225

### MLA style

> Rutte, Mark. *Report of the meeting of the Dutch Lower House, Meeting 37, Session 2 (2021-12-21)*, 2021. {{ frontend_url }}/document/parliament-netherlands/ParlaMint-NL_2021-12-21-tweedekamer-2.u225
Comment on lines +40 to +44
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember from my time on the project that the "official" English translations for eerste kamer / tweede kamer are house of commons / senate. Did you get this format from somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description comes from the actual data (debate title).

3 changes: 3 additions & 0 deletions backend/corpora/parliament/netherlands.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from corpora.parliament.utils.parlamint import extract_all_party_data, extract_people_data, extract_role_data, party_attribute_extractor, person_attribute_extractor
from corpora.utils.formatting import format_page_numbers
from corpora.parliament.parliament import Parliament
from corpora.utils.constants import document_context
import corpora.parliament.utils.field_defaults as field_defaults
import re

Expand Down Expand Up @@ -132,11 +133,13 @@ class ParliamentNetherlands(Parliament, XMLCorpusDefinition):
es_index = getattr(settings, 'PP_NL_INDEX', 'parliament-netherlands')
image = 'netherlands.jpg'
description_page = 'netherlands.md'
citation_page = 'netherlands.md'
tag_toplevel = lambda _, metadata: 'root' if is_old(metadata) else 'TEI'
tag_entry = lambda _, metadata: 'speech' if is_old(metadata) else 'u'
languages = ['nl']

category = 'parliament'
document_context = document_context()

def sources(self, start, end):
logger = logging.getLogger(__name__)
Expand Down
Loading