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 {{duplicate search}} like this:

  {{ifeq: {{# var: a}} | {{# Vardefineecho: a | {{{2 |}}}}} | & Lt ;! - Duplicate found! Print some messages: - & gt; Duplicate found: {{{2}}}   

and ask the value like this:

  {{# ask: [[MyProperty :: +]] | | MyProperty | Sort = MyProperty | Format = template | Template = Detect duplicates}}   

It is important to sort out the results before sending them to the template, because the duplicate has to come to each other.

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -