# Walkthrough all [[ https://sv.wikipedia.org/wiki/Lista_%C3%B6ver_Svenska_kyrkans_f%C3%B6rsamlingar | Svenska Församlingar ]] and see they have good structure in WD
## Set up constraints ==> what is the minimum number properties för a "Svensk församling" [[ https://www.wikidata.org/wiki/Q615980 | wd:Q615980 ]]
## As most contstraints will be related to P778 ==> [[ https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violations/P778 | Wikidata:Database_reports/Constraint_violations/P778 ]] will contain violations
# Identify Wikipedia articles that need new structure
# Identify modelling challenges
# Quality control data added
== Status ==
2018-09-04
* "Församlingar"
** with Församlingskod = [[ http://tinyurl.com/y9ezewaa | 2629 ]]
** with Församlingskod + coordinates = [[ http://tinyurl.com/ydg7ejeo | 2629 ]]
** with Församlingskod + coordinates + NAD = [[ http://tinyurl.com/y8eh89kv | 2222 ]]
** Petscan [[ http://petscan.wmflabs.org/?psid=5583783 | query 5583783 Articles ]] in [[ https://sv.wikipedia.org/wiki/Kategori:Svenska_kyrkans_f%C3%B6rsamlingar | sv:Kategori:Svenska kyrkans församlingar ]] without församlingskod P778 in WD = **523**
2018-08-29 [[ https://twitter.com/salgo60/status/1030751759348715522 | tweet ]]
* "Församlingar"
** with Församlingskod = [[ http://tinyurl.com/y9ezewaa | 2464 ]]
** with Församlingskod + coordinates = [[ http://tinyurl.com/ydg7ejeo | 2466 ]]
** with Församlingskod + coordinates + NAD = [[ http://tinyurl.com/y8eh89kv | 2070 ]]
** Petscan [[ http://petscan.wmflabs.org/?psid=5583783 | query 5583783 Articles ]] in [[ https://sv.wikipedia.org/wiki/Kategori:Svenska_kyrkans_f%C3%B6rsamlingar | sv:Kategori:Svenska kyrkans församlingar ]] without församlingskod P778 in WD = **695**
2018-08-18 [[ https://twitter.com/salgo60/status/1030751759348715522 | tweet ]]
* "Församlingar"
** with Församlingskod = [[ http://tinyurl.com/y9ezewaa | 1977 ]]
** with Församlingskod + coordinates = [[ http://tinyurl.com/ydg7ejeo | 1977 ]]
** with Församlingskod + coordinates + NAD = [[ http://tinyurl.com/y8eh89kv | 1611 ]]
** Petscan [[ http://petscan.wmflabs.org/?psid=5400018 | query 5400018 Articles ]] in [[ https://sv.wikipedia.org/wiki/Kategori:Svenska_kyrkans_f%C3%B6rsamlingar | sv:Kategori:Svenska kyrkans församlingar ]] without församlingskod P778 in WD = **1239**
== See also ==
* [[ https://salgo60.github.io/Svenskaforsamlingar/ | salgo60.github.io/Svenskaforsamlingar ]]
- [[ https://goo.gl/CnWz8Z | Example map ]] with links SCB and Riksarkivet
{F23877530}
- [[ http://tinyurl.com/y7psgqnm | Map with items ]] that has "församlingskod", NAD optional
- [[ http://tinyurl.com/y853on9b | Map with items ]] with "församlingskod" missing NAD
-- [[ http://tinyurl.com/y7m5acvs | Map with items ]] also not having wdno:P5324
- [[ http://tinyurl.com/ya5rdvdg | Maps with items ]] with "församlingskod" but NAD has no ID
- [[http://tinyurl.com/y7mzwhmt|List with items]] with more "församlingskoder" for a "församling"
- [[http://tinyurl.com/y8xu3xtd|Map with items]] that has "församlingskod" and an enddate
{F24289623}
- [[https://goo.gl/dgbqNZ|List with "församlingar"]] without coordinates
== Status==
* [[ https://goo.gl/zS8opj | Changes to objects ]] that are an instance of [[ https://www.wikidata.org/wiki/Q615980 | wd:Q615980 ]] "Svenska kyrkans församlingar"
{F24332893}
== Wikidata constraints ==
New functionality realised see **[[ https://www.wikidata.org/wiki/Wikidata:Status_updates/2018_08_06 | Wikidata status 201808 ]]** and [[ https://twitter.com/salgo60/status/1026736640578994176 | tweet ]]
- [[ https://youtu.be/eYhBAH0SQfE | Video ]] in Swedish What can be done
- Example [[ https://www.wikidata.org/wiki/Property_talk:P778 | constraints on P778 ]] "församlingskod"
{F24638913,width=800}
{F24639014,width=800}
- my [[ https://www.wikidata.org/wiki/User:Salgo60/common.js | common.js ]] to support constraints extra
- example [[ https://salgo60.github.io/Svenskaforsamlingar/#Constraints | SPARQL search with constraints ]]
{F24639750,width=800}
== Tools to use ==
see also [[ https://www.wikidata.org/wiki/Wikidata:Tools/Enhance_user_interface | Wikidata:Tools/Enhance_user_interface ]]
=== common.js ===
* importScript('**[[ https://www.wikidata.org/wiki/User:Frettie/consistency_check_add.js | User:Frettie/consistency check add.js ]]**');
** Checks if consistency for e.g. father <-> son that both WD objects are set up
* importScript('**[[ https://www.wikidata.org/wiki/User:Yarl/DragNDrop.js | User:Yarl/DragNDrop.js ]]**');
* mw.loader.load( '**[[ https://www.wikidata.org/w/index.php?title=User:Teester/ConstraintSummary.js | //www.wikidata.org/w/index.php?title=User:Teester/ConstraintSummary.js&action=raw&ctype=text/javascript ]]**');
adds a summary and an icon
{F24609999,width=500}
click on icons to get report below
{F24609929,width=500}