2,153
edits
Line 254: | Line 254: | ||
* Class templates will often contain queries that show linked classes | * Class templates will often contain queries that show linked classes | ||
=== Use cases of Semantic Mediawiki class=== | |||
==== Discourse DB ==== | |||
''http://www.discoursedb.org ([http://discoursedb.org/wiki/TSA_airport_screening_procedures_controversy example]) stores structured discourse relationships for '''articles''' on current topics in a structured system. For example, article support position.'' | |||
<pre> | |||
{{Item | |||
|author=The author or authors of the item; if there is more than one, separate their names with comas | |||
|source=The publication in which it was printed/posted | |||
|date=The date of publication | |||
|url=A URL at which it can be found, if one exists | |||
|quote=A one-to-four-sentence quote from the item, that captures the spirit of the opinion it holds | |||
}} | |||
</pre> | |||
''The template includes a query for positions on this Item.'' | |||
<nowiki>{{#ask:[[Category:Positions]][[Addresses topic::{{PAGENAME}}]]|format=topiclayout}}</nowiki>, which uses the isfor, isagainst, and ismixed properties. | |||
<pre> | |||
{{#ask: [[is for::{{PAGENAME}}]] | |||
|format=template | |||
|template=ItemQuery | |||
|sort=Was published on | |||
|order=descending | |||
|link=subject | |||
|? Was written by | |||
|? Was published by | |||
|? Was published on | |||
|? Has URL | |||
|? Has quote | |||
}} | |||
</pre> | |||
==== Placeography ==== | |||
''http://www.placeography.org ([http://www.placeography.org/index.php/Pillsbury_A_Mill%2C_301_Main_Street_South_East%2C_Minneapolis%2C_Minnesota example] documents information about '''places'''. It's properties show some of the ambiguities when trying to describe things.' | |||
<pre> | |||
{{Infobox Building | |||
|Building name | |||
|Image | |||
|Address | |||
|Neighbourhood | |||
|City-locality | |||
|State-province | |||
|County | |||
|Country | |||
|Year built | |||
|Year razed | |||
|Primary style | |||
|Secondary style | |||
|Additions | |||
|Major Alterations | |||
|Moved from Location | |||
|Historic Function | |||
|Current Function | |||
|Architect or source of design | |||
|Builder | |||
|... | |||
}} | |||
</pre> | |||
==== Asian Canadian Wiki ==== | |||
''http://www.asiancanadianwiki.org ([http://www.asiancanadianwiki.org/wiki/Ni_Komang_Swijani example]) AAType is used for '''artists''' and '''organizations'''.'' | |||
<pre> | |||
{{AAType | |||
|Image=uploaded picture | |||
|Home page=URL | |||
|Arts=acting, dance, ... | |||
|Type=Person or Group | |||
|Aspects=Developer, Moderator, Prominent | |||
}} | |||
</pre> | |||
The template includes queries for Events for the current page. | |||
Forms and templates can support properties items per field. | |||
{{Practice|Create your own semantic class with template, properties, form. Add pages to it {{PSITE|Special:Forms}} }} | {{Practice|Create your own semantic class with template, properties, form. Add pages to it {{PSITE|Special:Forms}} }} |