Difference between revisions of "Dynamic Page Generation"

From AIRWiki
Jump to: navigation, search
(New page: Semantic queries can be used to automatically generate lists of pages satisfying some requirements. [http://semantic-mediawiki.org/wiki/Help:Inline_queries Here] you can find the complete...)
 
m
Line 1: Line 1:
Semantic queries can be used to automatically generate lists of pages satisfying some requirements.
+
Semantic queries can be used to automatically generate lists and tables of items satisfying some requirements.  
[http://semantic-mediawiki.org/wiki/Help:Inline_queries Here] you can find the complete documentation for inline queries.  
+
  
In this section you can find some examples of ad hoc queries that may be useful in this wiki.
+
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 ==
 
== All the Projects suggested by a given Tutor ==

Revision as of 17:39, 9 October 2009

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.