From e3451a58dee57468540187dc611eb96447e9295e Mon Sep 17 00:00:00 2001 From: Pierre Choffet Date: Thu, 19 Mar 2026 11:09:23 -0400 Subject: [PATCH] Add tool to detect elements with duplicate label/description --- README | 3 + .../report_label_description_duplicates.xslt | 68 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 xslts/report_label_description_duplicates.xslt diff --git a/README b/README index 2217d9f..6bf2fb6 100644 --- a/README +++ b/README @@ -36,3 +36,6 @@ Description of the provided tools: - xslts/replace_id.xslt Change the wdef:id of an element and its references. + + - xslts/report_label_description_duplicates.xslt + Detect elements with duplicate labels/descriptions (this is illegal in Wikidata) diff --git a/xslts/report_label_description_duplicates.xslt b/xslts/report_label_description_duplicates.xslt new file mode 100644 index 0000000..7bdbb6e --- /dev/null +++ b/xslts/report_label_description_duplicates.xslt @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + : + In language " + + ", the label " + + " with description " + + " has + + occurrences. + + + + + + + + -- 2.53.0