**Task: **Add WikiTree Categories to WIkidata for ASwedish Parishes and see how WIkiTree can use Wikidata/WIkipedia better
**Status**: Done
**Next step:**
* Get feedback from WikiTree
* As WikiTree now gets coordinates for categories they can start create maps for people in a family tree and plot the location of connected categories. Maybe doing a small step [[ https://vimeo.com/36752317 | direction Linked Data ]] is to start connect Categories to events in a persons life
* This category
* is associated with birth place
* is associated with cemetery
* is associated with work place
* ....
---
See {T201404} and how we changed the template [T200515#4683374]
WikiTree is [[ https://www.wikidata.org/wiki/Wikidata:Property_proposal/WikiTree | since 2016 a property ]] in wikidata that is connected > [[ https://www.wikidata.org/wiki/Property_talk:P2949 | 70 000 times for people ]].
This is a POC that Wikitree also can connect WikiTree categories to Wikidata
The benefit is then that WikiTree can get enriched by the metadata and Wikipedia articles WIkipedia/Wikidata has in > 290 languages.
WikiTree get more connected and can
- display maps using coordinates in WikiTree
- links to Swedish WIkipedia with articles about > 6000 "församlingar/socknar" parishes
- easy retrieve snippets of Wikipedia text to display inside WikiTree
- use Wikidata as a hub see https://tools.wmflabs.org/hub
- to navigate WikiTree > Wikidata > Swedish National Archive and the free Swedish church books
- as Wikidata has the coordinate a link to external maps
- Wikidata has also a connection to "socknar" Swedish Administrative parishes. You can then also access
- SOFI name registers for all "socknar"
- Anbytarforum a discussion groups for every parish
* Example
* [[ https://www.wikitree.com/wiki/Category:Landskrona_%28M%29 | Category: Landskrona (M) ]]
* same as Wikidata [[ https://www.wikidata.org/wiki/Q10553938 | Q10553938 ]]
* Swedish free churchbooks https://tools.wmflabs.org/hub/P2949:Category:Landskrona_%28M%29?property=P5324
* Map for parish https://tools.wmflabs.org/hub/P2949:Category:Söderala_(X)?property=P778
* Swedish free churchbooks https://tools.wmflabs.org/hub/P2949:Category:Landskrona_%28M%29?property=P5324
* Swedish free churchbooks https://tools.wmflabs.org/hub/P2949:Category:Landskrona_%28M%29?property=P5324
=== SPARQL
- [[ https://w.wiki/AuP | List Item Swedish Parish and have WIkitree property ]] < 2720
- on a [[ https://w.wiki/AuQ | map ]]
- [[ https://w.wiki/Auf | list of Swedish Church parishes not matched ]] to a WikiTree category > 860
- as Swedish church parishes are splitted and merged it can be ok to have a difference
- if a church parish is "changing" county WikiTree (me ;) decided to have 2 categories [[ https://w.wiki/AvF | see list ]]
- Wikidata "Almunge församling" [[ https://www.wikidata.org/wiki/Q10406579 | Q10406579 ]] has WikiTree categories
- [[ https://www.wikitree.com/wiki/Category:Almunge_(AB) | Category:Almunge_(AB) ]]
- [[ https://www.wikitree.com/wiki/Category:Almunge_(C) | Category:Almunge_(C) ]]
{F30906951,width=800}
=== API
as we now have a connection WikiTree categories Wikidata we also have access to
# Pictures used /associated with the parish
# Wikipedia articles about the parish, that we with the Wikipedia API can "reuse"
# Example Wikipedia API -> fetch 10 rows of text from the article [[ https://sv.wikipedia.org/wiki/Landskrona_f%C3%B6rsamling | sv.wikipedia.org Landskrona_församling ]]
# [[ https://www.mediawiki.org/wiki/Extension:TextExtracts | API: Extension:TextExtracts ]], example [[https://sv.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&titles= Landskrona_församling | Landskrona_församling ]]
# [[ https://www.wikitree.com/wiki/Category:Pokopali%C5%A1%C4%8De_%C5%BDale,_Ljubljana,_Slovenija | Category: Pokopališče Žale, Ljubljana, Slovenija ]] same as [[ https://www.wikidata.org/wiki/Q338245 | Q338245 ]] same as [[ https://en.wikipedia.org/wiki/%C5%BDale | en:Wiki ]] same as [[ https://sl.wikipedia.org/wiki/Centralno_pokopali%C5%A1%C4%8De_%C5%BDale | sl:Wiki ]]
# JSON [[ https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&titles=Žale | en:Wiki ]]
# JSON [[ https://sl.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&titles=Centralno_pokopali%C5%A1%C4%8De_%C5%BDale | sl:Wiki ]]
{F30907013}
# [[ https://youtu.be/QskooXZvbVE | Video ]] how to get Python code from a SPARQL query in WIkidata
# JSFiddler how to [[ http://jsfiddle.net/salgo60/c6oe4jfr/ | send in a SPARQL query and get a map ]]
{F30907011}
== Swedish Church parish and Swedish Administrative parish
We are now trying to "connect" Swedish Church Parish with Swedish Administrative parish (sv. församlingar/ socknar). This is a "loose" connection as we have no formal sources on this but its useful as we have useful information connected to Swedish Administrative parishes like nameregisters and "Anbytarforum" a site with a discussion group were highly skilled genealogy interested people participate
- [[ https://w.wiki/Aus | List Swedish church parishes and related Swedish administrative parishes ]] "församlingar/socknar"
- example Abilds församling Wikidata [[ https://www.wikidata.org/wiki/Q10397979 | Q10397979 ]]
- is related to Abilds socken Wikidata [[ https://www.wikidata.org/wiki/Q4667745 | Q4667745 ]]
- that has
- [[ http://www4.sprakochfolkminnen.se/NAU/bilder/_s1nx001/206116d1.htm | nameregister in SOFI for the "Abild socken" ]]
- [[ https://forum.rotter.se/index.php?board=476 | discussion group "Abild" anbytarforum ]]
{F30907096}
{F30907099}