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

More bibdb data #527

wants to merge 33 commits into from

Conversation

olovy
Copy link
Contributor

@olovy olovy commented May 8, 2025

Map more data from bibdb.

  • For now, this is for use in lxl-web. The goal has been to avoid clashes / confusion with the bib universe (e.g. organizations)
    • All terms live in the new bibdb:namespace. Some of them might be moved to main KBV later.
    • It is a fairly straight mapping of the bibdb data model. Evaluating if that is a good model is out of scope.

TODO:

  • Geo: kommun, län. Depends on "geo-core"
    • coordinates are placed on Library for now. Could be Place or equivalent to sdo:GeoCoordinates.

Examples:

<https://libris.kb.se/library/S> :url <http://www.kb.se/> ;
  :name "Kungliga biblioteket" ;
  a :Library ;
  :sigel "S" ;
  :sameAs <http://bibdb.libris.kb.se/library/S> ;
  :category <https://id.kb.se/term/bibdb/Registrant> ;
  :isPartOf <https://libris.kb.se/library/org/KB> ;
  bibdb:lopac [ a bibdb:LOPAC ;
      bibdb:displayMode bibdb:Lightbox ;
      bibdb:bibIdSearchUriByLang "https://regina.kb.se/primo-explore/search?query=any,contains,%BIBID%&tab=default_tab&search_scope=BOOKS&vid=46KBS_VU&lang=en_US"@en , "https://regina.kb.se/primo-explore/search?query=any,contains,%BIBID%&tab=default_tab&search_scope=BOOKS&vid=46KBS_VU"@sv ] ;
  bibdb:eodUri "https://regina.kb.se/primo-explore/search?query=any,contains,%BIBID%&tab=books&search_scope=BOOKS&vid=46KBS_VU&lang=sv_SE" ;
  bibdb:address [ a bibdb:PostalAddress ;
      bibdb:email "[email protected]" ;
      bibdb:telephone "010 709 30 00" ;
      bibdb:postalCode "102 41" ;
      bibdb:streetAddress "Box 5039" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:StatisticalContactAddress ;
      bibdb:postalCode "114 46" ;
      bibdb:streetAddress "Humlegårdsgatan 26" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:DeliveryAddress ;
      bibdb:postalCode "114 46" ;
      bibdb:streetAddress "Humlegårdsgatan 26" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:InvoicingAddress ;
      bibdb:postalCode "831 90" ;
      bibdb:streetAddress "FE 7721" ;
      bibdb:addressLocality "Östersund" ] ,
    [ a bibdb:ILLAddress ;
      bibdb:email "[email protected]" ;
      bibdb:telephone "010 709 30 30" ;
      bibdb:postalCode "102 41" ;
      bibdb:streetAddress "Box 5039" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:VisitingAddress ;
      bibdb:streetAddress "Humlegården" ] ;
  bibdb:latitude 59.337534 ;
  bibdb:longitude 18.071651 ;
  bibdb:libraryType <https://id.kb.se/term/bibdb/natbib> ;
  bibdb:openingHours "Se www.kb.se" .
  
<https://libris.kb.se/library/org/KB> :code "KB" ;
  :name "Kungliga biblioteket" ;
  a bibdb:Organization ;
  :name "National Library of Sweden"@en .

<https://libris.kb.se/library/X> :url <http://www.musikochteaterbiblioteket.se/> ;
  :name "Musik- och teaterbiblioteket" ;
  a :Library ;
  :sigel "X" ;
  :sameAs <http://bibdb.libris.kb.se/library/X> ;
  :category <https://id.kb.se/term/bibdb/Registrant> ;
  :isPartOf <https://libris.kb.se/library/org/SMB> ;
  bibdb:address [ a bibdb:ILLAddress ;
      bibdb:email "[email protected]" ;
      bibdb:telephone "08 519 554 12" ;
      bibdb:postalCode "115 28" ;
      bibdb:streetAddress "Tegeluddsvägen 100" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:PostalAddress ;
      bibdb:email "[email protected]" ;
      bibdb:telephone "0851955412" ;
      bibdb:postalCode "115 28" ;
      bibdb:streetAddress "Tegeluddsvägen 100" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:DeliveryAddress ;
      bibdb:postalCode "115 28" ;
      bibdb:streetAddress "Tegeluddsvägen 100" ;
      bibdb:addressLocality "Stockholm" ] ,
    [ a bibdb:VisitingAddress ;
      bibdb:streetAddress "Tegeluddsvägen 100" ] ;
  bibdb:latitude 59.337076 ;
  bibdb:longitude 18.042767 ;
  bibdb:libraryType <https://id.kb.se/term/bibdb/specbib> ;
  bibdb:openingHours """Måndag 12-17, Tisdag-onsdag 10-17, 
Torsdag 10-18.30""" .

@olovy olovy requested review from niklasl, lrosenstrom and kwahlin May 8, 2025 14:12
@olovy olovy changed the title WIP: More bibdb data More bibdb data May 14, 2025
@olovy olovy requested a review from klngwll May 14, 2025 13:52
@olovy olovy marked this pull request as ready for review May 14, 2025 14:36
Copy link
Contributor

@klngwll klngwll left a comment

Choose a reason for hiding this comment

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

pragmatiskt isärhållning med namespace, skulle gärna se att när vi nu myntar nya "officiella" URI:er för organisationer t.ex. att vi signalerar nån sorts disclaimer för kontexten/datasetet så att inte extern användning drar iväg på dessa former.

Copy link
Contributor

@kwahlin kwahlin left a comment

Choose a reason for hiding this comment

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

Looks good from what I can tell!


# 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!

@olovy
Copy link
Contributor Author

olovy commented May 16, 2025

pragmatiskt isärhållning med namespace, skulle gärna se att när vi nu myntar nya "officiella" URI:er för organisationer t.ex. att vi signalerar nån sorts disclaimer för kontexten/datasetet så att inte extern användning drar iväg på dessa former.

Tänkte du här eller?
https://libris-qa.kb.se/katalogisering/n65zqdm0q3w3gv98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants