Extension:Semantic Result Formats/array and hash formats

The result formats Array and Hash, both part of the Semantic Result Formats extension, are used to output query results in a way most suitable for further processing by MediaWiki templates or parser functions. They can either output the result as string with a variety of separators between different values, or store the result directly into an ArrayExtension Array or HashTables-extension Hash.

Examples
Define an Array with name, one array value per page containing the page title where the property Name was found

Define a Hash with name, Pagenames as associative keys and the value of each result page Name property as value:

Usage
The Array format is not only useful if ArrayExtension is installed, it also is a good alternative to Semantic-MediaWikis default list format since it allows to specify a variety of separators and not just the separator between query output values per page (sep parameter of list format).