Property talk:P3696
Documentation
identifier for a NCAA Division I college basketball player on the Sports-Reference.com college basketball website
List of violations of this constraint: Database reports/Constraint violations/P3696#Single value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P3696#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P3696#Item P69, search, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P3696#Item P54, search, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P3696#Item P118, search
This property is being used by: Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
|
|
|
Constraints
[edit]Discussion
[edit]Mandatory occupation field ?
[edit]Is this a valid use of this constraint. College basketball players, can they truly be said to have an occupation of basketball player? They are not paid to be basketball players. Perhaps it would be better if there was a mandatory use of the item sport set to basketball.
False negatives for current regex pattern
[edit]Currently, this property uses the regular expression [a-z-_]+-\d{1,2}
to test for valid IDs. After scraping all the IDs, I found a few that this regex doesn't match:
name | external_id |
---|---|
Karl Anderson | karl2-anderson-1 |
Mike Bell | mike2-bell-1 |
Tom 2 Brennan | tom2-brennan-1 |
Jim 2 Brown | jim2-brown-1 |
Justin Brownlee | justin-brown-116 |
Bill(2) Chambers | bill2-chambers-1 |
Charlie 2 Farrell | charlie2-farrell-1 |
Larry 2 Grisham | larry2-grisham-1 |
Greg Jones | greg-jones-911 |
Mike Jones | michael-jones |
Sterling 2 Jones | sterling2-jones-1 |
Tom 2 Jones | tom2-jones-1 |
Johnny McCarthy | john2-mccarthy-1 |
Haworth 2 Parks | haworth2-parks-1 |
Daryle 2 Ruby | daryle2-ruby-1 |
Anthony Smith | anthony-smith-915 |
Jim 2 Walker | jim2-walker-1 |
Sam 2 Williams | sam2-williams-1 |
I'm going to update the regex to [a-z2-_]+-\d{1,3}
to accommodate these. This still fails for "michael-jones", but I think that is better handled as an exception to constraint (P2303) (if we allowed for numberless slugs, people might omit the number on accident and not realize). –IagoQnsi (talk) 18:34, 12 October 2020 (UTC)
Duplicative mandatory constraints
[edit]Why does this need mandatory constraints on both league = NCAA Division I men's basketball and competition class = men's basketball. It's just duplicated data, by definition 'NCAA Division I men's basketball' is men's basketball CanadianCodhead (talk) 16:09, 16 October 2020 (UTC)
- @CanadianCodhead: It's a broader way of retrieving that information; it's the same reason that sport=basketball is a mandatory constraint. If you wanted to do a query of all men's basketball, it'd be a more complex query if you had to dig into each league to figure out what competition class it was. –IagoQnsi (talk) 20:12, 17 October 2020 (UTC)
Women's basketball added
[edit]FYI: The site now includes Division I women's basketball. The site's women's database initially started with the 2009–10 season. — Dale Arnett (talk) 18:22, 21 February 2023 (UTC)
- United States of America-related properties
- Canada-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 100000+ items
- Properties with unique value constraints
- Properties with single value constraints
- Properties with format constraints
- Properties with constraints on items using them
- Properties with scope constraints
- Properties with entity type constraints
- Properties with constraints on type
- Sports properties