Difference between revisions of "Semantic Wiki/Concepts"

From BattleMaster Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
Concepts are much like Categories, except that they are computed dynamically from semantic information. As such, they are more flexible and can replace categories in many cases.
+
Concepts are much like Categories, except that they are computed dynamically from semantic information. As such, they are more flexible and can replace categories in many cases. In addition, they can be nested, i.e. a concept can be used in a semantic query. This often simplifies queries a lot.
 
 
For example, "Regions of Atamara" could be implemented as a category. But so could "Cities", and "Regions on the coast" and "Regions of the Caligan Empire" and so forth. In fact, we're already drowning in categories like that.
 
  
 
Using the most base category only, e.g. "Region" and putting all the details into semantics, allows us to form '''concepts'''. The result would be the same, we can find all regions of Atamara by saying:
 
Using the most base category only, e.g. "Region" and putting all the details into semantics, allows us to form '''concepts'''. The result would be the same, we can find all regions of Atamara by saying:
  
 
<nowiki>
 
<nowiki>
{{#concept:  [[Category:Region]] [[located on::Atamara]]
+
{{#concept:  [[Category:Regions]] [[located on::Atamara]]
 
| Regions of Atamara
 
| Regions of Atamara
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 +
 +
Not only can "Regions of Atamara" be implemented as a category, but so could "Cities", and "Regions on the coast", etc.
 +
 +
nce a concept is created, you can use <nowiki>[[Concept:Regions of Atamara]]</nowiki> in your queries like you would a category or property, and it will all automagically be updated with changes, etc. - for example if you define "duchy" as a concept (a region that is of type city or stronghold) then you do not have to update a potentially large number of pages when the concept of a duchy changes (e.g. when for some reason we make it possible for townslands to be a duchy center, or if a new region type is introduced, etc.)
 +
 +
  
  
Line 16: Line 20:
  
 
* Realms by Island
 
* Realms by Island
** [[Concept:Realms of the East Island]]
+
** [[Concept:Realms of East Island]]
 
** [[Concept:Realms of Atamara]]
 
** [[Concept:Realms of Atamara]]
 
** [[Concept:Realms of Beluaterra]]
 
** [[Concept:Realms of Beluaterra]]
** [[Concept:Realms of the Far East]]
+
** [[Concept:Realms of Far East]]
 
** [[Concept:Realms of Dwilight]]
 
** [[Concept:Realms of Dwilight]]
  
 
* Regions by Island
 
* Regions by Island
** [[Concept:Regions of the East Island]]
+
** [[Concept:Regions of East Island]]
 
** [[Concept:Regions of Atamara]]
 
** [[Concept:Regions of Atamara]]
 
** [[Concept:Regions of Beluaterra]]
 
** [[Concept:Regions of Beluaterra]]
** [[Concept:Regions of the Far East]]
+
** [[Concept:Regions of Far East]]
 
** [[Concept:Regions of Dwilight]]
 
** [[Concept:Regions of Dwilight]]
  
* [[Concept:Regions without a lord]]
+
* Regions by other properties
* [[Concept:Strongholds]]
+
** [[Concept:Regions without a lord]]
 +
** [[Concept:Strongholds]]
 +
** [[Concept:Duchies]]

Revision as of 17:58, 17 February 2009

Concepts are much like Categories, except that they are computed dynamically from semantic information. As such, they are more flexible and can replace categories in many cases. In addition, they can be nested, i.e. a concept can be used in a semantic query. This often simplifies queries a lot.

Using the most base category only, e.g. "Region" and putting all the details into semantics, allows us to form concepts. The result would be the same, we can find all regions of Atamara by saying:

{{#concept: [[Category:Regions]] [[located on::Atamara]] | Regions of Atamara }}

Not only can "Regions of Atamara" be implemented as a category, but so could "Cities", and "Regions on the coast", etc.

nce a concept is created, you can use [[Concept:Regions of Atamara]] in your queries like you would a category or property, and it will all automagically be updated with changes, etc. - for example if you define "duchy" as a concept (a region that is of type city or stronghold) then you do not have to update a potentially large number of pages when the concept of a duchy changes (e.g. when for some reason we make it possible for townslands to be a duchy center, or if a new region type is introduced, etc.)



Concept Pages

(these are still being experimented with and don't yet work correctly)