Find duplicate values in Semantic MediaWiki -
How do I list any duplicate values for the property in Semantic MediaWiki? A MySQL query is fine, it is not through an SMW query.
I found a way that works for me:
with installed , Create a template and ask the value like this: It is important to sort out the results before sending them to the template, because the duplicate has to come to each other. {{duplicate search}} like this:
{{ifeq: {{# var: a}} | {{# Vardefineecho: a | {{{2 |}}}}} | & Lt ;! - Duplicate found! Print some messages: - & gt; Duplicate found: {{{2}}}
{{# ask: [[MyProperty :: +]] | | MyProperty | Sort = MyProperty | Format = template | Template = Detect duplicates}}
Comments
Post a Comment