Property talk:P1113

From Wikidata
Jump to navigation Jump to search

Documentation

number of episodes
number of episodes in a film/TV/radio series
Descriptionthe number of items in a series
Representsepisode (Q1983062)
Data typeQuantity
Domainitems that that are used as the object for Property part of the series (P179) (note: this should be moved to the property statements)
Allowed values
According to this template: non-negative integers
According to statements in the property:
0 ≤ 𝓧 ≤ 16,000
When possible, data should only be stored as statements
Allowed unitsnot applicable
ExampleThe Simpsons (Q886) → 717
Guiding Light (Q1145764) → 15,762
Robot and gadget jobsDeltaBot does the following jobs:
Tracking: sameno label (Q55283001)
Tracking: differencesno label (Q40586236)
Tracking: usageCategory:Pages using Wikidata property P1113 (Q26998031)
Tracking: local yes, WD nono label (Q55283003)
See alsoduration (P2047), series ordinal (P1545), number of seasons (P2437), number of parts of this work (P2635), list of episodes (P1811)
Lists
  • Items with the most statements of this property
  • Count of items by number of statements (chart)
  • Count of items by number of sitelinks (chart)
  • Items with the most identifier properties
  • Items with no other statements
  • Most recently created items
  • Items with novalue claims
  • Items with unknown value claims
  • Usage history (total)
  • Chart by item creation date
  • Minimum and maximum
  • User:Laboramus/Units/P1113 (Units used)
  • Database reports/Complex constraint violations/P1113
  • Database reports/Constraint violations/P1113
  • Map
  • Random list
  • Proposal discussionProposal discussion
    Current uses
    Total80,335
    Main statement80,22799.9% of uses
    Qualifier1000.1% of uses
    Reference8<0.1% of uses
    Explanations [Edit]

    This property shows the number of episodes a television or radio series has had. It should always be a numerical value, without other symbols or indications. It's possible to add qualifiers, such as point in time, or references.

    Programs in production[edit]

    If the program is still in production, ideally you should not update the property until the broadcast premiere of a new episode.

    The number of episode should be qualified:

    The date for number of episodes aired (Q39242248) shouldn't be in the future.

    Using number of episodes at the end of the current season or of the last season aired (Q39239591) has the advantage that updates need be done only once per season.

    If there are several values for the same criterion used (P1013), the most recent one should get preferred rank.

    Programs that ended[edit]

    In general, only the total number of episodes is stored.

    If there are several ways of counting this, in rare cases, there may be multiple values. Add a qualifier to indicate how it is determined.

    In general, attempt to follow the way the producer counts the number of episodes. Bear in mind the difference between two-part episode (Q21664088) and segment of a television episode (Q29555881).

    Items for episodes[edit]

    Items for individual episodes can include further details.

    Range from “0” to “16000”: values should be in the range from “0” to “16000”. (Help)
    List of violations of this constraint: Database reports/Constraint violations/P1113#Range, hourly updated report
    Units: “novalue”: value unit must be one of listed. (Help)
    List of violations of this constraint: Database reports/Constraint violations/P1113#Units, hourly updated report
    Integer: values should be integers (ie. they shouldn't have a fractional part) (Help)
    List of violations of this constraint: Database reports/Constraint violations/P1113#integer, hourly updated report, 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/P1113#Single value, SPARQL
    Scope is as main value (Q54828448): 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/P1113#Scope, 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/P1113#Entity types
    Conflicts with “country (P17): 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/P1113#Conflicts with P17, SPARQL
    Television series would have this (series with end date)
    check limited to series that ended ( end time (P582) ) (Help)
    Violations query: SELECT * { ?item wdt:P31 wd:Q5398426 ; wdt:P582 [] . MINUS { ?item wdt:P1113 [] } }
    List of this constraint violations: Database reports/Complex constraint violations/P1113#Television series would have this (series with end date)
    Television series would have this (series with episode items)
    check limited to series with more than 10 episode items (Help)
    Violations query: SELECT * { ?item wdt:P31 wd:Q5398426 . MINUS { ?item wdt:P1113 [] } { SELECT ?item (COUNT(?ep) as ?ct) { ?ep wdt:P31 wd:Q21191270 ; wdt:P179 ?item } GROUP BY ?item HAVING (?ct>10) } } ORDER BY DESC(?ct)
    List of this constraint violations: Database reports/Complex constraint violations/P1113#Television series would have this (series with episode items)
    This property is being used by:

    Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

    Aired/produced[edit]

    For TV series, the property is usually used to indicate the number of episodes aired. We'd need a way to list the number of episodes produced (when the series is cancelled before all produced episodes are aired, and the remaining episodes were never aired or published in any other way). – Máté (talk) 14:05, 10 March 2016 (UTC)[reply]

    [rus] Русское название[edit]

    «Количество серий» → «Количество серий или эпизодов», т.к. это свойство можно видеть в свойстве «серия опер», где «количество серий» слишком обескураживает. Так хотя бы легче сориентироваться при чтении свойств.--EUvin (talk) 22:14, 13 June 2016 (UTC)[reply]

    Usage instructions[edit]

    Hello everyone. I created the help page for this property ("Explanations" section above) trying to reflect one of the most common current usage in wikidata and comparable policies about television infoboxes in local editions of Wikipedia. I'm not sure if it's clear enough and we should also add a note on the aired vs produced topic proposed above by Máté. Also, I'm not sure what's the best qualifier/way to differentiate values in such cases. I'm going to notify about this discussion local projects that use the property and some of the main editions of wikipedia. --Supernino (talk) 06:43, 9 September 2017 (UTC)[reply]

    See Property_talk:P2437#Usage_instructions. Preferred rank can be used for the current value. "criterion used" can be used to qualify the number.
    --- Jura 08:01, 9 September 2017 (UTC)[reply]
    @Jura1: "criterion used" would be good, but only allows items (!) Is there an equivalent to add a note? --Supernino (talk) 07:10, 10 September 2017 (UTC)[reply]
    You can add the note to a new item and then add it ;)
    --- Jura 07:13, 10 September 2017 (UTC)[reply]
    @Jura1: Uhm.... An example please? --Supernino (talk) 07:29, 10 September 2017 (UTC)[reply]
    Q13365715#P1889. Obviously, these can be worded more or less abstract.
    --- Jura 07:32, 10 September 2017 (UTC)[reply]
    Ok then, I've updated the help page :) --Supernino (talk) 12:19, 10 September 2017 (UTC)[reply]

    How to count Two-Part-Episodes?[edit]

    How to count two-part-episodes? Example Encounter at Farpoint (Q3239271) has been broadcasted as a single pilot originally in the US. In other countries and re-runs it was split in two episodes:

    They have different production numbers and in German, these two have different Titles and of course, separate broadcast dates. So should Star Trek: The Next Generation, season 1 (Q978153) have 25 or 26 number of episodes (P1113)? --Loominade (talk) 12:46, 6 February 2018 (UTC)[reply]

    Bounds[edit]

    @‎MisterSynergy:

    Given the problems we encounter sometimes to calculate the number of episodes (sample), I think bounds should be possible by default, i.e. the "no bounds" constraint shouldn't be added.
    --- Jura 09:57, 28 April 2018 (UTC)[reply]

    That’s not a use case for bounds. If sources report different values, you need to add multiple claims and work with ranks, rather than applying bounds to a single value. —MisterSynergy (talk) 10:01, 28 April 2018 (UTC)[reply]
    If sources report an approximate value, this works just fine with bounds. I do think +-0 when present could be removed.
    --- Jura 10:10, 28 April 2018 (UTC)[reply]

    Updates[edit]

    See Wikidata_talk:WikiProject_Movies#Number_of_episodes. --- Jura 09:21, 16 May 2021 (UTC)[reply]

    Apple is a good source of counts[edit]

    If a podcast is in Apples DB, the count is available from their API, I have using this to try and fill in some of the gaps

    This would produce a list of 100 where no count has been added

    SELECT DISTINCT ?item ?itemLabel WHERE {

     SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
     {
       SELECT DISTINCT ?item WHERE {
         ?item p:P31 ?statement0.
         ?statement0 (ps:P31/(wdt:P279*)) wd:Q24634210.
         ?item p:P5842 ?statement1.
         ?statement1 (ps:P5842) _:anyValueP5842.
         MINUS {
           ?item p:P1113 ?statement2.
           ?statement2 (psv:P1113/wikibase:quantityAmount) ?numericQuantity.
         }
       }
       LIMIT 100
     }
    

    }

    Back ache (talk) 00:47, 12 November 2023 (UTC)[reply]