Ask

=Title::Explanation of Semantic MediaWiki ask function=

see also Test-Ask for invers properties, e.g. -Has mother::Michael

help page
http://semantic-mediawiki.org/wiki/Help:Selecting_pages, including " ::>, ::! "

output to vcard
Warning: exports all users on this wiki

for errors, see Josef_Noll

Example
{{#ask: Supervisor::{{SUBJECTPAGENAME}} OR Lecturer::{{SUBJECTPAGENAME}} OR User::{{SUBJECTPAGENAME}} OR {{SUBJECTPAGENAME}}

ommit main label: | mainlabel=- |

{{#show: Berlin | ?population }}

Tips and Tricks, using Set
Recommendation from Neill: I always hide the raw page name as much as possible and use aliases so queries return more user friendly links.

where Page Title is usually a field in the form. Sometimes I prepend with a section ID

Then in the queries I return Page Link and use mainlabel=- to suppress the raw page name field.

Note:
 * define Page Link as a Special:Property
 * define Page Link as a Special:Property

Set syntax
set allows for properties linked to a page, e.g. Paris. Though can't be used for changing a property on a page, only adding more properties..., e.g. has postcode=7501|has postcode=7502|has postcode=7503. Note: not found out how to query one of them

email list
Example is taking for project IoTSec, here only science people

Example
ongoing projects, based on  Due_date::>
 * see example in Concept:Ongoing_Projects
 * CURRENTYEAR is 2024, CURRENTTIME is, LOCALTIME is
 * date: or "now":, using H:i for hours and minutes
 * see all time examples in: Help:Extension:ParserFunctions

recent pages
pages from 2013

recent pages in slideshow
Note: format=slideshow is supported in this version, and shown in:

recent pages, random
modification date::+  shows only pages that exist (not deleted ones)

= Variables =
 * ARTICLEPAGENAME, TALKPAGENAME
 * see more http://en.wikipedia.org/wiki/Help:Magic_words