Wikidata:Property proposal/Total power play goals in career
Total power play goals in career
[edit]Originally proposed at Wikidata:Property proposal/Sports
Description | hockey statistic |
---|---|
Represents | goal (Q18530) |
Data type | Number (not available yet) |
Domain | instance of (P31) |
Allowed values | [\d+] |
Allowed units | numbers |
Example 1 | Wayne Gretzky (Q209518) → 204
|
Example 2 | Sergei Mozyakin (Q970861) → 138
|
Example 3 | Connor McDavid (Q2806736) → 19
|
Source | https://www.hockey-reference.com/ |
Planned use | to upload statistics for retired NHL players, to be available for use in other leagues |
Number of IDs in source | 6218 |
Expected completeness | always incomplete (Q21873886), career statistics for retired players may be added, but there will always be new players retiring with static career statistics to add |
Robot and gadget jobs | I will import these statistics through OpenRefine's Wikidata interface |
See also | total goals in career (P6509) |
Motivation
[edit]This proposal follows a successful property proposal for the property total goals in career (P6509). Please see that property proposal page for a fuller discussion: https://www.wikidata.org/wiki/Wikidata:Property_proposal/Total_goals_in_career
I'd like to add basic statistical data for individual hockey players. Sports statistics such as these could be incredibly useful for ordering, sorting, and classifying players in SPARQL queries. This data is freely available online but not, anywhere I've found, in any structured data format that would allow for complex queries.
Qualifiers for this property may include the league in which the statistic was recorded and the dates between which the statistic was recorded.
As far as I know, this property would be applicable to the sport of ice hockey only, but I would be happy to amend my proposal if it would be useful for other sports too. – The preceding unsigned comment was added by LesserJerome (talk • contribs) at 18:10, 19 February 2019 (UTC).
Discussion
[edit]- Support David (talk) 07:14, 20 February 2019 (UTC)
- Wait It can be performed by total goals in career (P6509) with some qualifers. Сидик из ПТУ (talk) 20:34, 22 February 2019 (UTC)
- @Сидик из ПТУ: That's a good idea, depending on how it is handled. Ideally, I'd love to see qualifiers under total goals that break down the total number into meaningful categories, like this:
- Gretzky --> Total goals --> 894
- Qualifier: Even strength --> 617
- Qualifier: Power play --> 204
- Qualifier: Short handed --> 73
- Qualifier: Game-winning --> 91
- Gretzky --> Total goals --> 894
- This is one statement for goals with four qualifiers. The alternative, as I see it, would be to have five separate statements. This is less attractive to me, something like:
- Gretzky --> Total goals --> 894
- Gretzky --> Total goals --> 617
- Qualifier: Type --> Even strength
- Gretzky --> Total goals --> 617
- Gretzky --> Total goals --> 204
- Qualifier: Type --> Power play
- Gretzky --> Total goals --> 204
- Gretzky --> Total goals --> 73
- Qualifier: Type --> Short handed
- Gretzky --> Total goals --> 73
- Gretzky --> Total goals --> 91
- Qualifier: Type --> Game-winning
- Gretzky --> Total goals --> 91
- Sorry for the ugly formatting of my examples! But what do you think? LesserJerome (talk) 14:20, 27 February 2019 (UTC)
- Don't forget that league qulifer needed. I think it is more rational to try to allocate strictly one statement for each league. On the other hand, then we will lose the ability to specify the date of the first power play goal, so your second variant is more useful. In addition, for each statement there will be a separate verification date, that is, there will be less chance that one of the parameters will be spoiled during the update. Сидик из ПТУ (talk) 14:38, 27 February 2019 (UTC)
- Yes, definitely the league qualifier is important. I think, though, that if the best plan is to make a single statement for each kind of goal, the best thing would be to establish properties for each kind of goal, i.e. total power play goals in career, total short handed goals in career, etc. Otherwise, we'd still have to have a property to indicate the type of goal as a qualifier. I think separate properties would be clearer. If all kinds of goals used the property "total goals in career," if I was running a simple SPARQL query asking for "Gretzky -- Total goals in career -- ?", I'd get five different answers unless I specifically used qualifiers in my query. Also, since the statement for total goals in career is unqualified, you'd have to filter out all the other statements in order to receive the most basic answer. However if each statement had its own property, this would be much clearer - that query would return only one result, and I'd have to ask a different question for power play goals, short handed goals, etc.
- Sorry for the ugly formatting of my examples! But what do you think? LesserJerome (talk) 14:20, 27 February 2019 (UTC)
- Leaning oppose @LesserJerome:
- Can we have the exact URL with the data $1?
- RegEx is between braces, but from your examples, it's not a list, it's a integer.
[1-9]\d{0,3}
should be closer to what you thought, but without any additional data... This link can help you to form your RegEx. - unit: natural number (Q21199)
- datatype: number
- What is instance of (P31) for Wayne Gretzky (Q209518)? --Eihel (talk) 07:37, 2 April 2019 (UTC)