{"id":17495804,"url":"https://github.com/salgo60/samlalibris","last_synced_at":"2026-01-20T00:36:01.832Z","repository":{"id":107275493,"uuid":"170110929","full_name":"salgo60/SamlaLibris","owner":"salgo60","description":"Access LIBRIS and search for Svenska Kyrkor and extract items available from RAÄ Samla","archived":false,"fork":false,"pushed_at":"2024-05-13T07:40:42.000Z","size":4274,"stargazers_count":1,"open_issues_count":35,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T17:46:28.117Z","etag":null,"topics":["libris","raa-collection","ugc-46","wikidata"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/salgo60.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-11T10:36:45.000Z","updated_at":"2024-05-13T07:40:45.000Z","dependencies_parsed_at":"2024-05-13T08:44:36.212Z","dependency_job_id":"9948c4cd-9727-46dd-bf09-44000676e1d8","html_url":"https://github.com/salgo60/SamlaLibris","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salgo60%2FSamlaLibris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salgo60%2FSamlaLibris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salgo60%2FSamlaLibris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salgo60%2FSamlaLibris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salgo60","download_url":"https://codeload.github.com/salgo60/SamlaLibris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675609,"owners_count":20977378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libris","raa-collection","ugc-46","wikidata"],"created_at":"2024-10-19T14:31:11.416Z","updated_at":"2026-01-20T00:36:01.784Z","avatar_url":"https://github.com/salgo60.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11183812.svg)](https://doi.org/10.5281/zenodo.11183812)\n\n* [RAÄ Skuggbacklog](https://github.com/salgo60/SamlaLibris/issues/10)\n\n# SamlaLibris\nA small test [POC](https://en.wikipedia.org/wiki/Proof_of_concept) connecting books using [Open Linked Data](https://vimeo.com/36752317) ==\u003e start adding values... Today we see a lot of initiatives but when we check [LIBRIS XL a book](https://libris.kb.se/katalogisering/zh9m10b93jhxc4x) it is not linked and in [RAÄ a book](http://samla.raa.se/xmlui/handle/raa/6890) it is linked to a church in Wikipedia but no good user interface exist and its just a link or one link per object... compare Wikidata [Q61765464](https://www.wikidata.org/wiki/Q61765464) for the same book that also links the book to people mentioned in the book....\n\nI see old organisations having problem using new technology as [grafdatabases](https://www.youtube.com/watch?v=3vleFxDGoEs) and having an user community with the wrong skill matrix i.e. we get [Metadatadebt](https://twitter.com/salgo60/status/1188759411268997121?s=20) and the price we pay is data that is not FINDABLE/USABLE...\n\n## Are we getting Digital RDF SILOS? \n\nIn Sweden cultural people like [Digisam](http://www.digisam.se/linked-open-data/) has been speaking about Linked data since 2012 but I feel they miss a vision and dont have the right skill matrix. This is a [POC](https://en.wikipedia.org/wiki/Proof_of_concept) what can be done if we move the [Riksantikvarieämbetet UGC](https://www.raa.se/hitta-information/k-samsok/anvandargenererat-innehall-ugc-hubben/) data to a modern platform with the possibilities to easier connect those books as sources for a grave.... we have the same problem with the National Library project [LIBRISXL](http://www.mynewsdesk.com/se/kungliga_biblioteket/pressreleases/kb-becomes-the-first-national-library-to-fully-transition-to-linked-data-2573975) that also have the books in RDF but as \"Strings not things\" see picture below were \"Riksantikvarieämbetet\" is a string and not an object like Wikidata [Q631844](https://w.wiki/Bas) i.e. [#METADATADEBT](https://twitter.com/salgo60/status/1188759411268997121?s=20)...\n\n\nExample how a book can be connected to people mentioned in the book on a modern platform like Wikidata with \u003e [6800 properties](https://w.wiki/85n)\n\n![Book about the Riddarholm church](https://github.com/salgo60/SamlaLibris/blob/master/www/Book.png)\n\n![How its done in Wikidata and the metadatadebt at RAÄ and LIBRISXL](https://github.com/salgo60/SamlaLibris/blob/master/www/Book_libris.png)\n\n\n\n* Wikidata Phabricator Task [T215603](https://phabricator.wikimedia.org/T215603) *Connect WD Churches and church documentation at [RAÄ](http://samla.raa.se/xmlui/handle/raa/7)*\n* [Video](https://www.youtube.com/watch?v=6szCrwKdji0) in Swedish describes this linked solution where I extract 200 books from LIBRIS and combines them with RAÄ and Wikidata. A small reaction on this tweet from LIBRIS XL that I feel has no Linked Data vision displayed in what is delivered \u003c-\u003e [LIBRISXL tweet](https://twitter.com/LibrisNytt/status/1096353627097255936) \"UX-design – att forma en användarupplevelse\"\n* [Map with the churches](https://goo.gl/Ftkd3F) that are documented in a RAÄ Book ([also links LIBRIS/LIBRIS XL/sv:Wikipedia](http://tinyurl.com/yxnx66ug))\n\n![Wikidata search](https://github.com/salgo60/SamlaLibris/blob/master/www/SamlaLIBRIS_small.png)\n\n\n# POC Linked Books - what can be done in a day\n\u003cimg src=\"http://yuml.me/diagram/scruffy/class/[LIBRIS Svenska kyrkor]++book-1..\u0026gt;[RAÄ Samla]++book-1..\u0026gt;[RAÄ Samla]\"/\u003e\n\u003cimg src=\"http://yuml.me/diagram/scruffy/class/[UGC]-..\u0026gt;book[RAÄ Samla]\"/\u003e\n\u003cimg src=\"http://yuml.me/diagram/scruffy/class/[UGC]-..\u0026gt;Churches[Wikidata]\"/\u003e\n\nAccess LIBRIS and search for Svenska Kyrkor and extract items available from RAÄ Samla\n\n 1) Search in LIBRIS is [ZSER:(Sveriges kyrkor)](http://libris.kb.se/xsearch?query=ZSER:(Sveriges%20kyrkor)\u0026format=json\u0026n=200)\n\n 1-1) Check if RAÄ SAMLA has references to Wikipedia/Wikidata using [UGC](https://www.raa.se/hitta-information/k-samsok/anvandargenererat-innehall-ugc-hubben/)\n\n 1-2) export data\n\n 2) **Next step** use [Open Refine](https://www.wikidata.org/wiki/Wikidata:Tools/OpenRefine) to Match items in Wikidata to find Objects for authors etc.. and upload to Wikidata\n\n 2-1) Upload to Wikidata --\u003e SAMLA books will be one object with references from the WD church object and same as with the authors of the books\n\n# Usage\nPython [get_libris_svenska_kyrkor.py](https://github.com/salgo60/SamlaLibris/blob/master/get_libris_svenska_kyrkor.py) --\u003e [log](https://github.com/salgo60/SamlaLibris/tree/master/log)\n* Output\n * [svenskakyrkor.csv](https://github.com/salgo60/SamlaLibris/blob/master/svenskakyrkor.csv)\n   * contains LIBRIS information looks like the JSON doesnt contain page information see [unanswered question](https://kundo.se/org/librisxl/d/soka-fram-alla-kopplade-till-samlaraa-i-libris-xl/#c3195511)\n * [samlaWikidata.csv](https://github.com/salgo60/SamlaLibris/blob/master/samlaWikidata.csv)\n   * contains UGC relations Samla \u003c-\u003e Wikidata\n\n# Wikidata\n* every book is an object in WD \n  * example Wikidata objekt [Q61723424](https://www.wikidata.org/wiki/Q61723424) is RAÄ Samla [6880](http://samla.raa.se/xmlui/handle/raa/6880) - see also [What links here](https://www.wikidata.org/wiki/Special:WhatLinksHere/Q61723424)\n  * every book has one or more Main Topic [P921](https://www.wikidata.org/wiki/Property_talk:P921) that is the churches they describe or if a grave is described the buried person is linked\n* every church gets a described by [P1343](https://www.wikidata.org/wiki/Property_talk:P1343) linking back to the book\n## Wikidata queries\n* [Map with churches described by RAÄ](https://goo.gl/UYCMXB)\n* Linked data Graph of book [Riddarholmskyrkan](http://tinyurl.com/yyeoszcw) same as \n  * RAÄ Samla [kulturarvsdata.se/raa/samla/6873](http://kulturarvsdata.se/raa/samla/html/6873)\n  * LIBRIS [19512784](http://libris.kb.se/bib/19512784)\n* [Map - chuches near me documented by RAÄ](https://goo.gl/S62aAy)\n* [Start with a book about the Riddarholm church](http://tinyurl.com/y334xnvy) see [tweet](https://twitter.com/salgo60/status/1101089732564566018) book [Wikidata Q61765464](https://www.wikidata.org/wiki/Q61765464)\n\n![Book about the Riddarholm church](https://github.com/salgo60/SamlaLibris/blob/master/www/Book.png)\n\n## Errors\n* Wikidata/Sälgö\n  * Wikidata \n    * Task Wikidata Phabricator Task [T215603](https://phabricator.wikimedia.org/T215603) and [workboard](https://phabricator.wikimedia.org/tag/wmse-riksarkivet-tora/)\n    * [Category:P1260_Error](https://www.wikidata.org/wiki/Category:P1260_Error)\n  * Github\n    * [salgo60/SamlaLibris/issues](https://github.com/salgo60/SamlaLibris/issues)\n    * [Projectboard RAÄ/Samla](https://github.com/salgo60/SamlaLibris/projects/1)\n* RAÄ/UGC\n   * No formal error reporting is used at RAÄ UGC so I sent a tweet to Abbe that I have a WD category with odd things [Category:P1260_Error](https://www.wikidata.org/wiki/Category:P1260_Error) - I guess either I update WD or they do redirect feels like some [Link rot](https://en.wikipedia.org/wiki/Link_rot)\n* LIBRIS XL \n  * has a [discussion group](https://kundo.se/org/librisxl/posts/) that is answered but lack a change process that you can follow\n    * you get no error id\n    * there is no public backlog\n    * you get no notification when something is in production you have to ask every 6 months in the discussion group example [status federated search](https://kundo.se/org/librisxl/d/federated-sparql-fragor-hur-gor-man-och-vad-behovs/#c3199001)\n# Links\n\n* See if we can do this for indoor maps [T217470](https://phabricator.wikimedia.org/T217470)\n* Question LIBRIS XL about searching [link](https://kundo.se/org/librisxl/d/soka-fram-alla-kopplade-till-samlaraa-i-libris-xl/)\n * LIBRIS XL product owner [Anna Berggren](https://www.youtube.com/watch?v=N26nglSxhDk) reply 20190214\n    * JSON API is just available for LIBRIS and **not** LIBRIS XL\n    * Riksantikvarieämbetet is a text string **rdfs:Literal** and not the correct linked data way **owl:sameAs** for more info about [ProvisionActivity](http://id.loc.gov/ontologies/bibframe.html#p_provisionActivityStatement) see [LIBRIS Data Model](https://libris.kb.se/wk2q9mn3z0g096kd)\n    * its confirmed that pattern matching in URLS and labels is what we have today(2019-feb) and use old school LIBRIS API\n      * Feels an odd approach to have such bad data when LIBRIS have invested in Linked Data building LIBRIS XL since [2012](https://librisbloggen.kb.se/2014/05/28/ny-katalog-nytt-format-pionjararbetet-med-libris-xl/)/[roadmap 2014](https://librisbloggen.kb.se/2014/06/08/uppdaterad-libris-roadmap-juni/). LIBRIS statement about [Open Data](http://kb.se/libris/Om-Libris/Introduktion-till-nya-Libris-och-XL/Lankade-data-och-arbetet-framat/)\n* [UGC-hubben](https://www.raa.se/hitta-information/k-samsok/anvandargenererat-innehall-ugc-hubben/) (användargenererat innehåll)\n* [Sveriges kyrkor](http://samla.raa.se/xmlui/handle/raa/7) - [Riksantikvarieämbetes Samla](https://www.raa.se/hitta-information/publikationer/om-samla/)\n* [LIBRIS Xsearch](http://librishelp.libris.kb.se/help/xsearch_swe.jsp?open=tech)\n* [Wikidata/Commons contribution strategies for GLAM organizations](https://media.ccc.de/v/wikidatacon2019-1077-wikidata_commons_contribution_strategies_for_glam_organizations) \n* [Petscan query](http://petscan.wmflabs.org/?psid=13670058) find people in Wikipedia category [Kategori:Gravsatta_i_Riddarholmskyrkan](https://sv.wikipedia.org/wiki/Kategori:Gravsatta_i_Riddarholmskyrkan) and not source [wd:Q61765464](https://www.wikidata.org/wiki/Q61765464)\n### My Facebook anouncements about the map\n* [Släktforskning Semantisk Web](https://www.facebook.com/groups/345973895882090/permalink/552177558595055/)\n* [Epitafier](https://www.facebook.com/groups/448439408603556/permalink/2096873797093434/)\n* [Sveriges Släktforskarförbund](https://www.facebook.com/sverigesslaktforskarforbund/posts/1255156874623091?comment_id=1255734687898643)\n\n## Svenskt Kyrkogårdprojekt\nEtt försök att få kopplingar våra kyrkogårdar med kyrka, flygbilder, Find A Grave, Släktforskarförbundet se [github:salgo60/Gravstensinventeringen-Wikidata](https://github.com/salgo60/Gravstensinventeringen-Wikidata)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalgo60%2Fsamlalibris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalgo60%2Fsamlalibris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalgo60%2Fsamlalibris/lists"}