- SPA has 2 API:s get latest and search but no documentation
- spa2commons is a javascript running in Wikicommons to make it easy to find pictures in SPA and upload them to Wikicommons
- more than 6000 pictures uploaded first weeks / sorted
- see also video (english) / swedish swedish video2
- notebooks are used to check if people in Wikidata on e.g. a cemetery has good candidates in SPA
- as SPA set same as Wikipedia we use the API to find those records and update Wikidata see Notebook SPA links Wikipedia and video how to use OpenRefine for cleaning data and upload
javascript that find scanned pictures in SPA and upload it to Wikicommons. The script is based on https://github.com/kaldari/iNaturalist2Commons
- javascript spa2Commons3 current in development see User:Salgo60/spa2commons3.js
- install it in your Special:MyPage/common.js on Wikicommons see my common,js add the following line
importScript( 'User:Salgo60/spa2commons3.js' );
- javascript spa2Commons4 new version moved to codex see User:Salgo60/spa2commons4.js
- install it in your Special:MyPage/common.js on Wikicommons see my common,js add the following line
importScript( 'User:Salgo60/spa2commons4.js' );
- Using Notebooks and SPARQL to find objects in Wikidata and check if we have good candidates in SPA
- example Notebooks see folder Notebook
- SPARQL examples
- find all people on the Northern cemetery missing SPA Property:P4819 SPARQL / Notebook
- find people connected to the Litteraturbank missing SPA Property:P4819 SPARQL / Notebook
- find all people related to Q20720200 --> defaultView:Graph , I change this query and filter it for beeing used with SPA
- SDC_set_from_SPACategories - Notebook that creates a csv file containing depicts for a picture. This csv is loaded to Openrefine and a Quickstatement fil is created that updates Wikicommons. Example csv file SPACategories_Mid_WD.txt
Because the environment is set up I have used PAWS for
- Traverse category to find SPA id
- quick and dirty that checks all files in categoryspa2commons and check for the spource partameter point at SPA --> a csv file is created that is used in Open Refine to create a quickstatement file to set SDC in Wikicommons
- TBD SPA -> Wikidata
- we have a restriction n retrieving 10 000 objects see
- Wikidata -> SPA
- Find files in WIkicommons with SPA set and depicts Wikidata object
- 2021-11-03 1436 files, SPA and WD depict 1010 files, Wikidata <-> SPA 5290 WD objects
- 2021-11-06 1485 files, SPA and WD depict 1478 files, Wikidata <-> SPA 5339 WD objects
- 2021-12-03 6617 files, SPA and WD depict 6551 files, Wikidata <-> SPA 5668 WD objects
- 2023-01-02 ?? timeout files, SPA and WD depict 9349 files, Wikidata <-> SPA 8511 WD objects
- Wikicommons SDC solution is in Beta and updated weekly see wlatest update SPA and depicts =
- Find files in WIkicommons with SPA set and depicts Wikidata object
SPA and WD has semantic interoperability in some sense BUT we need to start match
- see notebook that
- checks people in WD connected to Litteraturbanken with no picture
- does a look up in SPA for good candidates
some pictures in SPA have same as Wikipedia. We use the API to find those pictures and checks if in Wikidata Property:P4819 is set see list of Wikidata persons with Property:P4819 set but no pictures
- limitations is we can just retrieve 10 000 records from SPA
- video how to use OpenRefine for cleaning data and upload
- list in Wikidata with objects connected to SPA using WD property but have no picture in Wikidata
- video in english how the API works
- use Wikidata:Entity_Explosion to better see API etc. see video
- video use Wikidata/FamilyTree se mallen
- Mix-and Match 4837 - catalog for attaching SPA with Wikidata
- WD Gravstensinventeringen projekt där kyrkogårdar kopplas till Wikidata och sedan kan man se vilka personer på en kyrkogård som saknar bild och söka mot SPA se Notebook video
- Notebook WD <-> SPA kandidater
- Exempel hur en kandidat presenteras med Ranking
- Notebook WD <-> SPA kandidater
* [Blog om Gamla Gävle Begravningsplats](http://minancestry.blogspot.com/2020/03/gavle.html) i Wikidata
- need to be in the whitelist for uploading see T290581
- looks this is the way forward Commons:Upload_tools/wgCopyUploadsDomains
- get test pilots
- announce it on sv;Wikipedia Bybrunnen
- add structured data to Wikicommons as automatic as possible
- start from Wikidata
- do a search in SPA
- find pictures related to the current Wikidataobject
- get a button if the wikidata oibject is a person, born before 1900, country Sweden and scoure > 25
- clicking on the button
- a search is done in SPA
- a picture is selected
- metadata is set and categories
- ??!?!?!
- clicking on the button
- from a Wikipedia article to the above
- more options
- create a category if noone is there
- ?!?!?!