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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -