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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -