@@ -23,331 +23,331 @@ |
||
23 | 23 | */ |
24 | 24 | class NailSalon extends MetaJsonLd implements NailSalonInterface, HealthAndBeautyBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface |
25 | 25 | { |
26 | - use NailSalonTrait; |
|
27 | - use HealthAndBeautyBusinessTrait; |
|
28 | - use LocalBusinessTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
26 | + use NailSalonTrait; |
|
27 | + use HealthAndBeautyBusinessTrait; |
|
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 = 'NailSalon'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'NailSalon'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/NailSalon'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/NailSalon'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'HealthAndBeautyBusiness'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'HealthAndBeautyBusiness'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'A nail salon.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'A nail salon.'; |
|
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 | } |
@@ -23,99 +23,99 @@ |
||
23 | 23 | */ |
24 | 24 | class SchemaFalse extends MetaJsonLd implements SchemaFalseInterface, BooleanInterface |
25 | 25 | { |
26 | - use SchemaFalseTrait; |
|
27 | - use BooleanTrait; |
|
28 | - |
|
29 | - /** |
|
30 | - * The Schema.org Type Name |
|
31 | - * |
|
32 | - * @var string |
|
33 | - */ |
|
34 | - public static $schemaTypeName = 'False'; |
|
35 | - |
|
36 | - /** |
|
37 | - * The Schema.org Type Scope |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - public static $schemaTypeScope = 'https://schema.org/False'; |
|
42 | - |
|
43 | - /** |
|
44 | - * The Schema.org Type Extends |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public static $schemaTypeExtends = 'Boolean'; |
|
49 | - |
|
50 | - /** |
|
51 | - * The Schema.org Type Description |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
55 | - public static $schemaTypeDescription = 'The boolean value false.'; |
|
56 | - |
|
57 | - |
|
58 | - /** |
|
59 | - * @inheritdoc |
|
60 | - */ |
|
61 | - public function getSchemaPropertyNames(): array |
|
62 | - { |
|
63 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
64 | - } |
|
65 | - |
|
66 | - |
|
67 | - /** |
|
68 | - * @inheritdoc |
|
69 | - */ |
|
70 | - public function getSchemaPropertyExpectedTypes(): array |
|
71 | - { |
|
72 | - return [ |
|
73 | - |
|
74 | - ]; |
|
75 | - } |
|
76 | - |
|
77 | - |
|
78 | - /** |
|
79 | - * @inheritdoc |
|
80 | - */ |
|
81 | - public function getSchemaPropertyDescriptions(): array |
|
82 | - { |
|
83 | - return [ |
|
84 | - |
|
85 | - ]; |
|
86 | - } |
|
87 | - |
|
88 | - |
|
89 | - /** |
|
90 | - * @inheritdoc |
|
91 | - */ |
|
92 | - public function getGoogleRequiredSchema(): array |
|
93 | - { |
|
94 | - return []; |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - /** |
|
99 | - * @inheritdoc |
|
100 | - */ |
|
101 | - public function getGoogleRecommendedSchema(): array |
|
102 | - { |
|
103 | - return []; |
|
104 | - } |
|
105 | - |
|
106 | - |
|
107 | - /** |
|
108 | - * @inheritdoc |
|
109 | - */ |
|
110 | - public function defineRules(): array |
|
111 | - { |
|
112 | - $rules = parent::defineRules(); |
|
113 | - $rules = array_merge($rules, [ |
|
114 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
115 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
116 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
117 | - ]); |
|
118 | - |
|
119 | - return $rules; |
|
120 | - } |
|
26 | + use SchemaFalseTrait; |
|
27 | + use BooleanTrait; |
|
28 | + |
|
29 | + /** |
|
30 | + * The Schema.org Type Name |
|
31 | + * |
|
32 | + * @var string |
|
33 | + */ |
|
34 | + public static $schemaTypeName = 'False'; |
|
35 | + |
|
36 | + /** |
|
37 | + * The Schema.org Type Scope |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + public static $schemaTypeScope = 'https://schema.org/False'; |
|
42 | + |
|
43 | + /** |
|
44 | + * The Schema.org Type Extends |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public static $schemaTypeExtends = 'Boolean'; |
|
49 | + |
|
50 | + /** |
|
51 | + * The Schema.org Type Description |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | + public static $schemaTypeDescription = 'The boolean value false.'; |
|
56 | + |
|
57 | + |
|
58 | + /** |
|
59 | + * @inheritdoc |
|
60 | + */ |
|
61 | + public function getSchemaPropertyNames(): array |
|
62 | + { |
|
63 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
64 | + } |
|
65 | + |
|
66 | + |
|
67 | + /** |
|
68 | + * @inheritdoc |
|
69 | + */ |
|
70 | + public function getSchemaPropertyExpectedTypes(): array |
|
71 | + { |
|
72 | + return [ |
|
73 | + |
|
74 | + ]; |
|
75 | + } |
|
76 | + |
|
77 | + |
|
78 | + /** |
|
79 | + * @inheritdoc |
|
80 | + */ |
|
81 | + public function getSchemaPropertyDescriptions(): array |
|
82 | + { |
|
83 | + return [ |
|
84 | + |
|
85 | + ]; |
|
86 | + } |
|
87 | + |
|
88 | + |
|
89 | + /** |
|
90 | + * @inheritdoc |
|
91 | + */ |
|
92 | + public function getGoogleRequiredSchema(): array |
|
93 | + { |
|
94 | + return []; |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + /** |
|
99 | + * @inheritdoc |
|
100 | + */ |
|
101 | + public function getGoogleRecommendedSchema(): array |
|
102 | + { |
|
103 | + return []; |
|
104 | + } |
|
105 | + |
|
106 | + |
|
107 | + /** |
|
108 | + * @inheritdoc |
|
109 | + */ |
|
110 | + public function defineRules(): array |
|
111 | + { |
|
112 | + $rules = parent::defineRules(); |
|
113 | + $rules = array_merge($rules, [ |
|
114 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
115 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
116 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
117 | + ]); |
|
118 | + |
|
119 | + return $rules; |
|
120 | + } |
|
121 | 121 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class MisconceptionsHealthAspect extends MetaJsonLd implements MisconceptionsHealthAspectInterface, HealthAspectEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use MisconceptionsHealthAspectTrait; |
|
27 | - use HealthAspectEnumerationTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'MisconceptionsHealthAspect'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/MisconceptionsHealthAspect'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'HealthAspectEnumeration'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'Content about common misconceptions and myths that are related to a topic.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use MisconceptionsHealthAspectTrait; |
|
27 | + use HealthAspectEnumerationTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'MisconceptionsHealthAspect'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/MisconceptionsHealthAspect'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'HealthAspectEnumeration'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'Content about common misconceptions and myths that are related to a topic.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -24,350 +24,350 @@ |
||
24 | 24 | */ |
25 | 25 | class ArchiveComponent extends MetaJsonLd implements ArchiveComponentInterface, CreativeWorkInterface, ThingInterface |
26 | 26 | { |
27 | - use ArchiveComponentTrait; |
|
28 | - use CreativeWorkTrait; |
|
29 | - use ThingTrait; |
|
27 | + use ArchiveComponentTrait; |
|
28 | + use CreativeWorkTrait; |
|
29 | + use ThingTrait; |
|
30 | 30 | |
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'ArchiveComponent'; |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'ArchiveComponent'; |
|
37 | 37 | |
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/ArchiveComponent'; |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/ArchiveComponent'; |
|
44 | 44 | |
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'CreativeWork'; |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'CreativeWork'; |
|
51 | 51 | |
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'An intangible type to be applied to any archive content, carrying with it a set of properties required to describe archival items and collections.'; |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'An intangible type to be applied to any archive content, carrying with it a set of properties required to describe archival items and collections.'; |
|
58 | 58 | |
59 | 59 | |
60 | - /** |
|
61 | - * @inheritdoc |
|
62 | - */ |
|
63 | - public function getSchemaPropertyNames(): array |
|
64 | - { |
|
65 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | - } |
|
60 | + /** |
|
61 | + * @inheritdoc |
|
62 | + */ |
|
63 | + public function getSchemaPropertyNames(): array |
|
64 | + { |
|
65 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | + } |
|
67 | 67 | |
68 | 68 | |
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyExpectedTypes(): array |
|
73 | - { |
|
74 | - return [ |
|
75 | - 'about' => ['Thing'], |
|
76 | - 'abstract' => ['Text'], |
|
77 | - 'accessMode' => ['Text'], |
|
78 | - 'accessModeSufficient' => ['ItemList'], |
|
79 | - 'accessibilityAPI' => ['Text'], |
|
80 | - 'accessibilityControl' => ['Text'], |
|
81 | - 'accessibilityFeature' => ['Text'], |
|
82 | - 'accessibilityHazard' => ['Text'], |
|
83 | - 'accessibilitySummary' => ['Text'], |
|
84 | - 'accountablePerson' => ['Person'], |
|
85 | - 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
86 | - 'additionalType' => ['URL'], |
|
87 | - 'aggregateRating' => ['AggregateRating'], |
|
88 | - 'alternateName' => ['Text'], |
|
89 | - 'alternativeHeadline' => ['Text'], |
|
90 | - 'archivedAt' => ['WebPage', 'URL'], |
|
91 | - 'assesses' => ['DefinedTerm', 'Text'], |
|
92 | - 'associatedMedia' => ['MediaObject'], |
|
93 | - 'audience' => ['Audience'], |
|
94 | - 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
95 | - 'author' => ['Organization', 'Person'], |
|
96 | - 'award' => ['Text'], |
|
97 | - 'awards' => ['Text'], |
|
98 | - 'character' => ['Person'], |
|
99 | - 'citation' => ['CreativeWork', 'Text'], |
|
100 | - 'comment' => ['Comment'], |
|
101 | - 'commentCount' => ['Integer'], |
|
102 | - 'conditionsOfAccess' => ['Text'], |
|
103 | - 'contentLocation' => ['Place'], |
|
104 | - 'contentRating' => ['Text', 'Rating'], |
|
105 | - 'contentReferenceTime' => ['DateTime'], |
|
106 | - 'contributor' => ['Organization', 'Person'], |
|
107 | - 'copyrightHolder' => ['Organization', 'Person'], |
|
108 | - 'copyrightNotice' => ['Text'], |
|
109 | - 'copyrightYear' => ['Number'], |
|
110 | - 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
111 | - 'countryOfOrigin' => ['Country'], |
|
112 | - 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
113 | - 'creator' => ['Person', 'Organization'], |
|
114 | - 'creditText' => ['Text'], |
|
115 | - 'dateCreated' => ['DateTime', 'Date'], |
|
116 | - 'dateModified' => ['DateTime', 'Date'], |
|
117 | - 'datePublished' => ['DateTime', 'Date'], |
|
118 | - 'description' => ['Text'], |
|
119 | - 'disambiguatingDescription' => ['Text'], |
|
120 | - 'discussionUrl' => ['URL'], |
|
121 | - 'editEIDR' => ['URL', 'Text'], |
|
122 | - 'editor' => ['Person'], |
|
123 | - 'educationalAlignment' => ['AlignmentObject'], |
|
124 | - 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
125 | - 'educationalUse' => ['DefinedTerm', 'Text'], |
|
126 | - 'encoding' => ['MediaObject'], |
|
127 | - 'encodingFormat' => ['URL', 'Text'], |
|
128 | - 'encodings' => ['MediaObject'], |
|
129 | - 'exampleOfWork' => ['CreativeWork'], |
|
130 | - 'expires' => ['Date', 'DateTime'], |
|
131 | - 'fileFormat' => ['Text', 'URL'], |
|
132 | - 'funder' => ['Organization', 'Person'], |
|
133 | - 'funding' => ['Grant'], |
|
134 | - 'genre' => ['Text', 'URL'], |
|
135 | - 'hasPart' => ['CreativeWork'], |
|
136 | - 'headline' => ['Text'], |
|
137 | - 'holdingArchive' => ['ArchiveOrganization'], |
|
138 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
139 | - 'image' => ['URL', 'ImageObject'], |
|
140 | - 'inLanguage' => ['Text', 'Language'], |
|
141 | - 'interactionStatistic' => ['InteractionCounter'], |
|
142 | - 'interactivityType' => ['Text'], |
|
143 | - 'interpretedAsClaim' => ['Claim'], |
|
144 | - 'isAccessibleForFree' => ['Boolean'], |
|
145 | - 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
146 | - 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
147 | - 'isFamilyFriendly' => ['Boolean'], |
|
148 | - 'isPartOf' => ['URL', 'CreativeWork'], |
|
149 | - 'itemLocation' => ['Place', 'Text', 'PostalAddress'], |
|
150 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
151 | - 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
152 | - 'license' => ['URL', 'CreativeWork'], |
|
153 | - 'locationCreated' => ['Place'], |
|
154 | - 'mainEntity' => ['Thing'], |
|
155 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
156 | - 'maintainer' => ['Person', 'Organization'], |
|
157 | - 'material' => ['Product', 'URL', 'Text'], |
|
158 | - 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
159 | - 'mentions' => ['Thing'], |
|
160 | - 'name' => ['Text'], |
|
161 | - 'offers' => ['Demand', 'Offer'], |
|
162 | - 'pattern' => ['DefinedTerm', 'Text'], |
|
163 | - 'position' => ['Text', 'Integer'], |
|
164 | - 'potentialAction' => ['Action'], |
|
165 | - 'producer' => ['Organization', 'Person'], |
|
166 | - 'provider' => ['Organization', 'Person'], |
|
167 | - 'publication' => ['PublicationEvent'], |
|
168 | - 'publisher' => ['Organization', 'Person'], |
|
169 | - 'publisherImprint' => ['Organization'], |
|
170 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
171 | - 'recordedAt' => ['Event'], |
|
172 | - 'releasedEvent' => ['PublicationEvent'], |
|
173 | - 'review' => ['Review'], |
|
174 | - 'reviews' => ['Review'], |
|
175 | - 'sameAs' => ['URL'], |
|
176 | - 'schemaVersion' => ['URL', 'Text'], |
|
177 | - 'sdDatePublished' => ['Date'], |
|
178 | - 'sdLicense' => ['CreativeWork', 'URL'], |
|
179 | - 'sdPublisher' => ['Organization', 'Person'], |
|
180 | - 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
181 | - 'sourceOrganization' => ['Organization'], |
|
182 | - 'spatial' => ['Place'], |
|
183 | - 'spatialCoverage' => ['Place'], |
|
184 | - 'sponsor' => ['Organization', 'Person'], |
|
185 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
186 | - 'teaches' => ['DefinedTerm', 'Text'], |
|
187 | - 'temporal' => ['DateTime', 'Text'], |
|
188 | - 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
189 | - 'text' => ['Text'], |
|
190 | - 'thumbnailUrl' => ['URL'], |
|
191 | - 'timeRequired' => ['Duration'], |
|
192 | - 'translationOfWork' => ['CreativeWork'], |
|
193 | - 'translator' => ['Organization', 'Person'], |
|
194 | - 'typicalAgeRange' => ['Text'], |
|
195 | - 'url' => ['URL'], |
|
196 | - 'usageInfo' => ['URL', 'CreativeWork'], |
|
197 | - 'version' => ['Number', 'Text'], |
|
198 | - 'video' => ['VideoObject', 'Clip'], |
|
199 | - 'workExample' => ['CreativeWork'], |
|
200 | - 'workTranslation' => ['CreativeWork'] |
|
201 | - ]; |
|
202 | - } |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyExpectedTypes(): array |
|
73 | + { |
|
74 | + return [ |
|
75 | + 'about' => ['Thing'], |
|
76 | + 'abstract' => ['Text'], |
|
77 | + 'accessMode' => ['Text'], |
|
78 | + 'accessModeSufficient' => ['ItemList'], |
|
79 | + 'accessibilityAPI' => ['Text'], |
|
80 | + 'accessibilityControl' => ['Text'], |
|
81 | + 'accessibilityFeature' => ['Text'], |
|
82 | + 'accessibilityHazard' => ['Text'], |
|
83 | + 'accessibilitySummary' => ['Text'], |
|
84 | + 'accountablePerson' => ['Person'], |
|
85 | + 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
86 | + 'additionalType' => ['URL'], |
|
87 | + 'aggregateRating' => ['AggregateRating'], |
|
88 | + 'alternateName' => ['Text'], |
|
89 | + 'alternativeHeadline' => ['Text'], |
|
90 | + 'archivedAt' => ['WebPage', 'URL'], |
|
91 | + 'assesses' => ['DefinedTerm', 'Text'], |
|
92 | + 'associatedMedia' => ['MediaObject'], |
|
93 | + 'audience' => ['Audience'], |
|
94 | + 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
95 | + 'author' => ['Organization', 'Person'], |
|
96 | + 'award' => ['Text'], |
|
97 | + 'awards' => ['Text'], |
|
98 | + 'character' => ['Person'], |
|
99 | + 'citation' => ['CreativeWork', 'Text'], |
|
100 | + 'comment' => ['Comment'], |
|
101 | + 'commentCount' => ['Integer'], |
|
102 | + 'conditionsOfAccess' => ['Text'], |
|
103 | + 'contentLocation' => ['Place'], |
|
104 | + 'contentRating' => ['Text', 'Rating'], |
|
105 | + 'contentReferenceTime' => ['DateTime'], |
|
106 | + 'contributor' => ['Organization', 'Person'], |
|
107 | + 'copyrightHolder' => ['Organization', 'Person'], |
|
108 | + 'copyrightNotice' => ['Text'], |
|
109 | + 'copyrightYear' => ['Number'], |
|
110 | + 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
111 | + 'countryOfOrigin' => ['Country'], |
|
112 | + 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
113 | + 'creator' => ['Person', 'Organization'], |
|
114 | + 'creditText' => ['Text'], |
|
115 | + 'dateCreated' => ['DateTime', 'Date'], |
|
116 | + 'dateModified' => ['DateTime', 'Date'], |
|
117 | + 'datePublished' => ['DateTime', 'Date'], |
|
118 | + 'description' => ['Text'], |
|
119 | + 'disambiguatingDescription' => ['Text'], |
|
120 | + 'discussionUrl' => ['URL'], |
|
121 | + 'editEIDR' => ['URL', 'Text'], |
|
122 | + 'editor' => ['Person'], |
|
123 | + 'educationalAlignment' => ['AlignmentObject'], |
|
124 | + 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
125 | + 'educationalUse' => ['DefinedTerm', 'Text'], |
|
126 | + 'encoding' => ['MediaObject'], |
|
127 | + 'encodingFormat' => ['URL', 'Text'], |
|
128 | + 'encodings' => ['MediaObject'], |
|
129 | + 'exampleOfWork' => ['CreativeWork'], |
|
130 | + 'expires' => ['Date', 'DateTime'], |
|
131 | + 'fileFormat' => ['Text', 'URL'], |
|
132 | + 'funder' => ['Organization', 'Person'], |
|
133 | + 'funding' => ['Grant'], |
|
134 | + 'genre' => ['Text', 'URL'], |
|
135 | + 'hasPart' => ['CreativeWork'], |
|
136 | + 'headline' => ['Text'], |
|
137 | + 'holdingArchive' => ['ArchiveOrganization'], |
|
138 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
139 | + 'image' => ['URL', 'ImageObject'], |
|
140 | + 'inLanguage' => ['Text', 'Language'], |
|
141 | + 'interactionStatistic' => ['InteractionCounter'], |
|
142 | + 'interactivityType' => ['Text'], |
|
143 | + 'interpretedAsClaim' => ['Claim'], |
|
144 | + 'isAccessibleForFree' => ['Boolean'], |
|
145 | + 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
146 | + 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
147 | + 'isFamilyFriendly' => ['Boolean'], |
|
148 | + 'isPartOf' => ['URL', 'CreativeWork'], |
|
149 | + 'itemLocation' => ['Place', 'Text', 'PostalAddress'], |
|
150 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
151 | + 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
152 | + 'license' => ['URL', 'CreativeWork'], |
|
153 | + 'locationCreated' => ['Place'], |
|
154 | + 'mainEntity' => ['Thing'], |
|
155 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
156 | + 'maintainer' => ['Person', 'Organization'], |
|
157 | + 'material' => ['Product', 'URL', 'Text'], |
|
158 | + 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
159 | + 'mentions' => ['Thing'], |
|
160 | + 'name' => ['Text'], |
|
161 | + 'offers' => ['Demand', 'Offer'], |
|
162 | + 'pattern' => ['DefinedTerm', 'Text'], |
|
163 | + 'position' => ['Text', 'Integer'], |
|
164 | + 'potentialAction' => ['Action'], |
|
165 | + 'producer' => ['Organization', 'Person'], |
|
166 | + 'provider' => ['Organization', 'Person'], |
|
167 | + 'publication' => ['PublicationEvent'], |
|
168 | + 'publisher' => ['Organization', 'Person'], |
|
169 | + 'publisherImprint' => ['Organization'], |
|
170 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
171 | + 'recordedAt' => ['Event'], |
|
172 | + 'releasedEvent' => ['PublicationEvent'], |
|
173 | + 'review' => ['Review'], |
|
174 | + 'reviews' => ['Review'], |
|
175 | + 'sameAs' => ['URL'], |
|
176 | + 'schemaVersion' => ['URL', 'Text'], |
|
177 | + 'sdDatePublished' => ['Date'], |
|
178 | + 'sdLicense' => ['CreativeWork', 'URL'], |
|
179 | + 'sdPublisher' => ['Organization', 'Person'], |
|
180 | + 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
181 | + 'sourceOrganization' => ['Organization'], |
|
182 | + 'spatial' => ['Place'], |
|
183 | + 'spatialCoverage' => ['Place'], |
|
184 | + 'sponsor' => ['Organization', 'Person'], |
|
185 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
186 | + 'teaches' => ['DefinedTerm', 'Text'], |
|
187 | + 'temporal' => ['DateTime', 'Text'], |
|
188 | + 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
189 | + 'text' => ['Text'], |
|
190 | + 'thumbnailUrl' => ['URL'], |
|
191 | + 'timeRequired' => ['Duration'], |
|
192 | + 'translationOfWork' => ['CreativeWork'], |
|
193 | + 'translator' => ['Organization', 'Person'], |
|
194 | + 'typicalAgeRange' => ['Text'], |
|
195 | + 'url' => ['URL'], |
|
196 | + 'usageInfo' => ['URL', 'CreativeWork'], |
|
197 | + 'version' => ['Number', 'Text'], |
|
198 | + 'video' => ['VideoObject', 'Clip'], |
|
199 | + 'workExample' => ['CreativeWork'], |
|
200 | + 'workTranslation' => ['CreativeWork'] |
|
201 | + ]; |
|
202 | + } |
|
203 | 203 | |
204 | 204 | |
205 | - /** |
|
206 | - * @inheritdoc |
|
207 | - */ |
|
208 | - public function getSchemaPropertyDescriptions(): array |
|
209 | - { |
|
210 | - return [ |
|
211 | - 'about' => 'The subject matter of the content.', |
|
212 | - 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
213 | - 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
214 | - 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
215 | - 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
216 | - 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
217 | - 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
218 | - 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
219 | - 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
220 | - 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
221 | - 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
222 | - '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.', |
|
223 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
224 | - 'alternateName' => 'An alias for the item.', |
|
225 | - 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
226 | - 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
227 | - 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
228 | - 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
229 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
230 | - 'audio' => 'An embedded audio object.', |
|
231 | - 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
232 | - 'award' => 'An award won by or for this item.', |
|
233 | - 'awards' => 'Awards won by or for this item.', |
|
234 | - 'character' => 'Fictional person connected with a creative work.', |
|
235 | - 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
236 | - 'comment' => 'Comments, typically from users.', |
|
237 | - 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
238 | - 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
239 | - 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
240 | - 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
241 | - 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
242 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
243 | - 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
244 | - 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
245 | - 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
246 | - 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
247 | - 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
248 | - 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
249 | - 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
250 | - 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
251 | - 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
252 | - 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
253 | - 'datePublished' => 'Date of first broadcast/publication.', |
|
254 | - 'description' => 'A description of the item.', |
|
255 | - '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.', |
|
256 | - 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
257 | - 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
258 | - 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
259 | - 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
260 | - 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
261 | - 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
262 | - 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
263 | - 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
264 | - 'encodings' => 'A media object that encodes this CreativeWork.', |
|
265 | - 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
266 | - 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
267 | - 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
268 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
269 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
270 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
271 | - 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
272 | - 'headline' => 'Headline of the article.', |
|
273 | - 'holdingArchive' => '[[ArchiveOrganization]] that holds, keeps or maintains the [[ArchiveComponent]].', |
|
274 | - '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. ', |
|
275 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
276 | - 'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].', |
|
277 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
278 | - 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
279 | - 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
280 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
281 | - 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
282 | - 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
283 | - 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
284 | - 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
285 | - 'itemLocation' => 'Current location of the item.', |
|
286 | - '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.', |
|
287 | - 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
288 | - 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
289 | - 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
290 | - 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
291 | - '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.', |
|
292 | - 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
293 | - 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
294 | - 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
295 | - 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
296 | - 'name' => 'The name of the item.', |
|
297 | - '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. ', |
|
298 | - 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
299 | - 'position' => 'The position of an item in a series or sequence of items.', |
|
300 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
301 | - 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
302 | - '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.', |
|
303 | - 'publication' => 'A publication event associated with the item.', |
|
304 | - 'publisher' => 'The publisher of the creative work.', |
|
305 | - 'publisherImprint' => 'The publishing division which published the comic.', |
|
306 | - 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
307 | - 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
308 | - 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
309 | - 'review' => 'A review of the item.', |
|
310 | - 'reviews' => 'Review of the item.', |
|
311 | - '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.', |
|
312 | - 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
313 | - 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
314 | - 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
315 | - 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
316 | - 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
317 | - 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
318 | - 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
319 | - 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
320 | - '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.', |
|
321 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
322 | - 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
323 | - 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
324 | - 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
325 | - 'text' => 'The textual content of this CreativeWork.', |
|
326 | - 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
327 | - 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
328 | - 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
329 | - 'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.', |
|
330 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
331 | - 'url' => 'URL of the item.', |
|
332 | - 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
333 | - 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
334 | - 'video' => 'An embedded video object.', |
|
335 | - 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
336 | - 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
337 | - ]; |
|
338 | - } |
|
205 | + /** |
|
206 | + * @inheritdoc |
|
207 | + */ |
|
208 | + public function getSchemaPropertyDescriptions(): array |
|
209 | + { |
|
210 | + return [ |
|
211 | + 'about' => 'The subject matter of the content.', |
|
212 | + 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
213 | + 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
214 | + 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
215 | + 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
216 | + 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
217 | + 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
218 | + 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
219 | + 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
220 | + 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
221 | + 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
222 | + '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.', |
|
223 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
224 | + 'alternateName' => 'An alias for the item.', |
|
225 | + 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
226 | + 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
227 | + 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
228 | + 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
229 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
230 | + 'audio' => 'An embedded audio object.', |
|
231 | + 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
232 | + 'award' => 'An award won by or for this item.', |
|
233 | + 'awards' => 'Awards won by or for this item.', |
|
234 | + 'character' => 'Fictional person connected with a creative work.', |
|
235 | + 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
236 | + 'comment' => 'Comments, typically from users.', |
|
237 | + 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
238 | + 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
239 | + 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
240 | + 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
241 | + 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
242 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
243 | + 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
244 | + 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
245 | + 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
246 | + 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
247 | + 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
248 | + 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
249 | + 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
250 | + 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
251 | + 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
252 | + 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
253 | + 'datePublished' => 'Date of first broadcast/publication.', |
|
254 | + 'description' => 'A description of the item.', |
|
255 | + '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.', |
|
256 | + 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
257 | + 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
258 | + 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
259 | + 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
260 | + 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
261 | + 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
262 | + 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
263 | + 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
264 | + 'encodings' => 'A media object that encodes this CreativeWork.', |
|
265 | + 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
266 | + 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
267 | + 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
268 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
269 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
270 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
271 | + 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
272 | + 'headline' => 'Headline of the article.', |
|
273 | + 'holdingArchive' => '[[ArchiveOrganization]] that holds, keeps or maintains the [[ArchiveComponent]].', |
|
274 | + '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. ', |
|
275 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
276 | + 'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].', |
|
277 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
278 | + 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
279 | + 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
280 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
281 | + 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
282 | + 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
283 | + 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
284 | + 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
285 | + 'itemLocation' => 'Current location of the item.', |
|
286 | + '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.', |
|
287 | + 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
288 | + 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
289 | + 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
290 | + 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
291 | + '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.', |
|
292 | + 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
293 | + 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
294 | + 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
295 | + 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
296 | + 'name' => 'The name of the item.', |
|
297 | + '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. ', |
|
298 | + 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
299 | + 'position' => 'The position of an item in a series or sequence of items.', |
|
300 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
301 | + 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
302 | + '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.', |
|
303 | + 'publication' => 'A publication event associated with the item.', |
|
304 | + 'publisher' => 'The publisher of the creative work.', |
|
305 | + 'publisherImprint' => 'The publishing division which published the comic.', |
|
306 | + 'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]]. While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ', |
|
307 | + 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
308 | + 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
309 | + 'review' => 'A review of the item.', |
|
310 | + 'reviews' => 'Review of the item.', |
|
311 | + '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.', |
|
312 | + 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
313 | + 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
314 | + 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
315 | + 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
316 | + 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
317 | + 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
318 | + 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
319 | + 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
320 | + '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.', |
|
321 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
322 | + 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
323 | + 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
324 | + 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
325 | + 'text' => 'The textual content of this CreativeWork.', |
|
326 | + 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
327 | + 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
328 | + 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
329 | + 'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.', |
|
330 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
331 | + 'url' => 'URL of the item.', |
|
332 | + 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
333 | + 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
334 | + 'video' => 'An embedded video object.', |
|
335 | + 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
336 | + 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
337 | + ]; |
|
338 | + } |
|
339 | 339 | |
340 | 340 | |
341 | - /** |
|
342 | - * @inheritdoc |
|
343 | - */ |
|
344 | - public function getGoogleRequiredSchema(): array |
|
345 | - { |
|
346 | - return ['description', 'name']; |
|
347 | - } |
|
341 | + /** |
|
342 | + * @inheritdoc |
|
343 | + */ |
|
344 | + public function getGoogleRequiredSchema(): array |
|
345 | + { |
|
346 | + return ['description', 'name']; |
|
347 | + } |
|
348 | 348 | |
349 | 349 | |
350 | - /** |
|
351 | - * @inheritdoc |
|
352 | - */ |
|
353 | - public function getGoogleRecommendedSchema(): array |
|
354 | - { |
|
355 | - return ['image', 'url']; |
|
356 | - } |
|
350 | + /** |
|
351 | + * @inheritdoc |
|
352 | + */ |
|
353 | + public function getGoogleRecommendedSchema(): array |
|
354 | + { |
|
355 | + return ['image', 'url']; |
|
356 | + } |
|
357 | 357 | |
358 | 358 | |
359 | - /** |
|
360 | - * @inheritdoc |
|
361 | - */ |
|
362 | - public function defineRules(): array |
|
363 | - { |
|
364 | - $rules = parent::defineRules(); |
|
365 | - $rules = array_merge($rules, [ |
|
366 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
367 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
368 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
369 | - ]); |
|
359 | + /** |
|
360 | + * @inheritdoc |
|
361 | + */ |
|
362 | + public function defineRules(): array |
|
363 | + { |
|
364 | + $rules = parent::defineRules(); |
|
365 | + $rules = array_merge($rules, [ |
|
366 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
367 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
368 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
369 | + ]); |
|
370 | 370 | |
371 | - return $rules; |
|
372 | - } |
|
371 | + return $rules; |
|
372 | + } |
|
373 | 373 | } |
@@ -24,129 +24,129 @@ |
||
24 | 24 | */ |
25 | 25 | class OfferCatalog extends MetaJsonLd implements OfferCatalogInterface, ItemListInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use OfferCatalogTrait; |
|
28 | - use ItemListTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'OfferCatalog'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/OfferCatalog'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'ItemList'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'An OfferCatalog is an ItemList that contains related Offers and/or further OfferCatalogs that are offeredBy the same provider.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'itemListElement' => ['ListItem', 'Text', 'Thing'], |
|
83 | - 'itemListOrder' => ['ItemListOrderType', 'Text'], |
|
84 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | - 'name' => ['Text'], |
|
86 | - 'numberOfItems' => ['Integer'], |
|
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 | - '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 | - 'itemListElement' => 'For itemListElement values, you can use simple strings (e.g. "Peter", "Paul", "Mary"), existing entities, or use ListItem. Text values are best if the elements in the list are plain strings. Existing entities are best for a simple, unordered list of existing things in your data. ListItem is used with ordered lists when you want to provide additional context about the element in that list or when the same item might be in different places in different lists. Note: The order of elements in your mark-up is not sufficient for indicating the order or elements. Use ListItem with a \'position\' property in such cases.', |
|
108 | - 'itemListOrder' => 'Type of ordering (e.g. Ascending, Descending, Unordered).', |
|
109 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | - 'name' => 'The name of the item.', |
|
111 | - 'numberOfItems' => 'The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.', |
|
112 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
113 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
114 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
115 | - 'url' => 'URL of the item.' |
|
116 | - ]; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * @inheritdoc |
|
122 | - */ |
|
123 | - public function getGoogleRequiredSchema(): array |
|
124 | - { |
|
125 | - return ['description', 'name']; |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - /** |
|
130 | - * @inheritdoc |
|
131 | - */ |
|
132 | - public function getGoogleRecommendedSchema(): array |
|
133 | - { |
|
134 | - return ['image', 'url']; |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @inheritdoc |
|
140 | - */ |
|
141 | - public function defineRules(): array |
|
142 | - { |
|
143 | - $rules = parent::defineRules(); |
|
144 | - $rules = array_merge($rules, [ |
|
145 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | - ]); |
|
149 | - |
|
150 | - return $rules; |
|
151 | - } |
|
27 | + use OfferCatalogTrait; |
|
28 | + use ItemListTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'OfferCatalog'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/OfferCatalog'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'ItemList'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'An OfferCatalog is an ItemList that contains related Offers and/or further OfferCatalogs that are offeredBy the same provider.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'itemListElement' => ['ListItem', 'Text', 'Thing'], |
|
83 | + 'itemListOrder' => ['ItemListOrderType', 'Text'], |
|
84 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | + 'name' => ['Text'], |
|
86 | + 'numberOfItems' => ['Integer'], |
|
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 | + '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 | + 'itemListElement' => 'For itemListElement values, you can use simple strings (e.g. "Peter", "Paul", "Mary"), existing entities, or use ListItem. Text values are best if the elements in the list are plain strings. Existing entities are best for a simple, unordered list of existing things in your data. ListItem is used with ordered lists when you want to provide additional context about the element in that list or when the same item might be in different places in different lists. Note: The order of elements in your mark-up is not sufficient for indicating the order or elements. Use ListItem with a \'position\' property in such cases.', |
|
108 | + 'itemListOrder' => 'Type of ordering (e.g. Ascending, Descending, Unordered).', |
|
109 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | + 'name' => 'The name of the item.', |
|
111 | + 'numberOfItems' => 'The number of items in an ItemList. Note that some descriptions might not fully describe all items in a list (e.g., multi-page pagination); in such cases, the numberOfItems would be for the entire list.', |
|
112 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
113 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
114 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
115 | + 'url' => 'URL of the item.' |
|
116 | + ]; |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + /** |
|
121 | + * @inheritdoc |
|
122 | + */ |
|
123 | + public function getGoogleRequiredSchema(): array |
|
124 | + { |
|
125 | + return ['description', 'name']; |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + /** |
|
130 | + * @inheritdoc |
|
131 | + */ |
|
132 | + public function getGoogleRecommendedSchema(): array |
|
133 | + { |
|
134 | + return ['image', 'url']; |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @inheritdoc |
|
140 | + */ |
|
141 | + public function defineRules(): array |
|
142 | + { |
|
143 | + $rules = parent::defineRules(); |
|
144 | + $rules = array_merge($rules, [ |
|
145 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | + ]); |
|
149 | + |
|
150 | + return $rules; |
|
151 | + } |
|
152 | 152 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class ReturnInStore extends MetaJsonLd implements ReturnInStoreInterface, ReturnMethodEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use ReturnInStoreTrait; |
|
27 | - use ReturnMethodEnumerationTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'ReturnInStore'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/ReturnInStore'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'ReturnMethodEnumeration'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'Specifies that product returns must be made in a store.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use ReturnInStoreTrait; |
|
27 | + use ReturnMethodEnumerationTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'ReturnInStore'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/ReturnInStore'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'ReturnMethodEnumeration'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'Specifies that product returns must be made in a store.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class ActionStatusType extends MetaJsonLd implements ActionStatusTypeInterface, StatusEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use ActionStatusTypeTrait; |
|
27 | - use StatusEnumerationTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'ActionStatusType'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/ActionStatusType'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'StatusEnumeration'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'The status of an Action.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use ActionStatusTypeTrait; |
|
27 | + use StatusEnumerationTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'ActionStatusType'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/ActionStatusType'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'StatusEnumeration'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'The status of an Action.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -23,331 +23,331 @@ |
||
23 | 23 | */ |
24 | 24 | class Electrician extends MetaJsonLd implements ElectricianInterface, HomeAndConstructionBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface |
25 | 25 | { |
26 | - use ElectricianTrait; |
|
27 | - use HomeAndConstructionBusinessTrait; |
|
28 | - use LocalBusinessTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
26 | + use ElectricianTrait; |
|
27 | + use HomeAndConstructionBusinessTrait; |
|
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 = 'Electrician'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'Electrician'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/Electrician'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/Electrician'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'HomeAndConstructionBusiness'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'HomeAndConstructionBusiness'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'An electrician.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'An electrician.'; |
|
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 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class ViolenceConsideration extends MetaJsonLd implements ViolenceConsiderationInterface, AdultOrientedEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use ViolenceConsiderationTrait; |
|
27 | - use AdultOrientedEnumerationTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'ViolenceConsideration'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/ViolenceConsideration'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'Item shows or promotes violence.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use ViolenceConsiderationTrait; |
|
27 | + use AdultOrientedEnumerationTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'ViolenceConsideration'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/ViolenceConsideration'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'Item shows or promotes violence.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |