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 and then display maps, easy retrieve snippets of Wikipedia text to display inside WikiTree and also use Wikidata as a hub to navigate WikiTree > Wikidata > Swedish National Archive and free church books or to a map see https://tools.wmflabs.org/hub
* 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/Auh | 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 als have a cnnection
# Pictures used /associated with the item
# WIkipedia texts
# 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}