@@ -23,255 +23,255 @@ |
||
23 | 23 | */ |
24 | 24 | class DanceGroup extends MetaJsonLd implements DanceGroupInterface, PerformingGroupInterface, OrganizationInterface, ThingInterface |
25 | 25 | { |
26 | - use DanceGroupTrait; |
|
27 | - use PerformingGroupTrait; |
|
28 | - use OrganizationTrait; |
|
29 | - use ThingTrait; |
|
26 | + use DanceGroupTrait; |
|
27 | + use PerformingGroupTrait; |
|
28 | + use OrganizationTrait; |
|
29 | + use ThingTrait; |
|
30 | 30 | |
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'DanceGroup'; |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'DanceGroup'; |
|
37 | 37 | |
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/DanceGroup'; |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/DanceGroup'; |
|
44 | 44 | |
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'PerformingGroup'; |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'PerformingGroup'; |
|
51 | 51 | |
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'A dance group—for example, the Alvin Ailey Dance Theater or Riverdance.'; |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'A dance group—for example, the Alvin Ailey Dance Theater or Riverdance.'; |
|
58 | 58 | |
59 | 59 | |
60 | - /** |
|
61 | - * @inheritdoc |
|
62 | - */ |
|
63 | - public function getSchemaPropertyNames(): array |
|
64 | - { |
|
65 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | - } |
|
60 | + /** |
|
61 | + * @inheritdoc |
|
62 | + */ |
|
63 | + public function getSchemaPropertyNames(): array |
|
64 | + { |
|
65 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | + } |
|
67 | 67 | |
68 | 68 | |
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyExpectedTypes(): array |
|
73 | - { |
|
74 | - return [ |
|
75 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'address' => ['Text', 'PostalAddress'], |
|
78 | - 'aggregateRating' => ['AggregateRating'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'alumni' => ['Person'], |
|
81 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
82 | - 'award' => ['Text'], |
|
83 | - 'awards' => ['Text'], |
|
84 | - 'brand' => ['Brand', 'Organization'], |
|
85 | - 'contactPoint' => ['ContactPoint'], |
|
86 | - 'contactPoints' => ['ContactPoint'], |
|
87 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
88 | - 'department' => ['Organization'], |
|
89 | - 'description' => ['Text'], |
|
90 | - 'disambiguatingDescription' => ['Text'], |
|
91 | - 'dissolutionDate' => ['Date'], |
|
92 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
93 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
94 | - 'duns' => ['Text'], |
|
95 | - 'email' => ['Text'], |
|
96 | - 'employee' => ['Person'], |
|
97 | - 'employees' => ['Person'], |
|
98 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
99 | - 'event' => ['Event'], |
|
100 | - 'events' => ['Event'], |
|
101 | - 'faxNumber' => ['Text'], |
|
102 | - 'founder' => ['Person'], |
|
103 | - 'founders' => ['Person'], |
|
104 | - 'foundingDate' => ['Date'], |
|
105 | - 'foundingLocation' => ['Place'], |
|
106 | - 'funder' => ['Organization', 'Person'], |
|
107 | - 'funding' => ['Grant'], |
|
108 | - 'globalLocationNumber' => ['Text'], |
|
109 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
110 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
111 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
112 | - 'hasPOS' => ['Place'], |
|
113 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
114 | - 'image' => ['URL', 'ImageObject'], |
|
115 | - 'interactionStatistic' => ['InteractionCounter'], |
|
116 | - 'isicV4' => ['Text'], |
|
117 | - 'iso6523Code' => ['Text'], |
|
118 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
119 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
120 | - 'knowsLanguage' => ['Text', 'Language'], |
|
121 | - 'legalName' => ['Text'], |
|
122 | - 'leiCode' => ['Text'], |
|
123 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
124 | - 'logo' => ['ImageObject', 'URL'], |
|
125 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
126 | - 'makesOffer' => ['Offer'], |
|
127 | - 'member' => ['Organization', 'Person'], |
|
128 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
129 | - 'members' => ['Organization', 'Person'], |
|
130 | - 'naics' => ['Text'], |
|
131 | - 'name' => ['Text'], |
|
132 | - 'nonprofitStatus' => ['NonprofitType'], |
|
133 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
134 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
135 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
136 | - 'parentOrganization' => ['Organization'], |
|
137 | - 'potentialAction' => ['Action'], |
|
138 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
139 | - 'review' => ['Review'], |
|
140 | - 'reviews' => ['Review'], |
|
141 | - 'sameAs' => ['URL'], |
|
142 | - 'seeks' => ['Demand'], |
|
143 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
144 | - 'slogan' => ['Text'], |
|
145 | - 'sponsor' => ['Organization', 'Person'], |
|
146 | - 'subOrganization' => ['Organization'], |
|
147 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
148 | - 'taxID' => ['Text'], |
|
149 | - 'telephone' => ['Text'], |
|
150 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
151 | - 'url' => ['URL'], |
|
152 | - 'vatID' => ['Text'] |
|
153 | - ]; |
|
154 | - } |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyExpectedTypes(): array |
|
73 | + { |
|
74 | + return [ |
|
75 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'address' => ['Text', 'PostalAddress'], |
|
78 | + 'aggregateRating' => ['AggregateRating'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'alumni' => ['Person'], |
|
81 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
82 | + 'award' => ['Text'], |
|
83 | + 'awards' => ['Text'], |
|
84 | + 'brand' => ['Brand', 'Organization'], |
|
85 | + 'contactPoint' => ['ContactPoint'], |
|
86 | + 'contactPoints' => ['ContactPoint'], |
|
87 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
88 | + 'department' => ['Organization'], |
|
89 | + 'description' => ['Text'], |
|
90 | + 'disambiguatingDescription' => ['Text'], |
|
91 | + 'dissolutionDate' => ['Date'], |
|
92 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
93 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
94 | + 'duns' => ['Text'], |
|
95 | + 'email' => ['Text'], |
|
96 | + 'employee' => ['Person'], |
|
97 | + 'employees' => ['Person'], |
|
98 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
99 | + 'event' => ['Event'], |
|
100 | + 'events' => ['Event'], |
|
101 | + 'faxNumber' => ['Text'], |
|
102 | + 'founder' => ['Person'], |
|
103 | + 'founders' => ['Person'], |
|
104 | + 'foundingDate' => ['Date'], |
|
105 | + 'foundingLocation' => ['Place'], |
|
106 | + 'funder' => ['Organization', 'Person'], |
|
107 | + 'funding' => ['Grant'], |
|
108 | + 'globalLocationNumber' => ['Text'], |
|
109 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
110 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
111 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
112 | + 'hasPOS' => ['Place'], |
|
113 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
114 | + 'image' => ['URL', 'ImageObject'], |
|
115 | + 'interactionStatistic' => ['InteractionCounter'], |
|
116 | + 'isicV4' => ['Text'], |
|
117 | + 'iso6523Code' => ['Text'], |
|
118 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
119 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
120 | + 'knowsLanguage' => ['Text', 'Language'], |
|
121 | + 'legalName' => ['Text'], |
|
122 | + 'leiCode' => ['Text'], |
|
123 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
124 | + 'logo' => ['ImageObject', 'URL'], |
|
125 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
126 | + 'makesOffer' => ['Offer'], |
|
127 | + 'member' => ['Organization', 'Person'], |
|
128 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
129 | + 'members' => ['Organization', 'Person'], |
|
130 | + 'naics' => ['Text'], |
|
131 | + 'name' => ['Text'], |
|
132 | + 'nonprofitStatus' => ['NonprofitType'], |
|
133 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
134 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
135 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
136 | + 'parentOrganization' => ['Organization'], |
|
137 | + 'potentialAction' => ['Action'], |
|
138 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
139 | + 'review' => ['Review'], |
|
140 | + 'reviews' => ['Review'], |
|
141 | + 'sameAs' => ['URL'], |
|
142 | + 'seeks' => ['Demand'], |
|
143 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
144 | + 'slogan' => ['Text'], |
|
145 | + 'sponsor' => ['Organization', 'Person'], |
|
146 | + 'subOrganization' => ['Organization'], |
|
147 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
148 | + 'taxID' => ['Text'], |
|
149 | + 'telephone' => ['Text'], |
|
150 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
151 | + 'url' => ['URL'], |
|
152 | + 'vatID' => ['Text'] |
|
153 | + ]; |
|
154 | + } |
|
155 | 155 | |
156 | 156 | |
157 | - /** |
|
158 | - * @inheritdoc |
|
159 | - */ |
|
160 | - public function getSchemaPropertyDescriptions(): array |
|
161 | - { |
|
162 | - return [ |
|
163 | - '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.', |
|
164 | - '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.', |
|
165 | - 'address' => 'Physical address of the item.', |
|
166 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
167 | - 'alternateName' => 'An alias for the item.', |
|
168 | - 'alumni' => 'Alumni of an organization.', |
|
169 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
170 | - 'award' => 'An award won by or for this item.', |
|
171 | - 'awards' => 'Awards won by or for this item.', |
|
172 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
173 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
174 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
175 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
176 | - '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.', |
|
177 | - 'description' => 'A description of the item.', |
|
178 | - '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.', |
|
179 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
180 | - '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.', |
|
181 | - '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.', |
|
182 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
183 | - 'email' => 'Email address.', |
|
184 | - 'employee' => 'Someone working for this organization.', |
|
185 | - 'employees' => 'People working for this organization.', |
|
186 | - '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.', |
|
187 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
188 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
189 | - 'faxNumber' => 'The fax number.', |
|
190 | - 'founder' => 'A person who founded this organization.', |
|
191 | - 'founders' => 'A person who founded this organization.', |
|
192 | - 'foundingDate' => 'The date that this organization was founded.', |
|
193 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
194 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
195 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
196 | - '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.', |
|
197 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
198 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
199 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
200 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
201 | - '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. ', |
|
202 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
203 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
204 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
205 | - '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. ', |
|
206 | - '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.', |
|
207 | - '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.', |
|
208 | - '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).', |
|
209 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
210 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
211 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
212 | - 'logo' => 'An associated logo.', |
|
213 | - '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.', |
|
214 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
215 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
216 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
217 | - 'members' => 'A member of this organization.', |
|
218 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
219 | - 'name' => 'The name of the item.', |
|
220 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
221 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
222 | - '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.', |
|
223 | - 'owns' => 'Products owned by the organization or person.', |
|
224 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
225 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
226 | - '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. ', |
|
227 | - 'review' => 'A review of the item.', |
|
228 | - 'reviews' => 'Review of the item.', |
|
229 | - '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.', |
|
230 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
231 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
232 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
233 | - '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.', |
|
234 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
235 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
236 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
237 | - 'telephone' => 'The telephone number.', |
|
238 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
239 | - 'url' => 'URL of the item.', |
|
240 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
241 | - ]; |
|
242 | - } |
|
157 | + /** |
|
158 | + * @inheritdoc |
|
159 | + */ |
|
160 | + public function getSchemaPropertyDescriptions(): array |
|
161 | + { |
|
162 | + return [ |
|
163 | + '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.', |
|
164 | + '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.', |
|
165 | + 'address' => 'Physical address of the item.', |
|
166 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
167 | + 'alternateName' => 'An alias for the item.', |
|
168 | + 'alumni' => 'Alumni of an organization.', |
|
169 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
170 | + 'award' => 'An award won by or for this item.', |
|
171 | + 'awards' => 'Awards won by or for this item.', |
|
172 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
173 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
174 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
175 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
176 | + '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.', |
|
177 | + 'description' => 'A description of the item.', |
|
178 | + '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.', |
|
179 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
180 | + '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.', |
|
181 | + '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.', |
|
182 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
183 | + 'email' => 'Email address.', |
|
184 | + 'employee' => 'Someone working for this organization.', |
|
185 | + 'employees' => 'People working for this organization.', |
|
186 | + '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.', |
|
187 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
188 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
189 | + 'faxNumber' => 'The fax number.', |
|
190 | + 'founder' => 'A person who founded this organization.', |
|
191 | + 'founders' => 'A person who founded this organization.', |
|
192 | + 'foundingDate' => 'The date that this organization was founded.', |
|
193 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
194 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
195 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
196 | + '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.', |
|
197 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
198 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
199 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
200 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
201 | + '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. ', |
|
202 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
203 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
204 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
205 | + '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. ', |
|
206 | + '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.', |
|
207 | + '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.', |
|
208 | + '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).', |
|
209 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
210 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
211 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
212 | + 'logo' => 'An associated logo.', |
|
213 | + '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.', |
|
214 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
215 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
216 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
217 | + 'members' => 'A member of this organization.', |
|
218 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
219 | + 'name' => 'The name of the item.', |
|
220 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
221 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
222 | + '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.', |
|
223 | + 'owns' => 'Products owned by the organization or person.', |
|
224 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
225 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
226 | + '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. ', |
|
227 | + 'review' => 'A review of the item.', |
|
228 | + 'reviews' => 'Review of the item.', |
|
229 | + '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.', |
|
230 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
231 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
232 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
233 | + '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.', |
|
234 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
235 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
236 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
237 | + 'telephone' => 'The telephone number.', |
|
238 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
239 | + 'url' => 'URL of the item.', |
|
240 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
241 | + ]; |
|
242 | + } |
|
243 | 243 | |
244 | 244 | |
245 | - /** |
|
246 | - * @inheritdoc |
|
247 | - */ |
|
248 | - public function getGoogleRequiredSchema(): array |
|
249 | - { |
|
250 | - return ['description', 'name']; |
|
251 | - } |
|
245 | + /** |
|
246 | + * @inheritdoc |
|
247 | + */ |
|
248 | + public function getGoogleRequiredSchema(): array |
|
249 | + { |
|
250 | + return ['description', 'name']; |
|
251 | + } |
|
252 | 252 | |
253 | 253 | |
254 | - /** |
|
255 | - * @inheritdoc |
|
256 | - */ |
|
257 | - public function getGoogleRecommendedSchema(): array |
|
258 | - { |
|
259 | - return ['image', 'url']; |
|
260 | - } |
|
254 | + /** |
|
255 | + * @inheritdoc |
|
256 | + */ |
|
257 | + public function getGoogleRecommendedSchema(): array |
|
258 | + { |
|
259 | + return ['image', 'url']; |
|
260 | + } |
|
261 | 261 | |
262 | 262 | |
263 | - /** |
|
264 | - * @inheritdoc |
|
265 | - */ |
|
266 | - public function defineRules(): array |
|
267 | - { |
|
268 | - $rules = parent::defineRules(); |
|
269 | - $rules = array_merge($rules, [ |
|
270 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
271 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
272 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
273 | - ]); |
|
263 | + /** |
|
264 | + * @inheritdoc |
|
265 | + */ |
|
266 | + public function defineRules(): array |
|
267 | + { |
|
268 | + $rules = parent::defineRules(); |
|
269 | + $rules = array_merge($rules, [ |
|
270 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
271 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
272 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
273 | + ]); |
|
274 | 274 | |
275 | - return $rules; |
|
276 | - } |
|
275 | + return $rules; |
|
276 | + } |
|
277 | 277 | } |
@@ -23,148 +23,148 @@ |
||
23 | 23 | */ |
24 | 24 | class ReportedDoseSchedule extends MetaJsonLd implements ReportedDoseScheduleInterface, DoseScheduleInterface, MedicalIntangibleInterface, MedicalEntityInterface, ThingInterface |
25 | 25 | { |
26 | - use ReportedDoseScheduleTrait; |
|
27 | - use DoseScheduleTrait; |
|
28 | - use MedicalIntangibleTrait; |
|
29 | - use MedicalEntityTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'ReportedDoseSchedule'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/ReportedDoseSchedule'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'DoseSchedule'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'A patient-reported or observed dosing schedule for a drug or supplement.'; |
|
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 | - 'code' => ['MedicalCode'], |
|
79 | - 'description' => ['Text'], |
|
80 | - 'disambiguatingDescription' => ['Text'], |
|
81 | - 'doseUnit' => ['Text'], |
|
82 | - 'doseValue' => ['Number', 'QualitativeValue'], |
|
83 | - 'frequency' => ['Text'], |
|
84 | - 'funding' => ['Grant'], |
|
85 | - 'guideline' => ['MedicalGuideline'], |
|
86 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | - 'image' => ['URL', 'ImageObject'], |
|
88 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
89 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
90 | - 'medicineSystem' => ['MedicineSystem'], |
|
91 | - 'name' => ['Text'], |
|
92 | - 'potentialAction' => ['Action'], |
|
93 | - 'recognizingAuthority' => ['Organization'], |
|
94 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
95 | - 'sameAs' => ['URL'], |
|
96 | - 'study' => ['MedicalStudy'], |
|
97 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
98 | - 'targetPopulation' => ['Text'], |
|
99 | - 'url' => ['URL'] |
|
100 | - ]; |
|
101 | - } |
|
102 | - |
|
103 | - |
|
104 | - /** |
|
105 | - * @inheritdoc |
|
106 | - */ |
|
107 | - public function getSchemaPropertyDescriptions(): array |
|
108 | - { |
|
109 | - return [ |
|
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 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
113 | - 'description' => 'A description of the item.', |
|
114 | - '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.', |
|
115 | - 'doseUnit' => 'The unit of the dose, e.g. \'mg\'.', |
|
116 | - 'doseValue' => 'The value of the dose, e.g. 500.', |
|
117 | - 'frequency' => 'How often the dose is taken, e.g. \'daily\'.', |
|
118 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
119 | - 'guideline' => 'A medical guideline related to this entity.', |
|
120 | - '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. ', |
|
121 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
122 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
123 | - '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.', |
|
124 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
125 | - 'name' => 'The name of the item.', |
|
126 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
127 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
128 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
129 | - '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.', |
|
130 | - 'study' => 'A medical study or trial related to this entity.', |
|
131 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
132 | - 'targetPopulation' => 'Characteristics of the population for which this is intended, or which typically uses it, e.g. \'adults\'.', |
|
133 | - 'url' => 'URL of the item.' |
|
134 | - ]; |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @inheritdoc |
|
140 | - */ |
|
141 | - public function getGoogleRequiredSchema(): array |
|
142 | - { |
|
143 | - return ['description', 'name']; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - /** |
|
148 | - * @inheritdoc |
|
149 | - */ |
|
150 | - public function getGoogleRecommendedSchema(): array |
|
151 | - { |
|
152 | - return ['image', 'url']; |
|
153 | - } |
|
154 | - |
|
155 | - |
|
156 | - /** |
|
157 | - * @inheritdoc |
|
158 | - */ |
|
159 | - public function defineRules(): array |
|
160 | - { |
|
161 | - $rules = parent::defineRules(); |
|
162 | - $rules = array_merge($rules, [ |
|
163 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
164 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
165 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
166 | - ]); |
|
167 | - |
|
168 | - return $rules; |
|
169 | - } |
|
26 | + use ReportedDoseScheduleTrait; |
|
27 | + use DoseScheduleTrait; |
|
28 | + use MedicalIntangibleTrait; |
|
29 | + use MedicalEntityTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'ReportedDoseSchedule'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/ReportedDoseSchedule'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'DoseSchedule'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'A patient-reported or observed dosing schedule for a drug or supplement.'; |
|
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 | + 'code' => ['MedicalCode'], |
|
79 | + 'description' => ['Text'], |
|
80 | + 'disambiguatingDescription' => ['Text'], |
|
81 | + 'doseUnit' => ['Text'], |
|
82 | + 'doseValue' => ['Number', 'QualitativeValue'], |
|
83 | + 'frequency' => ['Text'], |
|
84 | + 'funding' => ['Grant'], |
|
85 | + 'guideline' => ['MedicalGuideline'], |
|
86 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | + 'image' => ['URL', 'ImageObject'], |
|
88 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
89 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
90 | + 'medicineSystem' => ['MedicineSystem'], |
|
91 | + 'name' => ['Text'], |
|
92 | + 'potentialAction' => ['Action'], |
|
93 | + 'recognizingAuthority' => ['Organization'], |
|
94 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
95 | + 'sameAs' => ['URL'], |
|
96 | + 'study' => ['MedicalStudy'], |
|
97 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
98 | + 'targetPopulation' => ['Text'], |
|
99 | + 'url' => ['URL'] |
|
100 | + ]; |
|
101 | + } |
|
102 | + |
|
103 | + |
|
104 | + /** |
|
105 | + * @inheritdoc |
|
106 | + */ |
|
107 | + public function getSchemaPropertyDescriptions(): array |
|
108 | + { |
|
109 | + return [ |
|
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 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
113 | + 'description' => 'A description of the item.', |
|
114 | + '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.', |
|
115 | + 'doseUnit' => 'The unit of the dose, e.g. \'mg\'.', |
|
116 | + 'doseValue' => 'The value of the dose, e.g. 500.', |
|
117 | + 'frequency' => 'How often the dose is taken, e.g. \'daily\'.', |
|
118 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
119 | + 'guideline' => 'A medical guideline related to this entity.', |
|
120 | + '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. ', |
|
121 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
122 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
123 | + '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.', |
|
124 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
125 | + 'name' => 'The name of the item.', |
|
126 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
127 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
128 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
129 | + '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.', |
|
130 | + 'study' => 'A medical study or trial related to this entity.', |
|
131 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
132 | + 'targetPopulation' => 'Characteristics of the population for which this is intended, or which typically uses it, e.g. \'adults\'.', |
|
133 | + 'url' => 'URL of the item.' |
|
134 | + ]; |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @inheritdoc |
|
140 | + */ |
|
141 | + public function getGoogleRequiredSchema(): array |
|
142 | + { |
|
143 | + return ['description', 'name']; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + /** |
|
148 | + * @inheritdoc |
|
149 | + */ |
|
150 | + public function getGoogleRecommendedSchema(): array |
|
151 | + { |
|
152 | + return ['image', 'url']; |
|
153 | + } |
|
154 | + |
|
155 | + |
|
156 | + /** |
|
157 | + * @inheritdoc |
|
158 | + */ |
|
159 | + public function defineRules(): array |
|
160 | + { |
|
161 | + $rules = parent::defineRules(); |
|
162 | + $rules = array_merge($rules, [ |
|
163 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
164 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
165 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
166 | + ]); |
|
167 | + |
|
168 | + return $rules; |
|
169 | + } |
|
170 | 170 | } |
@@ -24,127 +24,127 @@ |
||
24 | 24 | */ |
25 | 25 | class EUEnergyEfficiencyCategoryB extends MetaJsonLd implements EUEnergyEfficiencyCategoryBInterface, EUEnergyEfficiencyEnumerationInterface, EnergyEfficiencyEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use EUEnergyEfficiencyCategoryBTrait; |
|
28 | - use EUEnergyEfficiencyEnumerationTrait; |
|
29 | - use EnergyEfficiencyEnumerationTrait; |
|
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 = 'EUEnergyEfficiencyCategoryB'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/EUEnergyEfficiencyCategoryB'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'EUEnergyEfficiencyEnumeration'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'Represents EU Energy Efficiency Class B as defined in EU energy labeling regulations.'; |
|
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 | - 'additionalType' => ['URL'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'description' => ['Text'], |
|
81 | - 'disambiguatingDescription' => ['Text'], |
|
82 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | - 'image' => ['URL', 'ImageObject'], |
|
84 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | - 'name' => ['Text'], |
|
86 | - 'potentialAction' => ['Action'], |
|
87 | - 'sameAs' => ['URL'], |
|
88 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
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 | - 'description' => 'A description of the item.', |
|
104 | - '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.', |
|
105 | - '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. ', |
|
106 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | - '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.', |
|
108 | - 'name' => 'The name of the item.', |
|
109 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | - '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.', |
|
111 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | - 'url' => 'URL of the item.' |
|
114 | - ]; |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - /** |
|
119 | - * @inheritdoc |
|
120 | - */ |
|
121 | - public function getGoogleRequiredSchema(): array |
|
122 | - { |
|
123 | - return ['description', 'name']; |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @inheritdoc |
|
129 | - */ |
|
130 | - public function getGoogleRecommendedSchema(): array |
|
131 | - { |
|
132 | - return ['image', 'url']; |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - /** |
|
137 | - * @inheritdoc |
|
138 | - */ |
|
139 | - public function defineRules(): array |
|
140 | - { |
|
141 | - $rules = parent::defineRules(); |
|
142 | - $rules = array_merge($rules, [ |
|
143 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | - ]); |
|
147 | - |
|
148 | - return $rules; |
|
149 | - } |
|
27 | + use EUEnergyEfficiencyCategoryBTrait; |
|
28 | + use EUEnergyEfficiencyEnumerationTrait; |
|
29 | + use EnergyEfficiencyEnumerationTrait; |
|
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 = 'EUEnergyEfficiencyCategoryB'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/EUEnergyEfficiencyCategoryB'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'EUEnergyEfficiencyEnumeration'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'Represents EU Energy Efficiency Class B as defined in EU energy labeling regulations.'; |
|
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 | + 'additionalType' => ['URL'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'description' => ['Text'], |
|
81 | + 'disambiguatingDescription' => ['Text'], |
|
82 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | + 'image' => ['URL', 'ImageObject'], |
|
84 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | + 'name' => ['Text'], |
|
86 | + 'potentialAction' => ['Action'], |
|
87 | + 'sameAs' => ['URL'], |
|
88 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
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 | + 'description' => 'A description of the item.', |
|
104 | + '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.', |
|
105 | + '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. ', |
|
106 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | + '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.', |
|
108 | + 'name' => 'The name of the item.', |
|
109 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | + '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.', |
|
111 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | + 'url' => 'URL of the item.' |
|
114 | + ]; |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + /** |
|
119 | + * @inheritdoc |
|
120 | + */ |
|
121 | + public function getGoogleRequiredSchema(): array |
|
122 | + { |
|
123 | + return ['description', 'name']; |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @inheritdoc |
|
129 | + */ |
|
130 | + public function getGoogleRecommendedSchema(): array |
|
131 | + { |
|
132 | + return ['image', 'url']; |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + /** |
|
137 | + * @inheritdoc |
|
138 | + */ |
|
139 | + public function defineRules(): array |
|
140 | + { |
|
141 | + $rules = parent::defineRules(); |
|
142 | + $rules = array_merge($rules, [ |
|
143 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | + ]); |
|
147 | + |
|
148 | + return $rules; |
|
149 | + } |
|
150 | 150 | } |
@@ -23,127 +23,127 @@ |
||
23 | 23 | */ |
24 | 24 | class OrderProcessing extends MetaJsonLd implements OrderProcessingInterface, OrderStatusInterface, StatusEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use OrderProcessingTrait; |
|
27 | - use OrderStatusTrait; |
|
28 | - use StatusEnumerationTrait; |
|
29 | - use EnumerationTrait; |
|
30 | - use IntangibleTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'OrderProcessing'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/OrderProcessing'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'OrderStatus'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'OrderStatus representing that an order is being processed.'; |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'additionalType' => ['URL'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'description' => ['Text'], |
|
80 | - 'disambiguatingDescription' => ['Text'], |
|
81 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
82 | - 'image' => ['URL', 'ImageObject'], |
|
83 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
84 | - 'name' => ['Text'], |
|
85 | - 'potentialAction' => ['Action'], |
|
86 | - 'sameAs' => ['URL'], |
|
87 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
88 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
89 | - 'url' => ['URL'] |
|
90 | - ]; |
|
91 | - } |
|
92 | - |
|
93 | - |
|
94 | - /** |
|
95 | - * @inheritdoc |
|
96 | - */ |
|
97 | - public function getSchemaPropertyDescriptions(): array |
|
98 | - { |
|
99 | - return [ |
|
100 | - '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.', |
|
101 | - 'alternateName' => 'An alias for the item.', |
|
102 | - 'description' => 'A description of the item.', |
|
103 | - '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.', |
|
104 | - '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. ', |
|
105 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
106 | - '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.', |
|
107 | - 'name' => 'The name of the item.', |
|
108 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
109 | - '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.', |
|
110 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
111 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
112 | - 'url' => 'URL of the item.' |
|
113 | - ]; |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - /** |
|
118 | - * @inheritdoc |
|
119 | - */ |
|
120 | - public function getGoogleRequiredSchema(): array |
|
121 | - { |
|
122 | - return ['description', 'name']; |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - /** |
|
127 | - * @inheritdoc |
|
128 | - */ |
|
129 | - public function getGoogleRecommendedSchema(): array |
|
130 | - { |
|
131 | - return ['image', 'url']; |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * @inheritdoc |
|
137 | - */ |
|
138 | - public function defineRules(): array |
|
139 | - { |
|
140 | - $rules = parent::defineRules(); |
|
141 | - $rules = array_merge($rules, [ |
|
142 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
143 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
144 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
145 | - ]); |
|
146 | - |
|
147 | - return $rules; |
|
148 | - } |
|
26 | + use OrderProcessingTrait; |
|
27 | + use OrderStatusTrait; |
|
28 | + use StatusEnumerationTrait; |
|
29 | + use EnumerationTrait; |
|
30 | + use IntangibleTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'OrderProcessing'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/OrderProcessing'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'OrderStatus'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'OrderStatus representing that an order is being processed.'; |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'additionalType' => ['URL'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'description' => ['Text'], |
|
80 | + 'disambiguatingDescription' => ['Text'], |
|
81 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
82 | + 'image' => ['URL', 'ImageObject'], |
|
83 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
84 | + 'name' => ['Text'], |
|
85 | + 'potentialAction' => ['Action'], |
|
86 | + 'sameAs' => ['URL'], |
|
87 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
88 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
89 | + 'url' => ['URL'] |
|
90 | + ]; |
|
91 | + } |
|
92 | + |
|
93 | + |
|
94 | + /** |
|
95 | + * @inheritdoc |
|
96 | + */ |
|
97 | + public function getSchemaPropertyDescriptions(): array |
|
98 | + { |
|
99 | + return [ |
|
100 | + '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.', |
|
101 | + 'alternateName' => 'An alias for the item.', |
|
102 | + 'description' => 'A description of the item.', |
|
103 | + '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.', |
|
104 | + '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. ', |
|
105 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
106 | + '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.', |
|
107 | + 'name' => 'The name of the item.', |
|
108 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
109 | + '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.', |
|
110 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
111 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
112 | + 'url' => 'URL of the item.' |
|
113 | + ]; |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + /** |
|
118 | + * @inheritdoc |
|
119 | + */ |
|
120 | + public function getGoogleRequiredSchema(): array |
|
121 | + { |
|
122 | + return ['description', 'name']; |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + /** |
|
127 | + * @inheritdoc |
|
128 | + */ |
|
129 | + public function getGoogleRecommendedSchema(): array |
|
130 | + { |
|
131 | + return ['image', 'url']; |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * @inheritdoc |
|
137 | + */ |
|
138 | + public function defineRules(): array |
|
139 | + { |
|
140 | + $rules = parent::defineRules(); |
|
141 | + $rules = array_merge($rules, [ |
|
142 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
143 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
144 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
145 | + ]); |
|
146 | + |
|
147 | + return $rules; |
|
148 | + } |
|
149 | 149 | } |
@@ -25,153 +25,153 @@ |
||
25 | 25 | */ |
26 | 26 | class BorrowAction extends MetaJsonLd implements BorrowActionInterface, TransferActionInterface, ActionInterface, ThingInterface |
27 | 27 | { |
28 | - use BorrowActionTrait; |
|
29 | - use TransferActionTrait; |
|
30 | - use ActionTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'BorrowAction'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/BorrowAction'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'TransferAction'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'The act of obtaining an object under an agreement to return it at a later date. Reciprocal of LendAction.\n\nRelated actions:\n\n* [[LendAction]]: Reciprocal of BorrowAction.'; |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'actionStatus' => ['ActionStatusType'], |
|
78 | - 'additionalType' => ['URL'], |
|
79 | - 'agent' => ['Organization', 'Person'], |
|
80 | - 'alternateName' => ['Text'], |
|
81 | - 'description' => ['Text'], |
|
82 | - 'disambiguatingDescription' => ['Text'], |
|
83 | - 'endTime' => ['DateTime', 'Time'], |
|
84 | - 'error' => ['Thing'], |
|
85 | - 'fromLocation' => ['Place'], |
|
86 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | - 'image' => ['URL', 'ImageObject'], |
|
88 | - 'instrument' => ['Thing'], |
|
89 | - 'lender' => ['Organization', 'Person'], |
|
90 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
91 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
92 | - 'name' => ['Text'], |
|
93 | - 'object' => ['Thing'], |
|
94 | - 'participant' => ['Organization', 'Person'], |
|
95 | - 'potentialAction' => ['Action'], |
|
96 | - 'provider' => ['Organization', 'Person'], |
|
97 | - 'result' => ['Thing'], |
|
98 | - 'sameAs' => ['URL'], |
|
99 | - 'startTime' => ['Time', 'DateTime'], |
|
100 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
101 | - 'target' => ['URL', 'EntryPoint'], |
|
102 | - 'toLocation' => ['Place'], |
|
103 | - 'url' => ['URL'] |
|
104 | - ]; |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - /** |
|
109 | - * @inheritdoc |
|
110 | - */ |
|
111 | - public function getSchemaPropertyDescriptions(): array |
|
112 | - { |
|
113 | - return [ |
|
114 | - 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
115 | - '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.', |
|
116 | - 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
117 | - 'alternateName' => 'An alias for the item.', |
|
118 | - 'description' => 'A description of the item.', |
|
119 | - '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.', |
|
120 | - 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
121 | - 'error' => 'For failed actions, more information on the cause of the failure.', |
|
122 | - 'fromLocation' => 'A sub property of location. The original location of the object or the agent before the action.', |
|
123 | - '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. ', |
|
124 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
125 | - 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
126 | - 'lender' => 'A sub property of participant. The person that lends the object being borrowed.', |
|
127 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
128 | - '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.', |
|
129 | - 'name' => 'The name of the item.', |
|
130 | - 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
131 | - 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
132 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
134 | - 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
135 | - '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.', |
|
136 | - 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
137 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
138 | - 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
139 | - 'toLocation' => 'A sub property of location. The final location of the object or the agent after the action.', |
|
140 | - 'url' => 'URL of the item.' |
|
141 | - ]; |
|
142 | - } |
|
143 | - |
|
144 | - |
|
145 | - /** |
|
146 | - * @inheritdoc |
|
147 | - */ |
|
148 | - public function getGoogleRequiredSchema(): array |
|
149 | - { |
|
150 | - return ['description', 'name']; |
|
151 | - } |
|
152 | - |
|
153 | - |
|
154 | - /** |
|
155 | - * @inheritdoc |
|
156 | - */ |
|
157 | - public function getGoogleRecommendedSchema(): array |
|
158 | - { |
|
159 | - return ['image', 'url']; |
|
160 | - } |
|
161 | - |
|
162 | - |
|
163 | - /** |
|
164 | - * @inheritdoc |
|
165 | - */ |
|
166 | - public function defineRules(): array |
|
167 | - { |
|
168 | - $rules = parent::defineRules(); |
|
169 | - $rules = array_merge($rules, [ |
|
170 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
171 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
172 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
173 | - ]); |
|
174 | - |
|
175 | - return $rules; |
|
176 | - } |
|
28 | + use BorrowActionTrait; |
|
29 | + use TransferActionTrait; |
|
30 | + use ActionTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'BorrowAction'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/BorrowAction'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'TransferAction'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'The act of obtaining an object under an agreement to return it at a later date. Reciprocal of LendAction.\n\nRelated actions:\n\n* [[LendAction]]: Reciprocal of BorrowAction.'; |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'actionStatus' => ['ActionStatusType'], |
|
78 | + 'additionalType' => ['URL'], |
|
79 | + 'agent' => ['Organization', 'Person'], |
|
80 | + 'alternateName' => ['Text'], |
|
81 | + 'description' => ['Text'], |
|
82 | + 'disambiguatingDescription' => ['Text'], |
|
83 | + 'endTime' => ['DateTime', 'Time'], |
|
84 | + 'error' => ['Thing'], |
|
85 | + 'fromLocation' => ['Place'], |
|
86 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
87 | + 'image' => ['URL', 'ImageObject'], |
|
88 | + 'instrument' => ['Thing'], |
|
89 | + 'lender' => ['Organization', 'Person'], |
|
90 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
91 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
92 | + 'name' => ['Text'], |
|
93 | + 'object' => ['Thing'], |
|
94 | + 'participant' => ['Organization', 'Person'], |
|
95 | + 'potentialAction' => ['Action'], |
|
96 | + 'provider' => ['Organization', 'Person'], |
|
97 | + 'result' => ['Thing'], |
|
98 | + 'sameAs' => ['URL'], |
|
99 | + 'startTime' => ['Time', 'DateTime'], |
|
100 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
101 | + 'target' => ['URL', 'EntryPoint'], |
|
102 | + 'toLocation' => ['Place'], |
|
103 | + 'url' => ['URL'] |
|
104 | + ]; |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + /** |
|
109 | + * @inheritdoc |
|
110 | + */ |
|
111 | + public function getSchemaPropertyDescriptions(): array |
|
112 | + { |
|
113 | + return [ |
|
114 | + 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
115 | + '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.', |
|
116 | + 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
117 | + 'alternateName' => 'An alias for the item.', |
|
118 | + 'description' => 'A description of the item.', |
|
119 | + '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.', |
|
120 | + 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
121 | + 'error' => 'For failed actions, more information on the cause of the failure.', |
|
122 | + 'fromLocation' => 'A sub property of location. The original location of the object or the agent before the action.', |
|
123 | + '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. ', |
|
124 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
125 | + 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
126 | + 'lender' => 'A sub property of participant. The person that lends the object being borrowed.', |
|
127 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
128 | + '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.', |
|
129 | + 'name' => 'The name of the item.', |
|
130 | + 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
131 | + 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
132 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
134 | + 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
135 | + '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.', |
|
136 | + 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
137 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
138 | + 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
139 | + 'toLocation' => 'A sub property of location. The final location of the object or the agent after the action.', |
|
140 | + 'url' => 'URL of the item.' |
|
141 | + ]; |
|
142 | + } |
|
143 | + |
|
144 | + |
|
145 | + /** |
|
146 | + * @inheritdoc |
|
147 | + */ |
|
148 | + public function getGoogleRequiredSchema(): array |
|
149 | + { |
|
150 | + return ['description', 'name']; |
|
151 | + } |
|
152 | + |
|
153 | + |
|
154 | + /** |
|
155 | + * @inheritdoc |
|
156 | + */ |
|
157 | + public function getGoogleRecommendedSchema(): array |
|
158 | + { |
|
159 | + return ['image', 'url']; |
|
160 | + } |
|
161 | + |
|
162 | + |
|
163 | + /** |
|
164 | + * @inheritdoc |
|
165 | + */ |
|
166 | + public function defineRules(): array |
|
167 | + { |
|
168 | + $rules = parent::defineRules(); |
|
169 | + $rules = array_merge($rules, [ |
|
170 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
171 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
172 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
173 | + ]); |
|
174 | + |
|
175 | + return $rules; |
|
176 | + } |
|
177 | 177 | } |
@@ -23,341 +23,341 @@ |
||
23 | 23 | */ |
24 | 24 | class Restaurant extends MetaJsonLd implements RestaurantInterface, FoodEstablishmentInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface |
25 | 25 | { |
26 | - use RestaurantTrait; |
|
27 | - use FoodEstablishmentTrait; |
|
28 | - use LocalBusinessTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
26 | + use RestaurantTrait; |
|
27 | + use FoodEstablishmentTrait; |
|
28 | + use LocalBusinessTrait; |
|
29 | + use PlaceTrait; |
|
30 | + use ThingTrait; |
|
31 | + use OrganizationTrait; |
|
32 | 32 | |
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'Restaurant'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'Restaurant'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/Restaurant'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/Restaurant'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'FoodEstablishment'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'FoodEstablishment'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'A restaurant.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'A restaurant.'; |
|
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 | - 'acceptsReservations' => ['URL', 'Text', 'Boolean'], |
|
78 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
79 | - 'additionalProperty' => ['PropertyValue'], |
|
80 | - 'additionalType' => ['URL'], |
|
81 | - 'address' => ['Text', 'PostalAddress'], |
|
82 | - 'aggregateRating' => ['AggregateRating'], |
|
83 | - 'alternateName' => ['Text'], |
|
84 | - 'alumni' => ['Person'], |
|
85 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
86 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
87 | - 'award' => ['Text'], |
|
88 | - 'awards' => ['Text'], |
|
89 | - 'branchCode' => ['Text'], |
|
90 | - 'branchOf' => ['Organization'], |
|
91 | - 'brand' => ['Brand', 'Organization'], |
|
92 | - 'contactPoint' => ['ContactPoint'], |
|
93 | - 'contactPoints' => ['ContactPoint'], |
|
94 | - 'containedIn' => ['Place'], |
|
95 | - 'containedInPlace' => ['Place'], |
|
96 | - 'containsPlace' => ['Place'], |
|
97 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
98 | - 'currenciesAccepted' => ['Text'], |
|
99 | - 'department' => ['Organization'], |
|
100 | - 'description' => ['Text'], |
|
101 | - 'disambiguatingDescription' => ['Text'], |
|
102 | - 'dissolutionDate' => ['Date'], |
|
103 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
104 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
105 | - 'duns' => ['Text'], |
|
106 | - 'email' => ['Text'], |
|
107 | - 'employee' => ['Person'], |
|
108 | - 'employees' => ['Person'], |
|
109 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
110 | - 'event' => ['Event'], |
|
111 | - 'events' => ['Event'], |
|
112 | - 'faxNumber' => ['Text'], |
|
113 | - 'founder' => ['Person'], |
|
114 | - 'founders' => ['Person'], |
|
115 | - 'foundingDate' => ['Date'], |
|
116 | - 'foundingLocation' => ['Place'], |
|
117 | - 'funder' => ['Organization', 'Person'], |
|
118 | - 'funding' => ['Grant'], |
|
119 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
120 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
121 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
122 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
123 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
124 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
125 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
126 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
127 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
128 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
129 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
130 | - 'globalLocationNumber' => ['Text'], |
|
131 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
132 | - 'hasDriveThroughService' => ['Boolean'], |
|
133 | - 'hasMap' => ['URL', 'Map'], |
|
134 | - 'hasMenu' => ['URL', 'Text', 'Menu'], |
|
135 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
136 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
137 | - 'hasPOS' => ['Place'], |
|
138 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
139 | - 'image' => ['URL', 'ImageObject'], |
|
140 | - 'interactionStatistic' => ['InteractionCounter'], |
|
141 | - 'isAccessibleForFree' => ['Boolean'], |
|
142 | - 'isicV4' => ['Text'], |
|
143 | - 'iso6523Code' => ['Text'], |
|
144 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
145 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
146 | - 'knowsLanguage' => ['Text', 'Language'], |
|
147 | - 'latitude' => ['Number', 'Text'], |
|
148 | - 'legalName' => ['Text'], |
|
149 | - 'leiCode' => ['Text'], |
|
150 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
151 | - 'logo' => ['ImageObject', 'URL'], |
|
152 | - 'longitude' => ['Text', 'Number'], |
|
153 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
154 | - 'makesOffer' => ['Offer'], |
|
155 | - 'map' => ['URL'], |
|
156 | - 'maps' => ['URL'], |
|
157 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
158 | - 'member' => ['Organization', 'Person'], |
|
159 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
160 | - 'members' => ['Organization', 'Person'], |
|
161 | - 'menu' => ['Menu', 'Text', 'URL'], |
|
162 | - 'naics' => ['Text'], |
|
163 | - 'name' => ['Text'], |
|
164 | - 'nonprofitStatus' => ['NonprofitType'], |
|
165 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
166 | - 'openingHours' => ['Text'], |
|
167 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
168 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
169 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
170 | - 'parentOrganization' => ['Organization'], |
|
171 | - 'paymentAccepted' => ['Text'], |
|
172 | - 'photo' => ['Photograph', 'ImageObject'], |
|
173 | - 'photos' => ['ImageObject', 'Photograph'], |
|
174 | - 'potentialAction' => ['Action'], |
|
175 | - 'priceRange' => ['Text'], |
|
176 | - 'publicAccess' => ['Boolean'], |
|
177 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
178 | - 'review' => ['Review'], |
|
179 | - 'reviews' => ['Review'], |
|
180 | - 'sameAs' => ['URL'], |
|
181 | - 'seeks' => ['Demand'], |
|
182 | - 'servesCuisine' => ['Text'], |
|
183 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
184 | - 'slogan' => ['Text'], |
|
185 | - 'smokingAllowed' => ['Boolean'], |
|
186 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
187 | - 'sponsor' => ['Organization', 'Person'], |
|
188 | - 'starRating' => ['Rating'], |
|
189 | - 'subOrganization' => ['Organization'], |
|
190 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
191 | - 'taxID' => ['Text'], |
|
192 | - 'telephone' => ['Text'], |
|
193 | - 'tourBookingPage' => ['URL'], |
|
194 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
195 | - 'url' => ['URL'], |
|
196 | - 'vatID' => ['Text'] |
|
197 | - ]; |
|
198 | - } |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'acceptsReservations' => ['URL', 'Text', 'Boolean'], |
|
78 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
79 | + 'additionalProperty' => ['PropertyValue'], |
|
80 | + 'additionalType' => ['URL'], |
|
81 | + 'address' => ['Text', 'PostalAddress'], |
|
82 | + 'aggregateRating' => ['AggregateRating'], |
|
83 | + 'alternateName' => ['Text'], |
|
84 | + 'alumni' => ['Person'], |
|
85 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
86 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
87 | + 'award' => ['Text'], |
|
88 | + 'awards' => ['Text'], |
|
89 | + 'branchCode' => ['Text'], |
|
90 | + 'branchOf' => ['Organization'], |
|
91 | + 'brand' => ['Brand', 'Organization'], |
|
92 | + 'contactPoint' => ['ContactPoint'], |
|
93 | + 'contactPoints' => ['ContactPoint'], |
|
94 | + 'containedIn' => ['Place'], |
|
95 | + 'containedInPlace' => ['Place'], |
|
96 | + 'containsPlace' => ['Place'], |
|
97 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
98 | + 'currenciesAccepted' => ['Text'], |
|
99 | + 'department' => ['Organization'], |
|
100 | + 'description' => ['Text'], |
|
101 | + 'disambiguatingDescription' => ['Text'], |
|
102 | + 'dissolutionDate' => ['Date'], |
|
103 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
104 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
105 | + 'duns' => ['Text'], |
|
106 | + 'email' => ['Text'], |
|
107 | + 'employee' => ['Person'], |
|
108 | + 'employees' => ['Person'], |
|
109 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
110 | + 'event' => ['Event'], |
|
111 | + 'events' => ['Event'], |
|
112 | + 'faxNumber' => ['Text'], |
|
113 | + 'founder' => ['Person'], |
|
114 | + 'founders' => ['Person'], |
|
115 | + 'foundingDate' => ['Date'], |
|
116 | + 'foundingLocation' => ['Place'], |
|
117 | + 'funder' => ['Organization', 'Person'], |
|
118 | + 'funding' => ['Grant'], |
|
119 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
120 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
121 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
122 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
123 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
124 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
125 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
126 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
127 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
128 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
129 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
130 | + 'globalLocationNumber' => ['Text'], |
|
131 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
132 | + 'hasDriveThroughService' => ['Boolean'], |
|
133 | + 'hasMap' => ['URL', 'Map'], |
|
134 | + 'hasMenu' => ['URL', 'Text', 'Menu'], |
|
135 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
136 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
137 | + 'hasPOS' => ['Place'], |
|
138 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
139 | + 'image' => ['URL', 'ImageObject'], |
|
140 | + 'interactionStatistic' => ['InteractionCounter'], |
|
141 | + 'isAccessibleForFree' => ['Boolean'], |
|
142 | + 'isicV4' => ['Text'], |
|
143 | + 'iso6523Code' => ['Text'], |
|
144 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
145 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
146 | + 'knowsLanguage' => ['Text', 'Language'], |
|
147 | + 'latitude' => ['Number', 'Text'], |
|
148 | + 'legalName' => ['Text'], |
|
149 | + 'leiCode' => ['Text'], |
|
150 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
151 | + 'logo' => ['ImageObject', 'URL'], |
|
152 | + 'longitude' => ['Text', 'Number'], |
|
153 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
154 | + 'makesOffer' => ['Offer'], |
|
155 | + 'map' => ['URL'], |
|
156 | + 'maps' => ['URL'], |
|
157 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
158 | + 'member' => ['Organization', 'Person'], |
|
159 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
160 | + 'members' => ['Organization', 'Person'], |
|
161 | + 'menu' => ['Menu', 'Text', 'URL'], |
|
162 | + 'naics' => ['Text'], |
|
163 | + 'name' => ['Text'], |
|
164 | + 'nonprofitStatus' => ['NonprofitType'], |
|
165 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
166 | + 'openingHours' => ['Text'], |
|
167 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
168 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
169 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
170 | + 'parentOrganization' => ['Organization'], |
|
171 | + 'paymentAccepted' => ['Text'], |
|
172 | + 'photo' => ['Photograph', 'ImageObject'], |
|
173 | + 'photos' => ['ImageObject', 'Photograph'], |
|
174 | + 'potentialAction' => ['Action'], |
|
175 | + 'priceRange' => ['Text'], |
|
176 | + 'publicAccess' => ['Boolean'], |
|
177 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
178 | + 'review' => ['Review'], |
|
179 | + 'reviews' => ['Review'], |
|
180 | + 'sameAs' => ['URL'], |
|
181 | + 'seeks' => ['Demand'], |
|
182 | + 'servesCuisine' => ['Text'], |
|
183 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
184 | + 'slogan' => ['Text'], |
|
185 | + 'smokingAllowed' => ['Boolean'], |
|
186 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
187 | + 'sponsor' => ['Organization', 'Person'], |
|
188 | + 'starRating' => ['Rating'], |
|
189 | + 'subOrganization' => ['Organization'], |
|
190 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
191 | + 'taxID' => ['Text'], |
|
192 | + 'telephone' => ['Text'], |
|
193 | + 'tourBookingPage' => ['URL'], |
|
194 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
195 | + 'url' => ['URL'], |
|
196 | + 'vatID' => ['Text'] |
|
197 | + ]; |
|
198 | + } |
|
199 | 199 | |
200 | 200 | |
201 | - /** |
|
202 | - * @inheritdoc |
|
203 | - */ |
|
204 | - public function getSchemaPropertyDescriptions(): array |
|
205 | - { |
|
206 | - return [ |
|
207 | - 'acceptsReservations' => 'Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.', |
|
208 | - '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.', |
|
209 | - '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. ', |
|
210 | - '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.', |
|
211 | - 'address' => 'Physical address of the item.', |
|
212 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
213 | - 'alternateName' => 'An alias for the item.', |
|
214 | - 'alumni' => 'Alumni of an organization.', |
|
215 | - '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.', |
|
216 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
217 | - 'award' => 'An award won by or for this item.', |
|
218 | - 'awards' => 'Awards won by or for this item.', |
|
219 | - '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. ', |
|
220 | - 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
221 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
222 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
223 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
224 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
225 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
226 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
227 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
228 | - '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".', |
|
229 | - '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.', |
|
230 | - 'description' => 'A description of the item.', |
|
231 | - '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.', |
|
232 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
233 | - '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.', |
|
234 | - '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.', |
|
235 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
236 | - 'email' => 'Email address.', |
|
237 | - 'employee' => 'Someone working for this organization.', |
|
238 | - 'employees' => 'People working for this organization.', |
|
239 | - '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.', |
|
240 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
241 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
242 | - 'faxNumber' => 'The fax number.', |
|
243 | - 'founder' => 'A person who founded this organization.', |
|
244 | - 'founders' => 'A person who founded this organization.', |
|
245 | - 'foundingDate' => 'The date that this organization was founded.', |
|
246 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
247 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
248 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
249 | - 'geo' => 'The geo coordinates of the place.', |
|
250 | - '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).', |
|
251 | - '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).', |
|
252 | - '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).', |
|
253 | - '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).', |
|
254 | - '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).)', |
|
255 | - '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).', |
|
256 | - '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).', |
|
257 | - '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).', |
|
258 | - '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).)', |
|
259 | - '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).', |
|
260 | - '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.', |
|
261 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
262 | - '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.', |
|
263 | - 'hasMap' => 'A URL to a map of the place.', |
|
264 | - 'hasMenu' => 'Either the actual menu as a structured representation, as text, or a URL of the menu.', |
|
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 | - 'menu' => 'Either the actual menu as a structured representation, as text, or a URL of the menu.', |
|
292 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
293 | - 'name' => 'The name of the item.', |
|
294 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
295 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
296 | - '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>.', |
|
297 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
298 | - '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.', |
|
299 | - 'owns' => 'Products owned by the organization or person.', |
|
300 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
301 | - 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
302 | - 'photo' => 'A photograph of this place.', |
|
303 | - 'photos' => 'Photographs of this place.', |
|
304 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
305 | - 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
306 | - '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', |
|
307 | - '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. ', |
|
308 | - 'review' => 'A review of the item.', |
|
309 | - 'reviews' => 'Review of the item.', |
|
310 | - '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.', |
|
311 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
312 | - 'servesCuisine' => 'The cuisine of the restaurant.', |
|
313 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
314 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
315 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
316 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
317 | - '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.', |
|
318 | - 'starRating' => 'An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).', |
|
319 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
320 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
321 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
322 | - 'telephone' => 'The telephone number.', |
|
323 | - '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.', |
|
324 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
325 | - 'url' => 'URL of the item.', |
|
326 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
327 | - ]; |
|
328 | - } |
|
201 | + /** |
|
202 | + * @inheritdoc |
|
203 | + */ |
|
204 | + public function getSchemaPropertyDescriptions(): array |
|
205 | + { |
|
206 | + return [ |
|
207 | + 'acceptsReservations' => 'Indicates whether a FoodEstablishment accepts reservations. Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings ```Yes``` or ```No```.', |
|
208 | + '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.', |
|
209 | + '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. ', |
|
210 | + '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.', |
|
211 | + 'address' => 'Physical address of the item.', |
|
212 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
213 | + 'alternateName' => 'An alias for the item.', |
|
214 | + 'alumni' => 'Alumni of an organization.', |
|
215 | + '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.', |
|
216 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
217 | + 'award' => 'An award won by or for this item.', |
|
218 | + 'awards' => 'Awards won by or for this item.', |
|
219 | + '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. ', |
|
220 | + 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
221 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
222 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
223 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
224 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
225 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
226 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
227 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
228 | + '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".', |
|
229 | + '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.', |
|
230 | + 'description' => 'A description of the item.', |
|
231 | + '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.', |
|
232 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
233 | + '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.', |
|
234 | + '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.', |
|
235 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
236 | + 'email' => 'Email address.', |
|
237 | + 'employee' => 'Someone working for this organization.', |
|
238 | + 'employees' => 'People working for this organization.', |
|
239 | + '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.', |
|
240 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
241 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
242 | + 'faxNumber' => 'The fax number.', |
|
243 | + 'founder' => 'A person who founded this organization.', |
|
244 | + 'founders' => 'A person who founded this organization.', |
|
245 | + 'foundingDate' => 'The date that this organization was founded.', |
|
246 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
247 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
248 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
249 | + 'geo' => 'The geo coordinates of the place.', |
|
250 | + '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).', |
|
251 | + '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).', |
|
252 | + '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).', |
|
253 | + '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).', |
|
254 | + '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).)', |
|
255 | + '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).', |
|
256 | + '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).', |
|
257 | + '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).', |
|
258 | + '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).)', |
|
259 | + '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).', |
|
260 | + '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.', |
|
261 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
262 | + '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.', |
|
263 | + 'hasMap' => 'A URL to a map of the place.', |
|
264 | + 'hasMenu' => 'Either the actual menu as a structured representation, as text, or a URL of the menu.', |
|
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 | + 'menu' => 'Either the actual menu as a structured representation, as text, or a URL of the menu.', |
|
292 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
293 | + 'name' => 'The name of the item.', |
|
294 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
295 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
296 | + '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>.', |
|
297 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
298 | + '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.', |
|
299 | + 'owns' => 'Products owned by the organization or person.', |
|
300 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
301 | + 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
302 | + 'photo' => 'A photograph of this place.', |
|
303 | + 'photos' => 'Photographs of this place.', |
|
304 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
305 | + 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
306 | + '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', |
|
307 | + '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. ', |
|
308 | + 'review' => 'A review of the item.', |
|
309 | + 'reviews' => 'Review of the item.', |
|
310 | + '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.', |
|
311 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
312 | + 'servesCuisine' => 'The cuisine of the restaurant.', |
|
313 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
314 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
315 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
316 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
317 | + '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.', |
|
318 | + 'starRating' => 'An official rating for a lodging business or food establishment, e.g. from national associations or standards bodies. Use the author property to indicate the rating organization, e.g. as an Organization with name such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars).', |
|
319 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
320 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
321 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
322 | + 'telephone' => 'The telephone number.', |
|
323 | + '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.', |
|
324 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
325 | + 'url' => 'URL of the item.', |
|
326 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
327 | + ]; |
|
328 | + } |
|
329 | 329 | |
330 | 330 | |
331 | - /** |
|
332 | - * @inheritdoc |
|
333 | - */ |
|
334 | - public function getGoogleRequiredSchema(): array |
|
335 | - { |
|
336 | - return ['description', 'name']; |
|
337 | - } |
|
331 | + /** |
|
332 | + * @inheritdoc |
|
333 | + */ |
|
334 | + public function getGoogleRequiredSchema(): array |
|
335 | + { |
|
336 | + return ['description', 'name']; |
|
337 | + } |
|
338 | 338 | |
339 | 339 | |
340 | - /** |
|
341 | - * @inheritdoc |
|
342 | - */ |
|
343 | - public function getGoogleRecommendedSchema(): array |
|
344 | - { |
|
345 | - return ['image', 'url']; |
|
346 | - } |
|
340 | + /** |
|
341 | + * @inheritdoc |
|
342 | + */ |
|
343 | + public function getGoogleRecommendedSchema(): array |
|
344 | + { |
|
345 | + return ['image', 'url']; |
|
346 | + } |
|
347 | 347 | |
348 | 348 | |
349 | - /** |
|
350 | - * @inheritdoc |
|
351 | - */ |
|
352 | - public function defineRules(): array |
|
353 | - { |
|
354 | - $rules = parent::defineRules(); |
|
355 | - $rules = array_merge($rules, [ |
|
356 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
357 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
358 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
359 | - ]); |
|
349 | + /** |
|
350 | + * @inheritdoc |
|
351 | + */ |
|
352 | + public function defineRules(): array |
|
353 | + { |
|
354 | + $rules = parent::defineRules(); |
|
355 | + $rules = array_merge($rules, [ |
|
356 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
357 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
358 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
359 | + ]); |
|
360 | 360 | |
361 | - return $rules; |
|
362 | - } |
|
361 | + return $rules; |
|
362 | + } |
|
363 | 363 | } |
@@ -23,147 +23,147 @@ |
||
23 | 23 | */ |
24 | 24 | class TieAction extends MetaJsonLd implements TieActionInterface, AchieveActionInterface, ActionInterface, ThingInterface |
25 | 25 | { |
26 | - use TieActionTrait; |
|
27 | - use AchieveActionTrait; |
|
28 | - use ActionTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'TieAction'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/TieAction'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'AchieveAction'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'The act of reaching a draw in a competitive activity.'; |
|
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 | - 'actionStatus' => ['ActionStatusType'], |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'agent' => ['Organization', 'Person'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'description' => ['Text'], |
|
80 | - 'disambiguatingDescription' => ['Text'], |
|
81 | - 'endTime' => ['DateTime', 'Time'], |
|
82 | - 'error' => ['Thing'], |
|
83 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | - 'image' => ['URL', 'ImageObject'], |
|
85 | - 'instrument' => ['Thing'], |
|
86 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
87 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | - 'name' => ['Text'], |
|
89 | - 'object' => ['Thing'], |
|
90 | - 'participant' => ['Organization', 'Person'], |
|
91 | - 'potentialAction' => ['Action'], |
|
92 | - 'provider' => ['Organization', 'Person'], |
|
93 | - 'result' => ['Thing'], |
|
94 | - 'sameAs' => ['URL'], |
|
95 | - 'startTime' => ['Time', 'DateTime'], |
|
96 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | - 'target' => ['URL', 'EntryPoint'], |
|
98 | - 'url' => ['URL'] |
|
99 | - ]; |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * @inheritdoc |
|
105 | - */ |
|
106 | - public function getSchemaPropertyDescriptions(): array |
|
107 | - { |
|
108 | - return [ |
|
109 | - 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
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 | - 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
112 | - 'alternateName' => 'An alias for the item.', |
|
113 | - 'description' => 'A description of the item.', |
|
114 | - '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.', |
|
115 | - 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
116 | - 'error' => 'For failed actions, more information on the cause of the failure.', |
|
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 | - 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
120 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
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 | - 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
124 | - 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
125 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
126 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
127 | - 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
128 | - '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.', |
|
129 | - 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
130 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
131 | - 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
132 | - 'url' => 'URL of the item.' |
|
133 | - ]; |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - /** |
|
138 | - * @inheritdoc |
|
139 | - */ |
|
140 | - public function getGoogleRequiredSchema(): array |
|
141 | - { |
|
142 | - return ['description', 'name']; |
|
143 | - } |
|
144 | - |
|
145 | - |
|
146 | - /** |
|
147 | - * @inheritdoc |
|
148 | - */ |
|
149 | - public function getGoogleRecommendedSchema(): array |
|
150 | - { |
|
151 | - return ['image', 'url']; |
|
152 | - } |
|
153 | - |
|
154 | - |
|
155 | - /** |
|
156 | - * @inheritdoc |
|
157 | - */ |
|
158 | - public function defineRules(): array |
|
159 | - { |
|
160 | - $rules = parent::defineRules(); |
|
161 | - $rules = array_merge($rules, [ |
|
162 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
163 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
164 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
165 | - ]); |
|
166 | - |
|
167 | - return $rules; |
|
168 | - } |
|
26 | + use TieActionTrait; |
|
27 | + use AchieveActionTrait; |
|
28 | + use ActionTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'TieAction'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/TieAction'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'AchieveAction'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'The act of reaching a draw in a competitive activity.'; |
|
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 | + 'actionStatus' => ['ActionStatusType'], |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'agent' => ['Organization', 'Person'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'description' => ['Text'], |
|
80 | + 'disambiguatingDescription' => ['Text'], |
|
81 | + 'endTime' => ['DateTime', 'Time'], |
|
82 | + 'error' => ['Thing'], |
|
83 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | + 'image' => ['URL', 'ImageObject'], |
|
85 | + 'instrument' => ['Thing'], |
|
86 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
87 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | + 'name' => ['Text'], |
|
89 | + 'object' => ['Thing'], |
|
90 | + 'participant' => ['Organization', 'Person'], |
|
91 | + 'potentialAction' => ['Action'], |
|
92 | + 'provider' => ['Organization', 'Person'], |
|
93 | + 'result' => ['Thing'], |
|
94 | + 'sameAs' => ['URL'], |
|
95 | + 'startTime' => ['Time', 'DateTime'], |
|
96 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | + 'target' => ['URL', 'EntryPoint'], |
|
98 | + 'url' => ['URL'] |
|
99 | + ]; |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * @inheritdoc |
|
105 | + */ |
|
106 | + public function getSchemaPropertyDescriptions(): array |
|
107 | + { |
|
108 | + return [ |
|
109 | + 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
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 | + 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
112 | + 'alternateName' => 'An alias for the item.', |
|
113 | + 'description' => 'A description of the item.', |
|
114 | + '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.', |
|
115 | + 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
116 | + 'error' => 'For failed actions, more information on the cause of the failure.', |
|
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 | + 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
120 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
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 | + 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
124 | + 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
125 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
126 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
127 | + 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
128 | + '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.', |
|
129 | + 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
130 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
131 | + 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
132 | + 'url' => 'URL of the item.' |
|
133 | + ]; |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + /** |
|
138 | + * @inheritdoc |
|
139 | + */ |
|
140 | + public function getGoogleRequiredSchema(): array |
|
141 | + { |
|
142 | + return ['description', 'name']; |
|
143 | + } |
|
144 | + |
|
145 | + |
|
146 | + /** |
|
147 | + * @inheritdoc |
|
148 | + */ |
|
149 | + public function getGoogleRecommendedSchema(): array |
|
150 | + { |
|
151 | + return ['image', 'url']; |
|
152 | + } |
|
153 | + |
|
154 | + |
|
155 | + /** |
|
156 | + * @inheritdoc |
|
157 | + */ |
|
158 | + public function defineRules(): array |
|
159 | + { |
|
160 | + $rules = parent::defineRules(); |
|
161 | + $rules = array_merge($rules, [ |
|
162 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
163 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
164 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
165 | + ]); |
|
166 | + |
|
167 | + return $rules; |
|
168 | + } |
|
169 | 169 | } |
@@ -23,338 +23,338 @@ |
||
23 | 23 | */ |
24 | 24 | class DietNutrition extends MetaJsonLd implements DietNutritionInterface, MedicalBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, MedicalEnumerationInterface |
25 | 25 | { |
26 | - use DietNutritionTrait; |
|
27 | - use MedicalBusinessTrait; |
|
28 | - use LocalBusinessTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
32 | - use MedicalSpecialtyTrait; |
|
33 | - use SpecialtyTrait; |
|
34 | - use EnumerationTrait; |
|
35 | - use IntangibleTrait; |
|
36 | - use MedicalEnumerationTrait; |
|
26 | + use DietNutritionTrait; |
|
27 | + use MedicalBusinessTrait; |
|
28 | + use LocalBusinessTrait; |
|
29 | + use PlaceTrait; |
|
30 | + use ThingTrait; |
|
31 | + use OrganizationTrait; |
|
32 | + use MedicalSpecialtyTrait; |
|
33 | + use SpecialtyTrait; |
|
34 | + use EnumerationTrait; |
|
35 | + use IntangibleTrait; |
|
36 | + use MedicalEnumerationTrait; |
|
37 | 37 | |
38 | - /** |
|
39 | - * The Schema.org Type Name |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeName = 'DietNutrition'; |
|
38 | + /** |
|
39 | + * The Schema.org Type Name |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeName = 'DietNutrition'; |
|
44 | 44 | |
45 | - /** |
|
46 | - * The Schema.org Type Scope |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeScope = 'https://schema.org/DietNutrition'; |
|
45 | + /** |
|
46 | + * The Schema.org Type Scope |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeScope = 'https://schema.org/DietNutrition'; |
|
51 | 51 | |
52 | - /** |
|
53 | - * The Schema.org Type Extends |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeExtends = 'MedicalBusiness'; |
|
52 | + /** |
|
53 | + * The Schema.org Type Extends |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeExtends = 'MedicalBusiness'; |
|
58 | 58 | |
59 | - /** |
|
60 | - * The Schema.org Type Description |
|
61 | - * |
|
62 | - * @var string |
|
63 | - */ |
|
64 | - public static $schemaTypeDescription = 'Dietetics and nutrition as a medical specialty.'; |
|
59 | + /** |
|
60 | + * The Schema.org Type Description |
|
61 | + * |
|
62 | + * @var string |
|
63 | + */ |
|
64 | + public static $schemaTypeDescription = 'Dietetics and nutrition as a medical specialty.'; |
|
65 | 65 | |
66 | 66 | |
67 | - /** |
|
68 | - * @inheritdoc |
|
69 | - */ |
|
70 | - public function getSchemaPropertyNames(): array |
|
71 | - { |
|
72 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
73 | - } |
|
67 | + /** |
|
68 | + * @inheritdoc |
|
69 | + */ |
|
70 | + public function getSchemaPropertyNames(): array |
|
71 | + { |
|
72 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
73 | + } |
|
74 | 74 | |
75 | 75 | |
76 | - /** |
|
77 | - * @inheritdoc |
|
78 | - */ |
|
79 | - public function getSchemaPropertyExpectedTypes(): array |
|
80 | - { |
|
81 | - return [ |
|
82 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
83 | - 'additionalProperty' => ['PropertyValue'], |
|
84 | - 'additionalType' => ['URL'], |
|
85 | - 'address' => ['Text', 'PostalAddress'], |
|
86 | - 'aggregateRating' => ['AggregateRating'], |
|
87 | - 'alternateName' => ['Text'], |
|
88 | - 'alumni' => ['Person'], |
|
89 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
90 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
91 | - 'award' => ['Text'], |
|
92 | - 'awards' => ['Text'], |
|
93 | - 'branchCode' => ['Text'], |
|
94 | - 'branchOf' => ['Organization'], |
|
95 | - 'brand' => ['Brand', 'Organization'], |
|
96 | - 'contactPoint' => ['ContactPoint'], |
|
97 | - 'contactPoints' => ['ContactPoint'], |
|
98 | - 'containedIn' => ['Place'], |
|
99 | - 'containedInPlace' => ['Place'], |
|
100 | - 'containsPlace' => ['Place'], |
|
101 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
102 | - 'currenciesAccepted' => ['Text'], |
|
103 | - 'department' => ['Organization'], |
|
104 | - 'description' => ['Text'], |
|
105 | - 'disambiguatingDescription' => ['Text'], |
|
106 | - 'dissolutionDate' => ['Date'], |
|
107 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
108 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
109 | - 'duns' => ['Text'], |
|
110 | - 'email' => ['Text'], |
|
111 | - 'employee' => ['Person'], |
|
112 | - 'employees' => ['Person'], |
|
113 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
114 | - 'event' => ['Event'], |
|
115 | - 'events' => ['Event'], |
|
116 | - 'faxNumber' => ['Text'], |
|
117 | - 'founder' => ['Person'], |
|
118 | - 'founders' => ['Person'], |
|
119 | - 'foundingDate' => ['Date'], |
|
120 | - 'foundingLocation' => ['Place'], |
|
121 | - 'funder' => ['Organization', 'Person'], |
|
122 | - 'funding' => ['Grant'], |
|
123 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
124 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
125 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
126 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
127 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
128 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
129 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
130 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
131 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
132 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
133 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
134 | - 'globalLocationNumber' => ['Text'], |
|
135 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
136 | - 'hasDriveThroughService' => ['Boolean'], |
|
137 | - 'hasMap' => ['URL', 'Map'], |
|
138 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
139 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
140 | - 'hasPOS' => ['Place'], |
|
141 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
142 | - 'image' => ['URL', 'ImageObject'], |
|
143 | - 'interactionStatistic' => ['InteractionCounter'], |
|
144 | - 'isAccessibleForFree' => ['Boolean'], |
|
145 | - 'isicV4' => ['Text'], |
|
146 | - 'iso6523Code' => ['Text'], |
|
147 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
148 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
149 | - 'knowsLanguage' => ['Text', 'Language'], |
|
150 | - 'latitude' => ['Number', 'Text'], |
|
151 | - 'legalName' => ['Text'], |
|
152 | - 'leiCode' => ['Text'], |
|
153 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
154 | - 'logo' => ['ImageObject', 'URL'], |
|
155 | - 'longitude' => ['Text', 'Number'], |
|
156 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
157 | - 'makesOffer' => ['Offer'], |
|
158 | - 'map' => ['URL'], |
|
159 | - 'maps' => ['URL'], |
|
160 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
161 | - 'member' => ['Organization', 'Person'], |
|
162 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
163 | - 'members' => ['Organization', 'Person'], |
|
164 | - 'naics' => ['Text'], |
|
165 | - 'name' => ['Text'], |
|
166 | - 'nonprofitStatus' => ['NonprofitType'], |
|
167 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
168 | - 'openingHours' => ['Text'], |
|
169 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
170 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
171 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
172 | - 'parentOrganization' => ['Organization'], |
|
173 | - 'paymentAccepted' => ['Text'], |
|
174 | - 'photo' => ['Photograph', 'ImageObject'], |
|
175 | - 'photos' => ['ImageObject', 'Photograph'], |
|
176 | - 'potentialAction' => ['Action'], |
|
177 | - 'priceRange' => ['Text'], |
|
178 | - 'publicAccess' => ['Boolean'], |
|
179 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
180 | - 'review' => ['Review'], |
|
181 | - 'reviews' => ['Review'], |
|
182 | - 'sameAs' => ['URL'], |
|
183 | - 'seeks' => ['Demand'], |
|
184 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
185 | - 'slogan' => ['Text'], |
|
186 | - 'smokingAllowed' => ['Boolean'], |
|
187 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
188 | - 'sponsor' => ['Organization', 'Person'], |
|
189 | - 'subOrganization' => ['Organization'], |
|
190 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
191 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
192 | - 'taxID' => ['Text'], |
|
193 | - 'telephone' => ['Text'], |
|
194 | - 'tourBookingPage' => ['URL'], |
|
195 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
196 | - 'url' => ['URL'], |
|
197 | - 'vatID' => ['Text'] |
|
198 | - ]; |
|
199 | - } |
|
76 | + /** |
|
77 | + * @inheritdoc |
|
78 | + */ |
|
79 | + public function getSchemaPropertyExpectedTypes(): array |
|
80 | + { |
|
81 | + return [ |
|
82 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
83 | + 'additionalProperty' => ['PropertyValue'], |
|
84 | + 'additionalType' => ['URL'], |
|
85 | + 'address' => ['Text', 'PostalAddress'], |
|
86 | + 'aggregateRating' => ['AggregateRating'], |
|
87 | + 'alternateName' => ['Text'], |
|
88 | + 'alumni' => ['Person'], |
|
89 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
90 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
91 | + 'award' => ['Text'], |
|
92 | + 'awards' => ['Text'], |
|
93 | + 'branchCode' => ['Text'], |
|
94 | + 'branchOf' => ['Organization'], |
|
95 | + 'brand' => ['Brand', 'Organization'], |
|
96 | + 'contactPoint' => ['ContactPoint'], |
|
97 | + 'contactPoints' => ['ContactPoint'], |
|
98 | + 'containedIn' => ['Place'], |
|
99 | + 'containedInPlace' => ['Place'], |
|
100 | + 'containsPlace' => ['Place'], |
|
101 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
102 | + 'currenciesAccepted' => ['Text'], |
|
103 | + 'department' => ['Organization'], |
|
104 | + 'description' => ['Text'], |
|
105 | + 'disambiguatingDescription' => ['Text'], |
|
106 | + 'dissolutionDate' => ['Date'], |
|
107 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
108 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
109 | + 'duns' => ['Text'], |
|
110 | + 'email' => ['Text'], |
|
111 | + 'employee' => ['Person'], |
|
112 | + 'employees' => ['Person'], |
|
113 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
114 | + 'event' => ['Event'], |
|
115 | + 'events' => ['Event'], |
|
116 | + 'faxNumber' => ['Text'], |
|
117 | + 'founder' => ['Person'], |
|
118 | + 'founders' => ['Person'], |
|
119 | + 'foundingDate' => ['Date'], |
|
120 | + 'foundingLocation' => ['Place'], |
|
121 | + 'funder' => ['Organization', 'Person'], |
|
122 | + 'funding' => ['Grant'], |
|
123 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
124 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
125 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
126 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
127 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
128 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
129 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
130 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
131 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
132 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
133 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
134 | + 'globalLocationNumber' => ['Text'], |
|
135 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
136 | + 'hasDriveThroughService' => ['Boolean'], |
|
137 | + 'hasMap' => ['URL', 'Map'], |
|
138 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
139 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
140 | + 'hasPOS' => ['Place'], |
|
141 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
142 | + 'image' => ['URL', 'ImageObject'], |
|
143 | + 'interactionStatistic' => ['InteractionCounter'], |
|
144 | + 'isAccessibleForFree' => ['Boolean'], |
|
145 | + 'isicV4' => ['Text'], |
|
146 | + 'iso6523Code' => ['Text'], |
|
147 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
148 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
149 | + 'knowsLanguage' => ['Text', 'Language'], |
|
150 | + 'latitude' => ['Number', 'Text'], |
|
151 | + 'legalName' => ['Text'], |
|
152 | + 'leiCode' => ['Text'], |
|
153 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
154 | + 'logo' => ['ImageObject', 'URL'], |
|
155 | + 'longitude' => ['Text', 'Number'], |
|
156 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
157 | + 'makesOffer' => ['Offer'], |
|
158 | + 'map' => ['URL'], |
|
159 | + 'maps' => ['URL'], |
|
160 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
161 | + 'member' => ['Organization', 'Person'], |
|
162 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
163 | + 'members' => ['Organization', 'Person'], |
|
164 | + 'naics' => ['Text'], |
|
165 | + 'name' => ['Text'], |
|
166 | + 'nonprofitStatus' => ['NonprofitType'], |
|
167 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
168 | + 'openingHours' => ['Text'], |
|
169 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
170 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
171 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
172 | + 'parentOrganization' => ['Organization'], |
|
173 | + 'paymentAccepted' => ['Text'], |
|
174 | + 'photo' => ['Photograph', 'ImageObject'], |
|
175 | + 'photos' => ['ImageObject', 'Photograph'], |
|
176 | + 'potentialAction' => ['Action'], |
|
177 | + 'priceRange' => ['Text'], |
|
178 | + 'publicAccess' => ['Boolean'], |
|
179 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
180 | + 'review' => ['Review'], |
|
181 | + 'reviews' => ['Review'], |
|
182 | + 'sameAs' => ['URL'], |
|
183 | + 'seeks' => ['Demand'], |
|
184 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
185 | + 'slogan' => ['Text'], |
|
186 | + 'smokingAllowed' => ['Boolean'], |
|
187 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
188 | + 'sponsor' => ['Organization', 'Person'], |
|
189 | + 'subOrganization' => ['Organization'], |
|
190 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
191 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
192 | + 'taxID' => ['Text'], |
|
193 | + 'telephone' => ['Text'], |
|
194 | + 'tourBookingPage' => ['URL'], |
|
195 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
196 | + 'url' => ['URL'], |
|
197 | + 'vatID' => ['Text'] |
|
198 | + ]; |
|
199 | + } |
|
200 | 200 | |
201 | 201 | |
202 | - /** |
|
203 | - * @inheritdoc |
|
204 | - */ |
|
205 | - public function getSchemaPropertyDescriptions(): array |
|
206 | - { |
|
207 | - return [ |
|
208 | - '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.', |
|
209 | - '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. ', |
|
210 | - '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.', |
|
211 | - 'address' => 'Physical address of the item.', |
|
212 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
213 | - 'alternateName' => 'An alias for the item.', |
|
214 | - 'alumni' => 'Alumni of an organization.', |
|
215 | - '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.', |
|
216 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
217 | - 'award' => 'An award won by or for this item.', |
|
218 | - 'awards' => 'Awards won by or for this item.', |
|
219 | - '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. ', |
|
220 | - 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
221 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
222 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
223 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
224 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
225 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
226 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
227 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
228 | - '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".', |
|
229 | - '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.', |
|
230 | - 'description' => 'A description of the item.', |
|
231 | - '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.', |
|
232 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
233 | - '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.', |
|
234 | - '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.', |
|
235 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
236 | - 'email' => 'Email address.', |
|
237 | - 'employee' => 'Someone working for this organization.', |
|
238 | - 'employees' => 'People working for this organization.', |
|
239 | - '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.', |
|
240 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
241 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
242 | - 'faxNumber' => 'The fax number.', |
|
243 | - 'founder' => 'A person who founded this organization.', |
|
244 | - 'founders' => 'A person who founded this organization.', |
|
245 | - 'foundingDate' => 'The date that this organization was founded.', |
|
246 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
247 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
248 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
249 | - 'geo' => 'The geo coordinates of the place.', |
|
250 | - '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).', |
|
251 | - '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).', |
|
252 | - '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).', |
|
253 | - '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).', |
|
254 | - '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).)', |
|
255 | - '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).', |
|
256 | - '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).', |
|
257 | - '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).', |
|
258 | - '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).)', |
|
259 | - '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).', |
|
260 | - '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.', |
|
261 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
262 | - '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.', |
|
263 | - 'hasMap' => 'A URL to a map of the place.', |
|
264 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
265 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
266 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
267 | - '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. ', |
|
268 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
269 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
270 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
271 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
272 | - '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. ', |
|
273 | - '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.', |
|
274 | - '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.', |
|
275 | - '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).', |
|
276 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
277 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
278 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
279 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
280 | - 'logo' => 'An associated logo.', |
|
281 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
282 | - '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.', |
|
283 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
284 | - 'map' => 'A URL to a map of the place.', |
|
285 | - 'maps' => 'A URL to a map of the place.', |
|
286 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
287 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
288 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
289 | - 'members' => 'A member of this organization.', |
|
290 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
291 | - 'name' => 'The name of the item.', |
|
292 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
293 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
294 | - '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>.', |
|
295 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
296 | - '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.', |
|
297 | - 'owns' => 'Products owned by the organization or person.', |
|
298 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
299 | - 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
300 | - 'photo' => 'A photograph of this place.', |
|
301 | - 'photos' => 'Photographs of this place.', |
|
302 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
303 | - 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
304 | - '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', |
|
305 | - '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. ', |
|
306 | - 'review' => 'A review of the item.', |
|
307 | - 'reviews' => 'Review of the item.', |
|
308 | - '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.', |
|
309 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
310 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
311 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
312 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
313 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
314 | - '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.', |
|
315 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
316 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
317 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
318 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
319 | - 'telephone' => 'The telephone number.', |
|
320 | - '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.', |
|
321 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
322 | - 'url' => 'URL of the item.', |
|
323 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
324 | - ]; |
|
325 | - } |
|
202 | + /** |
|
203 | + * @inheritdoc |
|
204 | + */ |
|
205 | + public function getSchemaPropertyDescriptions(): array |
|
206 | + { |
|
207 | + return [ |
|
208 | + '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.', |
|
209 | + '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. ', |
|
210 | + '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.', |
|
211 | + 'address' => 'Physical address of the item.', |
|
212 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
213 | + 'alternateName' => 'An alias for the item.', |
|
214 | + 'alumni' => 'Alumni of an organization.', |
|
215 | + '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.', |
|
216 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
217 | + 'award' => 'An award won by or for this item.', |
|
218 | + 'awards' => 'Awards won by or for this item.', |
|
219 | + '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. ', |
|
220 | + 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
221 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
222 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
223 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
224 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
225 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
226 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
227 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
228 | + '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".', |
|
229 | + '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.', |
|
230 | + 'description' => 'A description of the item.', |
|
231 | + '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.', |
|
232 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
233 | + '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.', |
|
234 | + '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.', |
|
235 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
236 | + 'email' => 'Email address.', |
|
237 | + 'employee' => 'Someone working for this organization.', |
|
238 | + 'employees' => 'People working for this organization.', |
|
239 | + '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.', |
|
240 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
241 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
242 | + 'faxNumber' => 'The fax number.', |
|
243 | + 'founder' => 'A person who founded this organization.', |
|
244 | + 'founders' => 'A person who founded this organization.', |
|
245 | + 'foundingDate' => 'The date that this organization was founded.', |
|
246 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
247 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
248 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
249 | + 'geo' => 'The geo coordinates of the place.', |
|
250 | + '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).', |
|
251 | + '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).', |
|
252 | + '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).', |
|
253 | + '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).', |
|
254 | + '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).)', |
|
255 | + '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).', |
|
256 | + '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).', |
|
257 | + '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).', |
|
258 | + '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).)', |
|
259 | + '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).', |
|
260 | + '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.', |
|
261 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
262 | + '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.', |
|
263 | + 'hasMap' => 'A URL to a map of the place.', |
|
264 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
265 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
266 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
267 | + '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. ', |
|
268 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
269 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
270 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
271 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
272 | + '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. ', |
|
273 | + '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.', |
|
274 | + '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.', |
|
275 | + '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).', |
|
276 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
277 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
278 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
279 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
280 | + 'logo' => 'An associated logo.', |
|
281 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
282 | + '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.', |
|
283 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
284 | + 'map' => 'A URL to a map of the place.', |
|
285 | + 'maps' => 'A URL to a map of the place.', |
|
286 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
287 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
288 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
289 | + 'members' => 'A member of this organization.', |
|
290 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
291 | + 'name' => 'The name of the item.', |
|
292 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
293 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
294 | + '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>.', |
|
295 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
296 | + '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.', |
|
297 | + 'owns' => 'Products owned by the organization or person.', |
|
298 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
299 | + 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
300 | + 'photo' => 'A photograph of this place.', |
|
301 | + 'photos' => 'Photographs of this place.', |
|
302 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
303 | + 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
304 | + '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', |
|
305 | + '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. ', |
|
306 | + 'review' => 'A review of the item.', |
|
307 | + 'reviews' => 'Review of the item.', |
|
308 | + '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.', |
|
309 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
310 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
311 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
312 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
313 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
314 | + '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.', |
|
315 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
316 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
317 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
318 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
319 | + 'telephone' => 'The telephone number.', |
|
320 | + '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.', |
|
321 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
322 | + 'url' => 'URL of the item.', |
|
323 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
324 | + ]; |
|
325 | + } |
|
326 | 326 | |
327 | 327 | |
328 | - /** |
|
329 | - * @inheritdoc |
|
330 | - */ |
|
331 | - public function getGoogleRequiredSchema(): array |
|
332 | - { |
|
333 | - return ['description', 'name']; |
|
334 | - } |
|
328 | + /** |
|
329 | + * @inheritdoc |
|
330 | + */ |
|
331 | + public function getGoogleRequiredSchema(): array |
|
332 | + { |
|
333 | + return ['description', 'name']; |
|
334 | + } |
|
335 | 335 | |
336 | 336 | |
337 | - /** |
|
338 | - * @inheritdoc |
|
339 | - */ |
|
340 | - public function getGoogleRecommendedSchema(): array |
|
341 | - { |
|
342 | - return ['image', 'url']; |
|
343 | - } |
|
337 | + /** |
|
338 | + * @inheritdoc |
|
339 | + */ |
|
340 | + public function getGoogleRecommendedSchema(): array |
|
341 | + { |
|
342 | + return ['image', 'url']; |
|
343 | + } |
|
344 | 344 | |
345 | 345 | |
346 | - /** |
|
347 | - * @inheritdoc |
|
348 | - */ |
|
349 | - public function defineRules(): array |
|
350 | - { |
|
351 | - $rules = parent::defineRules(); |
|
352 | - $rules = array_merge($rules, [ |
|
353 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
354 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
355 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
356 | - ]); |
|
346 | + /** |
|
347 | + * @inheritdoc |
|
348 | + */ |
|
349 | + public function defineRules(): array |
|
350 | + { |
|
351 | + $rules = parent::defineRules(); |
|
352 | + $rules = array_merge($rules, [ |
|
353 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
354 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
355 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
356 | + ]); |
|
357 | 357 | |
358 | - return $rules; |
|
359 | - } |
|
358 | + return $rules; |
|
359 | + } |
|
360 | 360 | } |
@@ -24,127 +24,127 @@ |
||
24 | 24 | */ |
25 | 25 | class Nonprofit501c20 extends MetaJsonLd implements Nonprofit501c20Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use Nonprofit501c20Trait; |
|
28 | - use USNonprofitTypeTrait; |
|
29 | - use NonprofitTypeTrait; |
|
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 = 'Nonprofit501c20'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/Nonprofit501c20'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'USNonprofitType'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'Nonprofit501c20: Non-profit type referring to Group Legal Services Plan Organizations.'; |
|
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 | - 'additionalType' => ['URL'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'description' => ['Text'], |
|
81 | - 'disambiguatingDescription' => ['Text'], |
|
82 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | - 'image' => ['URL', 'ImageObject'], |
|
84 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | - 'name' => ['Text'], |
|
86 | - 'potentialAction' => ['Action'], |
|
87 | - 'sameAs' => ['URL'], |
|
88 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
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 | - 'description' => 'A description of the item.', |
|
104 | - '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.', |
|
105 | - '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. ', |
|
106 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | - '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.', |
|
108 | - 'name' => 'The name of the item.', |
|
109 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | - '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.', |
|
111 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | - 'url' => 'URL of the item.' |
|
114 | - ]; |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - /** |
|
119 | - * @inheritdoc |
|
120 | - */ |
|
121 | - public function getGoogleRequiredSchema(): array |
|
122 | - { |
|
123 | - return ['description', 'name']; |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @inheritdoc |
|
129 | - */ |
|
130 | - public function getGoogleRecommendedSchema(): array |
|
131 | - { |
|
132 | - return ['image', 'url']; |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - /** |
|
137 | - * @inheritdoc |
|
138 | - */ |
|
139 | - public function defineRules(): array |
|
140 | - { |
|
141 | - $rules = parent::defineRules(); |
|
142 | - $rules = array_merge($rules, [ |
|
143 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | - ]); |
|
147 | - |
|
148 | - return $rules; |
|
149 | - } |
|
27 | + use Nonprofit501c20Trait; |
|
28 | + use USNonprofitTypeTrait; |
|
29 | + use NonprofitTypeTrait; |
|
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 = 'Nonprofit501c20'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/Nonprofit501c20'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'USNonprofitType'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'Nonprofit501c20: Non-profit type referring to Group Legal Services Plan Organizations.'; |
|
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 | + 'additionalType' => ['URL'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'description' => ['Text'], |
|
81 | + 'disambiguatingDescription' => ['Text'], |
|
82 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | + 'image' => ['URL', 'ImageObject'], |
|
84 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | + 'name' => ['Text'], |
|
86 | + 'potentialAction' => ['Action'], |
|
87 | + 'sameAs' => ['URL'], |
|
88 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
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 | + 'description' => 'A description of the item.', |
|
104 | + '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.', |
|
105 | + '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. ', |
|
106 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | + '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.', |
|
108 | + 'name' => 'The name of the item.', |
|
109 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | + '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.', |
|
111 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | + 'url' => 'URL of the item.' |
|
114 | + ]; |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + /** |
|
119 | + * @inheritdoc |
|
120 | + */ |
|
121 | + public function getGoogleRequiredSchema(): array |
|
122 | + { |
|
123 | + return ['description', 'name']; |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @inheritdoc |
|
129 | + */ |
|
130 | + public function getGoogleRecommendedSchema(): array |
|
131 | + { |
|
132 | + return ['image', 'url']; |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + /** |
|
137 | + * @inheritdoc |
|
138 | + */ |
|
139 | + public function defineRules(): array |
|
140 | + { |
|
141 | + $rules = parent::defineRules(); |
|
142 | + $rules = array_merge($rules, [ |
|
143 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | + ]); |
|
147 | + |
|
148 | + return $rules; |
|
149 | + } |
|
150 | 150 | } |