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

Make sure all readers are biographical or bibliographical #45

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion edpop_explorer/readers/cerl_thesaurus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Dict, List

from rdflib import URIRef
from edpop_explorer import SRUReader, Record, BiographicalRecord, Field
from edpop_explorer import SRUReader, Record, BiographicalRecord, Field, BIOGRAPHICAL
from edpop_explorer.fields import LocationField


Expand All @@ -14,6 +14,7 @@ class CERLThesaurusReader(SRUReader):
'https://edpop.hum.uu.nl/readers/cerlthesaurus'
)
IRI_PREFIX = "https://edpop.hum.uu.nl/readers/cerlthesaurus/"
READERTYPE = BIOGRAPHICAL
SHORT_NAME = "CERL Thesaurus"
DESCRIPTION = "The CERL Thesaurus file contains forms of imprint " \
"places, imprint names, personal names and corporate names as "\
Expand Down
3 changes: 2 additions & 1 deletion edpop_explorer/readers/gallica.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from rdflib import URIRef
from edpop_explorer import SRUReader, BibliographicalRecord, Field
from edpop_explorer import SRUReader, BibliographicalRecord, Field, BIBLIOGRAPHICAL
from typing import Optional
import re
import requests
Expand Down Expand Up @@ -38,6 +38,7 @@ class GallicaReader(SRUReader):
IRI_PREFIX = "https://edpop.hum.uu.nl/readers/gallica/"
DOCUMENT_API_URL = "https://gallica.bnf.fr/services/OAIRecord?ark={}"
IDENTIFIER_PREFIX = "https://gallica.bnf.fr/"
READERTYPE = BIBLIOGRAPHICAL
SHORT_NAME = "Gallica"
DESCRIPTION = "Digital library of the Bibliothèque nationale de France " \
"and its partners"
Expand Down
3 changes: 2 additions & 1 deletion edpop_explorer/readers/pierre_belle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import csv
from typing import List
from edpop_explorer import Reader, ReaderError, BibliographicalRecord, Field, DatabaseFileMixin
from edpop_explorer import Reader, ReaderError, BibliographicalRecord, Field, DatabaseFileMixin, BIBLIOGRAPHICAL
from rdflib import URIRef


Expand All @@ -13,6 +13,7 @@ class PierreBelleReader(DatabaseFileMixin, Reader):
)
IRI_PREFIX = "https://edpop.hum.uu.nl/readers/pierre_belle/"
FETCH_ALL_AT_ONCE = True
READERTYPE = BIBLIOGRAPHICAL
SHORT_NAME = "Pierre and Belle"
DESCRIPTION = "Bibliography of early modern editions of Pierre de " \
"Provence et la Belle Maguelonne (ca. 1470-ca. 1800)"
Expand Down
3 changes: 2 additions & 1 deletion edpop_explorer/readers/sbtireader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List, Dict, Optional

from edpop_explorer import (
Reader, Record, ReaderError, BiographicalRecord, Field
Reader, Record, ReaderError, BiographicalRecord, Field, BIOGRAPHICAL
)


Expand All @@ -18,6 +18,7 @@ class SBTIReader(Reader):
)
IRI_PREFIX = "https://edpop.hum.uu.nl/readers/sbti/"
DEFAULT_RECORDS_PER_PAGE = 10
READERTYPE = BIOGRAPHICAL
SHORT_NAME = "Scottish Book Trade Index (SBTI)"
DESCRIPTION = "An index of the names, trades and addresses of people "\
"involved in printing in Scotland up to 1850"
Expand Down
3 changes: 2 additions & 1 deletion edpop_explorer/readers/stcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from rdflib.term import Node
from typing import List, Optional, Tuple

from edpop_explorer import Field
from edpop_explorer import Field, BIBLIOGRAPHICAL
from edpop_explorer.sparqlreader import (
SparqlReader, BibliographicalRDFRecord
)
Expand Down Expand Up @@ -30,6 +30,7 @@ class STCNReader(SparqlReader):
'https://edpop.hum.uu.nl/readers/stcn'
)
IRI_PREFIX = "https://edpop.hum.uu.nl/readers/stcn/"
READERTYPE = BIBLIOGRAPHICAL
SHORT_NAME = "Short-Title Catalogue Netherlands (STCN)"
DESCRIPTION = "National biography of The Netherlands until 1801"

Expand Down
Loading