Aide:Portail des contraintes de propriété/langue des libellés
This page is currently inactive and is retained for historical reference. Either the page is no longer relevant or consensus on its purpose has become unclear. To revive discussion, seek broader input via a forum such as the project chat. Replaced with the regular label in language constraint |
Cette documentation concerne un type particulier de contrainte. Voir le Portail pour un aperçu général des contraintes sur les propriétés. |
complex constraint label language (Q102746314) specifies that the labels of items using a property would generally be available in a given language.
It can be suitable for properties used on items relevant to a particular language. It can also be used to curate a property for users of a given language.
For example, items with the property Italian School ID (P5114) would generally have labels in Italian ("it"). This can be specified with the qualifier language of work or name (P407) and the item Italian (Q652) that includes the language code "it".
Contrary to standard property constraints, this constraint is added with has characteristic (P1552) on properties. As a complex constraint, it also requires the addition of {{Complex constraint}}
to the property talk page. A task is open in Phabricator to implement this as a normal constraint.
The output is available only as a periodically updated report at Wikidata:Database_reports/Complex_constraint_violations.
Actions possibles
The main report of constraint violations allows to do top-down analysis and find items lacking such labels. Sample corrections can be:
- add labels
Also:
- It’s possible that the constraint is no longer relevant for the language and should be removed.
A second report provides a summary by language of missing label.
Paramètres
This constraint has one mandatory and one optional parameter:
- language of work or name (P407)
- Contains the item for the language with the language code as Wikimedia language code (P424) statement. It can contain several languages. no value Help or unknown value Help are not permitted.
- syntax clarification (P2916)
- Contains a human-readable description. Can be specified several times in different languages.
Exemples
Exemple 1
The labels of items using Italian School ID (P5114) should generally be available in Italian.
has characteristic |
| ||||||||||||
add value |
Example 2
The labels of items using Roman praenomen (P2358) should be available in Latin.
has characteristic |
| ||||||||||||
add value |
Modèle
To define the constraint, {{Complex constraint}}
with a sparql query needs to be added to the property's talk page.
Ceci peut être avec en ajoutant:{{subst:Define label language constraint}}