Wikis and Semantic Mediawiki: Difference between revisions

(Created page with "== Background information == '''Note''': This page primarily applies to Mediawiki, the software used by Wikipedia and many other web sites. Wikis are distinguished from website...")
 
Line 81: Line 81:
== Semantic wiki ==
== Semantic wiki ==


[http://www.semantic-mediawiki.org Semantic MediaWiki] enables finer information re-use with database like features. Rather than cutting and pasting information that's contained in one place, it can instead be included by a query. For example, to see a list of wiki users, you can add <nowiki>{{ #ask: [[Category:User]] }}</nowiki> to any page, which will be live updated. You can practice on a "[[Special:MyPage/Sandbox|sandbox]]" page, or use [[Special:Ask]].  
[http://www.semantic-mediawiki.org Semantic MediaWiki] enables finer information re-use with database like features.  
 
It uses the Semantic Web idea of "triples," where the current page is the subject, a link type is the predicate, and the target is the object. Objects can be other pages, or literals — dates, numbers, etc. These expand on Mediawiki links, using a syntax that looks like this:
 
* <nowiki>[[has example property::15]]</nowiki> this page (the subject) has a predicate "has example property" which has a literal value of 15.
* <nowiki>[[has next page::Semantic Mediawiki and the Semantic Web]]</nowiki> this page (the subject) has a predicate "has next page" which is "Semantic Mediawiki and the Semantic Web."
 
So, rather than cutting and pasting information that's contained in one place to "re-use" it, instead use a query, using the "ask" syntax. For example, to see a list of wiki users, you can add <nowiki>{{ #ask: [[Category:User]] }}</nowiki> to any page, which will be live updated.


External applications can also interact with wiki content, so content can be shared between wikis and other web sites. This is the idea of the "semantic web," where content across the web can be consistently found and re-used.
External applications can also interact with wiki content, so content can be shared between wikis and other web sites. This is the idea of the "semantic web," where content across the web can be consistently found and re-used.