Pentru a putea vota, modifica pagini sau abona la modificările unei pagini trebuie să fiți autentificați. Cu această ocazie scăpați și de acest mesaj deranjant.

Ajutor:What does the consistency checker do?

De la l10n.ro
Versiunea din 15 noiembrie 2007 01:25, autor: 127.0.0.1 (Discuție) (What does the consistency checker do?)
(dif) ← Versiunea anterioară | Versiunea curentă (dif) | Versiunea următoare → (dif)
Salt la: navigare, căutare
Question
Question:=What does the consistency bot do?
Answer
Description:=The consistency bot checks for several inconsistencies in the knowledgebase.

The Consistency bot checks the schema consistency and the annotation consistency depending on the schema. It has no parameters. Only gardeners should be able to access it, because it causes heavy database load.

Schema annotations

We have the following schema level annotations right now:

  • [[Has domain hint::<some category>]]
  • [[Has range hint::<some category>]]
  • [[Has type::<some type>]]
  • [[Is subattribute of::<some relation>]]
  • [[Has min cardinality:=<a value >= 0>]]
  • [[Has max cardinality:=<a value > 0 or *>]]
  • [[Is subrelation of::<some relation>]]
  • [[Is subattribute of::<some relation>]]
  • [[Is inverse of::<some relation>]]
  • [[Is equal to::<some article>]]
  • [[Category:Symmetrical relations]]
  • [[Category:Transitive relations]]

All this relations or categories have to be created first!

Schema level consistency

The bot identifies the following problems:

Cycles in inheritance graphs

There must not be any cycles in one of the inheritance graphs. This may cause endless loops during reasoning and in the OntologyBrowser. This is the first consistency check which is done. If it finds any cycles the whole process stops, because it can not be assured that the further consistency checking algorithms terminate. Cycles may appear in the category, the attribute or the relation inheritance graph. The categories, attributes or relations which cause the cycle will be displayed in the log. The user has to decide where to interrupt the cycle. This consistency problem should have high priority.

Examples:

  • The following pages causes a cycle over categories: Page C contains [[category:B]], page B contains [[category:A]] and page A contains [[category:C]]
  • A cycle of attributes: Page C contains [[Is subattribute of:B]], page B contains [[Is subattribute of:A]] and page A contains [[Is subattribute of:C]]

Property co-variance

Property inheritance must be co-variant. That means the following conditions must hold:

  • domain and range categories of a subproperty must be equal to those of the super property or they must be subcategories of those.
  • types of attributes must be equal.
  • the cardinality of a subproperty must be a subset of the cardinality of the super property. The min cardinality must a integer value >= 0. The max cardinality must be an integer value > 0 or *.
  • if the super relation is symmetrical the sub relation must also be symmetrical. The same holds for transitivity.

Properties do not inherit schema properties from their parent. It must be explicitly defined for each property. Otherwise you'll get a warning. Note that if the cardinality is not explictly defined, a default value (0..n) will be assumed.


Inconsistent inverse relations

Checks if inverse relations have switched domain/range.

Inconsistent equalitites

Checks if equal articles have same namespace.

Annotation level consistency

Wrong domain/range instances for properties

Detects schema inconsistent annotations: Attributes or relations which are used on pages which are not member of at least one domain category. Relations which refer to pages which are not member of at least one category of the range categories.

Wrong number of appearances of properties

Detects schema inconsistent annotations: Attributes or relations which are used too less or too much on a page in contradiction to their cardinality.