Skip to content

More bibdb data #527

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

Open
wants to merge 33 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d13ed0c
feat(bibdb): Add ILS search URIs
olovy May 2, 2025
843f010
Add bibdb:templateUri
olovy May 2, 2025
0a0e9ea
Add bibdb:eodUri
olovy May 2, 2025
cfbfb1f
Add bibdb prefix to context
olovy May 2, 2025
8bf0f82
Remove stray 4
lrosenstrom May 5, 2025
5763221
FILTER ils
olovy May 5, 2025
f7ab563
WIP: Add address
olovy May 5, 2025
7a937ad
Add address
olovy May 7, 2025
e53e6f3
Add library types
olovy May 7, 2025
51e729e
Fix context in bibdb_datasets.py
olovy May 8, 2025
99fb171
Remove additional debugging in datacompiler.py
olovy May 8, 2025
58a8376
Add reference for library types
olovy May 8, 2025
b1fbfab
Fix labels for LibraryTypes
olovy May 12, 2025
8fb5f9f
Add contact types
olovy May 12, 2025
fbd4737
WIP: Add organization
olovy May 12, 2025
66428d1
Add organization
olovy May 13, 2025
c7060b7
Fix empty nameByLang en
olovy May 13, 2025
52d483a
Add linkresolver
olovy May 13, 2025
ea8e5b9
Add bibdb:openingHours
olovy May 13, 2025
baaa61d
Add latitude/longitude
olovy May 13, 2025
629fd64
Add LOPAC stuff
olovy May 13, 2025
8db4c7c
Add library sub type
olovy May 13, 2025
808b888
Add label for bibdb:openingHours
olovy May 13, 2025
109f8da
Fix library sub type URIs
olovy May 13, 2025
c52b1e3
Update lenses
olovy May 13, 2025
bee9ea6
Add itemStatusUri
olovy May 13, 2025
556a7c3
Add bibdb:DisplayMode. Fix context mappings
olovy May 14, 2025
e4299eb
Fix context
olovy May 14, 2025
272fb97
Fix address filtering
olovy May 14, 2025
734d34f
Re-add stray comma
olovy May 14, 2025
6c7124b
Fix ILS filter
olovy May 15, 2025
4b43bb9
Add bibdb:PostalAddress-cards
olovy May 15, 2025
c2b684f
Add bibdb:PostalAddress-cards
olovy May 15, 2025
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
99 changes: 98 additions & 1 deletion source/bibdb/terms.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,105 @@ prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix kbv: <https://id.kb.se/vocab/>
prefix idkbse_bibdb: <https://id.kb.se/ns/bibdb/>
prefix : <https://id.kb.se/term/bibdb/>

:Registrant a skos:Concept ;
skos:prefLabel "Registrant"@en, "Registrerande"@sv ;
rdfs:comment "Bibliotek i Librissamarbetet som skapar och underhåller metadata i den gemensamma datamängden."@sv .
rdfs:comment "Bibliotek i Librissamarbetet som skapar och underhåller metadata i den gemensamma datamängden."@sv .


# https://git.kb.se/libris/bibdb/-/blob/develop/libdb/models.py#L262
:natbib a idkbse_bibdb:LibraryType ;
Copy link
Contributor

Choose a reason for hiding this comment

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

One thing that came to mind: What's the convention for enums, should they be capitalized or not?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we are mixing a bit 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just tried to keep it simple and use the exact string from BIBDB so that we can match them directly 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

That's what I thought!

skos:notation "natbib" ;
rdfs:label "Nationalbibliotek"@sv .

:folkbib a idkbse_bibdb:LibraryType ;
skos:notation "folkbib" ;
rdfs:label "Folkbibliotek"@sv .

:folkskolbib a idkbse_bibdb:LibraryType ;
skos:notation "folkskolbib" ;
rdfs:label "Folk- och skolbibliotek"@sv .

:specbib a idkbse_bibdb:LibraryType ;
skos:notation "specbib" ;
rdfs:label "Specialbibliotek"@sv .

:sjukbib a idkbse_bibdb:LibraryType ;
skos:notation "sjukbib" ;
rdfs:label "Sjukhusbibliotek"@sv .

:myndbib a idkbse_bibdb:LibraryType ;
skos:notation "myndbib" ;
rdfs:label "Myndighetsbibliotek"@sv .

:busbib a idkbse_bibdb:LibraryType ;
skos:notation "busbib" ;
rdfs:label "Företagsbibliotek"@sv .

:musbib a idkbse_bibdb:LibraryType ;
skos:notation "musbib" ;
rdfs:label "Arkiv och museibibliotek"@sv .

:muskom a idkbse_bibdb:LibraryType ;
skos:notation "muskom" ;
rdfs:label "Kommunalt museibibliotek"@sv .

:muslan a idkbse_bibdb:LibraryType ;
skos:notation "muslan" ;
rdfs:label "Länsmuseibibliotek"@sv .

:musstat a idkbse_bibdb:LibraryType ;
skos:notation "musstat" ;
rdfs:label "Statligt museibibliotek"@sv .

:skolbib a idkbse_bibdb:LibraryType ;
skos:notation "skolbib" ;
rdfs:label "Skolbibliotek"@sv .

:friskol a idkbse_bibdb:LibraryType ;
skos:notation "friskol" ;
rdfs:label "Friskolebibliotek"@sv .

:gymbib a idkbse_bibdb:LibraryType ;
skos:notation "gymbib" ;
rdfs:label "Gymnasiebibliotek"@sv .

:frisgym a idkbse_bibdb:LibraryType ;
skos:notation "frisgym" ;
rdfs:label "Friskolegymnasiebibliotek"@sv .

:statskol a idkbse_bibdb:LibraryType ;
skos:notation "statskol" ;
rdfs:label "Statligt skolbibliotek"@sv .

:vuxbib a idkbse_bibdb:LibraryType ;
skos:notation "vuxbib" ;
rdfs:label "Bibliotek på komvux/lärcentra"@sv .

:univbib a idkbse_bibdb:LibraryType ;
skos:notation "univbib" ;
rdfs:label "Universitets- och högskolebibliotek"@sv .

:folkhogbib a idkbse_bibdb:LibraryType ;
skos:notation "folkhogbib" ;
rdfs:label "Folkhögskolebibliotek"@sv .

:ovrbib a idkbse_bibdb:LibraryType ;
skos:notation "ovrbib" ;
rdfs:label "Övriga bibliotek"@sv .

# "typ av folkbibliotek"
# https://git.kb.se/libris/bibdb/-/blob/develop/libdb/models.py#L287
:kommunbib a idkbse_bibdb:LibraryType ;
skos:notation "kommunbib" ;
rdfs:label "Kommunbibliotek"@sv .

:lanecentral a idkbse_bibdb:LibraryType ;
skos:notation "lanecentral" ;
rdfs:label "Lånecentral"@sv .

:lansbib a idkbse_bibdb:LibraryType ;
skos:notation "lansbib" ;
rdfs:label "Länsbibliotek"@sv .
Loading