schema.org/ext/events2.html
author scor <scorlosquet@gmail.com>
Fri, 14 Mar 2014 12:03:13 -0400
changeset 179 b4c3ad199322
parent 133 fc09e465d53f
permissions -rw-r--r--
Add example inspired from stackoverflow for QA proposal
131
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     1
<!DOCTYPE html>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     2
<html>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     3
  <head>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     4
    <title>RDFa-RDFS config for Events (part 2) schema</title>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     5
    <style type="text/css">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     6
      span.h {
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     7
        padding-left: 0px;
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     8
        font-weight: bold;
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
     9
      }
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    10
      span {
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    11
        display: block;
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    12
        padding-left: 10px;
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    13
      }
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    14
    </style>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    15
  </head>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    16
  <body>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    17
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    18
   <h1>Events (part 2) schema</h1>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    19
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    20
  <p>See <a href="www.w3.org/wiki/WebSchemas/EventSchemaUpdate">Wiki overview</a>.</p>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    21
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    22
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    23
    <!-- make some new assertions about existing Event type -->
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    24
    <div typeof="rdfs:Class" resource="http://schema.org/Event">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    25
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    26
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    27
    <div typeof="rdfs:Class" resource="http://schema.org/EventStatusType">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    28
      <span class="h" property="rdfs:label">EventStatusType</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    29
      <span property="rdfs:comment">EventStatusType is an enumeration type whose instances represent several states that an Event may be in.</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    30
      <span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Enumeration">Enumeration</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    31
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    32
  
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    33
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    34
    <!-- properties -->
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    35
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    36
    <div typeof="rdf:Property" resource="http://schema.org/eventStatus">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    37
      <span class="h" property="rdfs:label">eventStatus</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    38
      <span property="rdfs:comment">An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    39
      <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Event">Event</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    40
      <span>Range: <a property="http://schema.org/range" href="http://schema.org/EventStatusType">EventStatusType</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    41
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    42
132
29440974cf85 Events schema (additions)
danbri <danbri@google.com>
parents: 131
diff changeset
    43
    <div typeof="rdf:Property" resource="http://schema.org/previousStartDate">
131
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    44
      <span class="h" property="rdfs:label">previousStartDate</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    45
      <span property="rdfs:comment">Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    46
      <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Event">Event</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    47
      <span>Range: <a property="http://schema.org/range" href="http://schema.org/Date">Date</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    48
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    49
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    50
    <!-- extending a property added for LRMI ... we should change 'content' to 'item' -->
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    51
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    52
    <div typeof="rdf:Property" resource="http://schema.org/typicalAgeRange">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    53
      <span class="h" property="rdfs:label">typicalAgeRange</span>
132
29440974cf85 Events schema (additions)
danbri <danbri@google.com>
parents: 131
diff changeset
    54
      <span property="rdfs:comment">The typical expected age range, e.g. '7-9', '11-'.</span>
131
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    55
      <span>Domain: <a property="http://schema.org/domain" href="http://schema.org/Event">Event</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    56
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    57
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    58
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    59
    <!-- enumerated instances -->
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    60
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    61
    <div typeof="http://schema.org/EventStatusType" resource="http://schema.org/EventScheduled">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    62
      <span class="h" property="rdfs:label">EventScheduled</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    63
      <span property="rdfs:comment">The event is taking place or has taken place on the startDate as scheduled. Use of this value is optional, as it is assumed by default.</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    64
      <span>type: <a href="http://schema.org/EventStatusType">EventStatusType</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    65
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    66
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    67
    <div typeof="http://schema.org/EventStatusType" resource="http://schema.org/EventCancelled">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    68
      <span class="h" property="rdfs:label">EventCancelled</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    69
      <span property="rdfs:comment">The event has been cancelled. If the event has multiple startDate values, all are assumed to be cancelled. Either startDate or previousStartDate may be used to specify the event’s cancelled date(s).</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    70
      <span>type: <a href="http://schema.org/EventStatusType">EventStatusType</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    71
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    72
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    73
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    74
    <div typeof="http://schema.org/EventStatusType" resource="http://schema.org/EventPostponed">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    75
      <span class="h" property="rdfs:label">EventPostponed</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    76
      <span property="rdfs:comment">The event has been postponed and no new date has been set. The event’s previousStartDate should be set.</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    77
      <span>type: <a href="http://schema.org/EventStatusType">EventStatusType</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    78
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    79
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    80
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    81
    <div typeof="http://schema.org/EventStatusType" resource="http://schema.org/EventRescheduled">
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    82
      <span class="h" property="rdfs:label">EventRescheduled</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    83
      <span property="rdfs:comment">The event has been rescheduled. The event’s previousStartDate should be set to the old date and the startDate should be set to the event’s new date. (If the event has been rescheduled multiple times, the previousStartDate property may be repeated.)</span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    84
      <span>type: <a href="http://schema.org/EventStatusType">EventStatusType</a></span>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    85
    </div>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    86
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    87
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
    88
133
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    89
    <!-- let's add in two more ItemAvailability enums, to support event availibility. -->
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    90
 
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    91
    <!-- actually, no, we'll do this in the original config file ... --> 
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    92
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    93
<!-- not needed, assuming other approach works:
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    94
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    95
    <div typeof="http://schema.org/ItemAvailability" resource="http://schema.org/SoldOut">
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    96
      <span class="h" property="rdfs:label">SoldOut</span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    97
      <span property="rdfs:comment">The event has sold out.</span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    98
      <span>type: <a href="http://schema.org/ItemAvailability">ItemAvailability</a></span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
    99
    </div>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   100
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   101
    <div typeof="http://schema.org/ItemAvailability" resource="http://schema.org/LimitedAvailability">
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   102
      <span class="h" property="rdfs:label">LimitedAvailability</span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   103
      <span property="rdfs:comment">The event has limited availability.</span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   104
      <span>type: <a href="http://schema.org/ItemAvailability">ItemAvailability</a></span>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   105
    </div>
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   106
-->
fc09e465d53f refined, bugfixed. drafted enums.
danbri <danbri@google.com>
parents: 132
diff changeset
   107
131
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
   108
  </body>
d3c2ad3e6942 Events schema (additions)
danbri <danbri@google.com>
parents:
diff changeset
   109
</html>