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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -