Property talk:P94

Latest comment: 5 years ago by Deryck Chan in topic Unique value

Documentation

coat of arms image
image of the item's coat of arms - for the shield part only use P4004
Descriptioncoat of arms (Q14659) image. See also coat of arms (P237). For seal (Q162919), rather use seal image (P158).
Representscoat of arms (Q14659)
Data typeCommons media file
Template parameterde:Vorlage:Infobox_Gemeinde_in_Österreich, de:Vorlage:Infobox_Gemeinde_in_Deutschland, de:Wikipedia:Formatvorlage_Ort_Schweiz, de:Vorlage:Infobox_Staat
Domain
According to this template: Various places and persons
According to statements in the property:
geographical feature (Q618123), family (Q8436), human (Q5), organization (Q43229), position (Q4164871), fictional location (Q3895768), fictional character (Q95074), fictional organization (Q14623646), fictional noble family (Q19791817), vessel (Q16391167), family name (Q101352), urban lineage (Q2381172) or mythical location (Q3238337)
When possible, data should only be stored as statements
Allowed values
According to this template: Image files. Don't add the ones from c:Category:Coat of arms placeholders (check)
According to statements in the property:
(?i).+\.(svg|png|jpg|jpeg|gif|tif|tiff)| (image filename with extension: svg or png or jpg or jpeg or gif or tif or tiff (case insensitive))
When possible, data should only be stored as statements
ExampleStannis Baratheon (Q12056060)A Song of Ice and Fire arms of House Stannis Baratheon scroll.png
Monaco (Q235)Coat of arms of Monaco.svg
Windsor (Q182625)Wappen von Windsor O in Kanada.jpg
Formatter URLhttps://commons.wikimedia.org/wiki/File:$1
Embed URLhttps://commons.wikimedia.org/wiki/File:$1
Tracking: sameno label (Q41539179)
Tracking: differencesno label (Q41539177)
Tracking: usageCategory:Pages using Wikidata property P94 (Q23909098)
Tracking: local yes, WD noCategory:P94 absent in Wikidata (Q41539180)
See alsoseal image (P158), coat of arms (P237), flag image (P41), logo image (P154), escutcheon image (P4004)
Lists
Proposal discussionProposal discussion
Current uses
Total154,771
Main statement152,13498.3% of uses
Qualifier2,6231.7% of uses
Reference14<0.1% of uses
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “geographical feature (Q618123), family (Q8436), human (Q5), organization (Q43229), position (Q4164871), fictional location (Q3895768), fictional character (Q95074), fictional organization (Q14623646), fictional noble family (Q19791817), vessel (Q16391167), family name (Q101352), urban lineage (Q2381172), mythical location (Q3238337): item must contain property “instance of (P31)” with classes “geographical feature (Q618123), family (Q8436), human (Q5), organization (Q43229), position (Q4164871), fictional location (Q3895768), fictional character (Q95074), fictional organization (Q14623646), fictional noble family (Q19791817), vessel (Q16391167), family name (Q101352), urban lineage (Q2381172), mythical location (Q3238337)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Type Q618123, Q8436, Q5, Q43229, Q4164871, Q3895768, Q95074, Q14623646, Q19791817, Q16391167, Q101352, Q2381172, Q3238337, SPARQL
Format “(?i).+\.(svg|png|jpg|jpeg|gif|tif|tiff|webp)|: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P94#Format, hourly updated report, SPARQL
Link to Commons namespace “File”: this property should contain a well-formed link to an existing page on Wikimedia Commons. (Help)
List of violations of this constraint: Database reports/Constraint violations/P94#Commons link, hourly updated report
Conflicts with “instance of (P31): Wikimedia disambiguation page (Q4167410), urban area in Sweden (Q12813115): this property must not be used with the listed properties and values. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Conflicts with P31, SPARQL
Format “^(?!.*\b[Cc]oats of [Aa]rms of none).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ff]ührt kein wappen).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Nn]o coats of arms).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ww]appen fehlt).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]in escudo).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Bb]lason à dessiner).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Nn]e havas blazonon).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]ense escut oficial).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Uu]nknow escutcheon).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ee]scutcheon to draw).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]eal\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]ello\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]ceau\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ss]iegel\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ff]lag\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Dd]rapeau\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Bb]andiera\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Ff]lagge\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Bb]andera\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Bb]andeira\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!.*\b[Vv]lag\b).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “(?i)((?!\b(logo)).)*: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?![Vv]oert geen wapen\.svg).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!Template-Bishop\.svg).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Format “^(?!BishopCoA PioM\.svg).*$: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Format, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Entity types
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P94#Scope, SPARQL
 
Too short filename
(Help)
Violations query: SELECT DISTINCT ?item { ?item wdt:P94 ?value. BIND(STRLEN(STR(?value)) AS ?length). FILTER (?length < 58) }
List of this constraint violations: Database reports/Complex constraint violations/P94#Too short filename
 
This property is being used by:

Wikivoyage:


Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

Unique value edit

I'm not sure the Unique value constraints is applicable in this case. There is nothing preventing two objects from using the the same coat of arms image. As an example we could have two successive kings both using the state coat of arms or a municipal coat of arms being the same as that of the original city. /Lokal Profil (talk) 10:18, 9 September 2013 (UTC)Reply

