Property talk:P1651

From Wikidata
Jump to: navigation, search

Documentation

YouTube video ID
identifier of a notable video on YouTube
Description Identifier of a video on YouTube
Represents YouTube (Q866), YouTuber (Q17125263)
Data type External identifier
Domain
According to this template: YouTube videos
According to statements in the property:
video (Q34508), film (Q11424), episode (Q1983062), television station (Q1616075), speech (Q861911), single (Q134556), song (Q7366), extended play (Q169930), event (Q1656682), symphony (Q9734) and trailer (Q622550)
When possible, data should only be stored as statements
Allowed values [A-Za-z0-9_\-]{11} (64-bit int base64 encoded)
Example Gangnam Style (Q890)9bZkp7q19f0
Formatter URL https://www.youtube.com/watch?v=$1
Embed URL https://www.youtube.com/embed/$1
Tracking: local yes, WD no no label (Q22158826)
See also publication date (P577), director (P57), YouTube channel ID (P2397), video (P10), YouTube Playlist ID (P4300)
Lists
Proposal discussion Property proposal/Archive/28#P1651
Current uses 12,067
[create] Create a translatable help page (preferably in English) for this property to be included here
Type “video (Q34508), film (Q11424), episode (Q1983062), television station (Q1616075), speech (Q861911), single (Q134556), song (Q7366), extended play (Q169930), event (Q1656682), symphony (Q9734), trailer (Q622550): element must contain property “instance of (P31)” with classes “video (Q34508), film (Q11424), episode (Q1983062), television station (Q1616075), speech (Q861911), single (Q134556), song (Q7366), extended play (Q169930), event (Q1656682), symphony (Q9734), trailer (Q622550)” or their subclasses (defined using subclass of (P279)).
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P1651#Type Q34508, Q11424, Q1983062, Q1616075, Q861911, Q134556, Q7366, Q169930, Q1656682, Q9734, Q622550, SPARQL
Single value: this property generally contains a single value.
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P1651#single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items.
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P1651#distinct values, SPARQL (every item), SPARQL (by value)
Format “[A-Za-z0-9_\-]{11}”: value must be formatted using this pattern (PCRE syntax).
List of this constraint violations: Database reports/Constraint violations/P1651#Format, hourly updated report, SPARQL

Scope[edit]

This property should be used in the same manner as video (P10). If a video is relevant to the item, it should be offered to the user, no matter where it is stored, or what its license is. We are linking to plenty of non-free web pages, after all. --Magnus Manske (talk) 09:18, 25 July 2015 (UTC)

More URL formatters?[edit]

So video can be embedded via iframe with the URL https://www.youtube.com/embed/$1. For the privacy conscious there's a "nocookie" variant (initially US gov website, now EU cookie law) https://www.youtube-nocookie.com/embed/$1. Dispenser (talk) 17:15, 21 January 2016 (UTC)

Property proposal for embed URL Dispenser (talk) 14:21, 23 March 2016 (UTC)
Done: embed URL template (P2720). Dispenser (talk) 16:52, 23 April 2016 (UTC)