@@ -23,278 +23,278 @@ |
||
23 | 23 | */ |
24 | 24 | class Patient extends MetaJsonLd implements PatientInterface, MedicalAudienceInterface, PeopleAudienceInterface, AudienceInterface, IntangibleInterface, ThingInterface, PersonInterface |
25 | 25 | { |
26 | - use PatientTrait; |
|
27 | - use MedicalAudienceTrait; |
|
28 | - use PeopleAudienceTrait; |
|
29 | - use AudienceTrait; |
|
30 | - use IntangibleTrait; |
|
31 | - use ThingTrait; |
|
32 | - use PersonTrait; |
|
26 | + use PatientTrait; |
|
27 | + use MedicalAudienceTrait; |
|
28 | + use PeopleAudienceTrait; |
|
29 | + use AudienceTrait; |
|
30 | + use IntangibleTrait; |
|
31 | + use ThingTrait; |
|
32 | + use PersonTrait; |
|
33 | 33 | |
34 | - /** |
|
35 | - * The Schema.org Type Name |
|
36 | - * |
|
37 | - * @var string |
|
38 | - */ |
|
39 | - public static $schemaTypeName = 'Patient'; |
|
34 | + /** |
|
35 | + * The Schema.org Type Name |
|
36 | + * |
|
37 | + * @var string |
|
38 | + */ |
|
39 | + public static $schemaTypeName = 'Patient'; |
|
40 | 40 | |
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/Patient'; |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/Patient'; |
|
47 | 47 | |
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'MedicalAudience'; |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'MedicalAudience'; |
|
54 | 54 | |
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'A patient is any person recipient of health care services.'; |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'A patient is any person recipient of health care services.'; |
|
61 | 61 | |
62 | 62 | |
63 | - /** |
|
64 | - * @inheritdoc |
|
65 | - */ |
|
66 | - public function getSchemaPropertyNames(): array |
|
67 | - { |
|
68 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | - } |
|
63 | + /** |
|
64 | + * @inheritdoc |
|
65 | + */ |
|
66 | + public function getSchemaPropertyNames(): array |
|
67 | + { |
|
68 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | + } |
|
70 | 70 | |
71 | 71 | |
72 | - /** |
|
73 | - * @inheritdoc |
|
74 | - */ |
|
75 | - public function getSchemaPropertyExpectedTypes(): array |
|
76 | - { |
|
77 | - return [ |
|
78 | - 'additionalName' => ['Text'], |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'address' => ['Text', 'PostalAddress'], |
|
81 | - 'affiliation' => ['Organization'], |
|
82 | - 'alternateName' => ['Text'], |
|
83 | - 'alumniOf' => ['Organization', 'EducationalOrganization'], |
|
84 | - 'audienceType' => ['Text'], |
|
85 | - 'award' => ['Text'], |
|
86 | - 'awards' => ['Text'], |
|
87 | - 'birthDate' => ['Date'], |
|
88 | - 'birthPlace' => ['Place'], |
|
89 | - 'brand' => ['Brand', 'Organization'], |
|
90 | - 'callSign' => ['Text'], |
|
91 | - 'children' => ['Person'], |
|
92 | - 'colleague' => ['Person', 'URL'], |
|
93 | - 'colleagues' => ['Person'], |
|
94 | - 'contactPoint' => ['ContactPoint'], |
|
95 | - 'contactPoints' => ['ContactPoint'], |
|
96 | - 'deathDate' => ['Date'], |
|
97 | - 'deathPlace' => ['Place'], |
|
98 | - 'description' => ['Text'], |
|
99 | - 'diagnosis' => ['MedicalCondition'], |
|
100 | - 'disambiguatingDescription' => ['Text'], |
|
101 | - 'drug' => ['Drug'], |
|
102 | - 'duns' => ['Text'], |
|
103 | - 'email' => ['Text'], |
|
104 | - 'familyName' => ['Text'], |
|
105 | - 'faxNumber' => ['Text'], |
|
106 | - 'follows' => ['Person'], |
|
107 | - 'funder' => ['Organization', 'Person'], |
|
108 | - 'funding' => ['Grant'], |
|
109 | - 'gender' => ['GenderType', 'Text'], |
|
110 | - 'geographicArea' => ['AdministrativeArea'], |
|
111 | - 'givenName' => ['Text'], |
|
112 | - 'globalLocationNumber' => ['Text'], |
|
113 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
114 | - 'hasOccupation' => ['Occupation'], |
|
115 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
116 | - 'hasPOS' => ['Place'], |
|
117 | - 'healthCondition' => ['MedicalCondition'], |
|
118 | - 'height' => ['QuantitativeValue', 'Distance'], |
|
119 | - 'homeLocation' => ['ContactPoint', 'Place'], |
|
120 | - 'honorificPrefix' => ['Text'], |
|
121 | - 'honorificSuffix' => ['Text'], |
|
122 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
123 | - 'image' => ['URL', 'ImageObject'], |
|
124 | - 'interactionStatistic' => ['InteractionCounter'], |
|
125 | - 'isicV4' => ['Text'], |
|
126 | - 'jobTitle' => ['DefinedTerm', 'Text'], |
|
127 | - 'knows' => ['Person'], |
|
128 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
129 | - 'knowsLanguage' => ['Text', 'Language'], |
|
130 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
131 | - 'makesOffer' => ['Offer'], |
|
132 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
133 | - 'naics' => ['Text'], |
|
134 | - 'name' => ['Text'], |
|
135 | - 'nationality' => ['Country'], |
|
136 | - 'netWorth' => ['MonetaryAmount', 'PriceSpecification'], |
|
137 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
138 | - 'parent' => ['Person'], |
|
139 | - 'parents' => ['Person'], |
|
140 | - 'performerIn' => ['Event'], |
|
141 | - 'potentialAction' => ['Action'], |
|
142 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
143 | - 'relatedTo' => ['Person'], |
|
144 | - 'requiredGender' => ['Text'], |
|
145 | - 'requiredMaxAge' => ['Integer'], |
|
146 | - 'requiredMinAge' => ['Integer'], |
|
147 | - 'sameAs' => ['URL'], |
|
148 | - 'seeks' => ['Demand'], |
|
149 | - 'sibling' => ['Person'], |
|
150 | - 'siblings' => ['Person'], |
|
151 | - 'sponsor' => ['Organization', 'Person'], |
|
152 | - 'spouse' => ['Person'], |
|
153 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
154 | - 'suggestedAge' => ['QuantitativeValue'], |
|
155 | - 'suggestedGender' => ['GenderType', 'Text'], |
|
156 | - 'suggestedMaxAge' => ['Number'], |
|
157 | - 'suggestedMeasurement' => ['QuantitativeValue'], |
|
158 | - 'suggestedMinAge' => ['Number'], |
|
159 | - 'taxID' => ['Text'], |
|
160 | - 'telephone' => ['Text'], |
|
161 | - 'url' => ['URL'], |
|
162 | - 'vatID' => ['Text'], |
|
163 | - 'weight' => ['QuantitativeValue'], |
|
164 | - 'workLocation' => ['ContactPoint', 'Place'], |
|
165 | - 'worksFor' => ['Organization'] |
|
166 | - ]; |
|
167 | - } |
|
72 | + /** |
|
73 | + * @inheritdoc |
|
74 | + */ |
|
75 | + public function getSchemaPropertyExpectedTypes(): array |
|
76 | + { |
|
77 | + return [ |
|
78 | + 'additionalName' => ['Text'], |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'address' => ['Text', 'PostalAddress'], |
|
81 | + 'affiliation' => ['Organization'], |
|
82 | + 'alternateName' => ['Text'], |
|
83 | + 'alumniOf' => ['Organization', 'EducationalOrganization'], |
|
84 | + 'audienceType' => ['Text'], |
|
85 | + 'award' => ['Text'], |
|
86 | + 'awards' => ['Text'], |
|
87 | + 'birthDate' => ['Date'], |
|
88 | + 'birthPlace' => ['Place'], |
|
89 | + 'brand' => ['Brand', 'Organization'], |
|
90 | + 'callSign' => ['Text'], |
|
91 | + 'children' => ['Person'], |
|
92 | + 'colleague' => ['Person', 'URL'], |
|
93 | + 'colleagues' => ['Person'], |
|
94 | + 'contactPoint' => ['ContactPoint'], |
|
95 | + 'contactPoints' => ['ContactPoint'], |
|
96 | + 'deathDate' => ['Date'], |
|
97 | + 'deathPlace' => ['Place'], |
|
98 | + 'description' => ['Text'], |
|
99 | + 'diagnosis' => ['MedicalCondition'], |
|
100 | + 'disambiguatingDescription' => ['Text'], |
|
101 | + 'drug' => ['Drug'], |
|
102 | + 'duns' => ['Text'], |
|
103 | + 'email' => ['Text'], |
|
104 | + 'familyName' => ['Text'], |
|
105 | + 'faxNumber' => ['Text'], |
|
106 | + 'follows' => ['Person'], |
|
107 | + 'funder' => ['Organization', 'Person'], |
|
108 | + 'funding' => ['Grant'], |
|
109 | + 'gender' => ['GenderType', 'Text'], |
|
110 | + 'geographicArea' => ['AdministrativeArea'], |
|
111 | + 'givenName' => ['Text'], |
|
112 | + 'globalLocationNumber' => ['Text'], |
|
113 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
114 | + 'hasOccupation' => ['Occupation'], |
|
115 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
116 | + 'hasPOS' => ['Place'], |
|
117 | + 'healthCondition' => ['MedicalCondition'], |
|
118 | + 'height' => ['QuantitativeValue', 'Distance'], |
|
119 | + 'homeLocation' => ['ContactPoint', 'Place'], |
|
120 | + 'honorificPrefix' => ['Text'], |
|
121 | + 'honorificSuffix' => ['Text'], |
|
122 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
123 | + 'image' => ['URL', 'ImageObject'], |
|
124 | + 'interactionStatistic' => ['InteractionCounter'], |
|
125 | + 'isicV4' => ['Text'], |
|
126 | + 'jobTitle' => ['DefinedTerm', 'Text'], |
|
127 | + 'knows' => ['Person'], |
|
128 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
129 | + 'knowsLanguage' => ['Text', 'Language'], |
|
130 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
131 | + 'makesOffer' => ['Offer'], |
|
132 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
133 | + 'naics' => ['Text'], |
|
134 | + 'name' => ['Text'], |
|
135 | + 'nationality' => ['Country'], |
|
136 | + 'netWorth' => ['MonetaryAmount', 'PriceSpecification'], |
|
137 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
138 | + 'parent' => ['Person'], |
|
139 | + 'parents' => ['Person'], |
|
140 | + 'performerIn' => ['Event'], |
|
141 | + 'potentialAction' => ['Action'], |
|
142 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
143 | + 'relatedTo' => ['Person'], |
|
144 | + 'requiredGender' => ['Text'], |
|
145 | + 'requiredMaxAge' => ['Integer'], |
|
146 | + 'requiredMinAge' => ['Integer'], |
|
147 | + 'sameAs' => ['URL'], |
|
148 | + 'seeks' => ['Demand'], |
|
149 | + 'sibling' => ['Person'], |
|
150 | + 'siblings' => ['Person'], |
|
151 | + 'sponsor' => ['Organization', 'Person'], |
|
152 | + 'spouse' => ['Person'], |
|
153 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
154 | + 'suggestedAge' => ['QuantitativeValue'], |
|
155 | + 'suggestedGender' => ['GenderType', 'Text'], |
|
156 | + 'suggestedMaxAge' => ['Number'], |
|
157 | + 'suggestedMeasurement' => ['QuantitativeValue'], |
|
158 | + 'suggestedMinAge' => ['Number'], |
|
159 | + 'taxID' => ['Text'], |
|
160 | + 'telephone' => ['Text'], |
|
161 | + 'url' => ['URL'], |
|
162 | + 'vatID' => ['Text'], |
|
163 | + 'weight' => ['QuantitativeValue'], |
|
164 | + 'workLocation' => ['ContactPoint', 'Place'], |
|
165 | + 'worksFor' => ['Organization'] |
|
166 | + ]; |
|
167 | + } |
|
168 | 168 | |
169 | 169 | |
170 | - /** |
|
171 | - * @inheritdoc |
|
172 | - */ |
|
173 | - public function getSchemaPropertyDescriptions(): array |
|
174 | - { |
|
175 | - return [ |
|
176 | - 'additionalName' => 'An additional name for a Person, can be used for a middle name.', |
|
177 | - '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.', |
|
178 | - 'address' => 'Physical address of the item.', |
|
179 | - 'affiliation' => 'An organization that this person is affiliated with. For example, a school/university, a club, or a team.', |
|
180 | - 'alternateName' => 'An alias for the item.', |
|
181 | - 'alumniOf' => 'An organization that the person is an alumni of.', |
|
182 | - 'audienceType' => 'The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).', |
|
183 | - 'award' => 'An award won by or for this item.', |
|
184 | - 'awards' => 'Awards won by or for this item.', |
|
185 | - 'birthDate' => 'Date of birth.', |
|
186 | - 'birthPlace' => 'The place where the person was born.', |
|
187 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
188 | - 'callSign' => 'A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles.', |
|
189 | - 'children' => 'A child of the person.', |
|
190 | - 'colleague' => 'A colleague of the person.', |
|
191 | - 'colleagues' => 'A colleague of the person.', |
|
192 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
193 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
194 | - 'deathDate' => 'Date of death.', |
|
195 | - 'deathPlace' => 'The place where the person died.', |
|
196 | - 'description' => 'A description of the item.', |
|
197 | - 'diagnosis' => 'One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.', |
|
198 | - '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.', |
|
199 | - 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
200 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
201 | - 'email' => 'Email address.', |
|
202 | - 'familyName' => 'Family name. In the U.S., the last name of a Person.', |
|
203 | - 'faxNumber' => 'The fax number.', |
|
204 | - 'follows' => 'The most generic uni-directional social relation.', |
|
205 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
206 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
207 | - 'gender' => 'Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed".', |
|
208 | - 'geographicArea' => 'The geographic area associated with the audience.', |
|
209 | - 'givenName' => 'Given name. In the U.S., the first name of a Person.', |
|
210 | - '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.', |
|
211 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
212 | - 'hasOccupation' => 'The Person\'s occupation. For past professions, use Role for expressing dates.', |
|
213 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
214 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
215 | - 'healthCondition' => 'Specifying the health condition(s) of a patient, medical study, or other target audience.', |
|
216 | - 'height' => 'The height of the item.', |
|
217 | - 'homeLocation' => 'A contact location for a person\'s residence.', |
|
218 | - 'honorificPrefix' => 'An honorific prefix preceding a Person\'s name such as Dr/Mrs/Mr.', |
|
219 | - 'honorificSuffix' => 'An honorific suffix following a Person\'s name such as M.D./PhD/MSCSW.', |
|
220 | - '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. ', |
|
221 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
222 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
223 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
224 | - 'jobTitle' => 'The job title of the person (for example, Financial Manager).', |
|
225 | - 'knows' => 'The most generic bi-directional social/work relation.', |
|
226 | - '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.', |
|
227 | - '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).', |
|
228 | - '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.', |
|
229 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
230 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
231 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
232 | - 'name' => 'The name of the item.', |
|
233 | - 'nationality' => 'Nationality of the person.', |
|
234 | - 'netWorth' => 'The total financial value of the person as calculated by subtracting assets from liabilities.', |
|
235 | - 'owns' => 'Products owned by the organization or person.', |
|
236 | - 'parent' => 'A parent of this person.', |
|
237 | - 'parents' => 'A parents of the person.', |
|
238 | - 'performerIn' => 'Event that this person is a performer or participant in.', |
|
239 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
240 | - '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. ', |
|
241 | - 'relatedTo' => 'The most generic familial relation.', |
|
242 | - 'requiredGender' => 'Audiences defined by a person\'s gender.', |
|
243 | - 'requiredMaxAge' => 'Audiences defined by a person\'s maximum age.', |
|
244 | - 'requiredMinAge' => 'Audiences defined by a person\'s minimum age.', |
|
245 | - '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.', |
|
246 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
247 | - 'sibling' => 'A sibling of the person.', |
|
248 | - 'siblings' => 'A sibling of the person.', |
|
249 | - '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.', |
|
250 | - 'spouse' => 'The person\'s spouse.', |
|
251 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
252 | - 'suggestedAge' => 'The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.', |
|
253 | - 'suggestedGender' => 'The suggested gender of the intended person or audience, for example "male", "female", or "unisex".', |
|
254 | - 'suggestedMaxAge' => 'Maximum recommended age in years for the audience or user.', |
|
255 | - 'suggestedMeasurement' => 'A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products.', |
|
256 | - 'suggestedMinAge' => 'Minimum recommended age in years for the audience or user.', |
|
257 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
258 | - 'telephone' => 'The telephone number.', |
|
259 | - 'url' => 'URL of the item.', |
|
260 | - 'vatID' => 'The Value-added Tax ID of the organization or person.', |
|
261 | - 'weight' => 'The weight of the product or person.', |
|
262 | - 'workLocation' => 'A contact location for a person\'s place of work.', |
|
263 | - 'worksFor' => 'Organizations that the person works for.' |
|
264 | - ]; |
|
265 | - } |
|
170 | + /** |
|
171 | + * @inheritdoc |
|
172 | + */ |
|
173 | + public function getSchemaPropertyDescriptions(): array |
|
174 | + { |
|
175 | + return [ |
|
176 | + 'additionalName' => 'An additional name for a Person, can be used for a middle name.', |
|
177 | + '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.', |
|
178 | + 'address' => 'Physical address of the item.', |
|
179 | + 'affiliation' => 'An organization that this person is affiliated with. For example, a school/university, a club, or a team.', |
|
180 | + 'alternateName' => 'An alias for the item.', |
|
181 | + 'alumniOf' => 'An organization that the person is an alumni of.', |
|
182 | + 'audienceType' => 'The target group associated with a given audience (e.g. veterans, car owners, musicians, etc.).', |
|
183 | + 'award' => 'An award won by or for this item.', |
|
184 | + 'awards' => 'Awards won by or for this item.', |
|
185 | + 'birthDate' => 'Date of birth.', |
|
186 | + 'birthPlace' => 'The place where the person was born.', |
|
187 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
188 | + 'callSign' => 'A [callsign](https://en.wikipedia.org/wiki/Call_sign), as used in broadcasting and radio communications to identify people, radio and TV stations, or vehicles.', |
|
189 | + 'children' => 'A child of the person.', |
|
190 | + 'colleague' => 'A colleague of the person.', |
|
191 | + 'colleagues' => 'A colleague of the person.', |
|
192 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
193 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
194 | + 'deathDate' => 'Date of death.', |
|
195 | + 'deathPlace' => 'The place where the person died.', |
|
196 | + 'description' => 'A description of the item.', |
|
197 | + 'diagnosis' => 'One or more alternative conditions considered in the differential diagnosis process as output of a diagnosis process.', |
|
198 | + '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.', |
|
199 | + 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
200 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
201 | + 'email' => 'Email address.', |
|
202 | + 'familyName' => 'Family name. In the U.S., the last name of a Person.', |
|
203 | + 'faxNumber' => 'The fax number.', |
|
204 | + 'follows' => 'The most generic uni-directional social relation.', |
|
205 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
206 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
207 | + 'gender' => 'Gender of something, typically a [[Person]], but possibly also fictional characters, animals, etc. While https://schema.org/Male and https://schema.org/Female may be used, text strings are also acceptable for people who do not identify as a binary gender. The [[gender]] property can also be used in an extended sense to cover e.g. the gender of sports teams. As with the gender of individuals, we do not try to enumerate all possibilities. A mixed-gender [[SportsTeam]] can be indicated with a text value of "Mixed".', |
|
208 | + 'geographicArea' => 'The geographic area associated with the audience.', |
|
209 | + 'givenName' => 'Given name. In the U.S., the first name of a Person.', |
|
210 | + '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.', |
|
211 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
212 | + 'hasOccupation' => 'The Person\'s occupation. For past professions, use Role for expressing dates.', |
|
213 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
214 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
215 | + 'healthCondition' => 'Specifying the health condition(s) of a patient, medical study, or other target audience.', |
|
216 | + 'height' => 'The height of the item.', |
|
217 | + 'homeLocation' => 'A contact location for a person\'s residence.', |
|
218 | + 'honorificPrefix' => 'An honorific prefix preceding a Person\'s name such as Dr/Mrs/Mr.', |
|
219 | + 'honorificSuffix' => 'An honorific suffix following a Person\'s name such as M.D./PhD/MSCSW.', |
|
220 | + '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. ', |
|
221 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
222 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
223 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
224 | + 'jobTitle' => 'The job title of the person (for example, Financial Manager).', |
|
225 | + 'knows' => 'The most generic bi-directional social/work relation.', |
|
226 | + '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.', |
|
227 | + '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).', |
|
228 | + '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.', |
|
229 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
230 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
231 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
232 | + 'name' => 'The name of the item.', |
|
233 | + 'nationality' => 'Nationality of the person.', |
|
234 | + 'netWorth' => 'The total financial value of the person as calculated by subtracting assets from liabilities.', |
|
235 | + 'owns' => 'Products owned by the organization or person.', |
|
236 | + 'parent' => 'A parent of this person.', |
|
237 | + 'parents' => 'A parents of the person.', |
|
238 | + 'performerIn' => 'Event that this person is a performer or participant in.', |
|
239 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
240 | + '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. ', |
|
241 | + 'relatedTo' => 'The most generic familial relation.', |
|
242 | + 'requiredGender' => 'Audiences defined by a person\'s gender.', |
|
243 | + 'requiredMaxAge' => 'Audiences defined by a person\'s maximum age.', |
|
244 | + 'requiredMinAge' => 'Audiences defined by a person\'s minimum age.', |
|
245 | + '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.', |
|
246 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
247 | + 'sibling' => 'A sibling of the person.', |
|
248 | + 'siblings' => 'A sibling of the person.', |
|
249 | + '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.', |
|
250 | + 'spouse' => 'The person\'s spouse.', |
|
251 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
252 | + 'suggestedAge' => 'The age or age range for the intended audience or person, for example 3-12 months for infants, 1-5 years for toddlers.', |
|
253 | + 'suggestedGender' => 'The suggested gender of the intended person or audience, for example "male", "female", or "unisex".', |
|
254 | + 'suggestedMaxAge' => 'Maximum recommended age in years for the audience or user.', |
|
255 | + 'suggestedMeasurement' => 'A suggested range of body measurements for the intended audience or person, for example inseam between 32 and 34 inches or height between 170 and 190 cm. Typically found on a size chart for wearable products.', |
|
256 | + 'suggestedMinAge' => 'Minimum recommended age in years for the audience or user.', |
|
257 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
258 | + 'telephone' => 'The telephone number.', |
|
259 | + 'url' => 'URL of the item.', |
|
260 | + 'vatID' => 'The Value-added Tax ID of the organization or person.', |
|
261 | + 'weight' => 'The weight of the product or person.', |
|
262 | + 'workLocation' => 'A contact location for a person\'s place of work.', |
|
263 | + 'worksFor' => 'Organizations that the person works for.' |
|
264 | + ]; |
|
265 | + } |
|
266 | 266 | |
267 | 267 | |
268 | - /** |
|
269 | - * @inheritdoc |
|
270 | - */ |
|
271 | - public function getGoogleRequiredSchema(): array |
|
272 | - { |
|
273 | - return ['description', 'name']; |
|
274 | - } |
|
268 | + /** |
|
269 | + * @inheritdoc |
|
270 | + */ |
|
271 | + public function getGoogleRequiredSchema(): array |
|
272 | + { |
|
273 | + return ['description', 'name']; |
|
274 | + } |
|
275 | 275 | |
276 | 276 | |
277 | - /** |
|
278 | - * @inheritdoc |
|
279 | - */ |
|
280 | - public function getGoogleRecommendedSchema(): array |
|
281 | - { |
|
282 | - return ['image', 'url']; |
|
283 | - } |
|
277 | + /** |
|
278 | + * @inheritdoc |
|
279 | + */ |
|
280 | + public function getGoogleRecommendedSchema(): array |
|
281 | + { |
|
282 | + return ['image', 'url']; |
|
283 | + } |
|
284 | 284 | |
285 | 285 | |
286 | - /** |
|
287 | - * @inheritdoc |
|
288 | - */ |
|
289 | - public function defineRules(): array |
|
290 | - { |
|
291 | - $rules = parent::defineRules(); |
|
292 | - $rules = array_merge($rules, [ |
|
293 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
294 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
295 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
296 | - ]); |
|
286 | + /** |
|
287 | + * @inheritdoc |
|
288 | + */ |
|
289 | + public function defineRules(): array |
|
290 | + { |
|
291 | + $rules = parent::defineRules(); |
|
292 | + $rules = array_merge($rules, [ |
|
293 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
294 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
295 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
296 | + ]); |
|
297 | 297 | |
298 | - return $rules; |
|
299 | - } |
|
298 | + return $rules; |
|
299 | + } |
|
300 | 300 | } |
@@ -24,146 +24,146 @@ |
||
24 | 24 | */ |
25 | 25 | class OrganizeAction extends MetaJsonLd implements OrganizeActionInterface, ActionInterface, ThingInterface |
26 | 26 | { |
27 | - use OrganizeActionTrait; |
|
28 | - use ActionTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'OrganizeAction'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/OrganizeAction'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'Action'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'The act of manipulating/administering/supervising/controlling one or more objects.'; |
|
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 | - } |
|
27 | + use OrganizeActionTrait; |
|
28 | + use ActionTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'OrganizeAction'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/OrganizeAction'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'Action'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'The act of manipulating/administering/supervising/controlling one or more objects.'; |
|
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,331 +23,331 @@ |
||
23 | 23 | */ |
24 | 24 | class HomeGoodsStore extends MetaJsonLd implements HomeGoodsStoreInterface, StoreInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface |
25 | 25 | { |
26 | - use HomeGoodsStoreTrait; |
|
27 | - use StoreTrait; |
|
28 | - use LocalBusinessTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
26 | + use HomeGoodsStoreTrait; |
|
27 | + use StoreTrait; |
|
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 = 'HomeGoodsStore'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'HomeGoodsStore'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/HomeGoodsStore'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/HomeGoodsStore'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'Store'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'Store'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'A home goods store.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'A home goods store.'; |
|
60 | 60 | |
61 | 61 | |
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | 69 | |
70 | 70 | |
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | - 'additionalProperty' => ['PropertyValue'], |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'address' => ['Text', 'PostalAddress'], |
|
81 | - 'aggregateRating' => ['AggregateRating'], |
|
82 | - 'alternateName' => ['Text'], |
|
83 | - 'alumni' => ['Person'], |
|
84 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
85 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
86 | - 'award' => ['Text'], |
|
87 | - 'awards' => ['Text'], |
|
88 | - 'branchCode' => ['Text'], |
|
89 | - 'branchOf' => ['Organization'], |
|
90 | - 'brand' => ['Brand', 'Organization'], |
|
91 | - 'contactPoint' => ['ContactPoint'], |
|
92 | - 'contactPoints' => ['ContactPoint'], |
|
93 | - 'containedIn' => ['Place'], |
|
94 | - 'containedInPlace' => ['Place'], |
|
95 | - 'containsPlace' => ['Place'], |
|
96 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
97 | - 'currenciesAccepted' => ['Text'], |
|
98 | - 'department' => ['Organization'], |
|
99 | - 'description' => ['Text'], |
|
100 | - 'disambiguatingDescription' => ['Text'], |
|
101 | - 'dissolutionDate' => ['Date'], |
|
102 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
103 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
104 | - 'duns' => ['Text'], |
|
105 | - 'email' => ['Text'], |
|
106 | - 'employee' => ['Person'], |
|
107 | - 'employees' => ['Person'], |
|
108 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
109 | - 'event' => ['Event'], |
|
110 | - 'events' => ['Event'], |
|
111 | - 'faxNumber' => ['Text'], |
|
112 | - 'founder' => ['Person'], |
|
113 | - 'founders' => ['Person'], |
|
114 | - 'foundingDate' => ['Date'], |
|
115 | - 'foundingLocation' => ['Place'], |
|
116 | - 'funder' => ['Organization', 'Person'], |
|
117 | - 'funding' => ['Grant'], |
|
118 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
119 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
120 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
121 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
122 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
123 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
124 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
125 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
126 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
127 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
128 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
129 | - 'globalLocationNumber' => ['Text'], |
|
130 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
131 | - 'hasDriveThroughService' => ['Boolean'], |
|
132 | - 'hasMap' => ['URL', 'Map'], |
|
133 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
134 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
135 | - 'hasPOS' => ['Place'], |
|
136 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
137 | - 'image' => ['URL', 'ImageObject'], |
|
138 | - 'interactionStatistic' => ['InteractionCounter'], |
|
139 | - 'isAccessibleForFree' => ['Boolean'], |
|
140 | - 'isicV4' => ['Text'], |
|
141 | - 'iso6523Code' => ['Text'], |
|
142 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
143 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
144 | - 'knowsLanguage' => ['Text', 'Language'], |
|
145 | - 'latitude' => ['Number', 'Text'], |
|
146 | - 'legalName' => ['Text'], |
|
147 | - 'leiCode' => ['Text'], |
|
148 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
149 | - 'logo' => ['ImageObject', 'URL'], |
|
150 | - 'longitude' => ['Text', 'Number'], |
|
151 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
152 | - 'makesOffer' => ['Offer'], |
|
153 | - 'map' => ['URL'], |
|
154 | - 'maps' => ['URL'], |
|
155 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
156 | - 'member' => ['Organization', 'Person'], |
|
157 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
158 | - 'members' => ['Organization', 'Person'], |
|
159 | - 'naics' => ['Text'], |
|
160 | - 'name' => ['Text'], |
|
161 | - 'nonprofitStatus' => ['NonprofitType'], |
|
162 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
163 | - 'openingHours' => ['Text'], |
|
164 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
165 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
166 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
167 | - 'parentOrganization' => ['Organization'], |
|
168 | - 'paymentAccepted' => ['Text'], |
|
169 | - 'photo' => ['Photograph', 'ImageObject'], |
|
170 | - 'photos' => ['ImageObject', 'Photograph'], |
|
171 | - 'potentialAction' => ['Action'], |
|
172 | - 'priceRange' => ['Text'], |
|
173 | - 'publicAccess' => ['Boolean'], |
|
174 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
175 | - 'review' => ['Review'], |
|
176 | - 'reviews' => ['Review'], |
|
177 | - 'sameAs' => ['URL'], |
|
178 | - 'seeks' => ['Demand'], |
|
179 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
180 | - 'slogan' => ['Text'], |
|
181 | - 'smokingAllowed' => ['Boolean'], |
|
182 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
183 | - 'sponsor' => ['Organization', 'Person'], |
|
184 | - 'subOrganization' => ['Organization'], |
|
185 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
186 | - 'taxID' => ['Text'], |
|
187 | - 'telephone' => ['Text'], |
|
188 | - 'tourBookingPage' => ['URL'], |
|
189 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
190 | - 'url' => ['URL'], |
|
191 | - 'vatID' => ['Text'] |
|
192 | - ]; |
|
193 | - } |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | + 'additionalProperty' => ['PropertyValue'], |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'address' => ['Text', 'PostalAddress'], |
|
81 | + 'aggregateRating' => ['AggregateRating'], |
|
82 | + 'alternateName' => ['Text'], |
|
83 | + 'alumni' => ['Person'], |
|
84 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
85 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
86 | + 'award' => ['Text'], |
|
87 | + 'awards' => ['Text'], |
|
88 | + 'branchCode' => ['Text'], |
|
89 | + 'branchOf' => ['Organization'], |
|
90 | + 'brand' => ['Brand', 'Organization'], |
|
91 | + 'contactPoint' => ['ContactPoint'], |
|
92 | + 'contactPoints' => ['ContactPoint'], |
|
93 | + 'containedIn' => ['Place'], |
|
94 | + 'containedInPlace' => ['Place'], |
|
95 | + 'containsPlace' => ['Place'], |
|
96 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
97 | + 'currenciesAccepted' => ['Text'], |
|
98 | + 'department' => ['Organization'], |
|
99 | + 'description' => ['Text'], |
|
100 | + 'disambiguatingDescription' => ['Text'], |
|
101 | + 'dissolutionDate' => ['Date'], |
|
102 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
103 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
104 | + 'duns' => ['Text'], |
|
105 | + 'email' => ['Text'], |
|
106 | + 'employee' => ['Person'], |
|
107 | + 'employees' => ['Person'], |
|
108 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
109 | + 'event' => ['Event'], |
|
110 | + 'events' => ['Event'], |
|
111 | + 'faxNumber' => ['Text'], |
|
112 | + 'founder' => ['Person'], |
|
113 | + 'founders' => ['Person'], |
|
114 | + 'foundingDate' => ['Date'], |
|
115 | + 'foundingLocation' => ['Place'], |
|
116 | + 'funder' => ['Organization', 'Person'], |
|
117 | + 'funding' => ['Grant'], |
|
118 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
119 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
120 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
121 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
122 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
123 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
124 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
125 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
126 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
127 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
128 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
129 | + 'globalLocationNumber' => ['Text'], |
|
130 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
131 | + 'hasDriveThroughService' => ['Boolean'], |
|
132 | + 'hasMap' => ['URL', 'Map'], |
|
133 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
134 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
135 | + 'hasPOS' => ['Place'], |
|
136 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
137 | + 'image' => ['URL', 'ImageObject'], |
|
138 | + 'interactionStatistic' => ['InteractionCounter'], |
|
139 | + 'isAccessibleForFree' => ['Boolean'], |
|
140 | + 'isicV4' => ['Text'], |
|
141 | + 'iso6523Code' => ['Text'], |
|
142 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
143 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
144 | + 'knowsLanguage' => ['Text', 'Language'], |
|
145 | + 'latitude' => ['Number', 'Text'], |
|
146 | + 'legalName' => ['Text'], |
|
147 | + 'leiCode' => ['Text'], |
|
148 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
149 | + 'logo' => ['ImageObject', 'URL'], |
|
150 | + 'longitude' => ['Text', 'Number'], |
|
151 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
152 | + 'makesOffer' => ['Offer'], |
|
153 | + 'map' => ['URL'], |
|
154 | + 'maps' => ['URL'], |
|
155 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
156 | + 'member' => ['Organization', 'Person'], |
|
157 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
158 | + 'members' => ['Organization', 'Person'], |
|
159 | + 'naics' => ['Text'], |
|
160 | + 'name' => ['Text'], |
|
161 | + 'nonprofitStatus' => ['NonprofitType'], |
|
162 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
163 | + 'openingHours' => ['Text'], |
|
164 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
165 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
166 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
167 | + 'parentOrganization' => ['Organization'], |
|
168 | + 'paymentAccepted' => ['Text'], |
|
169 | + 'photo' => ['Photograph', 'ImageObject'], |
|
170 | + 'photos' => ['ImageObject', 'Photograph'], |
|
171 | + 'potentialAction' => ['Action'], |
|
172 | + 'priceRange' => ['Text'], |
|
173 | + 'publicAccess' => ['Boolean'], |
|
174 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
175 | + 'review' => ['Review'], |
|
176 | + 'reviews' => ['Review'], |
|
177 | + 'sameAs' => ['URL'], |
|
178 | + 'seeks' => ['Demand'], |
|
179 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
180 | + 'slogan' => ['Text'], |
|
181 | + 'smokingAllowed' => ['Boolean'], |
|
182 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
183 | + 'sponsor' => ['Organization', 'Person'], |
|
184 | + 'subOrganization' => ['Organization'], |
|
185 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
186 | + 'taxID' => ['Text'], |
|
187 | + 'telephone' => ['Text'], |
|
188 | + 'tourBookingPage' => ['URL'], |
|
189 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
190 | + 'url' => ['URL'], |
|
191 | + 'vatID' => ['Text'] |
|
192 | + ]; |
|
193 | + } |
|
194 | 194 | |
195 | 195 | |
196 | - /** |
|
197 | - * @inheritdoc |
|
198 | - */ |
|
199 | - public function getSchemaPropertyDescriptions(): array |
|
200 | - { |
|
201 | - return [ |
|
202 | - '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.', |
|
203 | - '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. ', |
|
204 | - '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.', |
|
205 | - 'address' => 'Physical address of the item.', |
|
206 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
207 | - 'alternateName' => 'An alias for the item.', |
|
208 | - 'alumni' => 'Alumni of an organization.', |
|
209 | - '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.', |
|
210 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
211 | - 'award' => 'An award won by or for this item.', |
|
212 | - 'awards' => 'Awards won by or for this item.', |
|
213 | - '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. ', |
|
214 | - 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
215 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
216 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
217 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
218 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
219 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
220 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
221 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
222 | - '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".', |
|
223 | - '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.', |
|
224 | - 'description' => 'A description of the item.', |
|
225 | - '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.', |
|
226 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
227 | - '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.', |
|
228 | - '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.', |
|
229 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
230 | - 'email' => 'Email address.', |
|
231 | - 'employee' => 'Someone working for this organization.', |
|
232 | - 'employees' => 'People working for this organization.', |
|
233 | - '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.', |
|
234 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
235 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
236 | - 'faxNumber' => 'The fax number.', |
|
237 | - 'founder' => 'A person who founded this organization.', |
|
238 | - 'founders' => 'A person who founded this organization.', |
|
239 | - 'foundingDate' => 'The date that this organization was founded.', |
|
240 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
241 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
242 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
243 | - 'geo' => 'The geo coordinates of the place.', |
|
244 | - '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).', |
|
245 | - '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).', |
|
246 | - '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).', |
|
247 | - '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).', |
|
248 | - '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).)', |
|
249 | - '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).', |
|
250 | - '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).', |
|
251 | - '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).', |
|
252 | - '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).)', |
|
253 | - '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).', |
|
254 | - '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.', |
|
255 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
256 | - '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.', |
|
257 | - 'hasMap' => 'A URL to a map of the place.', |
|
258 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
259 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
260 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
261 | - '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. ', |
|
262 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
263 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
264 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
265 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
266 | - '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. ', |
|
267 | - '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.', |
|
268 | - '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.', |
|
269 | - '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).', |
|
270 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
271 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
272 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
273 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
274 | - 'logo' => 'An associated logo.', |
|
275 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
276 | - '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.', |
|
277 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
278 | - 'map' => 'A URL to a map of the place.', |
|
279 | - 'maps' => 'A URL to a map of the place.', |
|
280 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
281 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
282 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
283 | - 'members' => 'A member of this organization.', |
|
284 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
285 | - 'name' => 'The name of the item.', |
|
286 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
287 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
288 | - '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>.', |
|
289 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
290 | - '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.', |
|
291 | - 'owns' => 'Products owned by the organization or person.', |
|
292 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
293 | - 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
294 | - 'photo' => 'A photograph of this place.', |
|
295 | - 'photos' => 'Photographs of this place.', |
|
296 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
297 | - 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
298 | - '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', |
|
299 | - '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. ', |
|
300 | - 'review' => 'A review of the item.', |
|
301 | - 'reviews' => 'Review of the item.', |
|
302 | - '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.', |
|
303 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
304 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
305 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
306 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
307 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
308 | - '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.', |
|
309 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
310 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
311 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
312 | - 'telephone' => 'The telephone number.', |
|
313 | - '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.', |
|
314 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
315 | - 'url' => 'URL of the item.', |
|
316 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
317 | - ]; |
|
318 | - } |
|
196 | + /** |
|
197 | + * @inheritdoc |
|
198 | + */ |
|
199 | + public function getSchemaPropertyDescriptions(): array |
|
200 | + { |
|
201 | + return [ |
|
202 | + '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.', |
|
203 | + '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. ', |
|
204 | + '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.', |
|
205 | + 'address' => 'Physical address of the item.', |
|
206 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
207 | + 'alternateName' => 'An alias for the item.', |
|
208 | + 'alumni' => 'Alumni of an organization.', |
|
209 | + '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.', |
|
210 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
211 | + 'award' => 'An award won by or for this item.', |
|
212 | + 'awards' => 'Awards won by or for this item.', |
|
213 | + '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. ', |
|
214 | + 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
215 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
216 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
217 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
218 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
219 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
220 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
221 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
222 | + '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".', |
|
223 | + '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.', |
|
224 | + 'description' => 'A description of the item.', |
|
225 | + '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.', |
|
226 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
227 | + '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.', |
|
228 | + '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.', |
|
229 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
230 | + 'email' => 'Email address.', |
|
231 | + 'employee' => 'Someone working for this organization.', |
|
232 | + 'employees' => 'People working for this organization.', |
|
233 | + '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.', |
|
234 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
235 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
236 | + 'faxNumber' => 'The fax number.', |
|
237 | + 'founder' => 'A person who founded this organization.', |
|
238 | + 'founders' => 'A person who founded this organization.', |
|
239 | + 'foundingDate' => 'The date that this organization was founded.', |
|
240 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
241 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
242 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
243 | + 'geo' => 'The geo coordinates of the place.', |
|
244 | + '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).', |
|
245 | + '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).', |
|
246 | + '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).', |
|
247 | + '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).', |
|
248 | + '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).)', |
|
249 | + '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).', |
|
250 | + '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).', |
|
251 | + '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).', |
|
252 | + '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).)', |
|
253 | + '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).', |
|
254 | + '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.', |
|
255 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
256 | + '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.', |
|
257 | + 'hasMap' => 'A URL to a map of the place.', |
|
258 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
259 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
260 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
261 | + '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. ', |
|
262 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
263 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
264 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
265 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
266 | + '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. ', |
|
267 | + '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.', |
|
268 | + '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.', |
|
269 | + '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).', |
|
270 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
271 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
272 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
273 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
274 | + 'logo' => 'An associated logo.', |
|
275 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
276 | + '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.', |
|
277 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
278 | + 'map' => 'A URL to a map of the place.', |
|
279 | + 'maps' => 'A URL to a map of the place.', |
|
280 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
281 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
282 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
283 | + 'members' => 'A member of this organization.', |
|
284 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
285 | + 'name' => 'The name of the item.', |
|
286 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
287 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
288 | + '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>.', |
|
289 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
290 | + '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.', |
|
291 | + 'owns' => 'Products owned by the organization or person.', |
|
292 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
293 | + 'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.', |
|
294 | + 'photo' => 'A photograph of this place.', |
|
295 | + 'photos' => 'Photographs of this place.', |
|
296 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
297 | + 'priceRange' => 'The price range of the business, for example ```$$$```.', |
|
298 | + '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', |
|
299 | + '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. ', |
|
300 | + 'review' => 'A review of the item.', |
|
301 | + 'reviews' => 'Review of the item.', |
|
302 | + '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.', |
|
303 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
304 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
305 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
306 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
307 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
308 | + '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.', |
|
309 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
310 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
311 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
312 | + 'telephone' => 'The telephone number.', |
|
313 | + '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.', |
|
314 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
315 | + 'url' => 'URL of the item.', |
|
316 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
317 | + ]; |
|
318 | + } |
|
319 | 319 | |
320 | 320 | |
321 | - /** |
|
322 | - * @inheritdoc |
|
323 | - */ |
|
324 | - public function getGoogleRequiredSchema(): array |
|
325 | - { |
|
326 | - return ['description', 'name']; |
|
327 | - } |
|
321 | + /** |
|
322 | + * @inheritdoc |
|
323 | + */ |
|
324 | + public function getGoogleRequiredSchema(): array |
|
325 | + { |
|
326 | + return ['description', 'name']; |
|
327 | + } |
|
328 | 328 | |
329 | 329 | |
330 | - /** |
|
331 | - * @inheritdoc |
|
332 | - */ |
|
333 | - public function getGoogleRecommendedSchema(): array |
|
334 | - { |
|
335 | - return ['image', 'url']; |
|
336 | - } |
|
330 | + /** |
|
331 | + * @inheritdoc |
|
332 | + */ |
|
333 | + public function getGoogleRecommendedSchema(): array |
|
334 | + { |
|
335 | + return ['image', 'url']; |
|
336 | + } |
|
337 | 337 | |
338 | 338 | |
339 | - /** |
|
340 | - * @inheritdoc |
|
341 | - */ |
|
342 | - public function defineRules(): array |
|
343 | - { |
|
344 | - $rules = parent::defineRules(); |
|
345 | - $rules = array_merge($rules, [ |
|
346 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
347 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
348 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
349 | - ]); |
|
339 | + /** |
|
340 | + * @inheritdoc |
|
341 | + */ |
|
342 | + public function defineRules(): array |
|
343 | + { |
|
344 | + $rules = parent::defineRules(); |
|
345 | + $rules = array_merge($rules, [ |
|
346 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
347 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
348 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
349 | + ]); |
|
350 | 350 | |
351 | - return $rules; |
|
352 | - } |
|
351 | + return $rules; |
|
352 | + } |
|
353 | 353 | } |
@@ -25,126 +25,126 @@ |
||
25 | 25 | */ |
26 | 26 | class UnclassifiedAdultConsideration extends MetaJsonLd implements UnclassifiedAdultConsiderationInterface, AdultOrientedEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
27 | 27 | { |
28 | - use UnclassifiedAdultConsiderationTrait; |
|
29 | - use AdultOrientedEnumerationTrait; |
|
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 = 'UnclassifiedAdultConsideration'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/UnclassifiedAdultConsideration'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'The item is suitable only for adults, without indicating why. Due to widespread use of "adult" as a euphemism for "sexual", many such items are likely suited also for the SexualContentConsideration code.'; |
|
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 | - } |
|
28 | + use UnclassifiedAdultConsiderationTrait; |
|
29 | + use AdultOrientedEnumerationTrait; |
|
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 = 'UnclassifiedAdultConsideration'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/UnclassifiedAdultConsideration'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'The item is suitable only for adults, without indicating why. Due to widespread use of "adult" as a euphemism for "sexual", many such items are likely suited also for the SexualContentConsideration code.'; |
|
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,132 +23,132 @@ |
||
23 | 23 | */ |
24 | 24 | class HealthPlanCostSharingSpecification extends MetaJsonLd implements HealthPlanCostSharingSpecificationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use HealthPlanCostSharingSpecificationTrait; |
|
27 | - use IntangibleTrait; |
|
28 | - use ThingTrait; |
|
29 | - |
|
30 | - /** |
|
31 | - * The Schema.org Type Name |
|
32 | - * |
|
33 | - * @var string |
|
34 | - */ |
|
35 | - public static $schemaTypeName = 'HealthPlanCostSharingSpecification'; |
|
36 | - |
|
37 | - /** |
|
38 | - * The Schema.org Type Scope |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public static $schemaTypeScope = 'https://schema.org/HealthPlanCostSharingSpecification'; |
|
43 | - |
|
44 | - /** |
|
45 | - * The Schema.org Type Extends |
|
46 | - * |
|
47 | - * @var string |
|
48 | - */ |
|
49 | - public static $schemaTypeExtends = 'Intangible'; |
|
50 | - |
|
51 | - /** |
|
52 | - * The Schema.org Type Description |
|
53 | - * |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public static $schemaTypeDescription = 'A description of costs to the patient under a given network or formulary.'; |
|
57 | - |
|
58 | - |
|
59 | - /** |
|
60 | - * @inheritdoc |
|
61 | - */ |
|
62 | - public function getSchemaPropertyNames(): array |
|
63 | - { |
|
64 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - /** |
|
69 | - * @inheritdoc |
|
70 | - */ |
|
71 | - public function getSchemaPropertyExpectedTypes(): array |
|
72 | - { |
|
73 | - return [ |
|
74 | - 'additionalType' => ['URL'], |
|
75 | - 'alternateName' => ['Text'], |
|
76 | - 'description' => ['Text'], |
|
77 | - 'disambiguatingDescription' => ['Text'], |
|
78 | - 'healthPlanCoinsuranceOption' => ['Text'], |
|
79 | - 'healthPlanCoinsuranceRate' => ['Number'], |
|
80 | - 'healthPlanCopay' => ['PriceSpecification'], |
|
81 | - 'healthPlanCopayOption' => ['Text'], |
|
82 | - 'healthPlanPharmacyCategory' => ['Text'], |
|
83 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | - 'image' => ['URL', 'ImageObject'], |
|
85 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
86 | - 'name' => ['Text'], |
|
87 | - 'potentialAction' => ['Action'], |
|
88 | - 'sameAs' => ['URL'], |
|
89 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
90 | - 'url' => ['URL'] |
|
91 | - ]; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * @inheritdoc |
|
97 | - */ |
|
98 | - public function getSchemaPropertyDescriptions(): array |
|
99 | - { |
|
100 | - return [ |
|
101 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | - 'alternateName' => 'An alias for the item.', |
|
103 | - '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 | - 'healthPlanCoinsuranceOption' => 'Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?', |
|
106 | - 'healthPlanCoinsuranceRate' => 'The rate of coinsurance expressed as a number between 0.0 and 1.0.', |
|
107 | - 'healthPlanCopay' => 'The copay amount.', |
|
108 | - 'healthPlanCopayOption' => 'Whether the copay is before or after deductible, etc. TODO: Is this a closed set?', |
|
109 | - 'healthPlanPharmacyCategory' => 'The category or type of pharmacy associated with this cost sharing.', |
|
110 | - '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. ', |
|
111 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
112 | - '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.', |
|
113 | - 'name' => 'The name of the item.', |
|
114 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
115 | - '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.', |
|
116 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
117 | - 'url' => 'URL of the item.' |
|
118 | - ]; |
|
119 | - } |
|
120 | - |
|
121 | - |
|
122 | - /** |
|
123 | - * @inheritdoc |
|
124 | - */ |
|
125 | - public function getGoogleRequiredSchema(): array |
|
126 | - { |
|
127 | - return ['description', 'name']; |
|
128 | - } |
|
129 | - |
|
130 | - |
|
131 | - /** |
|
132 | - * @inheritdoc |
|
133 | - */ |
|
134 | - public function getGoogleRecommendedSchema(): array |
|
135 | - { |
|
136 | - return ['image', 'url']; |
|
137 | - } |
|
138 | - |
|
139 | - |
|
140 | - /** |
|
141 | - * @inheritdoc |
|
142 | - */ |
|
143 | - public function defineRules(): array |
|
144 | - { |
|
145 | - $rules = parent::defineRules(); |
|
146 | - $rules = array_merge($rules, [ |
|
147 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
148 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
149 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
150 | - ]); |
|
151 | - |
|
152 | - return $rules; |
|
153 | - } |
|
26 | + use HealthPlanCostSharingSpecificationTrait; |
|
27 | + use IntangibleTrait; |
|
28 | + use ThingTrait; |
|
29 | + |
|
30 | + /** |
|
31 | + * The Schema.org Type Name |
|
32 | + * |
|
33 | + * @var string |
|
34 | + */ |
|
35 | + public static $schemaTypeName = 'HealthPlanCostSharingSpecification'; |
|
36 | + |
|
37 | + /** |
|
38 | + * The Schema.org Type Scope |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public static $schemaTypeScope = 'https://schema.org/HealthPlanCostSharingSpecification'; |
|
43 | + |
|
44 | + /** |
|
45 | + * The Schema.org Type Extends |
|
46 | + * |
|
47 | + * @var string |
|
48 | + */ |
|
49 | + public static $schemaTypeExtends = 'Intangible'; |
|
50 | + |
|
51 | + /** |
|
52 | + * The Schema.org Type Description |
|
53 | + * |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public static $schemaTypeDescription = 'A description of costs to the patient under a given network or formulary.'; |
|
57 | + |
|
58 | + |
|
59 | + /** |
|
60 | + * @inheritdoc |
|
61 | + */ |
|
62 | + public function getSchemaPropertyNames(): array |
|
63 | + { |
|
64 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + /** |
|
69 | + * @inheritdoc |
|
70 | + */ |
|
71 | + public function getSchemaPropertyExpectedTypes(): array |
|
72 | + { |
|
73 | + return [ |
|
74 | + 'additionalType' => ['URL'], |
|
75 | + 'alternateName' => ['Text'], |
|
76 | + 'description' => ['Text'], |
|
77 | + 'disambiguatingDescription' => ['Text'], |
|
78 | + 'healthPlanCoinsuranceOption' => ['Text'], |
|
79 | + 'healthPlanCoinsuranceRate' => ['Number'], |
|
80 | + 'healthPlanCopay' => ['PriceSpecification'], |
|
81 | + 'healthPlanCopayOption' => ['Text'], |
|
82 | + 'healthPlanPharmacyCategory' => ['Text'], |
|
83 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | + 'image' => ['URL', 'ImageObject'], |
|
85 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
86 | + 'name' => ['Text'], |
|
87 | + 'potentialAction' => ['Action'], |
|
88 | + 'sameAs' => ['URL'], |
|
89 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
90 | + 'url' => ['URL'] |
|
91 | + ]; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * @inheritdoc |
|
97 | + */ |
|
98 | + public function getSchemaPropertyDescriptions(): array |
|
99 | + { |
|
100 | + return [ |
|
101 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | + 'alternateName' => 'An alias for the item.', |
|
103 | + '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 | + 'healthPlanCoinsuranceOption' => 'Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed set?', |
|
106 | + 'healthPlanCoinsuranceRate' => 'The rate of coinsurance expressed as a number between 0.0 and 1.0.', |
|
107 | + 'healthPlanCopay' => 'The copay amount.', |
|
108 | + 'healthPlanCopayOption' => 'Whether the copay is before or after deductible, etc. TODO: Is this a closed set?', |
|
109 | + 'healthPlanPharmacyCategory' => 'The category or type of pharmacy associated with this cost sharing.', |
|
110 | + '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. ', |
|
111 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
112 | + '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.', |
|
113 | + 'name' => 'The name of the item.', |
|
114 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
115 | + '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.', |
|
116 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
117 | + 'url' => 'URL of the item.' |
|
118 | + ]; |
|
119 | + } |
|
120 | + |
|
121 | + |
|
122 | + /** |
|
123 | + * @inheritdoc |
|
124 | + */ |
|
125 | + public function getGoogleRequiredSchema(): array |
|
126 | + { |
|
127 | + return ['description', 'name']; |
|
128 | + } |
|
129 | + |
|
130 | + |
|
131 | + /** |
|
132 | + * @inheritdoc |
|
133 | + */ |
|
134 | + public function getGoogleRecommendedSchema(): array |
|
135 | + { |
|
136 | + return ['image', 'url']; |
|
137 | + } |
|
138 | + |
|
139 | + |
|
140 | + /** |
|
141 | + * @inheritdoc |
|
142 | + */ |
|
143 | + public function defineRules(): array |
|
144 | + { |
|
145 | + $rules = parent::defineRules(); |
|
146 | + $rules = array_merge($rules, [ |
|
147 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
148 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
149 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
150 | + ]); |
|
151 | + |
|
152 | + return $rules; |
|
153 | + } |
|
154 | 154 | } |
@@ -27,139 +27,139 @@ |
||
27 | 27 | */ |
28 | 28 | class TouristTrip extends MetaJsonLd implements TouristTripInterface, TripInterface, IntangibleInterface, ThingInterface |
29 | 29 | { |
30 | - use TouristTripTrait; |
|
31 | - use TripTrait; |
|
32 | - use IntangibleTrait; |
|
33 | - use ThingTrait; |
|
34 | - |
|
35 | - /** |
|
36 | - * The Schema.org Type Name |
|
37 | - * |
|
38 | - * @var string |
|
39 | - */ |
|
40 | - public static $schemaTypeName = 'TouristTrip'; |
|
41 | - |
|
42 | - /** |
|
43 | - * The Schema.org Type Scope |
|
44 | - * |
|
45 | - * @var string |
|
46 | - */ |
|
47 | - public static $schemaTypeScope = 'https://schema.org/TouristTrip'; |
|
48 | - |
|
49 | - /** |
|
50 | - * The Schema.org Type Extends |
|
51 | - * |
|
52 | - * @var string |
|
53 | - */ |
|
54 | - public static $schemaTypeExtends = 'Trip'; |
|
55 | - |
|
56 | - /** |
|
57 | - * The Schema.org Type Description |
|
58 | - * |
|
59 | - * @var string |
|
60 | - */ |
|
61 | - public static $schemaTypeDescription = "A tourist trip. A created itinerary of visits to one or more places of interest ([[TouristAttraction]]/[[TouristDestination]]) often linked by a similar theme, geographic area, or interest to a particular [[touristType]]. The [UNWTO](http://www2.unwto.org/) defines tourism trip as the Trip taken by visitors.\n (See examples below.)"; |
|
62 | - |
|
63 | - |
|
64 | - /** |
|
65 | - * @inheritdoc |
|
66 | - */ |
|
67 | - public function getSchemaPropertyNames(): array |
|
68 | - { |
|
69 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
70 | - } |
|
71 | - |
|
72 | - |
|
73 | - /** |
|
74 | - * @inheritdoc |
|
75 | - */ |
|
76 | - public function getSchemaPropertyExpectedTypes(): array |
|
77 | - { |
|
78 | - return [ |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'alternateName' => ['Text'], |
|
81 | - 'arrivalTime' => ['DateTime', 'Time'], |
|
82 | - 'departureTime' => ['Time', 'DateTime'], |
|
83 | - 'description' => ['Text'], |
|
84 | - 'disambiguatingDescription' => ['Text'], |
|
85 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
86 | - 'image' => ['URL', 'ImageObject'], |
|
87 | - 'itinerary' => ['ItemList', 'Place'], |
|
88 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
89 | - 'name' => ['Text'], |
|
90 | - 'offers' => ['Demand', 'Offer'], |
|
91 | - 'partOfTrip' => ['Trip'], |
|
92 | - 'potentialAction' => ['Action'], |
|
93 | - 'provider' => ['Organization', 'Person'], |
|
94 | - 'sameAs' => ['URL'], |
|
95 | - 'subTrip' => ['Trip'], |
|
96 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | - 'touristType' => ['Text', 'Audience'], |
|
98 | - 'url' => ['URL'] |
|
99 | - ]; |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * @inheritdoc |
|
105 | - */ |
|
106 | - public function getSchemaPropertyDescriptions(): array |
|
107 | - { |
|
108 | - return [ |
|
109 | - '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.', |
|
110 | - 'alternateName' => 'An alias for the item.', |
|
111 | - 'arrivalTime' => 'The expected arrival time.', |
|
112 | - 'departureTime' => 'The expected departure time.', |
|
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 | - '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. ', |
|
116 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
117 | - 'itinerary' => 'Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples).', |
|
118 | - '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.', |
|
119 | - 'name' => 'The name of the item.', |
|
120 | - 'offers' => 'An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. ', |
|
121 | - 'partOfTrip' => 'Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip.', |
|
122 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
123 | - '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.', |
|
124 | - '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.', |
|
125 | - 'subTrip' => 'Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip.', |
|
126 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
127 | - 'touristType' => 'Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. ', |
|
128 | - 'url' => 'URL of the item.' |
|
129 | - ]; |
|
130 | - } |
|
131 | - |
|
132 | - |
|
133 | - /** |
|
134 | - * @inheritdoc |
|
135 | - */ |
|
136 | - public function getGoogleRequiredSchema(): array |
|
137 | - { |
|
138 | - return ['description', 'name']; |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - /** |
|
143 | - * @inheritdoc |
|
144 | - */ |
|
145 | - public function getGoogleRecommendedSchema(): array |
|
146 | - { |
|
147 | - return ['image', 'url']; |
|
148 | - } |
|
149 | - |
|
150 | - |
|
151 | - /** |
|
152 | - * @inheritdoc |
|
153 | - */ |
|
154 | - public function defineRules(): array |
|
155 | - { |
|
156 | - $rules = parent::defineRules(); |
|
157 | - $rules = array_merge($rules, [ |
|
158 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
159 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
160 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
161 | - ]); |
|
162 | - |
|
163 | - return $rules; |
|
164 | - } |
|
30 | + use TouristTripTrait; |
|
31 | + use TripTrait; |
|
32 | + use IntangibleTrait; |
|
33 | + use ThingTrait; |
|
34 | + |
|
35 | + /** |
|
36 | + * The Schema.org Type Name |
|
37 | + * |
|
38 | + * @var string |
|
39 | + */ |
|
40 | + public static $schemaTypeName = 'TouristTrip'; |
|
41 | + |
|
42 | + /** |
|
43 | + * The Schema.org Type Scope |
|
44 | + * |
|
45 | + * @var string |
|
46 | + */ |
|
47 | + public static $schemaTypeScope = 'https://schema.org/TouristTrip'; |
|
48 | + |
|
49 | + /** |
|
50 | + * The Schema.org Type Extends |
|
51 | + * |
|
52 | + * @var string |
|
53 | + */ |
|
54 | + public static $schemaTypeExtends = 'Trip'; |
|
55 | + |
|
56 | + /** |
|
57 | + * The Schema.org Type Description |
|
58 | + * |
|
59 | + * @var string |
|
60 | + */ |
|
61 | + public static $schemaTypeDescription = "A tourist trip. A created itinerary of visits to one or more places of interest ([[TouristAttraction]]/[[TouristDestination]]) often linked by a similar theme, geographic area, or interest to a particular [[touristType]]. The [UNWTO](http://www2.unwto.org/) defines tourism trip as the Trip taken by visitors.\n (See examples below.)"; |
|
62 | + |
|
63 | + |
|
64 | + /** |
|
65 | + * @inheritdoc |
|
66 | + */ |
|
67 | + public function getSchemaPropertyNames(): array |
|
68 | + { |
|
69 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
70 | + } |
|
71 | + |
|
72 | + |
|
73 | + /** |
|
74 | + * @inheritdoc |
|
75 | + */ |
|
76 | + public function getSchemaPropertyExpectedTypes(): array |
|
77 | + { |
|
78 | + return [ |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'alternateName' => ['Text'], |
|
81 | + 'arrivalTime' => ['DateTime', 'Time'], |
|
82 | + 'departureTime' => ['Time', 'DateTime'], |
|
83 | + 'description' => ['Text'], |
|
84 | + 'disambiguatingDescription' => ['Text'], |
|
85 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
86 | + 'image' => ['URL', 'ImageObject'], |
|
87 | + 'itinerary' => ['ItemList', 'Place'], |
|
88 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
89 | + 'name' => ['Text'], |
|
90 | + 'offers' => ['Demand', 'Offer'], |
|
91 | + 'partOfTrip' => ['Trip'], |
|
92 | + 'potentialAction' => ['Action'], |
|
93 | + 'provider' => ['Organization', 'Person'], |
|
94 | + 'sameAs' => ['URL'], |
|
95 | + 'subTrip' => ['Trip'], |
|
96 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | + 'touristType' => ['Text', 'Audience'], |
|
98 | + 'url' => ['URL'] |
|
99 | + ]; |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * @inheritdoc |
|
105 | + */ |
|
106 | + public function getSchemaPropertyDescriptions(): array |
|
107 | + { |
|
108 | + return [ |
|
109 | + '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.', |
|
110 | + 'alternateName' => 'An alias for the item.', |
|
111 | + 'arrivalTime' => 'The expected arrival time.', |
|
112 | + 'departureTime' => 'The expected departure time.', |
|
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 | + '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. ', |
|
116 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
117 | + 'itinerary' => 'Destination(s) ( [[Place]] ) that make up a trip. For a trip where destination order is important use [[ItemList]] to specify that order (see examples).', |
|
118 | + '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.', |
|
119 | + 'name' => 'The name of the item.', |
|
120 | + 'offers' => 'An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer. ', |
|
121 | + 'partOfTrip' => 'Identifies that this [[Trip]] is a subTrip of another Trip. For example Day 1, Day 2, etc. of a multi-day trip.', |
|
122 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
123 | + '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.', |
|
124 | + '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.', |
|
125 | + 'subTrip' => 'Identifies a [[Trip]] that is a subTrip of this Trip. For example Day 1, Day 2, etc. of a multi-day trip.', |
|
126 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
127 | + 'touristType' => 'Attraction suitable for type(s) of tourist. E.g. children, visitors from a particular country, etc. ', |
|
128 | + 'url' => 'URL of the item.' |
|
129 | + ]; |
|
130 | + } |
|
131 | + |
|
132 | + |
|
133 | + /** |
|
134 | + * @inheritdoc |
|
135 | + */ |
|
136 | + public function getGoogleRequiredSchema(): array |
|
137 | + { |
|
138 | + return ['description', 'name']; |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + /** |
|
143 | + * @inheritdoc |
|
144 | + */ |
|
145 | + public function getGoogleRecommendedSchema(): array |
|
146 | + { |
|
147 | + return ['image', 'url']; |
|
148 | + } |
|
149 | + |
|
150 | + |
|
151 | + /** |
|
152 | + * @inheritdoc |
|
153 | + */ |
|
154 | + public function defineRules(): array |
|
155 | + { |
|
156 | + $rules = parent::defineRules(); |
|
157 | + $rules = array_merge($rules, [ |
|
158 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
159 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
160 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
161 | + ]); |
|
162 | + |
|
163 | + return $rules; |
|
164 | + } |
|
165 | 165 | } |
@@ -24,127 +24,127 @@ |
||
24 | 24 | */ |
25 | 25 | class BodyMeasurementUnderbust extends MetaJsonLd implements BodyMeasurementUnderbustInterface, BodyMeasurementTypeEnumerationInterface, MeasurementTypeEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use BodyMeasurementUnderbustTrait; |
|
28 | - use BodyMeasurementTypeEnumerationTrait; |
|
29 | - use MeasurementTypeEnumerationTrait; |
|
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 = 'BodyMeasurementUnderbust'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/BodyMeasurementUnderbust'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'BodyMeasurementTypeEnumeration'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'Girth of body just below the bust. Used, for example, to fit women\'s swimwear.'; |
|
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 BodyMeasurementUnderbustTrait; |
|
28 | + use BodyMeasurementTypeEnumerationTrait; |
|
29 | + use MeasurementTypeEnumerationTrait; |
|
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 = 'BodyMeasurementUnderbust'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/BodyMeasurementUnderbust'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'BodyMeasurementTypeEnumeration'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'Girth of body just below the bust. Used, for example, to fit women\'s swimwear.'; |
|
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 | } |
@@ -25,338 +25,338 @@ |
||
25 | 25 | */ |
26 | 26 | class Psychiatric extends MetaJsonLd implements PsychiatricInterface, MedicalBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, MedicalEnumerationInterface |
27 | 27 | { |
28 | - use PsychiatricTrait; |
|
29 | - use MedicalBusinessTrait; |
|
30 | - use LocalBusinessTrait; |
|
31 | - use PlaceTrait; |
|
32 | - use ThingTrait; |
|
33 | - use OrganizationTrait; |
|
34 | - use MedicalSpecialtyTrait; |
|
35 | - use SpecialtyTrait; |
|
36 | - use EnumerationTrait; |
|
37 | - use IntangibleTrait; |
|
38 | - use MedicalEnumerationTrait; |
|
28 | + use PsychiatricTrait; |
|
29 | + use MedicalBusinessTrait; |
|
30 | + use LocalBusinessTrait; |
|
31 | + use PlaceTrait; |
|
32 | + use ThingTrait; |
|
33 | + use OrganizationTrait; |
|
34 | + use MedicalSpecialtyTrait; |
|
35 | + use SpecialtyTrait; |
|
36 | + use EnumerationTrait; |
|
37 | + use IntangibleTrait; |
|
38 | + use MedicalEnumerationTrait; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Name |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeName = 'Psychiatric'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Name |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeName = 'Psychiatric'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Scope |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeScope = 'https://schema.org/Psychiatric'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Scope |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeScope = 'https://schema.org/Psychiatric'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Extends |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeExtends = 'MedicalBusiness'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Extends |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeExtends = 'MedicalBusiness'; |
|
60 | 60 | |
61 | - /** |
|
62 | - * The Schema.org Type Description |
|
63 | - * |
|
64 | - * @var string |
|
65 | - */ |
|
66 | - public static $schemaTypeDescription = 'A specific branch of medical science that is concerned with the study, treatment, and prevention of mental illness, using both medical and psychological therapies.'; |
|
61 | + /** |
|
62 | + * The Schema.org Type Description |
|
63 | + * |
|
64 | + * @var string |
|
65 | + */ |
|
66 | + public static $schemaTypeDescription = 'A specific branch of medical science that is concerned with the study, treatment, and prevention of mental illness, using both medical and psychological therapies.'; |
|
67 | 67 | |
68 | 68 | |
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyNames(): array |
|
73 | - { |
|
74 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
75 | - } |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyNames(): array |
|
73 | + { |
|
74 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
75 | + } |
|
76 | 76 | |
77 | 77 | |
78 | - /** |
|
79 | - * @inheritdoc |
|
80 | - */ |
|
81 | - public function getSchemaPropertyExpectedTypes(): array |
|
82 | - { |
|
83 | - return [ |
|
84 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
85 | - 'additionalProperty' => ['PropertyValue'], |
|
86 | - 'additionalType' => ['URL'], |
|
87 | - 'address' => ['Text', 'PostalAddress'], |
|
88 | - 'aggregateRating' => ['AggregateRating'], |
|
89 | - 'alternateName' => ['Text'], |
|
90 | - 'alumni' => ['Person'], |
|
91 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
92 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
93 | - 'award' => ['Text'], |
|
94 | - 'awards' => ['Text'], |
|
95 | - 'branchCode' => ['Text'], |
|
96 | - 'branchOf' => ['Organization'], |
|
97 | - 'brand' => ['Brand', 'Organization'], |
|
98 | - 'contactPoint' => ['ContactPoint'], |
|
99 | - 'contactPoints' => ['ContactPoint'], |
|
100 | - 'containedIn' => ['Place'], |
|
101 | - 'containedInPlace' => ['Place'], |
|
102 | - 'containsPlace' => ['Place'], |
|
103 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
104 | - 'currenciesAccepted' => ['Text'], |
|
105 | - 'department' => ['Organization'], |
|
106 | - 'description' => ['Text'], |
|
107 | - 'disambiguatingDescription' => ['Text'], |
|
108 | - 'dissolutionDate' => ['Date'], |
|
109 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
110 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
111 | - 'duns' => ['Text'], |
|
112 | - 'email' => ['Text'], |
|
113 | - 'employee' => ['Person'], |
|
114 | - 'employees' => ['Person'], |
|
115 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
116 | - 'event' => ['Event'], |
|
117 | - 'events' => ['Event'], |
|
118 | - 'faxNumber' => ['Text'], |
|
119 | - 'founder' => ['Person'], |
|
120 | - 'founders' => ['Person'], |
|
121 | - 'foundingDate' => ['Date'], |
|
122 | - 'foundingLocation' => ['Place'], |
|
123 | - 'funder' => ['Organization', 'Person'], |
|
124 | - 'funding' => ['Grant'], |
|
125 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
126 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
127 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
128 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
129 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
130 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
131 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
132 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
133 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
134 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
135 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
136 | - 'globalLocationNumber' => ['Text'], |
|
137 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
138 | - 'hasDriveThroughService' => ['Boolean'], |
|
139 | - 'hasMap' => ['URL', 'Map'], |
|
140 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
141 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
142 | - 'hasPOS' => ['Place'], |
|
143 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
144 | - 'image' => ['URL', 'ImageObject'], |
|
145 | - 'interactionStatistic' => ['InteractionCounter'], |
|
146 | - 'isAccessibleForFree' => ['Boolean'], |
|
147 | - 'isicV4' => ['Text'], |
|
148 | - 'iso6523Code' => ['Text'], |
|
149 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
150 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
151 | - 'knowsLanguage' => ['Text', 'Language'], |
|
152 | - 'latitude' => ['Number', 'Text'], |
|
153 | - 'legalName' => ['Text'], |
|
154 | - 'leiCode' => ['Text'], |
|
155 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
156 | - 'logo' => ['ImageObject', 'URL'], |
|
157 | - 'longitude' => ['Text', 'Number'], |
|
158 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
159 | - 'makesOffer' => ['Offer'], |
|
160 | - 'map' => ['URL'], |
|
161 | - 'maps' => ['URL'], |
|
162 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
163 | - 'member' => ['Organization', 'Person'], |
|
164 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
165 | - 'members' => ['Organization', 'Person'], |
|
166 | - 'naics' => ['Text'], |
|
167 | - 'name' => ['Text'], |
|
168 | - 'nonprofitStatus' => ['NonprofitType'], |
|
169 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
170 | - 'openingHours' => ['Text'], |
|
171 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
172 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
173 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
174 | - 'parentOrganization' => ['Organization'], |
|
175 | - 'paymentAccepted' => ['Text'], |
|
176 | - 'photo' => ['Photograph', 'ImageObject'], |
|
177 | - 'photos' => ['ImageObject', 'Photograph'], |
|
178 | - 'potentialAction' => ['Action'], |
|
179 | - 'priceRange' => ['Text'], |
|
180 | - 'publicAccess' => ['Boolean'], |
|
181 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
182 | - 'review' => ['Review'], |
|
183 | - 'reviews' => ['Review'], |
|
184 | - 'sameAs' => ['URL'], |
|
185 | - 'seeks' => ['Demand'], |
|
186 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
187 | - 'slogan' => ['Text'], |
|
188 | - 'smokingAllowed' => ['Boolean'], |
|
189 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
190 | - 'sponsor' => ['Organization', 'Person'], |
|
191 | - 'subOrganization' => ['Organization'], |
|
192 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
193 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
194 | - 'taxID' => ['Text'], |
|
195 | - 'telephone' => ['Text'], |
|
196 | - 'tourBookingPage' => ['URL'], |
|
197 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
198 | - 'url' => ['URL'], |
|
199 | - 'vatID' => ['Text'] |
|
200 | - ]; |
|
201 | - } |
|
78 | + /** |
|
79 | + * @inheritdoc |
|
80 | + */ |
|
81 | + public function getSchemaPropertyExpectedTypes(): array |
|
82 | + { |
|
83 | + return [ |
|
84 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
85 | + 'additionalProperty' => ['PropertyValue'], |
|
86 | + 'additionalType' => ['URL'], |
|
87 | + 'address' => ['Text', 'PostalAddress'], |
|
88 | + 'aggregateRating' => ['AggregateRating'], |
|
89 | + 'alternateName' => ['Text'], |
|
90 | + 'alumni' => ['Person'], |
|
91 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
92 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
93 | + 'award' => ['Text'], |
|
94 | + 'awards' => ['Text'], |
|
95 | + 'branchCode' => ['Text'], |
|
96 | + 'branchOf' => ['Organization'], |
|
97 | + 'brand' => ['Brand', 'Organization'], |
|
98 | + 'contactPoint' => ['ContactPoint'], |
|
99 | + 'contactPoints' => ['ContactPoint'], |
|
100 | + 'containedIn' => ['Place'], |
|
101 | + 'containedInPlace' => ['Place'], |
|
102 | + 'containsPlace' => ['Place'], |
|
103 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
104 | + 'currenciesAccepted' => ['Text'], |
|
105 | + 'department' => ['Organization'], |
|
106 | + 'description' => ['Text'], |
|
107 | + 'disambiguatingDescription' => ['Text'], |
|
108 | + 'dissolutionDate' => ['Date'], |
|
109 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
110 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
111 | + 'duns' => ['Text'], |
|
112 | + 'email' => ['Text'], |
|
113 | + 'employee' => ['Person'], |
|
114 | + 'employees' => ['Person'], |
|
115 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
116 | + 'event' => ['Event'], |
|
117 | + 'events' => ['Event'], |
|
118 | + 'faxNumber' => ['Text'], |
|
119 | + 'founder' => ['Person'], |
|
120 | + 'founders' => ['Person'], |
|
121 | + 'foundingDate' => ['Date'], |
|
122 | + 'foundingLocation' => ['Place'], |
|
123 | + 'funder' => ['Organization', 'Person'], |
|
124 | + 'funding' => ['Grant'], |
|
125 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
126 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
127 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
128 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
129 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
130 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
131 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
132 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
133 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
134 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
135 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
136 | + 'globalLocationNumber' => ['Text'], |
|
137 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
138 | + 'hasDriveThroughService' => ['Boolean'], |
|
139 | + 'hasMap' => ['URL', 'Map'], |
|
140 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
141 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
142 | + 'hasPOS' => ['Place'], |
|
143 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
144 | + 'image' => ['URL', 'ImageObject'], |
|
145 | + 'interactionStatistic' => ['InteractionCounter'], |
|
146 | + 'isAccessibleForFree' => ['Boolean'], |
|
147 | + 'isicV4' => ['Text'], |
|
148 | + 'iso6523Code' => ['Text'], |
|
149 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
150 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
151 | + 'knowsLanguage' => ['Text', 'Language'], |
|
152 | + 'latitude' => ['Number', 'Text'], |
|
153 | + 'legalName' => ['Text'], |
|
154 | + 'leiCode' => ['Text'], |
|
155 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
156 | + 'logo' => ['ImageObject', 'URL'], |
|
157 | + 'longitude' => ['Text', 'Number'], |
|
158 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
159 | + 'makesOffer' => ['Offer'], |
|
160 | + 'map' => ['URL'], |
|
161 | + 'maps' => ['URL'], |
|
162 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
163 | + 'member' => ['Organization', 'Person'], |
|
164 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
165 | + 'members' => ['Organization', 'Person'], |
|
166 | + 'naics' => ['Text'], |
|
167 | + 'name' => ['Text'], |
|
168 | + 'nonprofitStatus' => ['NonprofitType'], |
|
169 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
170 | + 'openingHours' => ['Text'], |
|
171 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
172 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
173 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
174 | + 'parentOrganization' => ['Organization'], |
|
175 | + 'paymentAccepted' => ['Text'], |
|
176 | + 'photo' => ['Photograph', 'ImageObject'], |
|
177 | + 'photos' => ['ImageObject', 'Photograph'], |
|
178 | + 'potentialAction' => ['Action'], |
|
179 | + 'priceRange' => ['Text'], |
|
180 | + 'publicAccess' => ['Boolean'], |
|
181 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
182 | + 'review' => ['Review'], |
|
183 | + 'reviews' => ['Review'], |
|
184 | + 'sameAs' => ['URL'], |
|
185 | + 'seeks' => ['Demand'], |
|
186 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
187 | + 'slogan' => ['Text'], |
|
188 | + 'smokingAllowed' => ['Boolean'], |
|
189 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
190 | + 'sponsor' => ['Organization', 'Person'], |
|
191 | + 'subOrganization' => ['Organization'], |
|
192 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
193 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
194 | + 'taxID' => ['Text'], |
|
195 | + 'telephone' => ['Text'], |
|
196 | + 'tourBookingPage' => ['URL'], |
|
197 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
198 | + 'url' => ['URL'], |
|
199 | + 'vatID' => ['Text'] |
|
200 | + ]; |
|
201 | + } |
|
202 | 202 | |
203 | 203 | |
204 | - /** |
|
205 | - * @inheritdoc |
|
206 | - */ |
|
207 | - public function getSchemaPropertyDescriptions(): array |
|
208 | - { |
|
209 | - return [ |
|
210 | - '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.', |
|
211 | - '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. ', |
|
212 | - '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.', |
|
213 | - 'address' => 'Physical address of the item.', |
|
214 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
215 | - 'alternateName' => 'An alias for the item.', |
|
216 | - 'alumni' => 'Alumni of an organization.', |
|
217 | - '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.', |
|
218 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
219 | - 'award' => 'An award won by or for this item.', |
|
220 | - 'awards' => 'Awards won by or for this item.', |
|
221 | - '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. ', |
|
222 | - 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
223 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
224 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
225 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
226 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
227 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
228 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
229 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
230 | - '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".', |
|
231 | - '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.', |
|
232 | - 'description' => 'A description of the item.', |
|
233 | - '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.', |
|
234 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
235 | - '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.', |
|
236 | - '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.', |
|
237 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
238 | - 'email' => 'Email address.', |
|
239 | - 'employee' => 'Someone working for this organization.', |
|
240 | - 'employees' => 'People working for this organization.', |
|
241 | - '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.', |
|
242 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
243 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
244 | - 'faxNumber' => 'The fax number.', |
|
245 | - 'founder' => 'A person who founded this organization.', |
|
246 | - 'founders' => 'A person who founded this organization.', |
|
247 | - 'foundingDate' => 'The date that this organization was founded.', |
|
248 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
249 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
250 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
251 | - 'geo' => 'The geo coordinates of the place.', |
|
252 | - '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).', |
|
253 | - '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).', |
|
254 | - '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).', |
|
255 | - '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).', |
|
256 | - '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).)', |
|
257 | - '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).', |
|
258 | - '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).', |
|
259 | - '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).', |
|
260 | - '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).)', |
|
261 | - '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).', |
|
262 | - '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.', |
|
263 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
264 | - '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.', |
|
265 | - 'hasMap' => 'A URL to a map of the place.', |
|
266 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
267 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
268 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
269 | - '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. ', |
|
270 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
271 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
272 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
273 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
274 | - '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. ', |
|
275 | - '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.', |
|
276 | - '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.', |
|
277 | - '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).', |
|
278 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
279 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
280 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
281 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
282 | - 'logo' => 'An associated logo.', |
|
283 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
284 | - '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.', |
|
285 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
286 | - 'map' => 'A URL to a map of the place.', |
|
287 | - 'maps' => 'A URL to a map of the place.', |
|
288 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
289 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
290 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
291 | - 'members' => 'A member of this organization.', |
|
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 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
313 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
314 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
315 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
316 | - '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.', |
|
317 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
318 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
319 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
320 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
321 | - 'telephone' => 'The telephone number.', |
|
322 | - '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.', |
|
323 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
324 | - 'url' => 'URL of the item.', |
|
325 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
326 | - ]; |
|
327 | - } |
|
204 | + /** |
|
205 | + * @inheritdoc |
|
206 | + */ |
|
207 | + public function getSchemaPropertyDescriptions(): array |
|
208 | + { |
|
209 | + return [ |
|
210 | + '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.', |
|
211 | + '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. ', |
|
212 | + '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.', |
|
213 | + 'address' => 'Physical address of the item.', |
|
214 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
215 | + 'alternateName' => 'An alias for the item.', |
|
216 | + 'alumni' => 'Alumni of an organization.', |
|
217 | + '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.', |
|
218 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
219 | + 'award' => 'An award won by or for this item.', |
|
220 | + 'awards' => 'Awards won by or for this item.', |
|
221 | + '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. ', |
|
222 | + 'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].', |
|
223 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
224 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
225 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
226 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
227 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
228 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
229 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
230 | + '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".', |
|
231 | + '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.', |
|
232 | + 'description' => 'A description of the item.', |
|
233 | + '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.', |
|
234 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
235 | + '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.', |
|
236 | + '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.', |
|
237 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
238 | + 'email' => 'Email address.', |
|
239 | + 'employee' => 'Someone working for this organization.', |
|
240 | + 'employees' => 'People working for this organization.', |
|
241 | + '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.', |
|
242 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
243 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
244 | + 'faxNumber' => 'The fax number.', |
|
245 | + 'founder' => 'A person who founded this organization.', |
|
246 | + 'founders' => 'A person who founded this organization.', |
|
247 | + 'foundingDate' => 'The date that this organization was founded.', |
|
248 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
249 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
250 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
251 | + 'geo' => 'The geo coordinates of the place.', |
|
252 | + '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).', |
|
253 | + '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).', |
|
254 | + '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).', |
|
255 | + '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).', |
|
256 | + '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).)', |
|
257 | + '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).', |
|
258 | + '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).', |
|
259 | + '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).', |
|
260 | + '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).)', |
|
261 | + '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).', |
|
262 | + '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.', |
|
263 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
264 | + '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.', |
|
265 | + 'hasMap' => 'A URL to a map of the place.', |
|
266 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
267 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
268 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
269 | + '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. ', |
|
270 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
271 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
272 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
273 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
274 | + '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. ', |
|
275 | + '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.', |
|
276 | + '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.', |
|
277 | + '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).', |
|
278 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
279 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
280 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
281 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
282 | + 'logo' => 'An associated logo.', |
|
283 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
284 | + '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.', |
|
285 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
286 | + 'map' => 'A URL to a map of the place.', |
|
287 | + 'maps' => 'A URL to a map of the place.', |
|
288 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
289 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
290 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
291 | + 'members' => 'A member of this organization.', |
|
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 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
313 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
314 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
315 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
316 | + '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.', |
|
317 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
318 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
319 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
320 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
321 | + 'telephone' => 'The telephone number.', |
|
322 | + '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.', |
|
323 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
324 | + 'url' => 'URL of the item.', |
|
325 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
326 | + ]; |
|
327 | + } |
|
328 | 328 | |
329 | 329 | |
330 | - /** |
|
331 | - * @inheritdoc |
|
332 | - */ |
|
333 | - public function getGoogleRequiredSchema(): array |
|
334 | - { |
|
335 | - return ['description', 'name']; |
|
336 | - } |
|
330 | + /** |
|
331 | + * @inheritdoc |
|
332 | + */ |
|
333 | + public function getGoogleRequiredSchema(): array |
|
334 | + { |
|
335 | + return ['description', 'name']; |
|
336 | + } |
|
337 | 337 | |
338 | 338 | |
339 | - /** |
|
340 | - * @inheritdoc |
|
341 | - */ |
|
342 | - public function getGoogleRecommendedSchema(): array |
|
343 | - { |
|
344 | - return ['image', 'url']; |
|
345 | - } |
|
339 | + /** |
|
340 | + * @inheritdoc |
|
341 | + */ |
|
342 | + public function getGoogleRecommendedSchema(): array |
|
343 | + { |
|
344 | + return ['image', 'url']; |
|
345 | + } |
|
346 | 346 | |
347 | 347 | |
348 | - /** |
|
349 | - * @inheritdoc |
|
350 | - */ |
|
351 | - public function defineRules(): array |
|
352 | - { |
|
353 | - $rules = parent::defineRules(); |
|
354 | - $rules = array_merge($rules, [ |
|
355 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
356 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
357 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
358 | - ]); |
|
348 | + /** |
|
349 | + * @inheritdoc |
|
350 | + */ |
|
351 | + public function defineRules(): array |
|
352 | + { |
|
353 | + $rules = parent::defineRules(); |
|
354 | + $rules = array_merge($rules, [ |
|
355 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
356 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
357 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
358 | + ]); |
|
359 | 359 | |
360 | - return $rules; |
|
361 | - } |
|
360 | + return $rules; |
|
361 | + } |
|
362 | 362 | } |
@@ -24,127 +24,127 @@ |
||
24 | 24 | */ |
25 | 25 | class Nonprofit501c8 extends MetaJsonLd implements Nonprofit501c8Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use Nonprofit501c8Trait; |
|
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 = 'Nonprofit501c8'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/Nonprofit501c8'; |
|
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 = 'Nonprofit501c8: Non-profit type referring to Fraternal Beneficiary Societies and Associations.'; |
|
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 Nonprofit501c8Trait; |
|
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 = 'Nonprofit501c8'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/Nonprofit501c8'; |
|
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 = 'Nonprofit501c8: Non-profit type referring to Fraternal Beneficiary Societies and Associations.'; |
|
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 | } |