Property talk:P249

Latest comment: 9 years ago by Petr Matas in topic format constraint

Documentation

ticker symbol
identifier for a publicly traded share of a particular stock on a particular stock market or that of a cryptocurrency (qualifier for P414)
DescriptionQualifier to indicate the ticker symbol (Q1548784) of publicly traded shares, associated to property stock exchange (P414). A stock symbol or ticker symbol is an abbreviation used to uniquely identify publicly traded shares of a particular stock on a particular stock market.
Representsticker symbol (Q1548784)
Data typeString
Template parameteren:Template:Infobox company
Domain
According to this template: company (Q783794)
According to statements in the property:
company (Q783794), cryptocurrency (Q13479982), business (Q4830453), enterprise (Q6881511), investment fund (Q4201895) or stock market index (Q223371)
When possible, data should only be stored as statements
Allowed values[A-Z0-9.]{1,16} (1 to 16 uppercase alphanumeric characters, possibly including a ".")
Example
According to this template:

Microsoft (Q2283) : stock exchange (P414) => Nasdaq (Q82059)

qualifier ticker symbol (P249) => MSFT
According to statements in the property:
Microsoft (Q2283) → MSFT
Amazon (Q3884) → AMZN
When possible, data should only be stored as statements
Tracking: usageCategory:Pages using Wikidata property P249 (Q23909008)
See alsocryptocurrency code (P5810)
Lists
Proposal discussionProposal discussion
Current uses
Total13,918
Main statement2<0.1% of uses
Qualifier13,86899.6% of uses
Reference480.3% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Scope is as qualifier (Q54828449): 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/P249#Scope, SPARQL
Format “[A-Z0-9.]{1,16}: 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/P249#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/P249#Entity types


format constraint edit

set the pattern to [A-Z0-9]{2,6} --Akkakk 23:58, 24 July 2013 (UTC)Reply

[A-Z0-9.]{2,6} --Akkakk 10:50, 25 July 2013 (UTC)Reply
Changed minimum length to 1, as at least the NYSE has one-letter symbols. Changed "." (meaning "any character", which does not make any sense in a construct like this, as the "A-Z0-9" then is completely redundant) to "\." (dot). So changed the format constraint to [A-Z0-9\.]{1,6}. Maybe this will result to some more false violations, so some other characters would have to be added (or "A-Z0-9\." would have to be replaced by "."). It sure will still keep LATAM Brasil (Q690789)'s "TAM S.A." (is this the correct symbol? I couldn't verify it quickly), as it contains not only dots, but also a space and a total of 8 characters. I didn't dare to extend the format in so many ways without knowing anything about the subject. --YMS (talk) 08:44, 4 December 2013 (UTC)Reply
The backslash is not necessary, because a dot loses its special meaning when in brackets. Petr Matas 19:14, 18 November 2014 (UTC)Reply
Return to "P249" page.