Wikidata:Property proposal/Academy Awards Database nominee ID

Academy Awards Database nominee ID edit

Originally proposed at Wikidata:Property proposal/Authority control

DescriptionIdentifier for nominees in the official Academy Awards database
Representshuman (Q5)
Data typeExternal identifier
Domainhuman (Q5), organization (Q43229)
Allowed values([1-9]\d{0,3}|1[0-1]\d{3})
Example 1Meryl Streep (Q873)6846
Example 2Walt Disney (Q8704)1593
Example 3Denzel Washington (Q42101)3910
Sourcehttp://awardsdatabase.oscars.org/
External linksUse in sister projects: [ar][de][en][es][fr][he][it][ja][ko][nl][pl][pt][ru][sv][vi][zh][commons][species][wd][en.wikt][fr.wikt].
Mix'n'match2000
Number of IDs in source7000+
Expected completenesseventually complete (Q21873974)
Formatter URLhttp://awardsdatabase.oscars.org/Search/GetResults?query=%7B%22NomineeId%22:$1,%22IsHyperlinkQuery%22:true,%22Sort%22:%221-Nominee-Alpha%22,%22Search%22:%22Basic%22%7D
See alsoIMDb ID (P345), Box Office Mojo person ID (P2688), AllMovie person ID (P2019), TCM Movie Database person ID (P3056), American Film Institute person ID (P5340)

Motivation edit

Identifier for nominees and winners of Academy Awards. Trivialist (talk) 03:32, 13 November 2018 (UTC)[reply]

Discussion edit

  Comment As I was able to check lately: ATTENTION : when creating the Property, you must remove:

@Eihel: may I ask you why you leave the ^ and $ characters in the regexes and let the property creator remove them? Why can't you remove them directly? That is what we usually do. − Pintoch (talk) 17:11, 20 November 2018 (UTC)[reply]

Hello @Pintoch: For format as a regular expression (P1793), the tool used to test the expression is regex101.com.
Following the creation of the property, a test with the string abc;1234 $azerty45678 for pcre gives 3 matches. I changed that.
I think a lot of people are testing their RegEx for Perl (pcre). Strictly in this case, it would take \A at the beginning of expression and \z at the end of expression (for pcre), but WD also uses java.util.regex.Pattern. To be consistent, we must add ^ and $ to format as a regular expression (P1793) in the construction of the Academy Awards Database nominee ID (P6150) property. Thus, only the numbers from 1 to 11999 are allowed. property constraint (P2302) remains the same.
For my part, there is also a more serious problem that I did not understand/resolved about format constraint (Q21502404). This happens with the handling of Special: ConstraintReports : value errors due to constraints are sometimes not reported. Is this problem valid for everyone, I don't know. It is therefore a way to introduce abberant values. Have you read something on this subject? Cordially. --Eihel (talk) 04:14, 24 November 2018 (UTC)[reply]
Ok, I see. No I don't know anything about constraint reports - the software that produces them is closed source and has other issues so I do not use these reports myself. − Pintoch (talk) 10:55, 24 November 2018 (UTC)[reply]

@ديفيد عادل وهبة خليل 2, Trivialist, Deansfa, Eihel, Pintoch:   Done: Academy Awards Database nominee ID (P6150). − Pintoch (talk) 17:12, 20 November 2018 (UTC)[reply]