Property talk:P827

From Wikidata
Jump to navigation Jump to search

Documentation

BBC programme ID
identifier for the corresponding item on the BBC website and internal systems
DescriptionIdentifier for the corresponding programme, series or topic on the BBC website
RepresentsBBC Programme Identifier (Q17361898)
Associated itemBBC (Q9531)
Data typeExternal identifier
Corresponding templatetemplate:BBC programme (Q6707389)
Template parameteren:template:infobox television: |pid=
Domaintelevision and radio series and shows; or groups of shows by topic (note: this should be moved to the property statements)
Allowed values[b-df-hj-np-tv-z0-9]{8,11}
ExampleThe Archers (Q386813)b006qpgr (RDF)
Wolfgang Amadeus Mozart (Q254)p01msk5j (RDF)
Doctor Who (Q34316)b006q2x0 (RDF)
Formatter URLhttp://www.bbc.co.uk/programmes/$1
http://www.bbc.co.uk/programmes/$1.json
Related to countryFlag of the United Kingdom.svg United Kingdom (Q145) (See 139 others)
Lists
Proposal discussionProperty proposal/Archive/13#P827
Current uses1,627
Search for values
[create] Create a translatable help page (preferably in English) for this property to be included here
Format “[a-z0-9]{8,10}”: value must be formatted using this pattern (PCRE syntax). (Help)
List of this constraint violations: Database reports/Constraint violations/P827#Format, hourly updated report, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
List of this constraint violations: Database reports/Constraint violations/P827#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Known exceptions: One Love Manchester (Q30125323)
List of this constraint violations: Database reports/Constraint violations/P827#Single value, SPARQL

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


Naming[edit]

I have changed the name to "BBC programme identifier", since there are several identifiers on the BBC and this one only refers to programs.--Micru (talk) 12:26, 27 August 2013 (UTC)

I have only just seen this. Wolfgang Amadeus Mozart (Q254) is not a programme. I suggest we use "BBC PID". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:36, 17 September 2016 (UTC)

Formatter URL[edit]

Should the formatter be for the information resource (i.e., the document describing the programme), or should it be used to generate the URI of the identified programme itself?

Because bbc.co.uk/programmes is linked data-savvy, it has specific URIs for the programmes which are distinct from those of the documents. For brands, series, episodes and clips (i.e., all of the PIDs that one would typically encounter in the wild), the programme URI is identical to the programme page URL, but has the fragment "#programme" appended to it.

Given this, should the formatter URL be "http://www.bbc.co.uk/programmes/$1", or should it be "http://www.bbc.co.uk/programmes/$1#programme"? If the formatter will be ultimately used to generate coreferences from Wikidata, then it should surely be the latter (otherwise the coreference statement would assert that the Wikidata *entity* is the same as the BBC programmes *page*, which is not desirable).

Nevalicori (talk) 06:57, 5 March 2015 (UTC)

@Nevalicori: Late reply: the latter URL is used in formatter URI for RDF resource (P1921). However, I see that we also have http://www.bbc.co.uk/programmes/$1.json which should presumably also be moved to P1921? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:40, 17 September 2016 (UTC)

Length constraint[edit]

Note that PIDs do not have a defined maximum length: although they are padded to a *minimum* length, eventually they will overflow the eight-character space and spill into nine characters. Internal BBC systems are supposed to not be picky about the length of a PID. Behind the scenes, they're generated by concatenating a single-character authority prefix (the 'b' or 'p') with a padded base32-encoded version of an internal sequential counter (although the sequencing is determined by the generation time, which may precede publication time by some days, weeks, or even months). Given this, at some point in the future the length constraint applied here will fail on some legitimate PIDs.

Nevalicori (talk) 07:02, 5 March 2015 (UTC)

@Nevalicori: I've increased the max length to ten characters (for now). Thank you for spotting this. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:36, 1 May 2015 (UTC)