Template:Identical id value
PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?i1 ?i1Label ?i2 ?i2Label where {
?i1 wdt: ?val . ?i2 wdt: ?val . filter( !(?i1 = ?i2) && str(?i1) < str(?i2) ) SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
Usage edit
{{Wdquery|
{{Identical id value|P1077|en|fr}}
}}
{{Wdquery|
{{Identical id value|P1077,P31|en|fr}}
}}
See also edit
{{Identical values}}
The corresponding "partial query".
Generates a SPARQL Query to find entities with duplicates IDs wrt. an identifier property
Parameter | Description | Type | Status | |
---|---|---|---|---|
property PID | 1 pid | the PID(s) of some property or properties, coma separated (for example P31,P299)
| Unknown | required |
2 | 2 | no description | Unknown | optional |
3 | 3 | no description | Unknown | optional |
4 | 4 | no description | Unknown | optional |
5 | 5 | no description | Unknown | optional |
6 | 6 | no description | Unknown | optional |
The above documentation is transcluded from Template:Identical id value/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |