Skip to content

Commit

Permalink
Added TelevisionChannel and properties for modeling TV channel lineups.
Browse files Browse the repository at this point in the history
  • Loading branch information
vholland committed Feb 6, 2015
1 parent c6ac6e0 commit fe3fa6f
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 1 deletion.
61 changes: 60 additions & 1 deletion data/schema.rdfa
Original file line number Diff line number Diff line change
Expand Up @@ -7991,9 +7991,10 @@ Note that Event uses startDate/endDate instead of startTime/endTime, even when d
</div>
<div typeof="rdf:Property" resource="http://schema.org/publishedOn">
<span class="h" property="rdfs:label">publishedOn</span>
<span property="rdfs:comment">A broadcast service associated with the publication event.</span>
<span property="rdfs:comment">A broadcast service or station associated with the publication event.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/PublicationEvent">PublicationEvent</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/BroadcastService">BroadcastService</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/TelevisionStation">TelevisionStation</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/publisher">
<span class="h" property="rdfs:label">publisher</span>
Expand Down Expand Up @@ -11328,6 +11329,64 @@ postponing for 1.6.
<span>Domain: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Order">Order</a></span>
</div>

<div>
<h1>TV Listing additions</h1>
<div typeof="rdf:Property" resource="http://schema.org/affiliateOf">
<span class="h" property="rdfs:label">affiliateOf</span>
<span property="rdfs:comment">The television network(s) whose content is broadcast on this station.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionStation">TelevisionStation</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Organization">Organization</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/displayName">
<span class="h" property="rdfs:label">displayName</span>
<span property="rdfs:comment">The name displayed in the channel guide. For many US affiliates, it is the network name.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionStation">TelevisionStation</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/timezone">
<span class="h" property="rdfs:label">timezone</span>
<span property="rdfs:comment">The timezone for which the TV station bases its broadcasts.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionStation">TelevisionStation</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/isLiveBroadcast">
<span class="h" property="rdfs:label">isLiveBroadcast</span>
<span property="rdfs:comment">True is the broadcast is of a live event..</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/BroadcastEvent">BroadcastEvent</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Boolean">Boolean</a></span>
</div>
<div typeof="rdfs:Class" resource="http://schema.org/TelevisionChannel">
<span class="h" property="rdfs:label">TelevisionChannel</span>
<span property="rdfs:comment">A unique instance of a TelevisionStation on a BroadcastService's lineup.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Intangible">Intangible</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/channel">
<span class="h" property="rdfs:label">channel</span>
<span property="rdfs:comment">The unique address by which the TV station can be identified in a provider lineup. In US, this is typically a number.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionChannel">TelevisionChannel</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/inLineup">
<span class="h" property="rdfs:label">inLineup</span>
<span property="rdfs:comment">The BroadcastService offering the channel.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionChannel">TelevisionChannel</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/BroadcastService">BroadcastService</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/serviceTier">
<span class="h" property="rdfs:label">serviceTier</span>
<span property="rdfs:comment">The type of service required to have access to the channel (e.g. Standard or Premium).</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionChannel">TelevisionChannel</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/station">
<span class="h" property="rdfs:label">station</span>
<span property="rdfs:comment">The TelevisionStation offered on this channel.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/TelevisionChannel">TelevisionChannel</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/TelevisionStation">TelevisionStation</a></span>
</div>

</div>

</body>

</html>
181 changes: 181 additions & 0 deletions data/sdo-tv-listing-examples.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
TYPES: Organization,TelevisionStation

PRE-MARKUP:
WAAY is an affiliate of the ABC network and broadcasts in SD.

MICRODATA:
<div itemscope itemtype="http://schema.org/TelevisionStation">
<span itemprop="name">WAAY-TV</span>
<span itemprop="displayName">ABC</span>
<span itemprop="screeningType">SD</span>
<span itemprop="timezone">PST</span>
<span itemprop="timezone">PDT</span>
<div itemprop="affiliateOf" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">ABC</span>
</div>
</div>

RDFA:
<div vocab="http://schema.org" typeof="TelevisionStation">
<span property="name">WAAY-TV</span>
<span property="displayName">ABC</span>
<span property="screeningType">SD</span>
<span property="timezone">PST</span>
<span property="timezone">PDT</span>
<div property="affiliateOf" typeof="Organization">
<span property="name">ABC</span>
</div>
</div>


JSON:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"TelevisionStation",
"name":"WAAY-TV",
"displayName":"ABC",
"screeningType":"SD",
"timezone":[
"PST",
"PDT"
],
"affiliateOf":{
"@type":"Organization",
"name":"ABC"
}
}
</script>

TYPES: Organization,TelevisionStation,TelevisionChannel,BroadcastService


PRE-MARKUP:
WAAY is channel 7 on Comcast cable.

MICRODATA:
<div itemscope itemtype="http://schema.org/TelevisionChannel">
<span itemprop="name">WAAY 7</span>
<span itemprop="channel">7</span>
<span itemprop="serviceTier">Premium</span>
<div itemprop="inLineup" itemscope itemtype="http://schema.org/BroadcastService">
<span itemprop="name">Comcast</span>
</div>
<div itemprop="station" itemscope itemtype="http://schema.org/TelevisionStation">
<span itemprop="name">WAAY-TV</span>
<span itemprop="displayName">ABC</span>
<div itemprop="affiliateOf" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">ABC</span>
</div>
</div>
</div>

RDFA:
<div vocab="http://schema.org" typeof="TelevisionChannel">
<span property="name">WAAY 7</span>
<span property="channel">7</span>
<span property="serviceTier">Premium</span>
<div property="inLineup" typeof="BroadcastService">
<span property="name">Comcast</span>
</div>
<div property="station" typeof="TelevisionStation">
<span property="name">WAAY-TV</span>
<span property="displayName">ABC</span>
<div property="affiliateOf" typeof="Organization">
<span property="name">ABC</span>
</div>
</div>
</div>


JSON:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"TelevisionChannel",
"name": "WAAY 7",
"channel":"7",
"serviceTier":"Premium",
"inLineup":{
"@type":"BroadcastService",
"name": "Comcast",
},
"station":{
"@type":"TelevisionStation",
"name": "WAAY-TV",
"displayName": "ABC",
"affiliateOf":{
"@type":"Organization",
"name":"ABC"
}
}
}
</script>


TYPES: BroadcastEvent,TelevisionStation,TVEpisode


PRE-MARKUP:
WAAY is broadcasting Modern Family at 9:00PM on October 12, 2014 in English with Spanish subtitles available.

MICRODATA:
<div itemscope itemtype="http://schema.org/BroadcastEvent">
<span itemprop="name">Modern Family - S6E8 - Three Turkeys</span>
<span itemprop="description">Phil and Luke take over Thanksgiving duties.</span>
<meta itemprop="IsLiveBroadcast" content="http://schema.org/False" />
<span itemprop="screeningType">HD</span>
<span itemprop="inLanguage">en</span>
<span itemprop="subtitleLanguage">es</span>
<span itemprop="startDate" content="2014-10-12T21:00">starts 10/12/2014 9:00PM</span>
<span itemprop="endDate" content="2014-10-12T21:30">ends 10/12/2014 9:30PM</span>
<div itemprop="publishedOn" itemscope itemtype="http://schema.org/TelevisionStation">
<span itemprop="name">WAAY-TV</span>
</div>
<div itemprop="workPerformed" itemscope itemtype="http://schema.org/TVEpisode">
<span itemprop="name">Modern Family: Three Turkeys</span>
</div>
</div>

RDFA:
<div vocab="http://schema.org" typeof="BroadcastEvent">
<span property="name">Modern Family - S6E8 - Three Turkeys</span>
<span property="description">Phil and Luke take over Thanksgiving duties.</span>
<meta property="IsLiveBroadcast" content="http://schema.org/False" />
<span property="screeningType">HD</span>
<span property="inLanguage">en</span>
<span property="subtitleLanguage">es</span>
<span property="startDate" content="2014-10-12T21:00">starts 10/12/2014 9:00PM</span>
<span property="endDate" content="2014-10-12T21:30">ends 10/12/2014 9:30PM</span>
<div property="publishedOn" typeof="TelevisionStation">
<span property="name">WAAY-TV</span>
</div>
<div property="workPerformed" typeof="TVEpisode">
<span property="name">Modern Family: Three Turkeys</span>
</div>
</div>


JSON:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"BroadcastEvent",
"startDate":"2014-10-12T21:00",
"endDate":"2014-10-12T21:30",
"publishedOn":{
"@type":"TelevisionStation",
"name: "WAAY-TV"
},
"workPerformed":{
"@type":"CreativeWork",
"name": "Modern Family: Three Turkeys"
},
"inLanguage":"en",
"subtitleLanguage":"es",
"screeningType":"HD",
"isLiveBroadcast":"False",
"name":"Modern Family - S6E8 - Three Turkeys",
"description":"Phil and Luke take over Thanksgiving duties."
}
</script>

0 comments on commit fe3fa6f

Please sign in to comment.