Modèle:Cartégorie : Différence entre versions
Ligne 11 : | Ligne 11 : | ||
'''Solution''': To help document your semantic wiki, it can be useful to list all the pages associated with each class. Typically a class consists of 1) a Form, 2) a Template, 3) a Category. Typically, all three will have the same name, occurring in the Form, Template and Category namespaces, respectively. Here is a simple template to automatically link those pages given the class name. The recommended name of the template is 'Class links': | '''Solution''': To help document your semantic wiki, it can be useful to list all the pages associated with each class. Typically a class consists of 1) a Form, 2) a Template, 3) a Category. Typically, all three will have the same name, occurring in the Form, Template and Category namespaces, respectively. Here is a simple template to automatically link those pages given the class name. The recommended name of the template is 'Class links': | ||
− | + | ||
A template to generate a convenient set of links for a given class name. | A template to generate a convenient set of links for a given class name. | ||
Ligne 28 : | Ligne 28 : | ||
Finally, create a page on your wiki to list all the classes, and include the template for each class that you list. For example: | Finally, create a page on your wiki to list all the classes, and include the template for each class that you list. For example: | ||
− | + | ||
== Classes == | == Classes == | ||
Click to see a list of all | Click to see a list of all | ||
Ligne 50 : | Ligne 50 : | ||
* [[Property:Has type]] | * [[Property:Has type]] | ||
* [[Property:Has default form]] | * [[Property:Has default form]] | ||
− |
Version du 17 décembre 2017 à 11:28
- La partie « ]] » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.
- Certaines sous-requêtes ont une condition invalide.
Summary: Making the semantic structure of your wiki 'visible' is a pain. This template goes some way to helping manage that pain.
Background: Unfortunately, SMW/SF does not automatically generate self-documenting metadata. This would be useful if you wanted, for example, to query the set of properties associated with a form (class), and could be done using standard OWL terms. However, I'm digressing...
Solution: To help document your semantic wiki, it can be useful to list all the pages associated with each class. Typically a class consists of 1) a Form, 2) a Template, 3) a Category. Typically, all three will have the same name, occurring in the Form, Template and Category namespaces, respectively. Here is a simple template to automatically link those pages given the class name. The recommended name of the template is 'Class links':
A template to generate a convenient set of links for a given class name.
Usage
Template code
Additionally, each class has a set of associated properties and can also have filters. However, I'm not sure how to list them automatically.
Finally, create a page on your wiki to list all the classes, and include the template for each class that you list. For example:
Classes
Click to see a list of all Forms, Templates, and Categories.
Library database
- Book: Modèle:Class links
- Author: Modèle:Class links
Car database
...
Properties
By default, SMW does not create 'metadata'. For this reason, it isn't easy to list all the properties in each class.
- For a list of all properties in the wiki, see Special:Properties.
- For a list of all property types in the wiki, see Special:Types.
The most important site meta-properties are: