Property talk:P2638

From Wikidata
Jump to navigation Jump to search

Documentation

TV.com ID
identifier for an entry on TV.com for movies, people and TV series
Applicable "stated in" valueTV.com (Q838639)
Has qualityprefix (Q23585486)
Data typeExternal identifier
Template parameteren:Template:Tv.com show, en:Template:Tv.com movie, en:Template:Tv.com episode, ro:Format:Tv.com person
DomainTV series and web series (note: this should be moved to the property statements)
Allowed values(shows|movies|people|web)/[a-z\d][a-z_\d/-]*[a-z\d-]
ExampleFirefly (Q11622)shows/firefly
Serenity (Q691611)movies/serenity
Joss Whedon (Q298025)people/joss-whedon
Simpsons Roasting on an Open Fire (Q753507)shows/the-simpsons/simpsons-roasting-on-an-open-fire-1286
A Day in the Life (Q4656314)web/a-day-in-the-life-hulu
Source When possible, data should only be stored as statements
Formatter URLhttps://web.archive.org/web/20080201113148/http://www.tv.com/$1/
Robot and gadget jobsDeltaBot does the following jobs: Bots can import values from various Wikipedias
Tracking: sameno label (Q32042433)
Tracking: differencesno label (Q32042017)
Tracking: usageCategory:Pages using Wikidata property P2638 (Q28007639)
Tracking: local yes, WD nono label (Q32042035)
Related to country United States of America (Q30) (See 762 others)
Lists
Proposal discussionProposal discussion
Current uses
Total51,402
Main statement51,34599.9% of uses
Qualifier5<0.1% of uses
Reference520.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
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/P2638#Unique value, SPARQL (every item), SPARQL (by value)
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/P2638#Single value, SPARQL
Format “(shows|movies|people|web)/[a-z\d][a-z_\d/-]*[a-z\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). Known exceptions: V (Q1076940), R (Q615237)
List of violations of this constraint: Database reports/Constraint violations/P2638#Format, SPARQL
Conflicts with “instance of (P31): Wikimedia list article (Q13406463): this property must not be used with the listed properties and values. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2638#Conflicts with P31, hourly updated report, search, SPARQL
Conflicts with “instance of (P31): Wikimedia disambiguation page (Q4167410), Wikimedia category (Q4167836), Wikimedia project page (Q14204246), Wikimedia template (Q11266439): this property must not be used with the listed properties and values. (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/P2638#Conflicts with P31, 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/P2638#Entity types
Scope is as main value (Q54828448), 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/P2638#Scope, SPARQL


Property infos[edit]

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]

Other movie properties[edit]


Discussion[edit]

Format tweak[edit]

@Pasleim, Matěj Suchánek: (or anybody else) maybe you could tweak the regex a little bit? Would like not to allow values like "shows/304615" (where tha part after prefix is digit-only). Those IDs gives 404s. --Edgars2007 (talk) 07:53, 23 March 2016 (UTC)[reply]

Oh, and would be good to fail those IDs, which have / as last symbol. --Edgars2007 (talk) 09:29, 23 March 2016 (UTC)[reply]
@Edgars2007: Firstly, I would rather have clear when there can be numbers at all. Matěj Suchánek (talk) 15:14, 23 March 2016 (UTC)[reply]
@Matěj Suchánek: that is the problem, that they can be anywhere (of course, after the slash). Some valid examples: "shows/finale-part-1-2821422", "shows/9-to-5", "shows/last-man-standing-2011" --Edgars2007 (talk) 17:43, 23 March 2016 (UTC)[reply]
I have added a new constraint as the test. How's it with slashes? Can they really be part of the string? Matěj Suchánek (talk) 19:17, 23 March 2016 (UTC)[reply]
@Matěj Suchánek: thank you. SPARQL looks good. --Edgars2007 (talk) 20:02, 23 March 2016 (UTC)[reply]

@Matěj Suchánek: forgot... the regex isn't working for values like "shows/304615" (which was the original question :D ). That is, those values should be reported as violations. If you need, you can test it with any of these IDs (those will be exceptions): 24 (Q56194), 90210 (Q276071), 227 (Q1248238), 20/20 (Q197867), 50/50 (Q4639709) --Edgars2007 (talk) 09:32, 25 March 2016 (UTC)[reply]

Used (?=...), now it should catch these. Matěj Suchánek (talk)
Cool, thanks! --Edgars2007 (talk) 10:09, 25 March 2016 (UTC)[reply]

The current format is just a URL string, which is a bit cumbersome. TV.com does have numeric IDs for shows and episodes and they are resolvable. The number spaces do overlap so these are separate IDs (Show ID and Episode ID). For example, TVDB resolves TV.com show IDs with this template: http://www.tv.com/show/$1/summary.html

Scope[edit]

@Máté: I assume, you would be interested... Maybe we could include also TV seasons and "List of x episodes" as scope for this property? a) knowing ID for the show, it is pretty easy to add one for episode list and seasons items b) in this way, we could have easier import from Wikipedias (not so much errors). What do you think? P.S. I'm still importing the values from enwiki (from harvesttemplates logfile). Just need some rest for few days :) --Edgars2007 (talk) 09:27, 25 March 2016 (UTC)[reply]

For episode lists it seems quite unnecessary since you just have to add "/episodes/" after the ID of the linked series. For that there is no need to store the ID again. It would make more sense with seasons (even if in theory that could be computed as well in many if not most cases). I may support extending the scope to seasons (like in the case of Rotten Tomatoes IDs) but not to episode lists. I don't think that it'll be such a huge inconvenience to get rid of the claims on episode lists after the import. – Máté (talk) 10:21, 25 March 2016 (UTC)[reply]
@Máté: well, I don't think it's too trivial for episode lists, because ID for the show is on different item (of course). We then probably could also get rid off something else, for example, the same IMDb ID (P345) for 88th Academy Awards (Q20022969), as it also requires just to add "2016". OK, I understand, that Academy example is more close to TV season example in TV.com case. --Edgars2007 (talk) 18:39, 25 March 2016 (UTC)[reply]