Lokal Profil has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/354913 )

Change subject: [WIP]An example wikidata config
......................................................................

[WIP]An example wikidata config

* "Type" is used to indicate that this is a sparql config
* "project" (in combination with "lang") gives the project where report
  pages should live
* "sparql" contains the dataset specific select bit

This is meant as a first starting point. Later iterations would e.g.
parameterise what is now verbatim sparql.

Bug: T165953
Change-Id: I32fb656b1edd5a450842fa9ac87b7f4afec8b6cf
---
A erfgoedbot/monuments_config/nl-wd_nl.json
1 file changed, 31 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/heritage 
refs/changes/13/354913/1

diff --git a/erfgoedbot/monuments_config/nl-wd_nl.json 
b/erfgoedbot/monuments_config/nl-wd_nl.json
new file mode 100644
index 0000000..597bfca
--- /dev/null
+++ b/erfgoedbot/monuments_config/nl-wd_nl.json
@@ -0,0 +1,31 @@
+{
+    "country": "nl-wd",
+    "lang": "nl",
+    "description": "Rijksmonumenten in the Netherlands in Dutch",
+    "type": "sparql",
+    "project": "wikipedia",
+    "table": "monuments_nl-wd_(nl)",
+    "commonsTemplate": "Rijksmonument",
+    "commonsTrackerCategory": "Rijksmonumenten with known IDs",
+    "commonsCategoryBase": "Rijksmonumenten",
+    "unusedImagesPage": "Wikipedia:Wikiproject/Erfgoed/Nederlandse Erfgoed 
Inventarisatie/Ongebruikte foto's",
+    "imagesWithoutIdPage": "Wikipedia:Wikiproject/Erfgoed/Nederlandse Erfgoed 
Inventarisatie/Foto's zonder id",
+    "missingCommonscatPage": "Wikipedia:Wikiproject/Erfgoed/Nederlandse 
Erfgoed Inventarisatie/Missende commonscat links",
+    "sparql" : "{ ?item wdt:P359 [] } UNION { ?item wdt:P1435 wd:Q916333 } 
UNION { ?item wdt:P1435 wd:Q13423591 } UNION { ?item wdt:P1435 wd:Q17698911 }"
+    "sql_lang": "Dutch",
+    "sql_country": "Netherlands",
+    "sql_data": {
+        "country": {
+            "value": "nl",
+            "type": "Text"
+        },
+        "lang": {
+            "value": "nl",
+            "type": "Text"
+        },
+        "adm0": {
+            "value": "nl",
+            "type": "Text"
+        }
+    }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/354913
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I32fb656b1edd5a450842fa9ac87b7f4afec8b6cf
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/heritage
Gerrit-Branch: wikidata
Gerrit-Owner: Lokal Profil <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to