@@ -26,254 +26,254 @@ |
||
26 | 26 | */ |
27 | 27 | class WorkersUnion extends MetaJsonLd implements WorkersUnionInterface, OrganizationInterface, ThingInterface |
28 | 28 | { |
29 | - use WorkersUnionTrait; |
|
30 | - use OrganizationTrait; |
|
31 | - use ThingTrait; |
|
29 | + use WorkersUnionTrait; |
|
30 | + use OrganizationTrait; |
|
31 | + use ThingTrait; |
|
32 | 32 | |
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'WorkersUnion'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'WorkersUnion'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/WorkersUnion'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/WorkersUnion'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'Organization'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'Organization'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'A Workers Union (also known as a Labor Union, Labour Union, or Trade Union) is an organization that promotes the interests of its worker members by collectively bargaining with management, organizing, and political lobbying.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'A Workers Union (also known as a Labor Union, Labour Union, or Trade Union) is an organization that promotes the interests of its worker members by collectively bargaining with management, organizing, and political lobbying.'; |
|
60 | 60 | |
61 | 61 | |
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | 69 | |
70 | 70 | |
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | - 'additionalType' => ['URL'], |
|
79 | - 'address' => ['Text', 'PostalAddress'], |
|
80 | - 'aggregateRating' => ['AggregateRating'], |
|
81 | - 'alternateName' => ['Text'], |
|
82 | - 'alumni' => ['Person'], |
|
83 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
84 | - 'award' => ['Text'], |
|
85 | - 'awards' => ['Text'], |
|
86 | - 'brand' => ['Brand', 'Organization'], |
|
87 | - 'contactPoint' => ['ContactPoint'], |
|
88 | - 'contactPoints' => ['ContactPoint'], |
|
89 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
90 | - 'department' => ['Organization'], |
|
91 | - 'description' => ['Text'], |
|
92 | - 'disambiguatingDescription' => ['Text'], |
|
93 | - 'dissolutionDate' => ['Date'], |
|
94 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
95 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
96 | - 'duns' => ['Text'], |
|
97 | - 'email' => ['Text'], |
|
98 | - 'employee' => ['Person'], |
|
99 | - 'employees' => ['Person'], |
|
100 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
101 | - 'event' => ['Event'], |
|
102 | - 'events' => ['Event'], |
|
103 | - 'faxNumber' => ['Text'], |
|
104 | - 'founder' => ['Person'], |
|
105 | - 'founders' => ['Person'], |
|
106 | - 'foundingDate' => ['Date'], |
|
107 | - 'foundingLocation' => ['Place'], |
|
108 | - 'funder' => ['Organization', 'Person'], |
|
109 | - 'funding' => ['Grant'], |
|
110 | - 'globalLocationNumber' => ['Text'], |
|
111 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
112 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
113 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
114 | - 'hasPOS' => ['Place'], |
|
115 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
116 | - 'image' => ['URL', 'ImageObject'], |
|
117 | - 'interactionStatistic' => ['InteractionCounter'], |
|
118 | - 'isicV4' => ['Text'], |
|
119 | - 'iso6523Code' => ['Text'], |
|
120 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
121 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
122 | - 'knowsLanguage' => ['Text', 'Language'], |
|
123 | - 'legalName' => ['Text'], |
|
124 | - 'leiCode' => ['Text'], |
|
125 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
126 | - 'logo' => ['ImageObject', 'URL'], |
|
127 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
128 | - 'makesOffer' => ['Offer'], |
|
129 | - 'member' => ['Organization', 'Person'], |
|
130 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
131 | - 'members' => ['Organization', 'Person'], |
|
132 | - 'naics' => ['Text'], |
|
133 | - 'name' => ['Text'], |
|
134 | - 'nonprofitStatus' => ['NonprofitType'], |
|
135 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
136 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
137 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
138 | - 'parentOrganization' => ['Organization'], |
|
139 | - 'potentialAction' => ['Action'], |
|
140 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
141 | - 'review' => ['Review'], |
|
142 | - 'reviews' => ['Review'], |
|
143 | - 'sameAs' => ['URL'], |
|
144 | - 'seeks' => ['Demand'], |
|
145 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
146 | - 'slogan' => ['Text'], |
|
147 | - 'sponsor' => ['Organization', 'Person'], |
|
148 | - 'subOrganization' => ['Organization'], |
|
149 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
150 | - 'taxID' => ['Text'], |
|
151 | - 'telephone' => ['Text'], |
|
152 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
153 | - 'url' => ['URL'], |
|
154 | - 'vatID' => ['Text'] |
|
155 | - ]; |
|
156 | - } |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | + 'additionalType' => ['URL'], |
|
79 | + 'address' => ['Text', 'PostalAddress'], |
|
80 | + 'aggregateRating' => ['AggregateRating'], |
|
81 | + 'alternateName' => ['Text'], |
|
82 | + 'alumni' => ['Person'], |
|
83 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
84 | + 'award' => ['Text'], |
|
85 | + 'awards' => ['Text'], |
|
86 | + 'brand' => ['Brand', 'Organization'], |
|
87 | + 'contactPoint' => ['ContactPoint'], |
|
88 | + 'contactPoints' => ['ContactPoint'], |
|
89 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
90 | + 'department' => ['Organization'], |
|
91 | + 'description' => ['Text'], |
|
92 | + 'disambiguatingDescription' => ['Text'], |
|
93 | + 'dissolutionDate' => ['Date'], |
|
94 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
95 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
96 | + 'duns' => ['Text'], |
|
97 | + 'email' => ['Text'], |
|
98 | + 'employee' => ['Person'], |
|
99 | + 'employees' => ['Person'], |
|
100 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
101 | + 'event' => ['Event'], |
|
102 | + 'events' => ['Event'], |
|
103 | + 'faxNumber' => ['Text'], |
|
104 | + 'founder' => ['Person'], |
|
105 | + 'founders' => ['Person'], |
|
106 | + 'foundingDate' => ['Date'], |
|
107 | + 'foundingLocation' => ['Place'], |
|
108 | + 'funder' => ['Organization', 'Person'], |
|
109 | + 'funding' => ['Grant'], |
|
110 | + 'globalLocationNumber' => ['Text'], |
|
111 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
112 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
113 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
114 | + 'hasPOS' => ['Place'], |
|
115 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
116 | + 'image' => ['URL', 'ImageObject'], |
|
117 | + 'interactionStatistic' => ['InteractionCounter'], |
|
118 | + 'isicV4' => ['Text'], |
|
119 | + 'iso6523Code' => ['Text'], |
|
120 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
121 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
122 | + 'knowsLanguage' => ['Text', 'Language'], |
|
123 | + 'legalName' => ['Text'], |
|
124 | + 'leiCode' => ['Text'], |
|
125 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
126 | + 'logo' => ['ImageObject', 'URL'], |
|
127 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
128 | + 'makesOffer' => ['Offer'], |
|
129 | + 'member' => ['Organization', 'Person'], |
|
130 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
131 | + 'members' => ['Organization', 'Person'], |
|
132 | + 'naics' => ['Text'], |
|
133 | + 'name' => ['Text'], |
|
134 | + 'nonprofitStatus' => ['NonprofitType'], |
|
135 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
136 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
137 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
138 | + 'parentOrganization' => ['Organization'], |
|
139 | + 'potentialAction' => ['Action'], |
|
140 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
141 | + 'review' => ['Review'], |
|
142 | + 'reviews' => ['Review'], |
|
143 | + 'sameAs' => ['URL'], |
|
144 | + 'seeks' => ['Demand'], |
|
145 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
146 | + 'slogan' => ['Text'], |
|
147 | + 'sponsor' => ['Organization', 'Person'], |
|
148 | + 'subOrganization' => ['Organization'], |
|
149 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
150 | + 'taxID' => ['Text'], |
|
151 | + 'telephone' => ['Text'], |
|
152 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
153 | + 'url' => ['URL'], |
|
154 | + 'vatID' => ['Text'] |
|
155 | + ]; |
|
156 | + } |
|
157 | 157 | |
158 | 158 | |
159 | - /** |
|
160 | - * @inheritdoc |
|
161 | - */ |
|
162 | - public function getSchemaPropertyDescriptions(): array |
|
163 | - { |
|
164 | - return [ |
|
165 | - 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
166 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
167 | - 'address' => 'Physical address of the item.', |
|
168 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
169 | - 'alternateName' => 'An alias for the item.', |
|
170 | - 'alumni' => 'Alumni of an organization.', |
|
171 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
172 | - 'award' => 'An award won by or for this item.', |
|
173 | - 'awards' => 'Awards won by or for this item.', |
|
174 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
175 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
176 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
177 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
178 | - 'department' => '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.', |
|
179 | - 'description' => 'A description of the item.', |
|
180 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
181 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
182 | - 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
183 | - 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
184 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
185 | - 'email' => 'Email address.', |
|
186 | - 'employee' => 'Someone working for this organization.', |
|
187 | - 'employees' => 'People working for this organization.', |
|
188 | - 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
189 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
190 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
191 | - 'faxNumber' => 'The fax number.', |
|
192 | - 'founder' => 'A person who founded this organization.', |
|
193 | - 'founders' => 'A person who founded this organization.', |
|
194 | - 'foundingDate' => 'The date that this organization was founded.', |
|
195 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
196 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
197 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
198 | - 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (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.', |
|
199 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
200 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
201 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
202 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
203 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
204 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
205 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
206 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
207 | - 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
208 | - 'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.', |
|
209 | - 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
210 | - 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
211 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
212 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
213 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
214 | - 'logo' => 'An associated logo.', |
|
215 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
216 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
217 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
218 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
219 | - 'members' => 'A member of this organization.', |
|
220 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
221 | - 'name' => 'The name of the item.', |
|
222 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
223 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
224 | - 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
225 | - 'owns' => 'Products owned by the organization or person.', |
|
226 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
227 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
228 | - 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
229 | - 'review' => 'A review of the item.', |
|
230 | - 'reviews' => 'Review of the item.', |
|
231 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
232 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
233 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
234 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
235 | - 'sponsor' => '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.', |
|
236 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
237 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
238 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
239 | - 'telephone' => 'The telephone number.', |
|
240 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
241 | - 'url' => 'URL of the item.', |
|
242 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
243 | - ]; |
|
244 | - } |
|
159 | + /** |
|
160 | + * @inheritdoc |
|
161 | + */ |
|
162 | + public function getSchemaPropertyDescriptions(): array |
|
163 | + { |
|
164 | + return [ |
|
165 | + 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
166 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
167 | + 'address' => 'Physical address of the item.', |
|
168 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
169 | + 'alternateName' => 'An alias for the item.', |
|
170 | + 'alumni' => 'Alumni of an organization.', |
|
171 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
172 | + 'award' => 'An award won by or for this item.', |
|
173 | + 'awards' => 'Awards won by or for this item.', |
|
174 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
175 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
176 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
177 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
178 | + 'department' => '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.', |
|
179 | + 'description' => 'A description of the item.', |
|
180 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
181 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
182 | + 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
183 | + 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
184 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
185 | + 'email' => 'Email address.', |
|
186 | + 'employee' => 'Someone working for this organization.', |
|
187 | + 'employees' => 'People working for this organization.', |
|
188 | + 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
189 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
190 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
191 | + 'faxNumber' => 'The fax number.', |
|
192 | + 'founder' => 'A person who founded this organization.', |
|
193 | + 'founders' => 'A person who founded this organization.', |
|
194 | + 'foundingDate' => 'The date that this organization was founded.', |
|
195 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
196 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
197 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
198 | + 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (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.', |
|
199 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
200 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
201 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
202 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
203 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
204 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
205 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
206 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
207 | + 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
208 | + 'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.', |
|
209 | + 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
210 | + 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
211 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
212 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
213 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
214 | + 'logo' => 'An associated logo.', |
|
215 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
216 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
217 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
218 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
219 | + 'members' => 'A member of this organization.', |
|
220 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
221 | + 'name' => 'The name of the item.', |
|
222 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
223 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
224 | + 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
225 | + 'owns' => 'Products owned by the organization or person.', |
|
226 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
227 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
228 | + 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
229 | + 'review' => 'A review of the item.', |
|
230 | + 'reviews' => 'Review of the item.', |
|
231 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
232 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
233 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
234 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
235 | + 'sponsor' => '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.', |
|
236 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
237 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
238 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
239 | + 'telephone' => 'The telephone number.', |
|
240 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
241 | + 'url' => 'URL of the item.', |
|
242 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
243 | + ]; |
|
244 | + } |
|
245 | 245 | |
246 | 246 | |
247 | - /** |
|
248 | - * @inheritdoc |
|
249 | - */ |
|
250 | - public function getGoogleRequiredSchema(): array |
|
251 | - { |
|
252 | - return ['description', 'name']; |
|
253 | - } |
|
247 | + /** |
|
248 | + * @inheritdoc |
|
249 | + */ |
|
250 | + public function getGoogleRequiredSchema(): array |
|
251 | + { |
|
252 | + return ['description', 'name']; |
|
253 | + } |
|
254 | 254 | |
255 | 255 | |
256 | - /** |
|
257 | - * @inheritdoc |
|
258 | - */ |
|
259 | - public function getGoogleRecommendedSchema(): array |
|
260 | - { |
|
261 | - return ['image', 'url']; |
|
262 | - } |
|
256 | + /** |
|
257 | + * @inheritdoc |
|
258 | + */ |
|
259 | + public function getGoogleRecommendedSchema(): array |
|
260 | + { |
|
261 | + return ['image', 'url']; |
|
262 | + } |
|
263 | 263 | |
264 | 264 | |
265 | - /** |
|
266 | - * @inheritdoc |
|
267 | - */ |
|
268 | - public function defineRules(): array |
|
269 | - { |
|
270 | - $rules = parent::defineRules(); |
|
271 | - $rules = array_merge($rules, [ |
|
272 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
273 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
274 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
275 | - ]); |
|
265 | + /** |
|
266 | + * @inheritdoc |
|
267 | + */ |
|
268 | + public function defineRules(): array |
|
269 | + { |
|
270 | + $rules = parent::defineRules(); |
|
271 | + $rules = array_merge($rules, [ |
|
272 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
273 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
274 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
275 | + ]); |
|
276 | 276 | |
277 | - return $rules; |
|
278 | - } |
|
277 | + return $rules; |
|
278 | + } |
|
279 | 279 | } |
@@ -24,338 +24,338 @@ |
||
24 | 24 | */ |
25 | 25 | class Nursing extends MetaJsonLd implements NursingInterface, MedicalBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, MedicalEnumerationInterface |
26 | 26 | { |
27 | - use NursingTrait; |
|
28 | - use MedicalBusinessTrait; |
|
29 | - use LocalBusinessTrait; |
|
30 | - use PlaceTrait; |
|
31 | - use ThingTrait; |
|
32 | - use OrganizationTrait; |
|
33 | - use MedicalSpecialtyTrait; |
|
34 | - use SpecialtyTrait; |
|
35 | - use EnumerationTrait; |
|
36 | - use IntangibleTrait; |
|
37 | - use MedicalEnumerationTrait; |
|
27 | + use NursingTrait; |
|
28 | + use MedicalBusinessTrait; |
|
29 | + use LocalBusinessTrait; |
|
30 | + use PlaceTrait; |
|
31 | + use ThingTrait; |
|
32 | + use OrganizationTrait; |
|
33 | + use MedicalSpecialtyTrait; |
|
34 | + use SpecialtyTrait; |
|
35 | + use EnumerationTrait; |
|
36 | + use IntangibleTrait; |
|
37 | + use MedicalEnumerationTrait; |
|
38 | 38 | |
39 | - /** |
|
40 | - * The Schema.org Type Name |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeName = 'Nursing'; |
|
39 | + /** |
|
40 | + * The Schema.org Type Name |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeName = 'Nursing'; |
|
45 | 45 | |
46 | - /** |
|
47 | - * The Schema.org Type Scope |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeScope = 'https://schema.org/Nursing'; |
|
46 | + /** |
|
47 | + * The Schema.org Type Scope |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeScope = 'https://schema.org/Nursing'; |
|
52 | 52 | |
53 | - /** |
|
54 | - * The Schema.org Type Extends |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeExtends = 'MedicalBusiness'; |
|
53 | + /** |
|
54 | + * The Schema.org Type Extends |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeExtends = 'MedicalBusiness'; |
|
59 | 59 | |
60 | - /** |
|
61 | - * The Schema.org Type Description |
|
62 | - * |
|
63 | - * @var string |
|
64 | - */ |
|
65 | - public static $schemaTypeDescription = 'A health profession of a person formally educated and trained in the care of the sick or infirm person.'; |
|
60 | + /** |
|
61 | + * The Schema.org Type Description |
|
62 | + * |
|
63 | + * @var string |
|
64 | + */ |
|
65 | + public static $schemaTypeDescription = 'A health profession of a person formally educated and trained in the care of the sick or infirm person.'; |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * @inheritdoc |
|
70 | - */ |
|
71 | - public function getSchemaPropertyNames(): array |
|
72 | - { |
|
73 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
74 | - } |
|
68 | + /** |
|
69 | + * @inheritdoc |
|
70 | + */ |
|
71 | + public function getSchemaPropertyNames(): array |
|
72 | + { |
|
73 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
74 | + } |
|
75 | 75 | |
76 | 76 | |
77 | - /** |
|
78 | - * @inheritdoc |
|
79 | - */ |
|
80 | - public function getSchemaPropertyExpectedTypes(): array |
|
81 | - { |
|
82 | - return [ |
|
83 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
84 | - 'additionalProperty' => ['PropertyValue'], |
|
85 | - 'additionalType' => ['URL'], |
|
86 | - 'address' => ['Text', 'PostalAddress'], |
|
87 | - 'aggregateRating' => ['AggregateRating'], |
|
88 | - 'alternateName' => ['Text'], |
|
89 | - 'alumni' => ['Person'], |
|
90 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
91 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
92 | - 'award' => ['Text'], |
|
93 | - 'awards' => ['Text'], |
|
94 | - 'branchCode' => ['Text'], |
|
95 | - 'branchOf' => ['Organization'], |
|
96 | - 'brand' => ['Brand', 'Organization'], |
|
97 | - 'contactPoint' => ['ContactPoint'], |
|
98 | - 'contactPoints' => ['ContactPoint'], |
|
99 | - 'containedIn' => ['Place'], |
|
100 | - 'containedInPlace' => ['Place'], |
|
101 | - 'containsPlace' => ['Place'], |
|
102 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
103 | - 'currenciesAccepted' => ['Text'], |
|
104 | - 'department' => ['Organization'], |
|
105 | - 'description' => ['Text'], |
|
106 | - 'disambiguatingDescription' => ['Text'], |
|
107 | - 'dissolutionDate' => ['Date'], |
|
108 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
109 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
110 | - 'duns' => ['Text'], |
|
111 | - 'email' => ['Text'], |
|
112 | - 'employee' => ['Person'], |
|
113 | - 'employees' => ['Person'], |
|
114 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
115 | - 'event' => ['Event'], |
|
116 | - 'events' => ['Event'], |
|
117 | - 'faxNumber' => ['Text'], |
|
118 | - 'founder' => ['Person'], |
|
119 | - 'founders' => ['Person'], |
|
120 | - 'foundingDate' => ['Date'], |
|
121 | - 'foundingLocation' => ['Place'], |
|
122 | - 'funder' => ['Organization', 'Person'], |
|
123 | - 'funding' => ['Grant'], |
|
124 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
125 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
126 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
127 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
128 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
129 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
130 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
131 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
132 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
133 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
134 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
135 | - 'globalLocationNumber' => ['Text'], |
|
136 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
137 | - 'hasDriveThroughService' => ['Boolean'], |
|
138 | - 'hasMap' => ['URL', 'Map'], |
|
139 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
140 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
141 | - 'hasPOS' => ['Place'], |
|
142 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
143 | - 'image' => ['URL', 'ImageObject'], |
|
144 | - 'interactionStatistic' => ['InteractionCounter'], |
|
145 | - 'isAccessibleForFree' => ['Boolean'], |
|
146 | - 'isicV4' => ['Text'], |
|
147 | - 'iso6523Code' => ['Text'], |
|
148 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
149 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
150 | - 'knowsLanguage' => ['Text', 'Language'], |
|
151 | - 'latitude' => ['Number', 'Text'], |
|
152 | - 'legalName' => ['Text'], |
|
153 | - 'leiCode' => ['Text'], |
|
154 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
155 | - 'logo' => ['ImageObject', 'URL'], |
|
156 | - 'longitude' => ['Text', 'Number'], |
|
157 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
158 | - 'makesOffer' => ['Offer'], |
|
159 | - 'map' => ['URL'], |
|
160 | - 'maps' => ['URL'], |
|
161 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
162 | - 'member' => ['Organization', 'Person'], |
|
163 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
164 | - 'members' => ['Organization', 'Person'], |
|
165 | - 'naics' => ['Text'], |
|
166 | - 'name' => ['Text'], |
|
167 | - 'nonprofitStatus' => ['NonprofitType'], |
|
168 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
169 | - 'openingHours' => ['Text'], |
|
170 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
171 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
172 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
173 | - 'parentOrganization' => ['Organization'], |
|
174 | - 'paymentAccepted' => ['Text'], |
|
175 | - 'photo' => ['Photograph', 'ImageObject'], |
|
176 | - 'photos' => ['ImageObject', 'Photograph'], |
|
177 | - 'potentialAction' => ['Action'], |
|
178 | - 'priceRange' => ['Text'], |
|
179 | - 'publicAccess' => ['Boolean'], |
|
180 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
181 | - 'review' => ['Review'], |
|
182 | - 'reviews' => ['Review'], |
|
183 | - 'sameAs' => ['URL'], |
|
184 | - 'seeks' => ['Demand'], |
|
185 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
186 | - 'slogan' => ['Text'], |
|
187 | - 'smokingAllowed' => ['Boolean'], |
|
188 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
189 | - 'sponsor' => ['Organization', 'Person'], |
|
190 | - 'subOrganization' => ['Organization'], |
|
191 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
192 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
193 | - 'taxID' => ['Text'], |
|
194 | - 'telephone' => ['Text'], |
|
195 | - 'tourBookingPage' => ['URL'], |
|
196 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
197 | - 'url' => ['URL'], |
|
198 | - 'vatID' => ['Text'] |
|
199 | - ]; |
|
200 | - } |
|
77 | + /** |
|
78 | + * @inheritdoc |
|
79 | + */ |
|
80 | + public function getSchemaPropertyExpectedTypes(): array |
|
81 | + { |
|
82 | + return [ |
|
83 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
84 | + 'additionalProperty' => ['PropertyValue'], |
|
85 | + 'additionalType' => ['URL'], |
|
86 | + 'address' => ['Text', 'PostalAddress'], |
|
87 | + 'aggregateRating' => ['AggregateRating'], |
|
88 | + 'alternateName' => ['Text'], |
|
89 | + 'alumni' => ['Person'], |
|
90 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
91 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
92 | + 'award' => ['Text'], |
|
93 | + 'awards' => ['Text'], |
|
94 | + 'branchCode' => ['Text'], |
|
95 | + 'branchOf' => ['Organization'], |
|
96 | + 'brand' => ['Brand', 'Organization'], |
|
97 | + 'contactPoint' => ['ContactPoint'], |
|
98 | + 'contactPoints' => ['ContactPoint'], |
|
99 | + 'containedIn' => ['Place'], |
|
100 | + 'containedInPlace' => ['Place'], |
|
101 | + 'containsPlace' => ['Place'], |
|
102 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
103 | + 'currenciesAccepted' => ['Text'], |
|
104 | + 'department' => ['Organization'], |
|
105 | + 'description' => ['Text'], |
|
106 | + 'disambiguatingDescription' => ['Text'], |
|
107 | + 'dissolutionDate' => ['Date'], |
|
108 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
109 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
110 | + 'duns' => ['Text'], |
|
111 | + 'email' => ['Text'], |
|
112 | + 'employee' => ['Person'], |
|
113 | + 'employees' => ['Person'], |
|
114 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
115 | + 'event' => ['Event'], |
|
116 | + 'events' => ['Event'], |
|
117 | + 'faxNumber' => ['Text'], |
|
118 | + 'founder' => ['Person'], |
|
119 | + 'founders' => ['Person'], |
|
120 | + 'foundingDate' => ['Date'], |
|
121 | + 'foundingLocation' => ['Place'], |
|
122 | + 'funder' => ['Organization', 'Person'], |
|
123 | + 'funding' => ['Grant'], |
|
124 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
125 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
126 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
127 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
128 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
129 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
130 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
131 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
132 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
133 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
134 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
135 | + 'globalLocationNumber' => ['Text'], |
|
136 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
137 | + 'hasDriveThroughService' => ['Boolean'], |
|
138 | + 'hasMap' => ['URL', 'Map'], |
|
139 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
140 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
141 | + 'hasPOS' => ['Place'], |
|
142 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
143 | + 'image' => ['URL', 'ImageObject'], |
|
144 | + 'interactionStatistic' => ['InteractionCounter'], |
|
145 | + 'isAccessibleForFree' => ['Boolean'], |
|
146 | + 'isicV4' => ['Text'], |
|
147 | + 'iso6523Code' => ['Text'], |
|
148 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
149 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
150 | + 'knowsLanguage' => ['Text', 'Language'], |
|
151 | + 'latitude' => ['Number', 'Text'], |
|
152 | + 'legalName' => ['Text'], |
|
153 | + 'leiCode' => ['Text'], |
|
154 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
155 | + 'logo' => ['ImageObject', 'URL'], |
|
156 | + 'longitude' => ['Text', 'Number'], |
|
157 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
158 | + 'makesOffer' => ['Offer'], |
|
159 | + 'map' => ['URL'], |
|
160 | + 'maps' => ['URL'], |
|
161 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
162 | + 'member' => ['Organization', 'Person'], |
|
163 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
164 | + 'members' => ['Organization', 'Person'], |
|
165 | + 'naics' => ['Text'], |
|
166 | + 'name' => ['Text'], |
|
167 | + 'nonprofitStatus' => ['NonprofitType'], |
|
168 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
169 | + 'openingHours' => ['Text'], |
|
170 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
171 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
172 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
173 | + 'parentOrganization' => ['Organization'], |
|
174 | + 'paymentAccepted' => ['Text'], |
|
175 | + 'photo' => ['Photograph', 'ImageObject'], |
|
176 | + 'photos' => ['ImageObject', 'Photograph'], |
|
177 | + 'potentialAction' => ['Action'], |
|
178 | + 'priceRange' => ['Text'], |
|
179 | + 'publicAccess' => ['Boolean'], |
|
180 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
181 | + 'review' => ['Review'], |
|
182 | + 'reviews' => ['Review'], |
|
183 | + 'sameAs' => ['URL'], |
|
184 | + 'seeks' => ['Demand'], |
|
185 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
186 | + 'slogan' => ['Text'], |
|
187 | + 'smokingAllowed' => ['Boolean'], |
|
188 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
189 | + 'sponsor' => ['Organization', 'Person'], |
|
190 | + 'subOrganization' => ['Organization'], |
|
191 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
192 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
193 | + 'taxID' => ['Text'], |
|
194 | + 'telephone' => ['Text'], |
|
195 | + 'tourBookingPage' => ['URL'], |
|
196 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
197 | + 'url' => ['URL'], |
|
198 | + 'vatID' => ['Text'] |
|
199 | + ]; |
|
200 | + } |
|
201 | 201 | |
202 | 202 | |
203 | - /** |
|
204 | - * @inheritdoc |
|
205 | - */ |
|
206 | - public function getSchemaPropertyDescriptions(): array |
|
207 | - { |
|
208 | - return [ |
|
209 | - 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
210 | - 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
211 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
212 | - 'address' => 'Physical address of the item.', |
|
213 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
214 | - 'alternateName' => 'An alias for the item.', |
|
215 | - 'alumni' => 'Alumni of an organization.', |
|
216 | - 'amenityFeature' => '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.', |
|
217 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
218 | - 'award' => 'An award won by or for this item.', |
|
219 | - 'awards' => 'Awards won by or for this item.', |
|
220 | - 'branchCode' => '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. 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. ', |
|
221 | - 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
222 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
223 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
224 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
225 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
226 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
227 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
228 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
229 | - 'currenciesAccepted' => 'The currency accepted. Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".', |
|
230 | - 'department' => '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.', |
|
231 | - 'description' => 'A description of the item.', |
|
232 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
233 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
234 | - 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
235 | - 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
236 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
237 | - 'email' => 'Email address.', |
|
238 | - 'employee' => 'Someone working for this organization.', |
|
239 | - 'employees' => 'People working for this organization.', |
|
240 | - 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
241 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
242 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
243 | - 'faxNumber' => 'The fax number.', |
|
244 | - 'founder' => 'A person who founded this organization.', |
|
245 | - 'founders' => 'A person who founded this organization.', |
|
246 | - 'foundingDate' => 'The date that this organization was founded.', |
|
247 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
248 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
249 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
250 | - 'geo' => 'The geo coordinates of the place.', |
|
251 | - 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
252 | - 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
253 | - 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
254 | - 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
255 | - 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
256 | - 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
257 | - 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
258 | - 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
259 | - 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
260 | - 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
261 | - 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (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.', |
|
262 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
263 | - 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
264 | - 'hasMap' => 'A URL to a map of the place.', |
|
265 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
266 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
267 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
268 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
269 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
270 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
271 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
272 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
273 | - 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
274 | - 'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.', |
|
275 | - 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
276 | - 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
277 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
278 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
279 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
280 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
281 | - 'logo' => 'An associated logo.', |
|
282 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
283 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
284 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
285 | - 'map' => 'A URL to a map of the place.', |
|
286 | - 'maps' => 'A URL to a map of the place.', |
|
287 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
288 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
289 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
290 | - 'members' => 'A member of this organization.', |
|
291 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
292 | - 'name' => 'The name of the item.', |
|
293 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
294 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
295 | - 'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'. * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.', |
|
296 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
297 | - 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
298 | - 'owns' => 'Products owned by the organization or person.', |
|
299 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
300 | - 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
301 | - 'photo' => 'A photograph of this place.', |
|
302 | - 'photos' => 'Photographs of this place.', |
|
303 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
304 | - 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
305 | - 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
306 | - 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
307 | - 'review' => 'A review of the item.', |
|
308 | - 'reviews' => 'Review of the item.', |
|
309 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
310 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
311 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
312 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
313 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
314 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
315 | - 'sponsor' => '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.', |
|
316 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
317 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
318 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
319 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
320 | - 'telephone' => 'The telephone number.', |
|
321 | - 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
322 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
323 | - 'url' => 'URL of the item.', |
|
324 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
325 | - ]; |
|
326 | - } |
|
203 | + /** |
|
204 | + * @inheritdoc |
|
205 | + */ |
|
206 | + public function getSchemaPropertyDescriptions(): array |
|
207 | + { |
|
208 | + return [ |
|
209 | + 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
210 | + 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
211 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
212 | + 'address' => 'Physical address of the item.', |
|
213 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
214 | + 'alternateName' => 'An alias for the item.', |
|
215 | + 'alumni' => 'Alumni of an organization.', |
|
216 | + 'amenityFeature' => '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.', |
|
217 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
218 | + 'award' => 'An award won by or for this item.', |
|
219 | + 'awards' => 'Awards won by or for this item.', |
|
220 | + 'branchCode' => '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. 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. ', |
|
221 | + 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
222 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
223 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
224 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
225 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
226 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
227 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
228 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
229 | + 'currenciesAccepted' => 'The currency accepted. Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".', |
|
230 | + 'department' => '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.', |
|
231 | + 'description' => 'A description of the item.', |
|
232 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
233 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
234 | + 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
235 | + 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
236 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
237 | + 'email' => 'Email address.', |
|
238 | + 'employee' => 'Someone working for this organization.', |
|
239 | + 'employees' => 'People working for this organization.', |
|
240 | + 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
241 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
242 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
243 | + 'faxNumber' => 'The fax number.', |
|
244 | + 'founder' => 'A person who founded this organization.', |
|
245 | + 'founders' => 'A person who founded this organization.', |
|
246 | + 'foundingDate' => 'The date that this organization was founded.', |
|
247 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
248 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
249 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
250 | + 'geo' => 'The geo coordinates of the place.', |
|
251 | + 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
252 | + 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
253 | + 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
254 | + 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
255 | + 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
256 | + 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
257 | + 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
258 | + 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
259 | + 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
260 | + 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
261 | + 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (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.', |
|
262 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
263 | + 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
264 | + 'hasMap' => 'A URL to a map of the place.', |
|
265 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
266 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
267 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
268 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
269 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
270 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
271 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
272 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
273 | + 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
274 | + 'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.', |
|
275 | + 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
276 | + 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
277 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
278 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
279 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
280 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
281 | + 'logo' => 'An associated logo.', |
|
282 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
283 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
284 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
285 | + 'map' => 'A URL to a map of the place.', |
|
286 | + 'maps' => 'A URL to a map of the place.', |
|
287 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
288 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
289 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
290 | + 'members' => 'A member of this organization.', |
|
291 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
292 | + 'name' => 'The name of the item.', |
|
293 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
294 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
295 | + 'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'. * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.', |
|
296 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
297 | + 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
298 | + 'owns' => 'Products owned by the organization or person.', |
|
299 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
300 | + 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
301 | + 'photo' => 'A photograph of this place.', |
|
302 | + 'photos' => 'Photographs of this place.', |
|
303 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
304 | + 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
305 | + 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
306 | + 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
307 | + 'review' => 'A review of the item.', |
|
308 | + 'reviews' => 'Review of the item.', |
|
309 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
310 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
311 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
312 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
313 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
314 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
315 | + 'sponsor' => '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.', |
|
316 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
317 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
318 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
319 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
320 | + 'telephone' => 'The telephone number.', |
|
321 | + 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
322 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
323 | + 'url' => 'URL of the item.', |
|
324 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
325 | + ]; |
|
326 | + } |
|
327 | 327 | |
328 | 328 | |
329 | - /** |
|
330 | - * @inheritdoc |
|
331 | - */ |
|
332 | - public function getGoogleRequiredSchema(): array |
|
333 | - { |
|
334 | - return ['description', 'name']; |
|
335 | - } |
|
329 | + /** |
|
330 | + * @inheritdoc |
|
331 | + */ |
|
332 | + public function getGoogleRequiredSchema(): array |
|
333 | + { |
|
334 | + return ['description', 'name']; |
|
335 | + } |
|
336 | 336 | |
337 | 337 | |
338 | - /** |
|
339 | - * @inheritdoc |
|
340 | - */ |
|
341 | - public function getGoogleRecommendedSchema(): array |
|
342 | - { |
|
343 | - return ['image', 'url']; |
|
344 | - } |
|
338 | + /** |
|
339 | + * @inheritdoc |
|
340 | + */ |
|
341 | + public function getGoogleRecommendedSchema(): array |
|
342 | + { |
|
343 | + return ['image', 'url']; |
|
344 | + } |
|
345 | 345 | |
346 | 346 | |
347 | - /** |
|
348 | - * @inheritdoc |
|
349 | - */ |
|
350 | - public function defineRules(): array |
|
351 | - { |
|
352 | - $rules = parent::defineRules(); |
|
353 | - $rules = array_merge($rules, [ |
|
354 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
355 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
356 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
357 | - ]); |
|
347 | + /** |
|
348 | + * @inheritdoc |
|
349 | + */ |
|
350 | + public function defineRules(): array |
|
351 | + { |
|
352 | + $rules = parent::defineRules(); |
|
353 | + $rules = array_merge($rules, [ |
|
354 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
355 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
356 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
357 | + ]); |
|
358 | 358 | |
359 | - return $rules; |
|
360 | - } |
|
359 | + return $rules; |
|
360 | + } |
|
361 | 361 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class RsvpResponseYes extends MetaJsonLd implements RsvpResponseYesInterface, RsvpResponseTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use RsvpResponseYesTrait; |
|
27 | - use RsvpResponseTypeTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'RsvpResponseYes'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/RsvpResponseYes'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'RsvpResponseType'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'The invitee will attend.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use RsvpResponseYesTrait; |
|
27 | + use RsvpResponseTypeTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'RsvpResponseYes'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/RsvpResponseYes'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'RsvpResponseType'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'The invitee will attend.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -26,127 +26,127 @@ |
||
26 | 26 | */ |
27 | 27 | class FDAcategoryD extends MetaJsonLd implements FDAcategoryDInterface, DrugPregnancyCategoryInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
28 | 28 | { |
29 | - use FDAcategoryDTrait; |
|
30 | - use DrugPregnancyCategoryTrait; |
|
31 | - use MedicalEnumerationTrait; |
|
32 | - use EnumerationTrait; |
|
33 | - use IntangibleTrait; |
|
34 | - use ThingTrait; |
|
35 | - |
|
36 | - /** |
|
37 | - * The Schema.org Type Name |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - public static $schemaTypeName = 'FDAcategoryD'; |
|
42 | - |
|
43 | - /** |
|
44 | - * The Schema.org Type Scope |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public static $schemaTypeScope = 'https://schema.org/FDAcategoryD'; |
|
49 | - |
|
50 | - /** |
|
51 | - * The Schema.org Type Extends |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
55 | - public static $schemaTypeExtends = 'DrugPregnancyCategory'; |
|
56 | - |
|
57 | - /** |
|
58 | - * The Schema.org Type Description |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
62 | - public static $schemaTypeDescription = 'A designation by the US FDA signifying that there is positive evidence of human fetal risk based on adverse reaction data from investigational or marketing experience or studies in humans, but potential benefits may warrant use of the drug in pregnant women despite potential risks.'; |
|
63 | - |
|
64 | - |
|
65 | - /** |
|
66 | - * @inheritdoc |
|
67 | - */ |
|
68 | - public function getSchemaPropertyNames(): array |
|
69 | - { |
|
70 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
71 | - } |
|
72 | - |
|
73 | - |
|
74 | - /** |
|
75 | - * @inheritdoc |
|
76 | - */ |
|
77 | - public function getSchemaPropertyExpectedTypes(): array |
|
78 | - { |
|
79 | - return [ |
|
80 | - 'additionalType' => ['URL'], |
|
81 | - 'alternateName' => ['Text'], |
|
82 | - 'description' => ['Text'], |
|
83 | - 'disambiguatingDescription' => ['Text'], |
|
84 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | - 'image' => ['URL', 'ImageObject'], |
|
86 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
87 | - 'name' => ['Text'], |
|
88 | - 'potentialAction' => ['Action'], |
|
89 | - 'sameAs' => ['URL'], |
|
90 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
91 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
92 | - 'url' => ['URL'] |
|
93 | - ]; |
|
94 | - } |
|
95 | - |
|
96 | - |
|
97 | - /** |
|
98 | - * @inheritdoc |
|
99 | - */ |
|
100 | - public function getSchemaPropertyDescriptions(): array |
|
101 | - { |
|
102 | - return [ |
|
103 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
104 | - 'alternateName' => 'An alias for the item.', |
|
105 | - 'description' => 'A description of the item.', |
|
106 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
107 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
108 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
109 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | - 'name' => 'The name of the item.', |
|
111 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
112 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
113 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
114 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
115 | - 'url' => 'URL of the item.' |
|
116 | - ]; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * @inheritdoc |
|
122 | - */ |
|
123 | - public function getGoogleRequiredSchema(): array |
|
124 | - { |
|
125 | - return ['description', 'name']; |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - /** |
|
130 | - * @inheritdoc |
|
131 | - */ |
|
132 | - public function getGoogleRecommendedSchema(): array |
|
133 | - { |
|
134 | - return ['image', 'url']; |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @inheritdoc |
|
140 | - */ |
|
141 | - public function defineRules(): array |
|
142 | - { |
|
143 | - $rules = parent::defineRules(); |
|
144 | - $rules = array_merge($rules, [ |
|
145 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | - ]); |
|
149 | - |
|
150 | - return $rules; |
|
151 | - } |
|
29 | + use FDAcategoryDTrait; |
|
30 | + use DrugPregnancyCategoryTrait; |
|
31 | + use MedicalEnumerationTrait; |
|
32 | + use EnumerationTrait; |
|
33 | + use IntangibleTrait; |
|
34 | + use ThingTrait; |
|
35 | + |
|
36 | + /** |
|
37 | + * The Schema.org Type Name |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + public static $schemaTypeName = 'FDAcategoryD'; |
|
42 | + |
|
43 | + /** |
|
44 | + * The Schema.org Type Scope |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public static $schemaTypeScope = 'https://schema.org/FDAcategoryD'; |
|
49 | + |
|
50 | + /** |
|
51 | + * The Schema.org Type Extends |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | + public static $schemaTypeExtends = 'DrugPregnancyCategory'; |
|
56 | + |
|
57 | + /** |
|
58 | + * The Schema.org Type Description |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | + public static $schemaTypeDescription = 'A designation by the US FDA signifying that there is positive evidence of human fetal risk based on adverse reaction data from investigational or marketing experience or studies in humans, but potential benefits may warrant use of the drug in pregnant women despite potential risks.'; |
|
63 | + |
|
64 | + |
|
65 | + /** |
|
66 | + * @inheritdoc |
|
67 | + */ |
|
68 | + public function getSchemaPropertyNames(): array |
|
69 | + { |
|
70 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
71 | + } |
|
72 | + |
|
73 | + |
|
74 | + /** |
|
75 | + * @inheritdoc |
|
76 | + */ |
|
77 | + public function getSchemaPropertyExpectedTypes(): array |
|
78 | + { |
|
79 | + return [ |
|
80 | + 'additionalType' => ['URL'], |
|
81 | + 'alternateName' => ['Text'], |
|
82 | + 'description' => ['Text'], |
|
83 | + 'disambiguatingDescription' => ['Text'], |
|
84 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | + 'image' => ['URL', 'ImageObject'], |
|
86 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
87 | + 'name' => ['Text'], |
|
88 | + 'potentialAction' => ['Action'], |
|
89 | + 'sameAs' => ['URL'], |
|
90 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
91 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
92 | + 'url' => ['URL'] |
|
93 | + ]; |
|
94 | + } |
|
95 | + |
|
96 | + |
|
97 | + /** |
|
98 | + * @inheritdoc |
|
99 | + */ |
|
100 | + public function getSchemaPropertyDescriptions(): array |
|
101 | + { |
|
102 | + return [ |
|
103 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
104 | + 'alternateName' => 'An alias for the item.', |
|
105 | + 'description' => 'A description of the item.', |
|
106 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
107 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
108 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
109 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | + 'name' => 'The name of the item.', |
|
111 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
112 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
113 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
114 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
115 | + 'url' => 'URL of the item.' |
|
116 | + ]; |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + /** |
|
121 | + * @inheritdoc |
|
122 | + */ |
|
123 | + public function getGoogleRequiredSchema(): array |
|
124 | + { |
|
125 | + return ['description', 'name']; |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + /** |
|
130 | + * @inheritdoc |
|
131 | + */ |
|
132 | + public function getGoogleRecommendedSchema(): array |
|
133 | + { |
|
134 | + return ['image', 'url']; |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @inheritdoc |
|
140 | + */ |
|
141 | + public function defineRules(): array |
|
142 | + { |
|
143 | + $rules = parent::defineRules(); |
|
144 | + $rules = array_merge($rules, [ |
|
145 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | + ]); |
|
149 | + |
|
150 | + return $rules; |
|
151 | + } |
|
152 | 152 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class SeatingMap extends MetaJsonLd implements SeatingMapInterface, MapCategoryTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use SeatingMapTrait; |
|
27 | - use MapCategoryTypeTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'SeatingMap'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/SeatingMap'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'MapCategoryType'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'A seating map.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use SeatingMapTrait; |
|
27 | + use MapCategoryTypeTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'SeatingMap'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/SeatingMap'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'MapCategoryType'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'A seating map.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -23,124 +23,124 @@ |
||
23 | 23 | */ |
24 | 24 | class SchemaClass extends MetaJsonLd implements SchemaClassInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use SchemaClassTrait; |
|
27 | - use IntangibleTrait; |
|
28 | - use ThingTrait; |
|
29 | - |
|
30 | - /** |
|
31 | - * The Schema.org Type Name |
|
32 | - * |
|
33 | - * @var string |
|
34 | - */ |
|
35 | - public static $schemaTypeName = 'Class'; |
|
36 | - |
|
37 | - /** |
|
38 | - * The Schema.org Type Scope |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public static $schemaTypeScope = 'https://schema.org/Class'; |
|
43 | - |
|
44 | - /** |
|
45 | - * The Schema.org Type Extends |
|
46 | - * |
|
47 | - * @var string |
|
48 | - */ |
|
49 | - public static $schemaTypeExtends = 'Intangible'; |
|
50 | - |
|
51 | - /** |
|
52 | - * The Schema.org Type Description |
|
53 | - * |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public static $schemaTypeDescription = 'A class, also often called a \'Type\'; equivalent to rdfs:Class.'; |
|
57 | - |
|
58 | - |
|
59 | - /** |
|
60 | - * @inheritdoc |
|
61 | - */ |
|
62 | - public function getSchemaPropertyNames(): array |
|
63 | - { |
|
64 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - /** |
|
69 | - * @inheritdoc |
|
70 | - */ |
|
71 | - public function getSchemaPropertyExpectedTypes(): array |
|
72 | - { |
|
73 | - return [ |
|
74 | - 'additionalType' => ['URL'], |
|
75 | - 'alternateName' => ['Text'], |
|
76 | - 'description' => ['Text'], |
|
77 | - 'disambiguatingDescription' => ['Text'], |
|
78 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
79 | - 'image' => ['URL', 'ImageObject'], |
|
80 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
81 | - 'name' => ['Text'], |
|
82 | - 'potentialAction' => ['Action'], |
|
83 | - 'sameAs' => ['URL'], |
|
84 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
85 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
86 | - 'url' => ['URL'] |
|
87 | - ]; |
|
88 | - } |
|
89 | - |
|
90 | - |
|
91 | - /** |
|
92 | - * @inheritdoc |
|
93 | - */ |
|
94 | - public function getSchemaPropertyDescriptions(): array |
|
95 | - { |
|
96 | - return [ |
|
97 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
98 | - 'alternateName' => 'An alias for the item.', |
|
99 | - 'description' => 'A description of the item.', |
|
100 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
101 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
102 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
103 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
104 | - 'name' => 'The name of the item.', |
|
105 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
106 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
107 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
108 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
109 | - 'url' => 'URL of the item.' |
|
110 | - ]; |
|
111 | - } |
|
112 | - |
|
113 | - |
|
114 | - /** |
|
115 | - * @inheritdoc |
|
116 | - */ |
|
117 | - public function getGoogleRequiredSchema(): array |
|
118 | - { |
|
119 | - return ['description', 'name']; |
|
120 | - } |
|
121 | - |
|
122 | - |
|
123 | - /** |
|
124 | - * @inheritdoc |
|
125 | - */ |
|
126 | - public function getGoogleRecommendedSchema(): array |
|
127 | - { |
|
128 | - return ['image', 'url']; |
|
129 | - } |
|
130 | - |
|
131 | - |
|
132 | - /** |
|
133 | - * @inheritdoc |
|
134 | - */ |
|
135 | - public function defineRules(): array |
|
136 | - { |
|
137 | - $rules = parent::defineRules(); |
|
138 | - $rules = array_merge($rules, [ |
|
139 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
140 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
141 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
142 | - ]); |
|
143 | - |
|
144 | - return $rules; |
|
145 | - } |
|
26 | + use SchemaClassTrait; |
|
27 | + use IntangibleTrait; |
|
28 | + use ThingTrait; |
|
29 | + |
|
30 | + /** |
|
31 | + * The Schema.org Type Name |
|
32 | + * |
|
33 | + * @var string |
|
34 | + */ |
|
35 | + public static $schemaTypeName = 'Class'; |
|
36 | + |
|
37 | + /** |
|
38 | + * The Schema.org Type Scope |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public static $schemaTypeScope = 'https://schema.org/Class'; |
|
43 | + |
|
44 | + /** |
|
45 | + * The Schema.org Type Extends |
|
46 | + * |
|
47 | + * @var string |
|
48 | + */ |
|
49 | + public static $schemaTypeExtends = 'Intangible'; |
|
50 | + |
|
51 | + /** |
|
52 | + * The Schema.org Type Description |
|
53 | + * |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public static $schemaTypeDescription = 'A class, also often called a \'Type\'; equivalent to rdfs:Class.'; |
|
57 | + |
|
58 | + |
|
59 | + /** |
|
60 | + * @inheritdoc |
|
61 | + */ |
|
62 | + public function getSchemaPropertyNames(): array |
|
63 | + { |
|
64 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + /** |
|
69 | + * @inheritdoc |
|
70 | + */ |
|
71 | + public function getSchemaPropertyExpectedTypes(): array |
|
72 | + { |
|
73 | + return [ |
|
74 | + 'additionalType' => ['URL'], |
|
75 | + 'alternateName' => ['Text'], |
|
76 | + 'description' => ['Text'], |
|
77 | + 'disambiguatingDescription' => ['Text'], |
|
78 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
79 | + 'image' => ['URL', 'ImageObject'], |
|
80 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
81 | + 'name' => ['Text'], |
|
82 | + 'potentialAction' => ['Action'], |
|
83 | + 'sameAs' => ['URL'], |
|
84 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
85 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
86 | + 'url' => ['URL'] |
|
87 | + ]; |
|
88 | + } |
|
89 | + |
|
90 | + |
|
91 | + /** |
|
92 | + * @inheritdoc |
|
93 | + */ |
|
94 | + public function getSchemaPropertyDescriptions(): array |
|
95 | + { |
|
96 | + return [ |
|
97 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
98 | + 'alternateName' => 'An alias for the item.', |
|
99 | + 'description' => 'A description of the item.', |
|
100 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
101 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
102 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
103 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
104 | + 'name' => 'The name of the item.', |
|
105 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
106 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
107 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
108 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
109 | + 'url' => 'URL of the item.' |
|
110 | + ]; |
|
111 | + } |
|
112 | + |
|
113 | + |
|
114 | + /** |
|
115 | + * @inheritdoc |
|
116 | + */ |
|
117 | + public function getGoogleRequiredSchema(): array |
|
118 | + { |
|
119 | + return ['description', 'name']; |
|
120 | + } |
|
121 | + |
|
122 | + |
|
123 | + /** |
|
124 | + * @inheritdoc |
|
125 | + */ |
|
126 | + public function getGoogleRecommendedSchema(): array |
|
127 | + { |
|
128 | + return ['image', 'url']; |
|
129 | + } |
|
130 | + |
|
131 | + |
|
132 | + /** |
|
133 | + * @inheritdoc |
|
134 | + */ |
|
135 | + public function defineRules(): array |
|
136 | + { |
|
137 | + $rules = parent::defineRules(); |
|
138 | + $rules = array_merge($rules, [ |
|
139 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
140 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
141 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
142 | + ]); |
|
143 | + |
|
144 | + return $rules; |
|
145 | + } |
|
146 | 146 | } |
@@ -23,131 +23,131 @@ |
||
23 | 23 | */ |
24 | 24 | class MonetaryGrant extends MetaJsonLd implements MonetaryGrantInterface, GrantInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use MonetaryGrantTrait; |
|
27 | - use GrantTrait; |
|
28 | - use IntangibleTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'MonetaryGrant'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/MonetaryGrant'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'Grant'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'A monetary grant.'; |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * @inheritdoc |
|
62 | - */ |
|
63 | - public function getSchemaPropertyNames(): array |
|
64 | - { |
|
65 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | - } |
|
67 | - |
|
68 | - |
|
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyExpectedTypes(): array |
|
73 | - { |
|
74 | - return [ |
|
75 | - 'additionalType' => ['URL'], |
|
76 | - 'alternateName' => ['Text'], |
|
77 | - 'amount' => ['MonetaryAmount', 'Number'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'fundedItem' => ['Organization', 'BioChemEntity', 'Event', 'Person', 'MedicalEntity', 'Product', 'CreativeWork'], |
|
81 | - 'funder' => ['Organization', 'Person'], |
|
82 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | - 'image' => ['URL', 'ImageObject'], |
|
84 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | - 'name' => ['Text'], |
|
86 | - 'potentialAction' => ['Action'], |
|
87 | - 'sameAs' => ['URL'], |
|
88 | - 'sponsor' => ['Organization', 'Person'], |
|
89 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
90 | - 'url' => ['URL'] |
|
91 | - ]; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * @inheritdoc |
|
97 | - */ |
|
98 | - public function getSchemaPropertyDescriptions(): array |
|
99 | - { |
|
100 | - return [ |
|
101 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | - 'alternateName' => 'An alias for the item.', |
|
103 | - 'amount' => 'The amount of money.', |
|
104 | - 'description' => 'A description of the item.', |
|
105 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
106 | - 'fundedItem' => 'Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]].', |
|
107 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
108 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
109 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
110 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
111 | - 'name' => 'The name of the item.', |
|
112 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
113 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
114 | - 'sponsor' => '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.', |
|
115 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
116 | - 'url' => 'URL of the item.' |
|
117 | - ]; |
|
118 | - } |
|
119 | - |
|
120 | - |
|
121 | - /** |
|
122 | - * @inheritdoc |
|
123 | - */ |
|
124 | - public function getGoogleRequiredSchema(): array |
|
125 | - { |
|
126 | - return ['description', 'name']; |
|
127 | - } |
|
128 | - |
|
129 | - |
|
130 | - /** |
|
131 | - * @inheritdoc |
|
132 | - */ |
|
133 | - public function getGoogleRecommendedSchema(): array |
|
134 | - { |
|
135 | - return ['image', 'url']; |
|
136 | - } |
|
137 | - |
|
138 | - |
|
139 | - /** |
|
140 | - * @inheritdoc |
|
141 | - */ |
|
142 | - public function defineRules(): array |
|
143 | - { |
|
144 | - $rules = parent::defineRules(); |
|
145 | - $rules = array_merge($rules, [ |
|
146 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
147 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
148 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
149 | - ]); |
|
150 | - |
|
151 | - return $rules; |
|
152 | - } |
|
26 | + use MonetaryGrantTrait; |
|
27 | + use GrantTrait; |
|
28 | + use IntangibleTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'MonetaryGrant'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/MonetaryGrant'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'Grant'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'A monetary grant.'; |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * @inheritdoc |
|
62 | + */ |
|
63 | + public function getSchemaPropertyNames(): array |
|
64 | + { |
|
65 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | + } |
|
67 | + |
|
68 | + |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyExpectedTypes(): array |
|
73 | + { |
|
74 | + return [ |
|
75 | + 'additionalType' => ['URL'], |
|
76 | + 'alternateName' => ['Text'], |
|
77 | + 'amount' => ['MonetaryAmount', 'Number'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'fundedItem' => ['Organization', 'BioChemEntity', 'Event', 'Person', 'MedicalEntity', 'Product', 'CreativeWork'], |
|
81 | + 'funder' => ['Organization', 'Person'], |
|
82 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | + 'image' => ['URL', 'ImageObject'], |
|
84 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | + 'name' => ['Text'], |
|
86 | + 'potentialAction' => ['Action'], |
|
87 | + 'sameAs' => ['URL'], |
|
88 | + 'sponsor' => ['Organization', 'Person'], |
|
89 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
90 | + 'url' => ['URL'] |
|
91 | + ]; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * @inheritdoc |
|
97 | + */ |
|
98 | + public function getSchemaPropertyDescriptions(): array |
|
99 | + { |
|
100 | + return [ |
|
101 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | + 'alternateName' => 'An alias for the item.', |
|
103 | + 'amount' => 'The amount of money.', |
|
104 | + 'description' => 'A description of the item.', |
|
105 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
106 | + 'fundedItem' => 'Indicates something directly or indirectly funded or sponsored through a [[Grant]]. See also [[ownershipFundingInfo]].', |
|
107 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
108 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
109 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
110 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
111 | + 'name' => 'The name of the item.', |
|
112 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
113 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
114 | + 'sponsor' => '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.', |
|
115 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
116 | + 'url' => 'URL of the item.' |
|
117 | + ]; |
|
118 | + } |
|
119 | + |
|
120 | + |
|
121 | + /** |
|
122 | + * @inheritdoc |
|
123 | + */ |
|
124 | + public function getGoogleRequiredSchema(): array |
|
125 | + { |
|
126 | + return ['description', 'name']; |
|
127 | + } |
|
128 | + |
|
129 | + |
|
130 | + /** |
|
131 | + * @inheritdoc |
|
132 | + */ |
|
133 | + public function getGoogleRecommendedSchema(): array |
|
134 | + { |
|
135 | + return ['image', 'url']; |
|
136 | + } |
|
137 | + |
|
138 | + |
|
139 | + /** |
|
140 | + * @inheritdoc |
|
141 | + */ |
|
142 | + public function defineRules(): array |
|
143 | + { |
|
144 | + $rules = parent::defineRules(); |
|
145 | + $rules = array_merge($rules, [ |
|
146 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
147 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
148 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
149 | + ]); |
|
150 | + |
|
151 | + return $rules; |
|
152 | + } |
|
153 | 153 | } |
@@ -24,143 +24,143 @@ |
||
24 | 24 | */ |
25 | 25 | class RightHandDriving extends MetaJsonLd implements RightHandDrivingInterface, SteeringPositionValueInterface, QualitativeValueInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use RightHandDrivingTrait; |
|
28 | - use SteeringPositionValueTrait; |
|
29 | - use QualitativeValueTrait; |
|
30 | - use EnumerationTrait; |
|
31 | - use IntangibleTrait; |
|
32 | - use ThingTrait; |
|
33 | - |
|
34 | - /** |
|
35 | - * The Schema.org Type Name |
|
36 | - * |
|
37 | - * @var string |
|
38 | - */ |
|
39 | - public static $schemaTypeName = 'RightHandDriving'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/RightHandDriving'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'SteeringPositionValue'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'The steering position is on the right side of the vehicle (viewed from the main direction of driving).'; |
|
61 | - |
|
62 | - |
|
63 | - /** |
|
64 | - * @inheritdoc |
|
65 | - */ |
|
66 | - public function getSchemaPropertyNames(): array |
|
67 | - { |
|
68 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | - } |
|
70 | - |
|
71 | - |
|
72 | - /** |
|
73 | - * @inheritdoc |
|
74 | - */ |
|
75 | - public function getSchemaPropertyExpectedTypes(): array |
|
76 | - { |
|
77 | - return [ |
|
78 | - 'additionalProperty' => ['PropertyValue'], |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'alternateName' => ['Text'], |
|
81 | - 'description' => ['Text'], |
|
82 | - 'disambiguatingDescription' => ['Text'], |
|
83 | - 'equal' => ['QualitativeValue'], |
|
84 | - 'greater' => ['QualitativeValue'], |
|
85 | - 'greaterOrEqual' => ['QualitativeValue'], |
|
86 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | - 'image' => ['URL', 'ImageObject'], |
|
88 | - 'lesser' => ['QualitativeValue'], |
|
89 | - 'lesserOrEqual' => ['QualitativeValue'], |
|
90 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
91 | - 'name' => ['Text'], |
|
92 | - 'nonEqual' => ['QualitativeValue'], |
|
93 | - 'potentialAction' => ['Action'], |
|
94 | - 'sameAs' => ['URL'], |
|
95 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
96 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
97 | - 'url' => ['URL'], |
|
98 | - 'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue'] |
|
99 | - ]; |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * @inheritdoc |
|
105 | - */ |
|
106 | - public function getSchemaPropertyDescriptions(): array |
|
107 | - { |
|
108 | - return [ |
|
109 | - 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
110 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
111 | - 'alternateName' => 'An alias for the item.', |
|
112 | - 'description' => 'A description of the item.', |
|
113 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
114 | - 'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.', |
|
115 | - 'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.', |
|
116 | - 'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.', |
|
117 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
118 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
119 | - 'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.', |
|
120 | - 'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.', |
|
121 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
122 | - 'name' => 'The name of the item.', |
|
123 | - 'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.', |
|
124 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
125 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
126 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
127 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
128 | - 'url' => 'URL of the item.', |
|
129 | - 'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.' |
|
130 | - ]; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function getGoogleRequiredSchema(): array |
|
138 | - { |
|
139 | - return ['description', 'name']; |
|
140 | - } |
|
141 | - |
|
142 | - |
|
143 | - /** |
|
144 | - * @inheritdoc |
|
145 | - */ |
|
146 | - public function getGoogleRecommendedSchema(): array |
|
147 | - { |
|
148 | - return ['image', 'url']; |
|
149 | - } |
|
150 | - |
|
151 | - |
|
152 | - /** |
|
153 | - * @inheritdoc |
|
154 | - */ |
|
155 | - public function defineRules(): array |
|
156 | - { |
|
157 | - $rules = parent::defineRules(); |
|
158 | - $rules = array_merge($rules, [ |
|
159 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
160 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
161 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
162 | - ]); |
|
163 | - |
|
164 | - return $rules; |
|
165 | - } |
|
27 | + use RightHandDrivingTrait; |
|
28 | + use SteeringPositionValueTrait; |
|
29 | + use QualitativeValueTrait; |
|
30 | + use EnumerationTrait; |
|
31 | + use IntangibleTrait; |
|
32 | + use ThingTrait; |
|
33 | + |
|
34 | + /** |
|
35 | + * The Schema.org Type Name |
|
36 | + * |
|
37 | + * @var string |
|
38 | + */ |
|
39 | + public static $schemaTypeName = 'RightHandDriving'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/RightHandDriving'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'SteeringPositionValue'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'The steering position is on the right side of the vehicle (viewed from the main direction of driving).'; |
|
61 | + |
|
62 | + |
|
63 | + /** |
|
64 | + * @inheritdoc |
|
65 | + */ |
|
66 | + public function getSchemaPropertyNames(): array |
|
67 | + { |
|
68 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | + } |
|
70 | + |
|
71 | + |
|
72 | + /** |
|
73 | + * @inheritdoc |
|
74 | + */ |
|
75 | + public function getSchemaPropertyExpectedTypes(): array |
|
76 | + { |
|
77 | + return [ |
|
78 | + 'additionalProperty' => ['PropertyValue'], |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'alternateName' => ['Text'], |
|
81 | + 'description' => ['Text'], |
|
82 | + 'disambiguatingDescription' => ['Text'], |
|
83 | + 'equal' => ['QualitativeValue'], |
|
84 | + 'greater' => ['QualitativeValue'], |
|
85 | + 'greaterOrEqual' => ['QualitativeValue'], |
|
86 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | + 'image' => ['URL', 'ImageObject'], |
|
88 | + 'lesser' => ['QualitativeValue'], |
|
89 | + 'lesserOrEqual' => ['QualitativeValue'], |
|
90 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
91 | + 'name' => ['Text'], |
|
92 | + 'nonEqual' => ['QualitativeValue'], |
|
93 | + 'potentialAction' => ['Action'], |
|
94 | + 'sameAs' => ['URL'], |
|
95 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
96 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
97 | + 'url' => ['URL'], |
|
98 | + 'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue'] |
|
99 | + ]; |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * @inheritdoc |
|
105 | + */ |
|
106 | + public function getSchemaPropertyDescriptions(): array |
|
107 | + { |
|
108 | + return [ |
|
109 | + 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
110 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
111 | + 'alternateName' => 'An alias for the item.', |
|
112 | + 'description' => 'A description of the item.', |
|
113 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
114 | + 'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.', |
|
115 | + 'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.', |
|
116 | + 'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.', |
|
117 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
118 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
119 | + 'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.', |
|
120 | + 'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.', |
|
121 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
122 | + 'name' => 'The name of the item.', |
|
123 | + 'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.', |
|
124 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
125 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
126 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
127 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
128 | + 'url' => 'URL of the item.', |
|
129 | + 'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.' |
|
130 | + ]; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function getGoogleRequiredSchema(): array |
|
138 | + { |
|
139 | + return ['description', 'name']; |
|
140 | + } |
|
141 | + |
|
142 | + |
|
143 | + /** |
|
144 | + * @inheritdoc |
|
145 | + */ |
|
146 | + public function getGoogleRecommendedSchema(): array |
|
147 | + { |
|
148 | + return ['image', 'url']; |
|
149 | + } |
|
150 | + |
|
151 | + |
|
152 | + /** |
|
153 | + * @inheritdoc |
|
154 | + */ |
|
155 | + public function defineRules(): array |
|
156 | + { |
|
157 | + $rules = parent::defineRules(); |
|
158 | + $rules = array_merge($rules, [ |
|
159 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
160 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
161 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
162 | + ]); |
|
163 | + |
|
164 | + return $rules; |
|
165 | + } |
|
166 | 166 | } |
@@ -23,196 +23,196 @@ |
||
23 | 23 | */ |
24 | 24 | class JobPosting extends MetaJsonLd implements JobPostingInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use JobPostingTrait; |
|
27 | - use IntangibleTrait; |
|
28 | - use ThingTrait; |
|
29 | - |
|
30 | - /** |
|
31 | - * The Schema.org Type Name |
|
32 | - * |
|
33 | - * @var string |
|
34 | - */ |
|
35 | - public static $schemaTypeName = 'JobPosting'; |
|
36 | - |
|
37 | - /** |
|
38 | - * The Schema.org Type Scope |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public static $schemaTypeScope = 'https://schema.org/JobPosting'; |
|
43 | - |
|
44 | - /** |
|
45 | - * The Schema.org Type Extends |
|
46 | - * |
|
47 | - * @var string |
|
48 | - */ |
|
49 | - public static $schemaTypeExtends = 'Intangible'; |
|
50 | - |
|
51 | - /** |
|
52 | - * The Schema.org Type Description |
|
53 | - * |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public static $schemaTypeDescription = 'A listing that describes a job opening in a certain organization.'; |
|
57 | - |
|
58 | - |
|
59 | - /** |
|
60 | - * @inheritdoc |
|
61 | - */ |
|
62 | - public function getSchemaPropertyNames(): array |
|
63 | - { |
|
64 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - /** |
|
69 | - * @inheritdoc |
|
70 | - */ |
|
71 | - public function getSchemaPropertyExpectedTypes(): array |
|
72 | - { |
|
73 | - return [ |
|
74 | - 'additionalType' => ['URL'], |
|
75 | - 'alternateName' => ['Text'], |
|
76 | - 'applicantLocationRequirements' => ['AdministrativeArea'], |
|
77 | - 'applicationContact' => ['ContactPoint'], |
|
78 | - 'baseSalary' => ['MonetaryAmount', 'Number', 'PriceSpecification'], |
|
79 | - 'benefits' => ['Text'], |
|
80 | - 'datePosted' => ['DateTime', 'Date'], |
|
81 | - 'description' => ['Text'], |
|
82 | - 'directApply' => ['Boolean'], |
|
83 | - 'disambiguatingDescription' => ['Text'], |
|
84 | - 'educationRequirements' => ['EducationalOccupationalCredential', 'Text'], |
|
85 | - 'eligibilityToWorkRequirement' => ['Text'], |
|
86 | - 'employerOverview' => ['Text'], |
|
87 | - 'employmentType' => ['Text'], |
|
88 | - 'employmentUnit' => ['Organization'], |
|
89 | - 'estimatedSalary' => ['MonetaryAmount', 'Number', 'MonetaryAmountDistribution'], |
|
90 | - 'experienceInPlaceOfEducation' => ['Boolean'], |
|
91 | - 'experienceRequirements' => ['OccupationalExperienceRequirements', 'Text'], |
|
92 | - 'hiringOrganization' => ['Organization', 'Person'], |
|
93 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
94 | - 'image' => ['URL', 'ImageObject'], |
|
95 | - 'incentiveCompensation' => ['Text'], |
|
96 | - 'incentives' => ['Text'], |
|
97 | - 'industry' => ['DefinedTerm', 'Text'], |
|
98 | - 'jobBenefits' => ['Text'], |
|
99 | - 'jobImmediateStart' => ['Boolean'], |
|
100 | - 'jobLocation' => ['Place'], |
|
101 | - 'jobLocationType' => ['Text'], |
|
102 | - 'jobStartDate' => ['Text', 'Date'], |
|
103 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
104 | - 'name' => ['Text'], |
|
105 | - 'occupationalCategory' => ['Text', 'CategoryCode'], |
|
106 | - 'physicalRequirement' => ['DefinedTerm', 'Text', 'URL'], |
|
107 | - 'potentialAction' => ['Action'], |
|
108 | - 'qualifications' => ['EducationalOccupationalCredential', 'Text'], |
|
109 | - 'relevantOccupation' => ['Occupation'], |
|
110 | - 'responsibilities' => ['Text'], |
|
111 | - 'salaryCurrency' => ['Text'], |
|
112 | - 'sameAs' => ['URL'], |
|
113 | - 'securityClearanceRequirement' => ['Text', 'URL'], |
|
114 | - 'sensoryRequirement' => ['URL', 'DefinedTerm', 'Text'], |
|
115 | - 'skills' => ['Text', 'DefinedTerm'], |
|
116 | - 'specialCommitments' => ['Text'], |
|
117 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
118 | - 'title' => ['Text'], |
|
119 | - 'totalJobOpenings' => ['Integer'], |
|
120 | - 'url' => ['URL'], |
|
121 | - 'validThrough' => ['Date', 'DateTime'], |
|
122 | - 'workHours' => ['Text'] |
|
123 | - ]; |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @inheritdoc |
|
129 | - */ |
|
130 | - public function getSchemaPropertyDescriptions(): array |
|
131 | - { |
|
132 | - return [ |
|
133 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
134 | - 'alternateName' => 'An alias for the item.', |
|
135 | - 'applicantLocationRequirements' => 'The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements.', |
|
136 | - 'applicationContact' => 'Contact details for further information relevant to this job posting.', |
|
137 | - 'baseSalary' => 'The base salary of the job or of an employee in an EmployeeRole.', |
|
138 | - 'benefits' => 'Description of benefits associated with the job.', |
|
139 | - 'datePosted' => 'Publication date of an online listing.', |
|
140 | - 'description' => 'A description of the item.', |
|
141 | - 'directApply' => 'Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied.', |
|
142 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
143 | - 'educationRequirements' => 'Educational background needed for the position or Occupation.', |
|
144 | - 'eligibilityToWorkRequirement' => 'The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.', |
|
145 | - 'employerOverview' => 'A description of the employer, career opportunities and work environment for this position.', |
|
146 | - 'employmentType' => 'Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).', |
|
147 | - 'employmentUnit' => 'Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.', |
|
148 | - 'estimatedSalary' => 'An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.', |
|
149 | - 'experienceInPlaceOfEducation' => 'Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient.', |
|
150 | - 'experienceRequirements' => 'Description of skills and experience needed for the position or Occupation.', |
|
151 | - 'hiringOrganization' => 'Organization or Person offering the job position.', |
|
152 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
153 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
154 | - 'incentiveCompensation' => 'Description of bonus and commission compensation aspects of the job.', |
|
155 | - 'incentives' => 'Description of bonus and commission compensation aspects of the job.', |
|
156 | - 'industry' => 'The industry associated with the job position.', |
|
157 | - 'jobBenefits' => 'Description of benefits associated with the job.', |
|
158 | - 'jobImmediateStart' => 'An indicator as to whether a position is available for an immediate start.', |
|
159 | - 'jobLocation' => 'A (typically single) geographic location associated with the job position.', |
|
160 | - 'jobLocationType' => 'A description of the job location (e.g. TELECOMMUTE for telecommute jobs).', |
|
161 | - 'jobStartDate' => 'The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible.', |
|
162 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
163 | - 'name' => 'The name of the item.', |
|
164 | - 'occupationalCategory' => 'A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided. Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.', |
|
165 | - 'physicalRequirement' => 'A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.', |
|
166 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
167 | - 'qualifications' => 'Specific qualifications required for this role or Occupation.', |
|
168 | - 'relevantOccupation' => 'The Occupation for the JobPosting.', |
|
169 | - 'responsibilities' => 'Responsibilities associated with this role or Occupation.', |
|
170 | - 'salaryCurrency' => 'The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee.', |
|
171 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
172 | - 'securityClearanceRequirement' => 'A description of any security clearance requirements of the job.', |
|
173 | - 'sensoryRequirement' => 'A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.', |
|
174 | - 'skills' => 'A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.', |
|
175 | - 'specialCommitments' => 'Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.', |
|
176 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
177 | - 'title' => 'The title of the job.', |
|
178 | - 'totalJobOpenings' => 'The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known.', |
|
179 | - 'url' => 'URL of the item.', |
|
180 | - 'validThrough' => 'The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.', |
|
181 | - 'workHours' => 'The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).' |
|
182 | - ]; |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * @inheritdoc |
|
188 | - */ |
|
189 | - public function getGoogleRequiredSchema(): array |
|
190 | - { |
|
191 | - return ['description', 'name']; |
|
192 | - } |
|
193 | - |
|
194 | - |
|
195 | - /** |
|
196 | - * @inheritdoc |
|
197 | - */ |
|
198 | - public function getGoogleRecommendedSchema(): array |
|
199 | - { |
|
200 | - return ['image', 'url']; |
|
201 | - } |
|
202 | - |
|
203 | - |
|
204 | - /** |
|
205 | - * @inheritdoc |
|
206 | - */ |
|
207 | - public function defineRules(): array |
|
208 | - { |
|
209 | - $rules = parent::defineRules(); |
|
210 | - $rules = array_merge($rules, [ |
|
211 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
212 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
213 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
214 | - ]); |
|
215 | - |
|
216 | - return $rules; |
|
217 | - } |
|
26 | + use JobPostingTrait; |
|
27 | + use IntangibleTrait; |
|
28 | + use ThingTrait; |
|
29 | + |
|
30 | + /** |
|
31 | + * The Schema.org Type Name |
|
32 | + * |
|
33 | + * @var string |
|
34 | + */ |
|
35 | + public static $schemaTypeName = 'JobPosting'; |
|
36 | + |
|
37 | + /** |
|
38 | + * The Schema.org Type Scope |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public static $schemaTypeScope = 'https://schema.org/JobPosting'; |
|
43 | + |
|
44 | + /** |
|
45 | + * The Schema.org Type Extends |
|
46 | + * |
|
47 | + * @var string |
|
48 | + */ |
|
49 | + public static $schemaTypeExtends = 'Intangible'; |
|
50 | + |
|
51 | + /** |
|
52 | + * The Schema.org Type Description |
|
53 | + * |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public static $schemaTypeDescription = 'A listing that describes a job opening in a certain organization.'; |
|
57 | + |
|
58 | + |
|
59 | + /** |
|
60 | + * @inheritdoc |
|
61 | + */ |
|
62 | + public function getSchemaPropertyNames(): array |
|
63 | + { |
|
64 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + /** |
|
69 | + * @inheritdoc |
|
70 | + */ |
|
71 | + public function getSchemaPropertyExpectedTypes(): array |
|
72 | + { |
|
73 | + return [ |
|
74 | + 'additionalType' => ['URL'], |
|
75 | + 'alternateName' => ['Text'], |
|
76 | + 'applicantLocationRequirements' => ['AdministrativeArea'], |
|
77 | + 'applicationContact' => ['ContactPoint'], |
|
78 | + 'baseSalary' => ['MonetaryAmount', 'Number', 'PriceSpecification'], |
|
79 | + 'benefits' => ['Text'], |
|
80 | + 'datePosted' => ['DateTime', 'Date'], |
|
81 | + 'description' => ['Text'], |
|
82 | + 'directApply' => ['Boolean'], |
|
83 | + 'disambiguatingDescription' => ['Text'], |
|
84 | + 'educationRequirements' => ['EducationalOccupationalCredential', 'Text'], |
|
85 | + 'eligibilityToWorkRequirement' => ['Text'], |
|
86 | + 'employerOverview' => ['Text'], |
|
87 | + 'employmentType' => ['Text'], |
|
88 | + 'employmentUnit' => ['Organization'], |
|
89 | + 'estimatedSalary' => ['MonetaryAmount', 'Number', 'MonetaryAmountDistribution'], |
|
90 | + 'experienceInPlaceOfEducation' => ['Boolean'], |
|
91 | + 'experienceRequirements' => ['OccupationalExperienceRequirements', 'Text'], |
|
92 | + 'hiringOrganization' => ['Organization', 'Person'], |
|
93 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
94 | + 'image' => ['URL', 'ImageObject'], |
|
95 | + 'incentiveCompensation' => ['Text'], |
|
96 | + 'incentives' => ['Text'], |
|
97 | + 'industry' => ['DefinedTerm', 'Text'], |
|
98 | + 'jobBenefits' => ['Text'], |
|
99 | + 'jobImmediateStart' => ['Boolean'], |
|
100 | + 'jobLocation' => ['Place'], |
|
101 | + 'jobLocationType' => ['Text'], |
|
102 | + 'jobStartDate' => ['Text', 'Date'], |
|
103 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
104 | + 'name' => ['Text'], |
|
105 | + 'occupationalCategory' => ['Text', 'CategoryCode'], |
|
106 | + 'physicalRequirement' => ['DefinedTerm', 'Text', 'URL'], |
|
107 | + 'potentialAction' => ['Action'], |
|
108 | + 'qualifications' => ['EducationalOccupationalCredential', 'Text'], |
|
109 | + 'relevantOccupation' => ['Occupation'], |
|
110 | + 'responsibilities' => ['Text'], |
|
111 | + 'salaryCurrency' => ['Text'], |
|
112 | + 'sameAs' => ['URL'], |
|
113 | + 'securityClearanceRequirement' => ['Text', 'URL'], |
|
114 | + 'sensoryRequirement' => ['URL', 'DefinedTerm', 'Text'], |
|
115 | + 'skills' => ['Text', 'DefinedTerm'], |
|
116 | + 'specialCommitments' => ['Text'], |
|
117 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
118 | + 'title' => ['Text'], |
|
119 | + 'totalJobOpenings' => ['Integer'], |
|
120 | + 'url' => ['URL'], |
|
121 | + 'validThrough' => ['Date', 'DateTime'], |
|
122 | + 'workHours' => ['Text'] |
|
123 | + ]; |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @inheritdoc |
|
129 | + */ |
|
130 | + public function getSchemaPropertyDescriptions(): array |
|
131 | + { |
|
132 | + return [ |
|
133 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
134 | + 'alternateName' => 'An alias for the item.', |
|
135 | + 'applicantLocationRequirements' => 'The location(s) applicants can apply from. This is usually used for telecommuting jobs where the applicant does not need to be in a physical office. Note: This should not be used for citizenship or work visa requirements.', |
|
136 | + 'applicationContact' => 'Contact details for further information relevant to this job posting.', |
|
137 | + 'baseSalary' => 'The base salary of the job or of an employee in an EmployeeRole.', |
|
138 | + 'benefits' => 'Description of benefits associated with the job.', |
|
139 | + 'datePosted' => 'Publication date of an online listing.', |
|
140 | + 'description' => 'A description of the item.', |
|
141 | + 'directApply' => 'Indicates whether an [[url]] that is associated with a [[JobPosting]] enables direct application for the job, via the posting website. A job posting is considered to have directApply of [[True]] if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of [[False]] is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied.', |
|
142 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
143 | + 'educationRequirements' => 'Educational background needed for the position or Occupation.', |
|
144 | + 'eligibilityToWorkRequirement' => 'The legal requirements such as citizenship, visa and other documentation required for an applicant to this job.', |
|
145 | + 'employerOverview' => 'A description of the employer, career opportunities and work environment for this position.', |
|
146 | + 'employmentType' => 'Type of employment (e.g. full-time, part-time, contract, temporary, seasonal, internship).', |
|
147 | + 'employmentUnit' => 'Indicates the department, unit and/or facility where the employee reports and/or in which the job is to be performed.', |
|
148 | + 'estimatedSalary' => 'An estimated salary for a job posting or occupation, based on a variety of variables including, but not limited to industry, job title, and location. Estimated salaries are often computed by outside organizations rather than the hiring organization, who may not have committed to the estimated value.', |
|
149 | + 'experienceInPlaceOfEducation' => 'Indicates whether a [[JobPosting]] will accept experience (as indicated by [[OccupationalExperienceRequirements]]) in place of its formal educational qualifications (as indicated by [[educationRequirements]]). If true, indicates that satisfying one of these requirements is sufficient.', |
|
150 | + 'experienceRequirements' => 'Description of skills and experience needed for the position or Occupation.', |
|
151 | + 'hiringOrganization' => 'Organization or Person offering the job position.', |
|
152 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
153 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
154 | + 'incentiveCompensation' => 'Description of bonus and commission compensation aspects of the job.', |
|
155 | + 'incentives' => 'Description of bonus and commission compensation aspects of the job.', |
|
156 | + 'industry' => 'The industry associated with the job position.', |
|
157 | + 'jobBenefits' => 'Description of benefits associated with the job.', |
|
158 | + 'jobImmediateStart' => 'An indicator as to whether a position is available for an immediate start.', |
|
159 | + 'jobLocation' => 'A (typically single) geographic location associated with the job position.', |
|
160 | + 'jobLocationType' => 'A description of the job location (e.g. TELECOMMUTE for telecommute jobs).', |
|
161 | + 'jobStartDate' => 'The date on which a successful applicant for this job would be expected to start work. Choose a specific date in the future or use the jobImmediateStart property to indicate the position is to be filled as soon as possible.', |
|
162 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
163 | + 'name' => 'The name of the item.', |
|
164 | + 'occupationalCategory' => 'A category describing the job, preferably using a term from a taxonomy such as [BLS O*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided. Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.', |
|
165 | + 'physicalRequirement' => 'A description of the types of physical activity associated with the job. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.', |
|
166 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
167 | + 'qualifications' => 'Specific qualifications required for this role or Occupation.', |
|
168 | + 'relevantOccupation' => 'The Occupation for the JobPosting.', |
|
169 | + 'responsibilities' => 'Responsibilities associated with this role or Occupation.', |
|
170 | + 'salaryCurrency' => 'The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217)) used for the main salary information in this job posting or for this employee.', |
|
171 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
172 | + 'securityClearanceRequirement' => 'A description of any security clearance requirements of the job.', |
|
173 | + 'sensoryRequirement' => 'A description of any sensory requirements and levels necessary to function on the job, including hearing and vision. Defined terms such as those in O*net may be used, but note that there is no way to specify the level of ability as well as its nature when using a defined term.', |
|
174 | + 'skills' => 'A statement of knowledge, skill, ability, task or any other assertion expressing a competency that is desired or required to fulfill this role or to work in this occupation.', |
|
175 | + 'specialCommitments' => 'Any special commitments associated with this job posting. Valid entries include VeteranCommit, MilitarySpouseCommit, etc.', |
|
176 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
177 | + 'title' => 'The title of the job.', |
|
178 | + 'totalJobOpenings' => 'The number of positions open for this job posting. Use a positive integer. Do not use if the number of positions is unclear or not known.', |
|
179 | + 'url' => 'URL of the item.', |
|
180 | + 'validThrough' => 'The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.', |
|
181 | + 'workHours' => 'The typical working hours for this job (e.g. 1st shift, night shift, 8am-5pm).' |
|
182 | + ]; |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * @inheritdoc |
|
188 | + */ |
|
189 | + public function getGoogleRequiredSchema(): array |
|
190 | + { |
|
191 | + return ['description', 'name']; |
|
192 | + } |
|
193 | + |
|
194 | + |
|
195 | + /** |
|
196 | + * @inheritdoc |
|
197 | + */ |
|
198 | + public function getGoogleRecommendedSchema(): array |
|
199 | + { |
|
200 | + return ['image', 'url']; |
|
201 | + } |
|
202 | + |
|
203 | + |
|
204 | + /** |
|
205 | + * @inheritdoc |
|
206 | + */ |
|
207 | + public function defineRules(): array |
|
208 | + { |
|
209 | + $rules = parent::defineRules(); |
|
210 | + $rules = array_merge($rules, [ |
|
211 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
212 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
213 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
214 | + ]); |
|
215 | + |
|
216 | + return $rules; |
|
217 | + } |
|
218 | 218 | } |