LibreIdea:Make a query

to make a query, there is two functions; ask to get multiple results, show to get only one result

Parser function
It displays multiple results



Parser function
A common usage of queries is to display only a single property value for a single page. For example, one could insert the slogan of an ingenie into some article, and use a query instead of manual copying to achieve this. SMW provides a special shortcut to make such queries simpler. For example, one can write

result is : ""

result is : ""

result is : ""

result is : ""

Thus the advantage of using  compared to   for querying single property values becomes visible.

filter results
page type::ingenie short description-en::+ what is it for keywords::+ etc.. In this example, you choose to display only results from:
 * ingenies
 * ingenies that have short description in english property
 * ingenies that have what is it for keywords property

display outputs
|? Short description-en |? What is it keywords etc..

output types (or format)
see for extra parameters they require

filtered
| format=filtered | views=list | list view type=list

globe
| format=tagcloud | headers=show | widget=sphere | height=600 | width=600

detail list
| format = ul

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FFile-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=ul&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[sep]=%2C&p[template]=&p[columns]=1&p[userparam]=&p[introtemplate]=&p[outrotemplate]=&eq=yes

tag cloud
| format=tagcloud | widget=wordcloud http://semantic-mediawiki.org/wiki/Help:Tagcloud_format

timeline
| format=timeline

slideshow
| format=slideshow

gallery
we use instantcommons so maybe it is not possible

datatables
| format=datatables

broadtable
| format = broadtable

example:

example 2: http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=broadtable&sort_num=&order_num=ASC&p[limit]=100&p[offset]=&p[link]=all&p[sort]=&p[order][random]=1&p[headers]=show&p[mainlabel]=Idea&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[class]=sortable+wikitable+smwtable&eq=ye

eventcalendar
| format = eventcalendar

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=eventcalendar&sort_num=&order_num=ASC&p[limit]=100&p[offset]=&p[link]=all&p[sort]=&p[order][random]=1&p[headers]=show&p[mainlabel]=Idea&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[class]=sortable+wikitable+smwtable&eq=yes

category
| format = category

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-fr%0D%0A%3Fshort+description-fr%0D%0A&eq=yes&p[format]=category&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[columns]=3&p[delim]=&p[template]=&p[userparam]=&eq=yes

timeline or eventline
| format = timeline or | format = eventline

example : <nowikihttp://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FShort+description-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=eventline&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[timelinesize]=300px&p[timelineposition]=middle&p[timelinestart]=&p[timelineend]=&p[template]=&eq=yes

embedded
| format = embedded

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FShort+description-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=embedded&sort_num=&order_num=ASC&p[limit]=3&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[embedformat]=h1&eq=yes

latest
| format = latest

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FShort+description-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=latest&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&eq=yes#

export in csv
| format = csv

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3Ffile-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=csv&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[outlineproperties]=&eq=yes#

export in json
| format = json

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3Ffile-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=outline&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[outlineproperties]=&eq=yes#

rss or atom
| format = feed

example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=Category%3AIdea&po=%3FTitle-en%0D%0A%3FFile-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=feed&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[type]=rss&p[title]=&p[description]=&p[page]=none&eq=yes

count numbers
| format = count

example :

numbers of ingenies;

example :

numbers of research questions;

earliest
| format = earliest

example :

first ingenie;

latest
| format = latest

example :

last research question;

valuerank
| format = valuerank

count kw example : http://www.libreidea.org/index.php?title=Special%3AAsk&q=page+type%3A%3Aingenie&po=%3FTitle-en%0D%0A%3FFile-en%0D%0A%3FWhat+is+it+keywords%0D%0A%3FCreation+date%23MEDIAWIKI%0D%0A&eq=yes&p[format]=valuerank&sort_num=&order_num=ASC&p[limit]=500&p[offset]=&p[link]=all&p[sort]=&p[headers]=show&p[mainlabel]=&p[intro]=&p[outro]=&p[searchlabel]=...+further+results&p[default]=&p[min]=1&p[maxtags]=1000&p[template]=&p[userparam]=&p[introtemplate]=&p[outrotemplate]=&p[liststyle]=ul&p[class]=sortable+wikitable+smwtable&eq=yes

Querying for queries
https://www.semantic-mediawiki.org/wiki/Help:Querying_for_queries

eventcalendar
| format = eventcalendar

example :

eventcalendar
| format = eventcalendar

example :

diaporama

explication

 * the + is used like an * - it says all results which have a this property filled
 * what is it for keywords::education all rq/ideas about education

not exhaustive list
page type::research question page type::ingenie page type::project

short description-en::+ what is it for keywords::education creation date::+ short description-fr::+ (only for rq) short description-en::+

You can use these differents part of code to see how it works:

{|class="wikitable"