microdata_schema 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/microdata.rb +4 -0
- data/lib/microdata/schema.rb +121 -0
- data/lib/microdata/schema/data_type/boolean.rb +10 -0
- data/lib/microdata/schema/data_type/boolean/false.rb +6 -0
- data/lib/microdata/schema/data_type/boolean/true.rb +6 -0
- data/lib/microdata/schema/data_type/date.rb +10 -0
- data/lib/microdata/schema/data_type/date_time.rb +10 -0
- data/lib/microdata/schema/data_type/number.rb +6 -0
- data/lib/microdata/schema/data_type/number/float.rb +6 -0
- data/lib/microdata/schema/data_type/number/integer.rb +6 -0
- data/lib/microdata/schema/data_type/text.rb +6 -0
- data/lib/microdata/schema/data_type/text/url.rb +6 -0
- data/lib/microdata/schema/data_type/time.rb +6 -0
- data/lib/microdata/schema/list.rb +9 -0
- data/lib/microdata/schema/thing.rb +98 -0
- data/lib/microdata/schema/thing/action.rb +49 -0
- data/lib/microdata/schema/thing/action/achieve_action.rb +7 -0
- data/lib/microdata/schema/thing/action/achieve_action/lose_action.rb +12 -0
- data/lib/microdata/schema/thing/action/achieve_action/tie_action.rb +7 -0
- data/lib/microdata/schema/thing/action/achieve_action/win_action.rb +12 -0
- data/lib/microdata/schema/thing/action/assess_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/choose_action.rb +13 -0
- data/lib/microdata/schema/thing/action/assess_action/choose_action/vote_action.rb +12 -0
- data/lib/microdata/schema/thing/action/assess_action/ignore_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/agree_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/disagree_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/dislike_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/endorse_action.rb +14 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/like_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/react_action/want_action.rb +7 -0
- data/lib/microdata/schema/thing/action/assess_action/review_action.rb +12 -0
- data/lib/microdata/schema/thing/action/consume_action.rb +12 -0
- data/lib/microdata/schema/thing/action/consume_action/drink_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/eat_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/install_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/listen_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/read_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/use_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/use_action/wear_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/view_action.rb +7 -0
- data/lib/microdata/schema/thing/action/consume_action/watch_action.rb +7 -0
- data/lib/microdata/schema/thing/action/control_action.rb +7 -0
- data/lib/microdata/schema/thing/action/control_action/activate_action.rb +7 -0
- data/lib/microdata/schema/thing/action/control_action/deactivate_action.rb +7 -0
- data/lib/microdata/schema/thing/action/control_action/resume_action.rb +7 -0
- data/lib/microdata/schema/thing/action/control_action/suspend_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action/cook_action.rb +19 -0
- data/lib/microdata/schema/thing/action/create_action/draw_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action/film_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action/paint_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action/photograph_action.rb +7 -0
- data/lib/microdata/schema/thing/action/create_action/write_action.rb +13 -0
- data/lib/microdata/schema/thing/action/find_action.rb +7 -0
- data/lib/microdata/schema/thing/action/find_action/check_action.rb +7 -0
- data/lib/microdata/schema/thing/action/find_action/discover_action.rb +7 -0
- data/lib/microdata/schema/thing/action/find_action/track_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/befriend_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action.rb +18 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/ask_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/check_in_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/check_out_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/comment_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action/confirm_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/inform_action/rsvp_action.rb +18 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/invite_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/reply_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/communicate_action/share_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/follow_action.rb +13 -0
- data/lib/microdata/schema/thing/action/interact_action/join_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/leave_action.rb +12 -0
- data/lib/microdata/schema/thing/action/interact_action/marry_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/register_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/subscribe_action.rb +7 -0
- data/lib/microdata/schema/thing/action/interact_action/un_register_action.rb +7 -0
- data/lib/microdata/schema/thing/action/move_action.rb +15 -0
- data/lib/microdata/schema/thing/action/move_action/arrive_action.rb +7 -0
- data/lib/microdata/schema/thing/action/move_action/depart_action.rb +7 -0
- data/lib/microdata/schema/thing/action/move_action/travel_action.rb +12 -0
- data/lib/microdata/schema/thing/action/organize_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/allocate_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/allocate_action/accept_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/allocate_action/assign_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/allocate_action/authorize_action.rb +14 -0
- data/lib/microdata/schema/thing/action/organize_action/allocate_action/reject_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/apply_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/bookmark_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/plan_action.rb +12 -0
- data/lib/microdata/schema/thing/action/organize_action/plan_action/cancel_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/plan_action/reserve_action.rb +7 -0
- data/lib/microdata/schema/thing/action/organize_action/plan_action/schedule_action.rb +7 -0
- data/lib/microdata/schema/thing/action/play_action.rb +15 -0
- data/lib/microdata/schema/thing/creative_work.rb +270 -0
- data/lib/microdata/schema/thing/creative_work/article.rb +29 -0
- data/lib/microdata/schema/thing/creative_work/article/tech_article.rb +15 -0
- data/lib/microdata/schema/thing/creative_work/software_source_code.rb +25 -0
- data/lib/microdata/schema/thing/creative_work/web_page.rb +35 -0
- data/lib/microdata/schema/thing/creative_work/web_page/about_page.rb +7 -0
- data/lib/microdata/schema/thing/creative_work/web_page/profile_page.rb +7 -0
- data/lib/microdata/schema/thing/creative_work/web_site.rb +7 -0
- data/lib/microdata/schema/thing/event.rb +171 -0
- data/lib/microdata/schema/thing/intangible.rb +7 -0
- data/lib/microdata/schema/thing/intangible/item_list.rb +23 -0
- data/lib/microdata/schema/thing/intangible/item_list/breadcrumb_list.rb +7 -0
- data/lib/microdata/schema/thing/intangible/list_item.rb +22 -0
- data/lib/microdata/schema/thing/organization.rb +150 -0
- data/lib/microdata/schema/thing/person.rb +175 -0
- data/lib/microdata/schema/thing/place.rb +84 -0
- data/lib/microdata/schema/thing/product.rb +117 -0
- data/lib/microdata_schema.rb +5 -0
- data/lib/microdata_schema/version.rb +3 -0
- data/microdata_schema.gemspec +26 -0
- metadata +195 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
module Microdata
|
2
|
+
class Schema
|
3
|
+
class ItemList < Intangible
|
4
|
+
ATTRIBUTES = [
|
5
|
+
:item_list_element,
|
6
|
+
:item_list_order,
|
7
|
+
:number_of_items,
|
8
|
+
].freeze
|
9
|
+
self.attributes = attributes + ATTRIBUTES
|
10
|
+
# - item_list_element
|
11
|
+
# ListItem or
|
12
|
+
# Text or
|
13
|
+
# Thing For itemListElement values, you can use simple strings (e.g. "Peter", "Paul", "Mary"), existing entities, or use ListItem.
|
14
|
+
# Text values are best if the elements in the list are plain strings. Existing entities are best for a simple, unordered list of existing things in your data. ListItem is used with ordered lists when you want to provide additional context about the element in that list or when the same item might be in different places in different lists.
|
15
|
+
# Note: The order of elements in your mark-up is not sufficient for indicating the order or elements. Use ListItem with a 'position' property in such cases.
|
16
|
+
# - item_list_order
|
17
|
+
# ItemListOrderType or
|
18
|
+
# Text Type of ordering (e.g. Ascending, Descending, Unordered).
|
19
|
+
# - number_of_items
|
20
|
+
# Integer The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Microdata
|
2
|
+
class Schema
|
3
|
+
class ListItem < Intangible
|
4
|
+
ATTRIBUTES = [
|
5
|
+
:item,
|
6
|
+
:next_item,
|
7
|
+
:position,
|
8
|
+
:previous_item,
|
9
|
+
].freeze
|
10
|
+
self.attributes = attributes + ATTRIBUTES
|
11
|
+
# - item
|
12
|
+
# Thing An entity represented by an entry in a list or data feed (e.g. an 'artist' in a list of 'artists')’.
|
13
|
+
# - next_item
|
14
|
+
# ListItem A link to the ListItem that follows the current one.
|
15
|
+
# - position
|
16
|
+
# Integer or
|
17
|
+
# Text The position of an item in a series or sequence of items.
|
18
|
+
# - previous_item
|
19
|
+
# ListItem A link to the ListItem that preceeds the current one.
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,150 @@
|
|
1
|
+
module Microdata
|
2
|
+
class Schema
|
3
|
+
class Organization < Thing
|
4
|
+
ATTRIBUTES = [
|
5
|
+
:address,
|
6
|
+
:aggregate_rating,
|
7
|
+
:alumni,
|
8
|
+
:area_served,
|
9
|
+
:award,
|
10
|
+
:brand,
|
11
|
+
:contact_point,
|
12
|
+
:department,
|
13
|
+
:dissolution_date,
|
14
|
+
:duns,
|
15
|
+
:email,
|
16
|
+
:employee,
|
17
|
+
:event,
|
18
|
+
:fax_number,
|
19
|
+
:founder,
|
20
|
+
:founding_date,
|
21
|
+
:founding_location,
|
22
|
+
:funder,
|
23
|
+
:global_location_number,
|
24
|
+
:has_offer_catalog,
|
25
|
+
:has_POS,
|
26
|
+
:isic_V4,
|
27
|
+
:legal_name,
|
28
|
+
:lei_code,
|
29
|
+
:location,
|
30
|
+
:logo,
|
31
|
+
:makes_offer,
|
32
|
+
:member,
|
33
|
+
:member_of,
|
34
|
+
:naics,
|
35
|
+
:number_of_employees,
|
36
|
+
:owns,
|
37
|
+
:parent_organization,
|
38
|
+
:review,
|
39
|
+
:seeks,
|
40
|
+
:sponsor,
|
41
|
+
:sub_organization,
|
42
|
+
:tax_ID,
|
43
|
+
:telephone,
|
44
|
+
:vat_ID,
|
45
|
+
].freeze
|
46
|
+
self.attributes = attributes + ATTRIBUTES
|
47
|
+
|
48
|
+
# - address
|
49
|
+
# PostalAddress or
|
50
|
+
# Text Physical address of the item.
|
51
|
+
# - aggregate_rating
|
52
|
+
# AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
|
53
|
+
# - alumni
|
54
|
+
# Person Alumni of an organization.
|
55
|
+
# Inverse property: alumniOf.
|
56
|
+
# - area_served
|
57
|
+
# AdministrativeArea or
|
58
|
+
# GeoShape or
|
59
|
+
# Place or
|
60
|
+
# Text The geographic area where a service or offered item is provided. Supersedes serviceArea.
|
61
|
+
# - award
|
62
|
+
# Text An award won by or for this item. Supersedes awards.
|
63
|
+
# - brand
|
64
|
+
# Brand or
|
65
|
+
# Organization The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
|
66
|
+
# - contact_point
|
67
|
+
# ContactPoint A contact point for a person or organization. Supersedes contactPoints.
|
68
|
+
# - department
|
69
|
+
# Organization A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.
|
70
|
+
# - dissolution_date
|
71
|
+
# Date The date that this organization was dissolved.
|
72
|
+
# - duns
|
73
|
+
# Text The Dun & Bradstreet DUNS number for identifying an organization or business person.
|
74
|
+
# - email
|
75
|
+
# Text Email address.
|
76
|
+
# - employee
|
77
|
+
# Person Someone working for this organization. Supersedes employees.
|
78
|
+
# - event
|
79
|
+
# Event Upcoming or past event associated with this place, organization, or action. Supersedes events.
|
80
|
+
# - fax_number
|
81
|
+
# Text The fax number.
|
82
|
+
# - founder
|
83
|
+
# Person A person who founded this organization. Supersedes founders.
|
84
|
+
# - founding_date
|
85
|
+
# Date The date that this organization was founded.
|
86
|
+
# - founding_location
|
87
|
+
# Place The place where the Organization was founded.
|
88
|
+
# - funder
|
89
|
+
# Organization or
|
90
|
+
# Person A person or organization that supports (sponsors) something through some kind of financial contribution.
|
91
|
+
# - global_location_number
|
92
|
+
# Text The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
|
93
|
+
# - has_offer_catalog
|
94
|
+
# OfferCatalog Indicates an OfferCatalog listing for this Organization, Person, or Service.
|
95
|
+
# - has_POS
|
96
|
+
# Place Points-of-Sales operated by the organization or person.
|
97
|
+
# - isic_V4
|
98
|
+
# Text The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
|
99
|
+
# - legal_name
|
100
|
+
# Text The official name of the organization, e.g. the registered company name.
|
101
|
+
# - lei_code
|
102
|
+
# Text An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.
|
103
|
+
# - location
|
104
|
+
# Place or
|
105
|
+
# PostalAddress or
|
106
|
+
# Text The location of for example where the event is happening, an organization is located, or where an action takes place.
|
107
|
+
# - logo
|
108
|
+
# ImageObject or
|
109
|
+
# URL An associated logo.
|
110
|
+
# - makes_offer
|
111
|
+
# Offer A pointer to products or services offered by the organization or person.
|
112
|
+
# Inverse property: offeredBy.
|
113
|
+
# - member
|
114
|
+
# Organization or
|
115
|
+
# Person A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals. Supersedes members, musicGroupMember.
|
116
|
+
# Inverse property: memberOf.
|
117
|
+
# - member_of
|
118
|
+
# Organization or
|
119
|
+
# ProgramMembership An Organization (or ProgramMembership) to which this Person or Organization belongs.
|
120
|
+
# Inverse property: member.
|
121
|
+
# - naics
|
122
|
+
# Text The North American Industry Classification System (NAICS) code for a particular organization or business person.
|
123
|
+
# - number_of_employees
|
124
|
+
# QuantitativeValue The number of employees in an organization e.g. business.
|
125
|
+
# - owns
|
126
|
+
# OwnershipInfo or
|
127
|
+
# Product Products owned by the organization or person.
|
128
|
+
# - parent_organization
|
129
|
+
# Organization The larger organization that this organization is a subOrganization of, if any. Supersedes branchOf.
|
130
|
+
# Inverse property: subOrganization.
|
131
|
+
# - review
|
132
|
+
# Review A review of the item. Supersedes reviews.
|
133
|
+
# - seeks
|
134
|
+
# Demand A pointer to products or services sought by the organization or person (demand).
|
135
|
+
# - sponsor
|
136
|
+
# Organization or
|
137
|
+
# 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.
|
138
|
+
# - sub_organization
|
139
|
+
# Organization A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific 'department' property.
|
140
|
+
# Inverse property: parentOrganization.
|
141
|
+
# - tax_ID
|
142
|
+
# Text The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.
|
143
|
+
# - telephone
|
144
|
+
# Text The telephone number.
|
145
|
+
# - vat_ID
|
146
|
+
# Text The Value-added Tax ID of the organization or person.
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
@@ -0,0 +1,175 @@
|
|
1
|
+
module Microdata
|
2
|
+
class Schema
|
3
|
+
class Person < Thing
|
4
|
+
ATTRIBUTES = [
|
5
|
+
:additional_name,
|
6
|
+
:address,
|
7
|
+
:affiliation,
|
8
|
+
:alumni_of,
|
9
|
+
:award,
|
10
|
+
:birth_date,
|
11
|
+
:birth_place,
|
12
|
+
:brand,
|
13
|
+
:children,
|
14
|
+
:colleague,
|
15
|
+
:contact_point,
|
16
|
+
:death_date,
|
17
|
+
:death_place,
|
18
|
+
:duns,
|
19
|
+
:email,
|
20
|
+
:family_name,
|
21
|
+
:fax_number,
|
22
|
+
:follows,
|
23
|
+
:funder,
|
24
|
+
:gender,
|
25
|
+
:given_name,
|
26
|
+
:global_location_number,
|
27
|
+
:has_offer_catalog,
|
28
|
+
:has_POS,
|
29
|
+
:height,
|
30
|
+
:home_location,
|
31
|
+
:honorific_prefix,
|
32
|
+
:honorific_suffix,
|
33
|
+
:isic_V4,
|
34
|
+
:job_title,
|
35
|
+
:knows,
|
36
|
+
:makes_offer,
|
37
|
+
:member_of,
|
38
|
+
:naics,
|
39
|
+
:nationality,
|
40
|
+
:net_worth,
|
41
|
+
:owns,
|
42
|
+
:parent,
|
43
|
+
:performer_in,
|
44
|
+
:related_to,
|
45
|
+
:seeks,
|
46
|
+
:sibling,
|
47
|
+
:sponsor,
|
48
|
+
:spouse,
|
49
|
+
:tax_ID,
|
50
|
+
:telephone,
|
51
|
+
:vat_ID,
|
52
|
+
:weight,
|
53
|
+
:work_location,
|
54
|
+
:works_for,
|
55
|
+
].freeze
|
56
|
+
self.attributes = attributes + ATTRIBUTES
|
57
|
+
# - additional_name
|
58
|
+
# Text An additional name for a Person, can be used for a middle name.
|
59
|
+
# - address
|
60
|
+
# PostalAddress or
|
61
|
+
# Text Physical address of the item.
|
62
|
+
# - affiliation
|
63
|
+
# Organization An organization that this person is affiliated with. For example, a school/university, a club, or a team.
|
64
|
+
# - alumni_of
|
65
|
+
# EducationalOrganization or
|
66
|
+
# Organization An organization that the person is an alumni of.
|
67
|
+
# Inverse property: alumni.
|
68
|
+
# - award
|
69
|
+
# Text An award won by or for this item. Supersedes awards.
|
70
|
+
# - birth_date
|
71
|
+
# Date Date of birth.
|
72
|
+
# - birth_place
|
73
|
+
# Place The place where the person was born.
|
74
|
+
# - brand
|
75
|
+
# Brand or
|
76
|
+
# Organization The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.
|
77
|
+
# - children
|
78
|
+
# Person A child of the person.
|
79
|
+
# - colleague
|
80
|
+
# Person or
|
81
|
+
# URL A colleague of the person. Supersedes colleagues.
|
82
|
+
# - contact_point
|
83
|
+
# ContactPoint A contact point for a person or organization. Supersedes contactPoints.
|
84
|
+
# - death_date
|
85
|
+
# Date Date of death.
|
86
|
+
# - death_place
|
87
|
+
# Place The place where the person died.
|
88
|
+
# - duns
|
89
|
+
# Text The Dun & Bradstreet DUNS number for identifying an organization or business person.
|
90
|
+
# - email
|
91
|
+
# Text Email address.
|
92
|
+
# - family_name
|
93
|
+
# Text Family name. In the U.S., the last name of an Person. This can be used along with givenName instead of the name property.
|
94
|
+
# - fax_number
|
95
|
+
# Text The fax number.
|
96
|
+
# - follows
|
97
|
+
# Person The most generic uni-directional social relation.
|
98
|
+
# - funder
|
99
|
+
# Organization or
|
100
|
+
# Person A person or organization that supports (sponsors) something through some kind of financial contribution.
|
101
|
+
# - gender
|
102
|
+
# GenderType or
|
103
|
+
# Text Gender of the person. While http://schema.org/Male and http://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender.
|
104
|
+
# - given_name
|
105
|
+
# Text Given name. In the U.S., the first name of a Person. This can be used along with familyName instead of the name property.
|
106
|
+
# - global_location_number
|
107
|
+
# Text The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
|
108
|
+
# - has_offer_catalog
|
109
|
+
# OfferCatalog Indicates an OfferCatalog listing for this Organization, Person, or Service.
|
110
|
+
# - has_POS
|
111
|
+
# Place Points-of-Sales operated by the organization or person.
|
112
|
+
# - height
|
113
|
+
# Distance or
|
114
|
+
# QuantitativeValue The height of the item.
|
115
|
+
# - home_location
|
116
|
+
# ContactPoint or
|
117
|
+
# Place A contact location for a person's residence.
|
118
|
+
# - honorific_prefix
|
119
|
+
# Text An honorific prefix preceding a Person's name such as Dr/Mrs/Mr.
|
120
|
+
# - honorific_suffix
|
121
|
+
# Text An honorific suffix preceding a Person's name such as M.D. /PhD/MSCSW.
|
122
|
+
# - isic_V4
|
123
|
+
# Text The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
|
124
|
+
# - job_title
|
125
|
+
# Text The job title of the person (for example, Financial Manager).
|
126
|
+
# - knows
|
127
|
+
# Person The most generic bi-directional social/work relation.
|
128
|
+
# - makes_offer
|
129
|
+
# Offer A pointer to products or services offered by the organization or person.
|
130
|
+
# Inverse property: offeredBy.
|
131
|
+
# - member_of
|
132
|
+
# Organization or
|
133
|
+
# ProgramMembership An Organization (or ProgramMembership) to which this Person or Organization belongs.
|
134
|
+
# Inverse property: member.
|
135
|
+
# - naics
|
136
|
+
# Text The North American Industry Classification System (NAICS) code for a particular organization or business person.
|
137
|
+
# - nationality
|
138
|
+
# Country Nationality of the person.
|
139
|
+
# - net_worth
|
140
|
+
# MonetaryAmount or
|
141
|
+
# PriceSpecification The total financial value of the person as calculated by subtracting assets from liabilities.
|
142
|
+
# - owns
|
143
|
+
# OwnershipInfo or
|
144
|
+
# Product Products owned by the organization or person.
|
145
|
+
# - parent
|
146
|
+
# Person A parent of this person. Supersedes parents.
|
147
|
+
# - performer_in
|
148
|
+
# Event Event that this person is a performer or participant in.
|
149
|
+
# - related_to
|
150
|
+
# Person The most generic familial relation.
|
151
|
+
# - seeks
|
152
|
+
# Demand A pointer to products or services sought by the organization or person (demand).
|
153
|
+
# - sibling
|
154
|
+
# Person A sibling of the person. Supersedes siblings.
|
155
|
+
# - sponsor
|
156
|
+
# Organization or
|
157
|
+
# 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.
|
158
|
+
# - spouse
|
159
|
+
# Person The person's spouse.
|
160
|
+
# - tax_ID
|
161
|
+
# Text The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.
|
162
|
+
# - telephone
|
163
|
+
# Text The telephone number.
|
164
|
+
# - vat_ID
|
165
|
+
# Text The Value-added Tax ID of the organization or person.
|
166
|
+
# - weight
|
167
|
+
# QuantitativeValue The weight of the product or person.
|
168
|
+
# - work_location
|
169
|
+
# ContactPoint or
|
170
|
+
# Place A contact location for a person's place of work.
|
171
|
+
# - works_for
|
172
|
+
# Organization Organizations that the person works for.
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
module Microdata
|
2
|
+
class Schema
|
3
|
+
class Place < Thing
|
4
|
+
ATTRIBUTES = [
|
5
|
+
:additional_property,
|
6
|
+
:address,
|
7
|
+
:aggregate_rating,
|
8
|
+
:amenity_feature,
|
9
|
+
:branch_code,
|
10
|
+
:contained_in_place,
|
11
|
+
:contains_place,
|
12
|
+
:event,
|
13
|
+
:fax_number,
|
14
|
+
:geo,
|
15
|
+
:global_location_number,
|
16
|
+
:has_map,
|
17
|
+
:isic_V4,
|
18
|
+
:logo,
|
19
|
+
:maximum_attendee_capacity,
|
20
|
+
:opening_hours_specification,
|
21
|
+
:photo,
|
22
|
+
:review,
|
23
|
+
:smoking_allowed,
|
24
|
+
:special_opening_hours_specification,
|
25
|
+
:telephone,
|
26
|
+
].freeze
|
27
|
+
self.attributes = attributes + ATTRIBUTES
|
28
|
+
|
29
|
+
# - additional_property
|
30
|
+
# PropertyValue A property-value pair representing an additional characteristics of the entitity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.
|
31
|
+
# Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. http://schema.org/width, http://schema.org/color, http://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.
|
32
|
+
# - address
|
33
|
+
# PostalAddress or
|
34
|
+
# Text Physical address of the item.
|
35
|
+
# - aggregate_rating
|
36
|
+
# AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
|
37
|
+
# - amenity_feature
|
38
|
+
# LocationFeatureSpecification An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.
|
39
|
+
# - branch_code
|
40
|
+
# Text A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.
|
41
|
+
# For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.
|
42
|
+
# - contained_in_place
|
43
|
+
# Place The basic containment relation between a place and one that contains it. Supersedes containedIn.
|
44
|
+
# Inverse property: containsPlace.
|
45
|
+
# - contains_place
|
46
|
+
# Place The basic containment relation between a place and another that it contains.
|
47
|
+
# Inverse property: containedInPlace.
|
48
|
+
# - event
|
49
|
+
# Event Upcoming or past event associated with this place, organization, or action. Supersedes events.
|
50
|
+
# - fax_number
|
51
|
+
# Text The fax number.
|
52
|
+
# - geo
|
53
|
+
# GeoCoordinates or
|
54
|
+
# GeoShape The geo coordinates of the place.
|
55
|
+
# - global_location_number
|
56
|
+
# Text The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.
|
57
|
+
# - has_map
|
58
|
+
# Map or
|
59
|
+
# URL A URL to a map of the place. Supersedes map, maps.
|
60
|
+
# - isic_V4
|
61
|
+
# Text The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.
|
62
|
+
# - logo
|
63
|
+
# ImageObject or
|
64
|
+
# URL An associated logo.
|
65
|
+
# - maximum_attendee_capacity
|
66
|
+
# Integer The total number of individuals that may attend an event or venue.
|
67
|
+
# - opening_hours_specification
|
68
|
+
# OpeningHoursSpecification The opening hours of a certain place.
|
69
|
+
# - photo
|
70
|
+
# ImageObject or
|
71
|
+
# Photograph A photograph of this place. Supersedes photos.
|
72
|
+
# - review
|
73
|
+
# Review A review of the item. Supersedes reviews.
|
74
|
+
# - smoking_allowed
|
75
|
+
# Boolean Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.
|
76
|
+
# - special_opening_hours_specification
|
77
|
+
# OpeningHoursSpecification The special opening hours of a certain place.
|
78
|
+
# Use this to explicitly override general opening hours brought in scope by openingHoursSpecification or openingHours.
|
79
|
+
# - telephone
|
80
|
+
# Text The telephone number.
|
81
|
+
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|