microdata_schema 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +43 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/lib/microdata.rb +4 -0
  11. data/lib/microdata/schema.rb +121 -0
  12. data/lib/microdata/schema/data_type/boolean.rb +10 -0
  13. data/lib/microdata/schema/data_type/boolean/false.rb +6 -0
  14. data/lib/microdata/schema/data_type/boolean/true.rb +6 -0
  15. data/lib/microdata/schema/data_type/date.rb +10 -0
  16. data/lib/microdata/schema/data_type/date_time.rb +10 -0
  17. data/lib/microdata/schema/data_type/number.rb +6 -0
  18. data/lib/microdata/schema/data_type/number/float.rb +6 -0
  19. data/lib/microdata/schema/data_type/number/integer.rb +6 -0
  20. data/lib/microdata/schema/data_type/text.rb +6 -0
  21. data/lib/microdata/schema/data_type/text/url.rb +6 -0
  22. data/lib/microdata/schema/data_type/time.rb +6 -0
  23. data/lib/microdata/schema/list.rb +9 -0
  24. data/lib/microdata/schema/thing.rb +98 -0
  25. data/lib/microdata/schema/thing/action.rb +49 -0
  26. data/lib/microdata/schema/thing/action/achieve_action.rb +7 -0
  27. data/lib/microdata/schema/thing/action/achieve_action/lose_action.rb +12 -0
  28. data/lib/microdata/schema/thing/action/achieve_action/tie_action.rb +7 -0
  29. data/lib/microdata/schema/thing/action/achieve_action/win_action.rb +12 -0
  30. data/lib/microdata/schema/thing/action/assess_action.rb +7 -0
  31. data/lib/microdata/schema/thing/action/assess_action/choose_action.rb +13 -0
  32. data/lib/microdata/schema/thing/action/assess_action/choose_action/vote_action.rb +12 -0
  33. data/lib/microdata/schema/thing/action/assess_action/ignore_action.rb +7 -0
  34. data/lib/microdata/schema/thing/action/assess_action/react_action.rb +7 -0
  35. data/lib/microdata/schema/thing/action/assess_action/react_action/agree_action.rb +7 -0
  36. data/lib/microdata/schema/thing/action/assess_action/react_action/disagree_action.rb +7 -0
  37. data/lib/microdata/schema/thing/action/assess_action/react_action/dislike_action.rb +7 -0
  38. data/lib/microdata/schema/thing/action/assess_action/react_action/endorse_action.rb +14 -0
  39. data/lib/microdata/schema/thing/action/assess_action/react_action/like_action.rb +7 -0
  40. data/lib/microdata/schema/thing/action/assess_action/react_action/want_action.rb +7 -0
  41. data/lib/microdata/schema/thing/action/assess_action/review_action.rb +12 -0
  42. data/lib/microdata/schema/thing/action/consume_action.rb +12 -0
  43. data/lib/microdata/schema/thing/action/consume_action/drink_action.rb +7 -0
  44. data/lib/microdata/schema/thing/action/consume_action/eat_action.rb +7 -0
  45. data/lib/microdata/schema/thing/action/consume_action/install_action.rb +7 -0
  46. data/lib/microdata/schema/thing/action/consume_action/listen_action.rb +7 -0
  47. data/lib/microdata/schema/thing/action/consume_action/read_action.rb +7 -0
  48. data/lib/microdata/schema/thing/action/consume_action/use_action.rb +7 -0
  49. data/lib/microdata/schema/thing/action/consume_action/use_action/wear_action.rb +7 -0
  50. data/lib/microdata/schema/thing/action/consume_action/view_action.rb +7 -0
  51. data/lib/microdata/schema/thing/action/consume_action/watch_action.rb +7 -0
  52. data/lib/microdata/schema/thing/action/control_action.rb +7 -0
  53. data/lib/microdata/schema/thing/action/control_action/activate_action.rb +7 -0
  54. data/lib/microdata/schema/thing/action/control_action/deactivate_action.rb +7 -0
  55. data/lib/microdata/schema/thing/action/control_action/resume_action.rb +7 -0
  56. data/lib/microdata/schema/thing/action/control_action/suspend_action.rb +7 -0
  57. data/lib/microdata/schema/thing/action/create_action.rb +7 -0
  58. data/lib/microdata/schema/thing/action/create_action/cook_action.rb +19 -0
  59. data/lib/microdata/schema/thing/action/create_action/draw_action.rb +7 -0
  60. data/lib/microdata/schema/thing/action/create_action/film_action.rb +7 -0
  61. data/lib/microdata/schema/thing/action/create_action/paint_action.rb +7 -0
  62. data/lib/microdata/schema/thing/action/create_action/photograph_action.rb +7 -0
  63. data/lib/microdata/schema/thing/action/create_action/write_action.rb +13 -0
  64. data/lib/microdata/schema/thing/action/find_action.rb +7 -0
  65. data/lib/microdata/schema/thing/action/find_action/check_action.rb +7 -0
  66. data/lib/microdata/schema/thing/action/find_action/discover_action.rb +7 -0
  67. data/lib/microdata/schema/thing/action/find_action/track_action.rb +12 -0
  68. data/lib/microdata/schema/thing/action/interact_action.rb +7 -0
  69. data/lib/microdata/schema/thing/action/interact_action/befriend_action.rb +7 -0
  70. data/lib/microdata/schema/thing/action/interact_action/communicate_action.rb +18 -0
  71. data/lib/microdata/schema/thing/action/interact_action/communicate_action/ask_action.rb +12 -0
  72. data/lib/microdata/schema/thing/action/interact_action/communicate_action/check_in_action.rb +7 -0
  73. data/lib/microdata/schema/thing/action/interact_action/communicate_action/check_out_action.rb +7 -0
  74. data/lib/microdata/schema/thing/action/interact_action/communicate_action/comment_action.rb +12 -0
  75. data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action.rb +12 -0
  76. data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action/confirm_action.rb +7 -0
  77. data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action/rsvp_action.rb +18 -0
  78. data/lib/microdata/schema/thing/action/interact_action/communicate_action/invite_action.rb +12 -0
  79. data/lib/microdata/schema/thing/action/interact_action/communicate_action/reply_action.rb +12 -0
  80. data/lib/microdata/schema/thing/action/interact_action/communicate_action/share_action.rb +7 -0
  81. data/lib/microdata/schema/thing/action/interact_action/follow_action.rb +13 -0
  82. data/lib/microdata/schema/thing/action/interact_action/join_action.rb +12 -0
  83. data/lib/microdata/schema/thing/action/interact_action/leave_action.rb +12 -0
  84. data/lib/microdata/schema/thing/action/interact_action/marry_action.rb +7 -0
  85. data/lib/microdata/schema/thing/action/interact_action/register_action.rb +7 -0
  86. data/lib/microdata/schema/thing/action/interact_action/subscribe_action.rb +7 -0
  87. data/lib/microdata/schema/thing/action/interact_action/un_register_action.rb +7 -0
  88. data/lib/microdata/schema/thing/action/move_action.rb +15 -0
  89. data/lib/microdata/schema/thing/action/move_action/arrive_action.rb +7 -0
  90. data/lib/microdata/schema/thing/action/move_action/depart_action.rb +7 -0
  91. data/lib/microdata/schema/thing/action/move_action/travel_action.rb +12 -0
  92. data/lib/microdata/schema/thing/action/organize_action.rb +7 -0
  93. data/lib/microdata/schema/thing/action/organize_action/allocate_action.rb +7 -0
  94. data/lib/microdata/schema/thing/action/organize_action/allocate_action/accept_action.rb +7 -0
  95. data/lib/microdata/schema/thing/action/organize_action/allocate_action/assign_action.rb +7 -0
  96. data/lib/microdata/schema/thing/action/organize_action/allocate_action/authorize_action.rb +14 -0
  97. data/lib/microdata/schema/thing/action/organize_action/allocate_action/reject_action.rb +7 -0
  98. data/lib/microdata/schema/thing/action/organize_action/apply_action.rb +7 -0
  99. data/lib/microdata/schema/thing/action/organize_action/bookmark_action.rb +7 -0
  100. data/lib/microdata/schema/thing/action/organize_action/plan_action.rb +12 -0
  101. data/lib/microdata/schema/thing/action/organize_action/plan_action/cancel_action.rb +7 -0
  102. data/lib/microdata/schema/thing/action/organize_action/plan_action/reserve_action.rb +7 -0
  103. data/lib/microdata/schema/thing/action/organize_action/plan_action/schedule_action.rb +7 -0
  104. data/lib/microdata/schema/thing/action/play_action.rb +15 -0
  105. data/lib/microdata/schema/thing/creative_work.rb +270 -0
  106. data/lib/microdata/schema/thing/creative_work/article.rb +29 -0
  107. data/lib/microdata/schema/thing/creative_work/article/tech_article.rb +15 -0
  108. data/lib/microdata/schema/thing/creative_work/software_source_code.rb +25 -0
  109. data/lib/microdata/schema/thing/creative_work/web_page.rb +35 -0
  110. data/lib/microdata/schema/thing/creative_work/web_page/about_page.rb +7 -0
  111. data/lib/microdata/schema/thing/creative_work/web_page/profile_page.rb +7 -0
  112. data/lib/microdata/schema/thing/creative_work/web_site.rb +7 -0
  113. data/lib/microdata/schema/thing/event.rb +171 -0
  114. data/lib/microdata/schema/thing/intangible.rb +7 -0
  115. data/lib/microdata/schema/thing/intangible/item_list.rb +23 -0
  116. data/lib/microdata/schema/thing/intangible/item_list/breadcrumb_list.rb +7 -0
  117. data/lib/microdata/schema/thing/intangible/list_item.rb +22 -0
  118. data/lib/microdata/schema/thing/organization.rb +150 -0
  119. data/lib/microdata/schema/thing/person.rb +175 -0
  120. data/lib/microdata/schema/thing/place.rb +84 -0
  121. data/lib/microdata/schema/thing/product.rb +117 -0
  122. data/lib/microdata_schema.rb +5 -0
  123. data/lib/microdata_schema/version.rb +3 -0
  124. data/microdata_schema.gemspec +26 -0
  125. metadata +195 -0
@@ -0,0 +1,7 @@
1
+ module Microdata
2
+ class Schema
3
+ class ScheduleAction < PlanAction
4
+ ATTRIBUTES = []
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ module Microdata
2
+ class Schema
3
+ class PlayAction < Action
4
+ ATTRIBUTES = [
5
+ :audience,
6
+ :event
7
+ ].freeze
8
+ self.attributes = attributes + ATTRIBUTES
9
+ # - audience
10
+ # Audience An intended audience, i.e. a group for whom something was created. Supersedes serviceAudience.
11
+ # - event
12
+ # Event Upcoming or past event associated with this place, organization, or action. Supersedes events.
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,270 @@
1
+ module Microdata
2
+ class Schema
3
+ class CreativeWork < Thing
4
+ ATTRIBUTES = [
5
+ :about,
6
+ :access_mode,
7
+ :accessibility_API,
8
+ :accessibility_control,
9
+ :accessibility_feature,
10
+ :accessibility_hazard,
11
+ :accessibility_summary,
12
+ :accountable_person,
13
+ :aggregate_rating,
14
+ :alternative_headline,
15
+ :associated_media,
16
+ :audience,
17
+ :audio,
18
+ :author,
19
+ :award,
20
+ :character,
21
+ :citation,
22
+ :comment,
23
+ :comment_count,
24
+ :content_location,
25
+ :content_rating,
26
+ :contributor,
27
+ :copyright_holder,
28
+ :copyright_year,
29
+ :creator,
30
+ :date_created,
31
+ :date_modified,
32
+ :date_published,
33
+ :discussion_url,
34
+ :editor,
35
+ :educational_alignment,
36
+ :educational_use,
37
+ :encoding,
38
+ :example_of_work,
39
+ :file_format,
40
+ :funder,
41
+ :genre,
42
+ :has_part,
43
+ :headline,
44
+ :in_language,
45
+ :interaction_statistic,
46
+ :interactivity_type,
47
+ :is_accessible_for_free,
48
+ :is_based_on,
49
+ :is_family_friendly,
50
+ :is_part_of,
51
+ :keywords,
52
+ :learning_resource_type,
53
+ :license,
54
+ :location_created,
55
+ :main_entity,
56
+ :material,
57
+ :mentions,
58
+ :offers,
59
+ :position,
60
+ :producer,
61
+ :provider,
62
+ :publication,
63
+ :publisher,
64
+ :publishing_principles,
65
+ :recorded_at,
66
+ :released_event,
67
+ :review,
68
+ :schema_version,
69
+ :source_organization,
70
+ :spatial_coverage,
71
+ :sponsor,
72
+ :temporal_coverage,
73
+ :text,
74
+ :thumbnail_url,
75
+ :time_required,
76
+ :translator,
77
+ :typical_age_range,
78
+ :version,
79
+ :video,
80
+ :work_example,
81
+ ].freeze
82
+ self.attributes = attributes + ATTRIBUTES
83
+ # - about
84
+ # Thing The subject matter of the content.
85
+ # - access_mode
86
+ # Text The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Expected values include: auditory, tactile, textual, visual, colorDependent, chartOnVisual, chemOnVisual, diagramOnVisual, mathOnVisual, musicOnVisual, textOnVisual.
87
+ # accessModeSufficient Text A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Expected values include: auditory, tactile, textual, visual.
88
+ # - accessibility_API
89
+ # Text Indicates that the resource is compatible with the referenced accessibility API (WebSchemas wiki lists possible values).
90
+ # - accessibility_control
91
+ # Text Identifies input methods that are sufficient to fully control the described resource (WebSchemas wiki lists possible values).
92
+ # - accessibility_feature
93
+ # Text Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility (WebSchemas wiki lists possible values).
94
+ # - accessibility_hazard
95
+ # Text A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3 (WebSchemas wiki lists possible values).
96
+ # - accessibility_summary
97
+ # Text A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."
98
+ # - accountable_person
99
+ # Person Specifies the Person that is legally accountable for the CreativeWork.
100
+ # - aggregate_rating
101
+ # AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
102
+ # - alternative_headline
103
+ # Text A secondary title of the CreativeWork.
104
+ # - associated_media
105
+ # MediaObject A media object that encodes this CreativeWork. This property is a synonym for encoding.
106
+ # - audience
107
+ # Audience An intended audience, i.e. a group for whom something was created. Supersedes serviceAudience.
108
+ # - audio
109
+ # AudioObject An embedded audio object.
110
+ # - author
111
+ # Organization or
112
+ # Person The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
113
+ # - award
114
+ # Text An award won by or for this item. Supersedes awards.
115
+ # - character
116
+ # Person Fictional person connected with a creative work.
117
+ # - citation
118
+ # CreativeWork or
119
+ # Text A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
120
+ # - comment
121
+ # Comment Comments, typically from users.
122
+ # - comment_count
123
+ # Integer The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.
124
+ # - content_location
125
+ # Place The location depicted or described in the content. For example, the location in a photograph or painting.
126
+ # - content_rating
127
+ # Text Official rating of a piece of content—for example,'MPAA PG-13'.
128
+ # - contributor
129
+ # Organization or
130
+ # Person A secondary contributor to the CreativeWork or Event.
131
+ # - copyright_holder
132
+ # Organization or
133
+ # Person The party holding the legal copyright to the CreativeWork.
134
+ # - copyright_year
135
+ # Number The year during which the claimed copyright for the CreativeWork was first asserted.
136
+ # - creator
137
+ # Organization or
138
+ # Person The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.
139
+ # - date_created
140
+ # Date or
141
+ # DateTime The date on which the CreativeWork was created or the item was added to a DataFeed.
142
+ # - date_modified
143
+ # Date or
144
+ # DateTime The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
145
+ # - date_published
146
+ # Date Date of first broadcast/publication.
147
+ # - discussion_url
148
+ # URL A link to the page containing the comments of the CreativeWork.
149
+ # - editor
150
+ # Person Specifies the Person who edited the CreativeWork.
151
+ # - educational_alignment
152
+ # AlignmentObject An alignment to an established educational framework.
153
+ # - educational_use
154
+ # Text The purpose of a work in the context of education; for example, 'assignment', 'group work'.
155
+ # - encoding
156
+ # MediaObject A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. Supersedes encodings.
157
+ # - example_of_work
158
+ # CreativeWork A creative work that this work is an example/instance/realization/derivation of.
159
+ # Inverse property: workExample.
160
+ # - file_format
161
+ # Text or
162
+ # URL Media type, typically MIME format (see IANA site) of the content e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.
163
+ # - funder
164
+ # Organization or
165
+ # Person A person or organization that supports (sponsors) something through some kind of financial contribution.
166
+ # - genre
167
+ # Text or
168
+ # URL Genre of the creative work, broadcast channel or group.
169
+ # - has_part
170
+ # CreativeWork Indicates a CreativeWork that is (in some sense) a part of this CreativeWork.
171
+ # Inverse property: isPartOf.
172
+ # - headline
173
+ # Text Headline of the article.
174
+ # - in_language
175
+ # Language or
176
+ # Text The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. Supersedes language.
177
+ # - interaction_statistic
178
+ # InteractionCounter The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. Supersedes interactionCount.
179
+ # - interactivity_type
180
+ # Text The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'.
181
+ # - is_accessible_for_free
182
+ # Boolean A flag to signal that the publication is accessible for free. Supersedes free.
183
+ # - is_based_on
184
+ # CreativeWork or
185
+ # Product or
186
+ # URL A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. Supersedes isBasedOnUrl.
187
+ # - is_family_friendly
188
+ # Boolean Indicates whether this content is family friendly.
189
+ # - is_part_of
190
+ # CreativeWork Indicates a CreativeWork that this CreativeWork is (in some sense) part of.
191
+ # Inverse property: hasPart.
192
+ # - keywords
193
+ # Text Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas.
194
+ # - learning_resource_type
195
+ # Text The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'.
196
+ # - license
197
+ # CreativeWork or
198
+ # URL A license document that applies to this content, typically indicated by URL.
199
+ # - location_created
200
+ # Place The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
201
+ # - main_entity
202
+ # Thing Indicates the primary entity described in some page or other CreativeWork.
203
+ # Inverse property: mainEntityOfPage.
204
+ # - material
205
+ # Product or
206
+ # Text or
207
+ # URL A material that something is made from, e.g. leather, wool, cotton, paper.
208
+ # - mentions
209
+ # Thing Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
210
+ # - offers
211
+ # Offer An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event.
212
+ # - position
213
+ # Integer or
214
+ # Text The position of an item in a series or sequence of items.
215
+ # - producer
216
+ # Organization or
217
+ # Person The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.).
218
+ # - provider
219
+ # Organization or
220
+ # Person The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller. Supersedes carrier.
221
+ # - publication
222
+ # PublicationEvent A publication event associated with the item.
223
+ # - publisher
224
+ # Organization or
225
+ # Person The publisher of the creative work.
226
+ # - publishing_principles
227
+ # URL Link to page describing the editorial principles of the organization primarily responsible for the creation of the CreativeWork.
228
+ # - recorded_at
229
+ # Event The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.
230
+ # Inverse property: recordedIn.
231
+ # - released_event
232
+ # PublicationEvent The place and time the release was issued, expressed as a PublicationEvent.
233
+ # - review
234
+ # Review A review of the item. Supersedes reviews.
235
+ # - schema_version
236
+ # Text or
237
+ # URL Indicates (by URL or string) a particular version of a schema used in some CreativeWork. For example, a document could declare a schemaVersion using an URL such as http://schema.org/version/2.0/ if precise indication of schema version was required by some application.
238
+ # - source_organization
239
+ # Organization The Organization on whose behalf the creator was working.
240
+ # - spatial_coverage
241
+ # Place The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York. Supersedes spatial.
242
+ # - sponsor
243
+ # Organization or
244
+ # Person A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
245
+ # - temporal_coverage
246
+ # DateTime or
247
+ # Text or
248
+ # URL The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in ISO 8601 time interval format. In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content e.g. ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Supersedes datasetTimeInterval, temporal.
249
+ # - text
250
+ # Text The textual content of this CreativeWork.
251
+ # - thumbnail_url
252
+ # URL A thumbnail image relevant to the Thing.
253
+ # - time_required
254
+ # Duration Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'P30M', 'P1H25M'.
255
+ # - translator
256
+ # Organization or
257
+ # Person Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
258
+ # - typical_age_range
259
+ # Text The typical expected age range, e.g. '7-9', '11-'.
260
+ # - version
261
+ # Number or
262
+ # Text The version of the CreativeWork embodied by a specified resource.
263
+ # - video
264
+ # VideoObject An embedded video object.
265
+ # - work_example
266
+ # CreativeWork Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
267
+ # Inverse property: exampleOfWork.
268
+ end
269
+ end
270
+ end
@@ -0,0 +1,29 @@
1
+ module Microdata
2
+ class Schema
3
+ class Article < CreativeWork
4
+ ATTRIBUTES = [
5
+ :article_body,
6
+ :article_section,
7
+ :page_end,
8
+ :page_start,
9
+ :pagination,
10
+ :word_count,
11
+ ].freeze
12
+ self.attributes = attributes + ATTRIBUTES
13
+ # - article_body
14
+ # Text The actual body of the article.
15
+ # - article_section
16
+ # Text Articles may belong to one or more 'sections' in a magazine or newspaper, such as Sports, Lifestyle, etc.
17
+ # - page_end
18
+ # Integer or
19
+ # Text The page on which the work ends; for example "138" or "xvi".
20
+ # - page_start
21
+ # Integer or
22
+ # Text The page on which the work starts; for example "135" or "xiii".
23
+ # - pagination
24
+ # Text Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".
25
+ # - word_count
26
+ # Integer The number of words in the text of the Article.
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,15 @@
1
+ module Microdata
2
+ class Schema
3
+ class TechArticle < Article
4
+ ATTRIBUTES = [
5
+ :dependencies,
6
+ :proficiency_level,
7
+ ].freeze
8
+ self.attributes = attributes + ATTRIBUTES
9
+ # - dependencies
10
+ # Text Prerequisites needed to fulfill steps in article.
11
+ # - proficiency_level
12
+ # Text Proficiency needed for this content; expected values: 'Beginner', 'Expert'.
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ module Microdata
2
+ class Schema
3
+ class SoftwareSourceCode < CreativeWork
4
+ ATTRIBUTES = [
5
+ :code_repository,
6
+ :code_sample_type,
7
+ :programming_language,
8
+ :runtime_platform,
9
+ :target_product,
10
+ ].freeze
11
+ self.attributes = attributes + ATTRIBUTES
12
+ # - code_repository
13
+ # URL Link to the repository where the un-compiled, human readable code and related code is located (SVN, github, CodePlex).
14
+ # - code_sample_type
15
+ # Text What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template. Supersedes sampleType.
16
+ # - programming_language
17
+ # ComputerLanguage or
18
+ # Text The computer programming language.
19
+ # - runtime_platform
20
+ # Text Runtime platform or script interpreter dependencies (Example - Java v1, Python2.3, .Net Framework 3.0). Supersedes runtime.
21
+ # - target_product
22
+ # SoftwareApplication Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used.
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,35 @@
1
+ module Microdata
2
+ class Schema
3
+ class WebPage < CreativeWork
4
+ ATTRIBUTES = [
5
+ :breadcrumb,
6
+ :last_reviewed,
7
+ :main_content_of_page,
8
+ :primary_image_of_page,
9
+ :related_link,
10
+ :reviewed_by,
11
+ :significant_link,
12
+ :specialty,
13
+ ].freeze
14
+ self.attributes = attributes + ATTRIBUTES
15
+ # - breadcrumb
16
+ # BreadcrumbList or
17
+ # Text A set of links that can help a user understand and navigate a website hierarchy.
18
+ # - last_reviewed
19
+ # Date Date on which the content on this web page was last reviewed for accuracy and/or completeness.
20
+ # - main_content_of_page
21
+ # WebPageElement Indicates if this web page element is the main subject of the page.
22
+ # - primary_image_of_page
23
+ # ImageObject Indicates the main image on the page.
24
+ # - related_link
25
+ # URL A link related to this web page, for example to other related web pages.
26
+ # - reviewed_by
27
+ # Organization or
28
+ # Person People or organizations that have reviewed the content on this web page for accuracy and/or completeness.
29
+ # - significant_link
30
+ # URL One of the more significant URLs on the page. Typically, these are the non-navigation links that are clicked on the most. Supersedes significantLinks.
31
+ # - specialty
32
+ # Specialty One of the domain specialities to which this web page's content applies.
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,7 @@
1
+ module Microdata
2
+ class Schema
3
+ class AboutPage < WebPage
4
+ ATTRIBUTES = []
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Microdata
2
+ class Schema
3
+ class ProfilePage < WebPage
4
+ ATTRIBUTES = []
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Microdata
2
+ class Schema
3
+ class WebSite < CreativeWork
4
+ ATTRIBUTES = []
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,171 @@
1
+ module Microdata
2
+ class Schema
3
+ class Event < Thing
4
+ ATTRIBUTES = [
5
+ :about,
6
+ :actor,
7
+ :aggregate_rating,
8
+ :attendee,
9
+ :audience,
10
+ :composer,
11
+ :contributor,
12
+ :director,
13
+ :door_time,
14
+ :duration,
15
+ :end_date,
16
+ :event_status,
17
+ :funder,
18
+ :in_language,
19
+ :is_accessible_for_free,
20
+ :location,
21
+ :maximum_attee_capacity,
22
+ :offers,
23
+ :organizer,
24
+ :performer,
25
+ :previous_start_date,
26
+ :recorded_in,
27
+ :remaining_attee_capacity,
28
+ :review,
29
+ :sponsor,
30
+ :start_date,
31
+ :sub_event,
32
+ :super_event,
33
+ :translator,
34
+ :typical_age_range,
35
+ :work_featured,
36
+ :work_performed,
37
+ ].freeze
38
+ self.attributes = attributes + ATTRIBUTES
39
+ # - about
40
+ # Thing
41
+ # The subject matter of the content.
42
+ #
43
+ # - actor
44
+ # Person
45
+ # An actor, e.g. in tv, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip. Supersedes actors.
46
+ #
47
+ # - aggregate_rating
48
+ # AggregateRating
49
+ # The overall rating, based on a collection of reviews or ratings, of the item.
50
+ #
51
+ # - attendee
52
+ # Organization or Person
53
+ # A person or organization atting the event. Supersedes attees.
54
+ #
55
+ # - audience
56
+ # Audience
57
+ # An inted audience, i.e. a group for whom something was created. Supersedes serviceAudience.
58
+ #
59
+ # - composer
60
+ # Organization or Person
61
+ # The person or organization who wrote a composition, or who is the composer of a work performed at some event.
62
+ #
63
+ # - contributor
64
+ # Organization or Person
65
+ # A secondary contributor to the CreativeWork or Event.
66
+ #
67
+ # - director
68
+ # Person
69
+ # A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip. Supersedes directors.
70
+ #
71
+ # - door_time
72
+ # DateTime
73
+ # The time admission will commence.
74
+ #
75
+ # - duration
76
+ # Duration
77
+ # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
78
+ #
79
+ # - end_date
80
+ # Date or DateTime
81
+ # The date and time of the item (in ISO 8601 date format).
82
+ #
83
+ # - event_status
84
+ # EventStatusType
85
+ # An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.
86
+ #
87
+ # - funder
88
+ # Organization or Person
89
+ # A person or organization that supports (sponsors) something through some kind of financial contribution.
90
+ #
91
+ # - in_language
92
+ # Language or Text
93
+ # The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. Supersedes language.
94
+ #
95
+ # - is_accessible_for_free
96
+ # Boolean
97
+ # A flag to signal that the publication is accessible for free. Supersedes free.
98
+ #
99
+ # - location
100
+ # Place or PostalAddress or Text
101
+ # The location of for example where the event is happening, an organization is located, or where an action takes place.
102
+ #
103
+ # - maximum_attee_capacity
104
+ # Integer
105
+ # The total number of individuals that may att an event or venue.
106
+ #
107
+ # - offers
108
+ # Offer
109
+ # An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event.
110
+ #
111
+ # - organizer
112
+ # Organization or Person
113
+ # An organizer of an Event.
114
+ #
115
+ # - performer
116
+ # Organization or Person
117
+ # A performer at the event—for example, a presenter, musician, musical group or actor. Supersedes performers.
118
+ #
119
+ # - previous_start_date
120
+ # Date
121
+ # 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.
122
+ #
123
+ # - recorded_in
124
+ # CreativeWork
125
+ # The CreativeWork that captured all or part of this Event.
126
+ # Inverse property: recordedAt.
127
+ #
128
+ # - remaining_attee_capacity
129
+ # Integer
130
+ # The number of attee places for an event that remain unallocated.
131
+ #
132
+ # - review
133
+ # Review
134
+ # A review of the item. Supersedes reviews.
135
+ #
136
+ # - sponsor
137
+ # Organization or Person
138
+ # A person or organization that supports a thing through a pledge, promise, or financial contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
139
+ #
140
+ # - start_date
141
+ # Date or DateTime
142
+ # The start date and time of the item (in ISO 8601 date format).
143
+ #
144
+ # - sub_event
145
+ # Event
146
+ # An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference. Supersedes subEvents.
147
+ # Inverse property: superEvent.
148
+ #
149
+ # - super_event
150
+ # Event
151
+ # An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.
152
+ # Inverse property: subEvent.
153
+ #
154
+ # - translator
155
+ # Organization or Person
156
+ # Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
157
+ #
158
+ # - typical_age_range
159
+ # Text
160
+ # The typical expected age range, e.g. '7-9', '11-'.
161
+ #
162
+ # - work_featured
163
+ # CreativeWork
164
+ # A work featured in some event, e.g. exhibited in an ExhibitionEvent. Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).
165
+ #
166
+ # - work_performed
167
+ # CreativeWork
168
+ # A work performed in some event, for example a play performed in a TheaterEvent.<Paste>
169
+ end
170
+ end
171
+ end