Property talk:P7050

From Wikidata
Jump to navigation Jump to search

Documentation

Album of the Year artist ID
identifier for an artist on the Album of the Year (AOTY) website
Associated itemAlbum of the Year (Q48989591)
Applicable "stated in" valueAlbum of the Year (Q48989591)
Data typeExternal identifier
Domainhuman (Q5) or music organization (Q32178211)
Allowed values\d+
ExampleNine Inch Nails (Q11647)249
Tyler, the Creator (Q167635)1471
David Bowie (Q5383)3144
The Beatles (Q1299)2523
...And You Will Know Us by the Trail of Dead (Q426068)1
Sourcehttps://www.albumoftheyear.org
Formatter URLhttps://www.albumoftheyear.org/artist/$1/
Lists
Proposal discussionProposal discussion
Current uses
Total1,103
Main statement1,09599.3% of uses
Qualifier50.5% of uses
Reference30.3% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “human (Q5), music organization (Q32178211): item must contain property “instance of (P31)” with classes “human (Q5), music organization (Q32178211)” 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/P7050#Type Q5, Q32178211, SPARQL
Single value: this property generally contains a single value. (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/P7050#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (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/P7050#Unique value, SPARQL (every item), SPARQL (by value)
Format “\d+: 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/P7050#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/P7050#Entity types
Scope is as main value (Q54828448), as qualifier (Q54828449), as reference (Q54828450): 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/P7050#Scope, SPARQL

URLs not working[edit]

The ID for David Bowie is 3144. This leads to the URL https://www.albumoftheyear.org/artist/3144, which doesn't work. Putting a slash on the end like https://www.albumoftheyear.org/artist/3144/ does work. I suppose the formatter URL should be https://www.albumoftheyear.org/artist/$1/

I followed the example of the Discogs properties. Discogs appends the artist/release/etc. names to the names to the end of the URLs, but these aren't needed. (presumably the names could change) The Wikidata properties only uses the bare IDs since that works. Album of the Year also works the same way, so that's what I did in my proposal. Pmepepnoute (talk) 00:13, 25 July 2019 (UTC)[reply]

I've changed the formatter URL to https://www.albumoftheyear.org/artist/$1/ and the additions are working now. Existing ones didn't, but removing and readding them works. Pmepepnoute (talk) 00:13, 25 July 2019 (UTC)[reply]