Hi @Lokal Profil, Ivan A. Krestinin, Docu: not sure Unique value constraint is a good idea. Members of the same familly or territories with shared history could have the same blazon (very common for commune of France (Q484170)) ; if we keep this constraint there will be a huge amont of exceptions.
For instance on Saint-Didier (Q963301) I just add coat of arms image (P94) : File:Héraldique - fretté.svg. Should I add it as an exception on Wikidata? Should I duplicate the file on Commons? (which is a bad pratice but not uncommon).
Cdlt, VIGNERON (talk) 18:12, 14 July 2015 (UTC)Reply
I would remove the unique value constraint. Is it instead possible to blacklist values (such as Sin escudo.svg)? /Lokal Profil (talk) 19:20, 14 July 2015 (UTC)Reply
Exceptions for unique value are present of course. The question is how many exceptions we have in real data. Also you mention some cases, lets discuss one case: members of some family have shared coat of arm. There are two ways to model this case:
  1. We add this image to every human (Q5) item.
  2. We create special lineage (Q1642895) item and add coat of arm image to this item only. human (Q5) items are linked with lineage (Q1642895) using family (P53).
The second way is better describes reality as I see, but it has some limitations too. — Ivan A. Krestinin (talk) 20:04, 14 July 2015 (UTC)Reply
I've added human (Q5) since there are also some coat of arms for individuals (e.g. unique CoAs for members of royal families) for this reason I wouldn't restrict CoA use to only lineage (Q1642895).
In general I think it might be worth creating Qitems for the CoAs themselves then connect these to lineage (Q1642895) (and/or human (Q5)) using coat of arms (P237). This allows other statements (such as coat of arms image (P94), blazon, history etc) to be given in one place without unduly cluttering the lineage (Q1642895)/human (Q5) item. /Lokal Profil (talk) 15:02, 15 July 2015 (UTC)Reply
Per Wikidata:Project_chat#New_Constraint_.3F filenames such as sin escudo.svg could be blacklisted using a second {{Constraint:Format}} instead. Sadly I'm not enough of a regexp ninja to make that work. /Lokal Profil (talk) 15:26, 16 July 2015 (UTC)Reply


Great discussion (I was away for some time, sorry I missed your comment).
Ivan A. Krestinin : lineage (Q1642895) could have been a good idea but it's not since the reality is far more complex. Members of the same familly could have the same coat of arms but not always. Different famillies can have the same coat of arms too. Plus, it's not unusual for a coat of arms to be shared between a familly and a territories. In ecclesiastical heraldry, coat of arms can be shared between people (not in the same familly obviously) and/or places (an abbey and its abbots for example; but high rank people like popes or bishops have usually their own coat of arms). Simple coat of arms like « Azure a cross argent » are very common and shared by unrelated places and people (qv. commons:Category:Azure a cross argent for examples), sometimes the files are duplicated with different names on Wikimedia Commons but sometimes the same simple file is used for differents articles/items.
Right now there is only 1967 contraint violations but there is only 52115 uses of P94.
Lokal Profil : the Project chat discussion doesn't seems to give a way to forbid placeholder. A regex is nearly impossible since the placeholders have too differents names. I'm maybe wrong but I thought it was impossible to use two Constraint:Format on the same page (I think I remember something like « only the last one will be consider »). Maybe we can use an extern tools for that? (Autolist??)
Cdlt, VIGNERON (talk) 12:38, 29 July 2015 (UTC)Reply
@VIGNERON:. The project chat (now archived) suggests that you can use two Constraint:Format. You are probably right about the regexp though. Other than having a long list of strings to compare to I think it might be hard. Ideally with CommonsData we could tag such files as placeholder and then do something fancy but that is still some time away. /Lokal Profil (talk) 10:34, 4 August 2015 (UTC)Reply
Please delete the unique value constraint. I edited dozens of items of persons, members of the same family, that used the same coat-of-arms. Everywhere I get a violation message. Can't say I get happy from those messages. HRvO (talk) 20:45, 18 August 2018 (UTC)Reply

Still the same problem, about which evidently nobody has cared enough since 2013. Good to see some things in life are still reliable. In this case, a modern city (Tartu City, Q42307965) uses the same coat of arms as did the medieval Bishopric of Dorpat (Q389360). There's nothing to prevent them IRL but hey, what do we care in WD? It's not like constraints have to make sense, right? --Ehitaja (talk) 23:21, 19 January 2019 (UTC)Reply

I went ahead and removed the unique value constraint. The main successful use case that this constraint used too reveal - "no coat of arms" placeholder images - are now handled by RegEx "format" constraints. It seems that most people here agree that it is counterproductive in general to throw warnings at multiple items having the same coat of arms, when in real life it is common for related people and groups to share the same coat of arms, and sometimes even for unrelated groups to happen to use exactly the same coat of arms. Deryck Chan (talk) 12:23, 20 January 2019 (UTC)Reply

Automatic fix for "Flag of" edit

JFYI: violations like "Flag of" can be automatically fixed using {{Autofix}}. — Ivan A. Krestinin (talk) 18:40, 22 May 2017 (UTC)Reply

Related constraint edit

Just a note here that I raised a question about a related constraint over at Property talk:P237#Inappropriate_constraint. /Lokal Profil (talk) 22:35, 8 November 2018 (UTC)Reply

Return to "P94" page.