<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://nwod.org/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://nwod.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AConcepts</id>
		<title>Help:Concepts - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://nwod.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Help%3AConcepts"/>
		<link rel="alternate" type="text/html" href="http://nwod.org/wiki/index.php?title=Help:Concepts&amp;action=history"/>
		<updated>2026-06-14T11:11:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.1</generator>

	<entry>
		<id>http://nwod.org/wiki/index.php?title=Help:Concepts&amp;diff=72751&amp;oldid=prev</id>
		<title>West at 15:59, 24 April 2014</title>
		<link rel="alternate" type="text/html" href="http://nwod.org/wiki/index.php?title=Help:Concepts&amp;diff=72751&amp;oldid=prev"/>
				<updated>2014-04-24T15:59:26Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SMW user TOC}}&lt;br /&gt;
It is possible to store [[Help:Semantic search|queries]] in [[Semantic MediaWiki]] on dedicated pages, called '''concepts'''. These pages can be viewed as «dynamic categories», i.e. as collections of pages that are not created manually, but that are computed by SMW from the description given by a query. An example could be the concept of European cities. In traditional [[MediaWiki]] installations, one may have a category called ''European cities'' that holds all such cities. In SMW, one would instead define the concept «European cities» by saying that it contains all cities that are located in Europe. No city page needs to be changed, and yet one can create many concepts about cities (such as «capital», «Italian city», or «large coastal city located at a river»).&lt;br /&gt;
&lt;br /&gt;
== Creating a concept ==&lt;br /&gt;
&lt;br /&gt;
A concept is a page in the Concept: namespace that is always described by a semantic query, as explained in [[Help:Semantic search]]. For example, the [[Concept:Vampire Events 2010]] describes certain events in 2010. Its concept page contains the following text to do that:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{#concept: &lt;br /&gt;
[[Category:Vampire Scenes]] &lt;br /&gt;
[[Vampire date::&amp;gt; Jan 1 2010]] &lt;br /&gt;
[[Vampire date::&amp;lt; Dec 31 2010]]&lt;br /&gt;
 | Events in the year 2010 for the Vampire venue.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parser function &amp;lt;tt&amp;gt;#concept&amp;lt;/tt&amp;gt; is used to define concepts. Its first parameter is a concept description. Its second parameter is a short text that describes the concept. This description is optional and can also be left away. It is exploited in some uses of concepts in SMW to have a concise short description of the concept (e.g. as a default description in [[RSS]] feeds). The complete concept page will then show this data, and give a preview of the results.&lt;br /&gt;
&lt;br /&gt;
It is possible to have other content on the concept page as well. Any normal wiki text can go before and after the use of &amp;lt;tt&amp;gt;#concept&amp;lt;/tt&amp;gt; but it will not have any effect on the definition of the concept. The &amp;lt;tt&amp;gt;#concept&amp;lt;/tt&amp;gt; parser function can only be used on pages in the Concept: namespace, and it can only be used once on each such page.&lt;br /&gt;
&lt;br /&gt;
== Using concepts ==&lt;br /&gt;
&lt;br /&gt;
Concept pages as such can be browsed to view the contents of some concept, similar to category pages. But they can also be used in other semantic queries just like categories. For example, the following query would show all pages in the above concept of events which are also located in Germany:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[Concept:Vampire Events 2010]] [[Location::Avalon Underground]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this would look almost the same if we would have a category called «Vampire Events 2010». therefore, concepts are also like stored queries that can be reused in other queries if desired.&lt;br /&gt;
&lt;br /&gt;
SMW's [[Help:inline queries|inline queries]] may also use concepts, and in some cases even the concept description is used to beautify an output. Concept descriptions are also included in SMW's [[Help:RDF export|RDF export]] in form of [[OWL]] class descriptions, so that other [[Semantic Web]] tools can download and reuse the concept descriptions.&lt;br /&gt;
&lt;br /&gt;
{{docu|master page=Help:Concepts|minversion=1.2}}&lt;/div&gt;</summary>
		<author><name>West</name></author>	</entry>

	</feed>