Dynamic Page Generation

From AIRWiki
Revision as of 16:39, 9 October 2009 by DavidLaniado (Talk | contribs)

Jump to: navigation, search

Semantic queries can be used to automatically generate lists and tables of items satisfying some requirements.

For the complete documentation for inline queries see: http://semantic-mediawiki.org/wiki/Help:Inline_queries

In this page you can find some examples of ad hoc queries that may be useful in this wiki.

All the Projects suggested by a given Tutor

{{#ask: [[Category:Project]][[prjTutor::User:{{PAGENAME}}]]|?prjTitle = |format=ul}}

You can see the result here

Note: {{PAGENAME}} is a variable which identifies the title of the current page. Putting this query inside a user's page, all projects tutored by that user will be shown as results.

All master thesis proposals in a research area

To generate the results in a list, showing the research topic of each proposal:

{{#ask: [[Category:ProjectProposal]] 
[[PrjLevel::Bs]]
[[PrjType::Thesis]]
[[PrjResArea::Social Software and Semantic Web]] |
?PrjResTopic |
format=list
}}


To show the results in the template ProjectProposalViz:

{{#ask: [[Category:ProjectProposal]] 
[[PrjLevel::Bs]]
[[PrjType::Thesis]]
[[PrjResArea::Social Software and Semantic Web]] |
?PrjTitle |
?PrjImage |
?PrjDescription |
?PrjTutor |
?PrjStarts |
?PrjStudMin |
?PrjStudMax |
?PrjCFUMin |
?PrjCFUMax |
?PrjResArea |
?PrjResTopic |
format = template |
template = Template:ProjectProposalViz
}}

You can see the result of this query here.

All finished projects in a research topic, ordered by end date

{{#ask: [[Category:Project]][[prjResTopic::Folksonomies]][[prjStatus::Closed]]|?prjTitle = |sort=prjEnd|order=desc|format=ul}}

See the result here.