@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class WearableSizeSystemEnumeration extends MetaJsonLd implements WearableSizeSystemEnumerationInterface, SizeSystemEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use WearableSizeSystemEnumerationTrait; |
|
27 | - use SizeSystemEnumerationTrait; |
|
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 = 'WearableSizeSystemEnumeration'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/WearableSizeSystemEnumeration'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'SizeSystemEnumeration'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'Enumerates common size systems specific for wearable products'; |
|
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 WearableSizeSystemEnumerationTrait; |
|
27 | + use SizeSystemEnumerationTrait; |
|
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 = 'WearableSizeSystemEnumeration'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/WearableSizeSystemEnumeration'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'SizeSystemEnumeration'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'Enumerates common size systems specific for wearable products'; |
|
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,360 +24,360 @@ |
||
24 | 24 | */ |
25 | 25 | class SoftwareSourceCode extends MetaJsonLd implements SoftwareSourceCodeInterface, CreativeWorkInterface, ThingInterface |
26 | 26 | { |
27 | - use SoftwareSourceCodeTrait; |
|
28 | - use CreativeWorkTrait; |
|
29 | - use ThingTrait; |
|
27 | + use SoftwareSourceCodeTrait; |
|
28 | + use CreativeWorkTrait; |
|
29 | + use ThingTrait; |
|
30 | 30 | |
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'SoftwareSourceCode'; |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'SoftwareSourceCode'; |
|
37 | 37 | |
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/SoftwareSourceCode'; |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/SoftwareSourceCode'; |
|
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 = 'Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.'; |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'Computer programming source code. Example: Full (compile ready) solutions, code snippet samples, scripts, templates.'; |
|
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 | - 'codeRepository' => ['URL'], |
|
101 | - 'codeSampleType' => ['Text'], |
|
102 | - 'comment' => ['Comment'], |
|
103 | - 'commentCount' => ['Integer'], |
|
104 | - 'conditionsOfAccess' => ['Text'], |
|
105 | - 'contentLocation' => ['Place'], |
|
106 | - 'contentRating' => ['Text', 'Rating'], |
|
107 | - 'contentReferenceTime' => ['DateTime'], |
|
108 | - 'contributor' => ['Organization', 'Person'], |
|
109 | - 'copyrightHolder' => ['Organization', 'Person'], |
|
110 | - 'copyrightNotice' => ['Text'], |
|
111 | - 'copyrightYear' => ['Number'], |
|
112 | - 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
113 | - 'countryOfOrigin' => ['Country'], |
|
114 | - 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
115 | - 'creator' => ['Person', 'Organization'], |
|
116 | - 'creditText' => ['Text'], |
|
117 | - 'dateCreated' => ['DateTime', 'Date'], |
|
118 | - 'dateModified' => ['DateTime', 'Date'], |
|
119 | - 'datePublished' => ['DateTime', 'Date'], |
|
120 | - 'description' => ['Text'], |
|
121 | - 'disambiguatingDescription' => ['Text'], |
|
122 | - 'discussionUrl' => ['URL'], |
|
123 | - 'editEIDR' => ['URL', 'Text'], |
|
124 | - 'editor' => ['Person'], |
|
125 | - 'educationalAlignment' => ['AlignmentObject'], |
|
126 | - 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
127 | - 'educationalUse' => ['DefinedTerm', 'Text'], |
|
128 | - 'encoding' => ['MediaObject'], |
|
129 | - 'encodingFormat' => ['URL', 'Text'], |
|
130 | - 'encodings' => ['MediaObject'], |
|
131 | - 'exampleOfWork' => ['CreativeWork'], |
|
132 | - 'expires' => ['Date', 'DateTime'], |
|
133 | - 'fileFormat' => ['Text', 'URL'], |
|
134 | - 'funder' => ['Organization', 'Person'], |
|
135 | - 'funding' => ['Grant'], |
|
136 | - 'genre' => ['Text', 'URL'], |
|
137 | - 'hasPart' => ['CreativeWork'], |
|
138 | - 'headline' => ['Text'], |
|
139 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
140 | - 'image' => ['URL', 'ImageObject'], |
|
141 | - 'inLanguage' => ['Text', 'Language'], |
|
142 | - 'interactionStatistic' => ['InteractionCounter'], |
|
143 | - 'interactivityType' => ['Text'], |
|
144 | - 'interpretedAsClaim' => ['Claim'], |
|
145 | - 'isAccessibleForFree' => ['Boolean'], |
|
146 | - 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
147 | - 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
148 | - 'isFamilyFriendly' => ['Boolean'], |
|
149 | - 'isPartOf' => ['URL', 'CreativeWork'], |
|
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 | - 'programmingLanguage' => ['Text', 'ComputerLanguage'], |
|
167 | - 'provider' => ['Organization', 'Person'], |
|
168 | - 'publication' => ['PublicationEvent'], |
|
169 | - 'publisher' => ['Organization', 'Person'], |
|
170 | - 'publisherImprint' => ['Organization'], |
|
171 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
172 | - 'recordedAt' => ['Event'], |
|
173 | - 'releasedEvent' => ['PublicationEvent'], |
|
174 | - 'review' => ['Review'], |
|
175 | - 'reviews' => ['Review'], |
|
176 | - 'runtime' => ['Text'], |
|
177 | - 'runtimePlatform' => ['Text'], |
|
178 | - 'sameAs' => ['URL'], |
|
179 | - 'sampleType' => ['Text'], |
|
180 | - 'schemaVersion' => ['URL', 'Text'], |
|
181 | - 'sdDatePublished' => ['Date'], |
|
182 | - 'sdLicense' => ['CreativeWork', 'URL'], |
|
183 | - 'sdPublisher' => ['Organization', 'Person'], |
|
184 | - 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
185 | - 'sourceOrganization' => ['Organization'], |
|
186 | - 'spatial' => ['Place'], |
|
187 | - 'spatialCoverage' => ['Place'], |
|
188 | - 'sponsor' => ['Organization', 'Person'], |
|
189 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
190 | - 'targetProduct' => ['SoftwareApplication'], |
|
191 | - 'teaches' => ['DefinedTerm', 'Text'], |
|
192 | - 'temporal' => ['DateTime', 'Text'], |
|
193 | - 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
194 | - 'text' => ['Text'], |
|
195 | - 'thumbnailUrl' => ['URL'], |
|
196 | - 'timeRequired' => ['Duration'], |
|
197 | - 'translationOfWork' => ['CreativeWork'], |
|
198 | - 'translator' => ['Organization', 'Person'], |
|
199 | - 'typicalAgeRange' => ['Text'], |
|
200 | - 'url' => ['URL'], |
|
201 | - 'usageInfo' => ['URL', 'CreativeWork'], |
|
202 | - 'version' => ['Number', 'Text'], |
|
203 | - 'video' => ['VideoObject', 'Clip'], |
|
204 | - 'workExample' => ['CreativeWork'], |
|
205 | - 'workTranslation' => ['CreativeWork'] |
|
206 | - ]; |
|
207 | - } |
|
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 | + 'codeRepository' => ['URL'], |
|
101 | + 'codeSampleType' => ['Text'], |
|
102 | + 'comment' => ['Comment'], |
|
103 | + 'commentCount' => ['Integer'], |
|
104 | + 'conditionsOfAccess' => ['Text'], |
|
105 | + 'contentLocation' => ['Place'], |
|
106 | + 'contentRating' => ['Text', 'Rating'], |
|
107 | + 'contentReferenceTime' => ['DateTime'], |
|
108 | + 'contributor' => ['Organization', 'Person'], |
|
109 | + 'copyrightHolder' => ['Organization', 'Person'], |
|
110 | + 'copyrightNotice' => ['Text'], |
|
111 | + 'copyrightYear' => ['Number'], |
|
112 | + 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
113 | + 'countryOfOrigin' => ['Country'], |
|
114 | + 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
115 | + 'creator' => ['Person', 'Organization'], |
|
116 | + 'creditText' => ['Text'], |
|
117 | + 'dateCreated' => ['DateTime', 'Date'], |
|
118 | + 'dateModified' => ['DateTime', 'Date'], |
|
119 | + 'datePublished' => ['DateTime', 'Date'], |
|
120 | + 'description' => ['Text'], |
|
121 | + 'disambiguatingDescription' => ['Text'], |
|
122 | + 'discussionUrl' => ['URL'], |
|
123 | + 'editEIDR' => ['URL', 'Text'], |
|
124 | + 'editor' => ['Person'], |
|
125 | + 'educationalAlignment' => ['AlignmentObject'], |
|
126 | + 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
127 | + 'educationalUse' => ['DefinedTerm', 'Text'], |
|
128 | + 'encoding' => ['MediaObject'], |
|
129 | + 'encodingFormat' => ['URL', 'Text'], |
|
130 | + 'encodings' => ['MediaObject'], |
|
131 | + 'exampleOfWork' => ['CreativeWork'], |
|
132 | + 'expires' => ['Date', 'DateTime'], |
|
133 | + 'fileFormat' => ['Text', 'URL'], |
|
134 | + 'funder' => ['Organization', 'Person'], |
|
135 | + 'funding' => ['Grant'], |
|
136 | + 'genre' => ['Text', 'URL'], |
|
137 | + 'hasPart' => ['CreativeWork'], |
|
138 | + 'headline' => ['Text'], |
|
139 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
140 | + 'image' => ['URL', 'ImageObject'], |
|
141 | + 'inLanguage' => ['Text', 'Language'], |
|
142 | + 'interactionStatistic' => ['InteractionCounter'], |
|
143 | + 'interactivityType' => ['Text'], |
|
144 | + 'interpretedAsClaim' => ['Claim'], |
|
145 | + 'isAccessibleForFree' => ['Boolean'], |
|
146 | + 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
147 | + 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
148 | + 'isFamilyFriendly' => ['Boolean'], |
|
149 | + 'isPartOf' => ['URL', 'CreativeWork'], |
|
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 | + 'programmingLanguage' => ['Text', 'ComputerLanguage'], |
|
167 | + 'provider' => ['Organization', 'Person'], |
|
168 | + 'publication' => ['PublicationEvent'], |
|
169 | + 'publisher' => ['Organization', 'Person'], |
|
170 | + 'publisherImprint' => ['Organization'], |
|
171 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
172 | + 'recordedAt' => ['Event'], |
|
173 | + 'releasedEvent' => ['PublicationEvent'], |
|
174 | + 'review' => ['Review'], |
|
175 | + 'reviews' => ['Review'], |
|
176 | + 'runtime' => ['Text'], |
|
177 | + 'runtimePlatform' => ['Text'], |
|
178 | + 'sameAs' => ['URL'], |
|
179 | + 'sampleType' => ['Text'], |
|
180 | + 'schemaVersion' => ['URL', 'Text'], |
|
181 | + 'sdDatePublished' => ['Date'], |
|
182 | + 'sdLicense' => ['CreativeWork', 'URL'], |
|
183 | + 'sdPublisher' => ['Organization', 'Person'], |
|
184 | + 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
185 | + 'sourceOrganization' => ['Organization'], |
|
186 | + 'spatial' => ['Place'], |
|
187 | + 'spatialCoverage' => ['Place'], |
|
188 | + 'sponsor' => ['Organization', 'Person'], |
|
189 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
190 | + 'targetProduct' => ['SoftwareApplication'], |
|
191 | + 'teaches' => ['DefinedTerm', 'Text'], |
|
192 | + 'temporal' => ['DateTime', 'Text'], |
|
193 | + 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
194 | + 'text' => ['Text'], |
|
195 | + 'thumbnailUrl' => ['URL'], |
|
196 | + 'timeRequired' => ['Duration'], |
|
197 | + 'translationOfWork' => ['CreativeWork'], |
|
198 | + 'translator' => ['Organization', 'Person'], |
|
199 | + 'typicalAgeRange' => ['Text'], |
|
200 | + 'url' => ['URL'], |
|
201 | + 'usageInfo' => ['URL', 'CreativeWork'], |
|
202 | + 'version' => ['Number', 'Text'], |
|
203 | + 'video' => ['VideoObject', 'Clip'], |
|
204 | + 'workExample' => ['CreativeWork'], |
|
205 | + 'workTranslation' => ['CreativeWork'] |
|
206 | + ]; |
|
207 | + } |
|
208 | 208 | |
209 | 209 | |
210 | - /** |
|
211 | - * @inheritdoc |
|
212 | - */ |
|
213 | - public function getSchemaPropertyDescriptions(): array |
|
214 | - { |
|
215 | - return [ |
|
216 | - 'about' => 'The subject matter of the content.', |
|
217 | - 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
218 | - '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).', |
|
219 | - '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).', |
|
220 | - '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).', |
|
221 | - '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).', |
|
222 | - '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).', |
|
223 | - '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).', |
|
224 | - '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."', |
|
225 | - 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
226 | - 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
227 | - '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.', |
|
228 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
229 | - 'alternateName' => 'An alias for the item.', |
|
230 | - 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
231 | - '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.', |
|
232 | - 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
233 | - 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
234 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
235 | - 'audio' => 'An embedded audio object.', |
|
236 | - '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.', |
|
237 | - 'award' => 'An award won by or for this item.', |
|
238 | - 'awards' => 'Awards won by or for this item.', |
|
239 | - 'character' => 'Fictional person connected with a creative work.', |
|
240 | - 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
241 | - 'codeRepository' => 'Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex).', |
|
242 | - 'codeSampleType' => 'What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.', |
|
243 | - 'comment' => 'Comments, typically from users.', |
|
244 | - '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.', |
|
245 | - '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 ". ', |
|
246 | - 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
247 | - 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
248 | - '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.', |
|
249 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
250 | - 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
251 | - '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.', |
|
252 | - 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
253 | - 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
254 | - '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.', |
|
255 | - '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.', |
|
256 | - 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
257 | - 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
258 | - 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
259 | - 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
260 | - 'datePublished' => 'Date of first broadcast/publication.', |
|
261 | - 'description' => 'A description of the item.', |
|
262 | - '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.', |
|
263 | - 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
264 | - '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. ', |
|
265 | - 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
266 | - '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.', |
|
267 | - '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.', |
|
268 | - 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
269 | - 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
270 | - '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.', |
|
271 | - 'encodings' => 'A media object that encodes this CreativeWork.', |
|
272 | - 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
273 | - '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.', |
|
274 | - '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.', |
|
275 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
276 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
277 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
278 | - 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
279 | - 'headline' => 'Headline of the article.', |
|
280 | - '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. ', |
|
281 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
282 | - '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]].', |
|
283 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
284 | - 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
285 | - '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]].', |
|
286 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
287 | - 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
288 | - '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.', |
|
289 | - 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
290 | - 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
291 | - '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.', |
|
292 | - 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
293 | - 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
294 | - 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
295 | - 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
296 | - '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.', |
|
297 | - '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. ', |
|
298 | - 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
299 | - 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
300 | - 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
301 | - 'name' => 'The name of the item.', |
|
302 | - '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. ', |
|
303 | - '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.', |
|
304 | - 'position' => 'The position of an item in a series or sequence of items.', |
|
305 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
306 | - 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
307 | - 'programmingLanguage' => 'The computer programming language.', |
|
308 | - '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.', |
|
309 | - 'publication' => 'A publication event associated with the item.', |
|
310 | - 'publisher' => 'The publisher of the creative work.', |
|
311 | - 'publisherImprint' => 'The publishing division which published the comic.', |
|
312 | - '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. ', |
|
313 | - 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
314 | - 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
315 | - 'review' => 'A review of the item.', |
|
316 | - 'reviews' => 'Review of the item.', |
|
317 | - 'runtime' => 'Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).', |
|
318 | - 'runtimePlatform' => 'Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).', |
|
319 | - '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.', |
|
320 | - 'sampleType' => 'What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.', |
|
321 | - '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.', |
|
322 | - 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
323 | - 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
324 | - '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.', |
|
325 | - '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. ', |
|
326 | - 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
327 | - 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
328 | - '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.', |
|
329 | - '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.', |
|
330 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
331 | - 'targetProduct' => 'Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used.', |
|
332 | - 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
333 | - '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.', |
|
334 | - '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.', |
|
335 | - 'text' => 'The textual content of this CreativeWork.', |
|
336 | - 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
337 | - '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\'.', |
|
338 | - 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
339 | - '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.', |
|
340 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
341 | - 'url' => 'URL of the item.', |
|
342 | - '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.', |
|
343 | - 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
344 | - 'video' => 'An embedded video object.', |
|
345 | - 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
346 | - '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.' |
|
347 | - ]; |
|
348 | - } |
|
210 | + /** |
|
211 | + * @inheritdoc |
|
212 | + */ |
|
213 | + public function getSchemaPropertyDescriptions(): array |
|
214 | + { |
|
215 | + return [ |
|
216 | + 'about' => 'The subject matter of the content.', |
|
217 | + 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
218 | + '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).', |
|
219 | + '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).', |
|
220 | + '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).', |
|
221 | + '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).', |
|
222 | + '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).', |
|
223 | + '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).', |
|
224 | + '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."', |
|
225 | + 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
226 | + 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
227 | + '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.', |
|
228 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
229 | + 'alternateName' => 'An alias for the item.', |
|
230 | + 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
231 | + '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.', |
|
232 | + 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
233 | + 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
234 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
235 | + 'audio' => 'An embedded audio object.', |
|
236 | + '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.', |
|
237 | + 'award' => 'An award won by or for this item.', |
|
238 | + 'awards' => 'Awards won by or for this item.', |
|
239 | + 'character' => 'Fictional person connected with a creative work.', |
|
240 | + 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
241 | + 'codeRepository' => 'Link to the repository where the un-compiled, human readable code and related code is located (SVN, GitHub, CodePlex).', |
|
242 | + 'codeSampleType' => 'What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.', |
|
243 | + 'comment' => 'Comments, typically from users.', |
|
244 | + '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.', |
|
245 | + '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 ". ', |
|
246 | + 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
247 | + 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
248 | + '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.', |
|
249 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
250 | + 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
251 | + '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.', |
|
252 | + 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
253 | + 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
254 | + '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.', |
|
255 | + '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.', |
|
256 | + 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
257 | + 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
258 | + 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
259 | + 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
260 | + 'datePublished' => 'Date of first broadcast/publication.', |
|
261 | + 'description' => 'A description of the item.', |
|
262 | + '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.', |
|
263 | + 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
264 | + '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. ', |
|
265 | + 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
266 | + '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.', |
|
267 | + '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.', |
|
268 | + 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
269 | + 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
270 | + '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.', |
|
271 | + 'encodings' => 'A media object that encodes this CreativeWork.', |
|
272 | + 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
273 | + '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.', |
|
274 | + '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.', |
|
275 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
276 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
277 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
278 | + 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
279 | + 'headline' => 'Headline of the article.', |
|
280 | + '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. ', |
|
281 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
282 | + '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]].', |
|
283 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
284 | + 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
285 | + '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]].', |
|
286 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
287 | + 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
288 | + '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.', |
|
289 | + 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
290 | + 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
291 | + '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.', |
|
292 | + 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
293 | + 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
294 | + 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
295 | + 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
296 | + '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.', |
|
297 | + '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. ', |
|
298 | + 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
299 | + 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
300 | + 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
301 | + 'name' => 'The name of the item.', |
|
302 | + '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. ', |
|
303 | + '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.', |
|
304 | + 'position' => 'The position of an item in a series or sequence of items.', |
|
305 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
306 | + 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
307 | + 'programmingLanguage' => 'The computer programming language.', |
|
308 | + '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.', |
|
309 | + 'publication' => 'A publication event associated with the item.', |
|
310 | + 'publisher' => 'The publisher of the creative work.', |
|
311 | + 'publisherImprint' => 'The publishing division which published the comic.', |
|
312 | + '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. ', |
|
313 | + 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
314 | + 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
315 | + 'review' => 'A review of the item.', |
|
316 | + 'reviews' => 'Review of the item.', |
|
317 | + 'runtime' => 'Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).', |
|
318 | + 'runtimePlatform' => 'Runtime platform or script interpreter dependencies (example: Java v1, Python 2.3, .NET Framework 3.0).', |
|
319 | + '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.', |
|
320 | + 'sampleType' => 'What type of code sample: full (compile ready) solution, code snippet, inline code, scripts, template.', |
|
321 | + '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.', |
|
322 | + 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
323 | + 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
324 | + '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.', |
|
325 | + '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. ', |
|
326 | + 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
327 | + 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
328 | + '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.', |
|
329 | + '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.', |
|
330 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
331 | + 'targetProduct' => 'Target Operating System / Product to which the code applies. If applies to several versions, just the product name can be used.', |
|
332 | + 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
333 | + '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.', |
|
334 | + '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.', |
|
335 | + 'text' => 'The textual content of this CreativeWork.', |
|
336 | + 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
337 | + '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\'.', |
|
338 | + 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
339 | + '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.', |
|
340 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
341 | + 'url' => 'URL of the item.', |
|
342 | + '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.', |
|
343 | + 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
344 | + 'video' => 'An embedded video object.', |
|
345 | + 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
346 | + '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.' |
|
347 | + ]; |
|
348 | + } |
|
349 | 349 | |
350 | 350 | |
351 | - /** |
|
352 | - * @inheritdoc |
|
353 | - */ |
|
354 | - public function getGoogleRequiredSchema(): array |
|
355 | - { |
|
356 | - return ['description', 'name']; |
|
357 | - } |
|
351 | + /** |
|
352 | + * @inheritdoc |
|
353 | + */ |
|
354 | + public function getGoogleRequiredSchema(): array |
|
355 | + { |
|
356 | + return ['description', 'name']; |
|
357 | + } |
|
358 | 358 | |
359 | 359 | |
360 | - /** |
|
361 | - * @inheritdoc |
|
362 | - */ |
|
363 | - public function getGoogleRecommendedSchema(): array |
|
364 | - { |
|
365 | - return ['image', 'url']; |
|
366 | - } |
|
360 | + /** |
|
361 | + * @inheritdoc |
|
362 | + */ |
|
363 | + public function getGoogleRecommendedSchema(): array |
|
364 | + { |
|
365 | + return ['image', 'url']; |
|
366 | + } |
|
367 | 367 | |
368 | 368 | |
369 | - /** |
|
370 | - * @inheritdoc |
|
371 | - */ |
|
372 | - public function defineRules(): array |
|
373 | - { |
|
374 | - $rules = parent::defineRules(); |
|
375 | - $rules = array_merge($rules, [ |
|
376 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
377 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
378 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
379 | - ]); |
|
369 | + /** |
|
370 | + * @inheritdoc |
|
371 | + */ |
|
372 | + public function defineRules(): array |
|
373 | + { |
|
374 | + $rules = parent::defineRules(); |
|
375 | + $rules = array_merge($rules, [ |
|
376 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
377 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
378 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
379 | + ]); |
|
380 | 380 | |
381 | - return $rules; |
|
382 | - } |
|
381 | + return $rules; |
|
382 | + } |
|
383 | 383 | } |
@@ -25,155 +25,155 @@ |
||
25 | 25 | */ |
26 | 26 | class BrainStructure extends MetaJsonLd implements BrainStructureInterface, AnatomicalStructureInterface, MedicalEntityInterface, ThingInterface |
27 | 27 | { |
28 | - use BrainStructureTrait; |
|
29 | - use AnatomicalStructureTrait; |
|
30 | - use MedicalEntityTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'BrainStructure'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/BrainStructure'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'AnatomicalStructure'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'Any anatomical structure which pertains to the soft nervous tissue functioning as the coordinating center of sensation and intellectual and nervous activity.'; |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'additionalType' => ['URL'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'associatedPathophysiology' => ['Text'], |
|
80 | - 'bodyLocation' => ['Text'], |
|
81 | - 'code' => ['MedicalCode'], |
|
82 | - 'connectedTo' => ['AnatomicalStructure'], |
|
83 | - 'description' => ['Text'], |
|
84 | - 'diagram' => ['ImageObject'], |
|
85 | - 'disambiguatingDescription' => ['Text'], |
|
86 | - 'funding' => ['Grant'], |
|
87 | - 'guideline' => ['MedicalGuideline'], |
|
88 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
89 | - 'image' => ['URL', 'ImageObject'], |
|
90 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
91 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
92 | - 'medicineSystem' => ['MedicineSystem'], |
|
93 | - 'name' => ['Text'], |
|
94 | - 'partOfSystem' => ['AnatomicalSystem'], |
|
95 | - 'potentialAction' => ['Action'], |
|
96 | - 'recognizingAuthority' => ['Organization'], |
|
97 | - 'relatedCondition' => ['MedicalCondition'], |
|
98 | - 'relatedTherapy' => ['MedicalTherapy'], |
|
99 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | - 'sameAs' => ['URL'], |
|
101 | - 'study' => ['MedicalStudy'], |
|
102 | - 'subStructure' => ['AnatomicalStructure'], |
|
103 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
104 | - 'url' => ['URL'] |
|
105 | - ]; |
|
106 | - } |
|
107 | - |
|
108 | - |
|
109 | - /** |
|
110 | - * @inheritdoc |
|
111 | - */ |
|
112 | - public function getSchemaPropertyDescriptions(): array |
|
113 | - { |
|
114 | - return [ |
|
115 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
116 | - 'alternateName' => 'An alias for the item.', |
|
117 | - 'associatedPathophysiology' => 'If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.', |
|
118 | - 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
119 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
120 | - 'connectedTo' => 'Other anatomical structures to which this structure is connected.', |
|
121 | - 'description' => 'A description of the item.', |
|
122 | - 'diagram' => 'An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.', |
|
123 | - '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.', |
|
124 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
125 | - 'guideline' => 'A medical guideline related to this entity.', |
|
126 | - '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. ', |
|
127 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | - '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.', |
|
130 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | - 'name' => 'The name of the item.', |
|
132 | - 'partOfSystem' => 'The anatomical or organ system that this structure is part of.', |
|
133 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
134 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
135 | - 'relatedCondition' => 'A medical condition associated with this anatomy.', |
|
136 | - 'relatedTherapy' => 'A medical therapy related to this anatomy.', |
|
137 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
138 | - '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.', |
|
139 | - 'study' => 'A medical study or trial related to this entity.', |
|
140 | - 'subStructure' => 'Component (sub-)structure(s) that comprise this anatomical structure.', |
|
141 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
142 | - 'url' => 'URL of the item.' |
|
143 | - ]; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - /** |
|
148 | - * @inheritdoc |
|
149 | - */ |
|
150 | - public function getGoogleRequiredSchema(): array |
|
151 | - { |
|
152 | - return ['description', 'name']; |
|
153 | - } |
|
154 | - |
|
155 | - |
|
156 | - /** |
|
157 | - * @inheritdoc |
|
158 | - */ |
|
159 | - public function getGoogleRecommendedSchema(): array |
|
160 | - { |
|
161 | - return ['image', 'url']; |
|
162 | - } |
|
163 | - |
|
164 | - |
|
165 | - /** |
|
166 | - * @inheritdoc |
|
167 | - */ |
|
168 | - public function defineRules(): array |
|
169 | - { |
|
170 | - $rules = parent::defineRules(); |
|
171 | - $rules = array_merge($rules, [ |
|
172 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
173 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
174 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
175 | - ]); |
|
176 | - |
|
177 | - return $rules; |
|
178 | - } |
|
28 | + use BrainStructureTrait; |
|
29 | + use AnatomicalStructureTrait; |
|
30 | + use MedicalEntityTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'BrainStructure'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/BrainStructure'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'AnatomicalStructure'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'Any anatomical structure which pertains to the soft nervous tissue functioning as the coordinating center of sensation and intellectual and nervous activity.'; |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'additionalType' => ['URL'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'associatedPathophysiology' => ['Text'], |
|
80 | + 'bodyLocation' => ['Text'], |
|
81 | + 'code' => ['MedicalCode'], |
|
82 | + 'connectedTo' => ['AnatomicalStructure'], |
|
83 | + 'description' => ['Text'], |
|
84 | + 'diagram' => ['ImageObject'], |
|
85 | + 'disambiguatingDescription' => ['Text'], |
|
86 | + 'funding' => ['Grant'], |
|
87 | + 'guideline' => ['MedicalGuideline'], |
|
88 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
89 | + 'image' => ['URL', 'ImageObject'], |
|
90 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
91 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
92 | + 'medicineSystem' => ['MedicineSystem'], |
|
93 | + 'name' => ['Text'], |
|
94 | + 'partOfSystem' => ['AnatomicalSystem'], |
|
95 | + 'potentialAction' => ['Action'], |
|
96 | + 'recognizingAuthority' => ['Organization'], |
|
97 | + 'relatedCondition' => ['MedicalCondition'], |
|
98 | + 'relatedTherapy' => ['MedicalTherapy'], |
|
99 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | + 'sameAs' => ['URL'], |
|
101 | + 'study' => ['MedicalStudy'], |
|
102 | + 'subStructure' => ['AnatomicalStructure'], |
|
103 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
104 | + 'url' => ['URL'] |
|
105 | + ]; |
|
106 | + } |
|
107 | + |
|
108 | + |
|
109 | + /** |
|
110 | + * @inheritdoc |
|
111 | + */ |
|
112 | + public function getSchemaPropertyDescriptions(): array |
|
113 | + { |
|
114 | + return [ |
|
115 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
116 | + 'alternateName' => 'An alias for the item.', |
|
117 | + 'associatedPathophysiology' => 'If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.', |
|
118 | + 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
119 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
120 | + 'connectedTo' => 'Other anatomical structures to which this structure is connected.', |
|
121 | + 'description' => 'A description of the item.', |
|
122 | + 'diagram' => 'An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.', |
|
123 | + '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.', |
|
124 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
125 | + 'guideline' => 'A medical guideline related to this entity.', |
|
126 | + '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. ', |
|
127 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | + '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.', |
|
130 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | + 'name' => 'The name of the item.', |
|
132 | + 'partOfSystem' => 'The anatomical or organ system that this structure is part of.', |
|
133 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
134 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
135 | + 'relatedCondition' => 'A medical condition associated with this anatomy.', |
|
136 | + 'relatedTherapy' => 'A medical therapy related to this anatomy.', |
|
137 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
138 | + '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.', |
|
139 | + 'study' => 'A medical study or trial related to this entity.', |
|
140 | + 'subStructure' => 'Component (sub-)structure(s) that comprise this anatomical structure.', |
|
141 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
142 | + 'url' => 'URL of the item.' |
|
143 | + ]; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + /** |
|
148 | + * @inheritdoc |
|
149 | + */ |
|
150 | + public function getGoogleRequiredSchema(): array |
|
151 | + { |
|
152 | + return ['description', 'name']; |
|
153 | + } |
|
154 | + |
|
155 | + |
|
156 | + /** |
|
157 | + * @inheritdoc |
|
158 | + */ |
|
159 | + public function getGoogleRecommendedSchema(): array |
|
160 | + { |
|
161 | + return ['image', 'url']; |
|
162 | + } |
|
163 | + |
|
164 | + |
|
165 | + /** |
|
166 | + * @inheritdoc |
|
167 | + */ |
|
168 | + public function defineRules(): array |
|
169 | + { |
|
170 | + $rules = parent::defineRules(); |
|
171 | + $rules = array_merge($rules, [ |
|
172 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
173 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
174 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
175 | + ]); |
|
176 | + |
|
177 | + return $rules; |
|
178 | + } |
|
179 | 179 | } |
@@ -23,346 +23,346 @@ |
||
23 | 23 | */ |
24 | 24 | class Photograph extends MetaJsonLd implements PhotographInterface, CreativeWorkInterface, ThingInterface |
25 | 25 | { |
26 | - use PhotographTrait; |
|
27 | - use CreativeWorkTrait; |
|
28 | - use ThingTrait; |
|
26 | + use PhotographTrait; |
|
27 | + use CreativeWorkTrait; |
|
28 | + use ThingTrait; |
|
29 | 29 | |
30 | - /** |
|
31 | - * The Schema.org Type Name |
|
32 | - * |
|
33 | - * @var string |
|
34 | - */ |
|
35 | - public static $schemaTypeName = 'Photograph'; |
|
30 | + /** |
|
31 | + * The Schema.org Type Name |
|
32 | + * |
|
33 | + * @var string |
|
34 | + */ |
|
35 | + public static $schemaTypeName = 'Photograph'; |
|
36 | 36 | |
37 | - /** |
|
38 | - * The Schema.org Type Scope |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public static $schemaTypeScope = 'https://schema.org/Photograph'; |
|
37 | + /** |
|
38 | + * The Schema.org Type Scope |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public static $schemaTypeScope = 'https://schema.org/Photograph'; |
|
43 | 43 | |
44 | - /** |
|
45 | - * The Schema.org Type Extends |
|
46 | - * |
|
47 | - * @var string |
|
48 | - */ |
|
49 | - public static $schemaTypeExtends = 'CreativeWork'; |
|
44 | + /** |
|
45 | + * The Schema.org Type Extends |
|
46 | + * |
|
47 | + * @var string |
|
48 | + */ |
|
49 | + public static $schemaTypeExtends = 'CreativeWork'; |
|
50 | 50 | |
51 | - /** |
|
52 | - * The Schema.org Type Description |
|
53 | - * |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public static $schemaTypeDescription = 'A photograph.'; |
|
51 | + /** |
|
52 | + * The Schema.org Type Description |
|
53 | + * |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public static $schemaTypeDescription = 'A photograph.'; |
|
57 | 57 | |
58 | 58 | |
59 | - /** |
|
60 | - * @inheritdoc |
|
61 | - */ |
|
62 | - public function getSchemaPropertyNames(): array |
|
63 | - { |
|
64 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | - } |
|
59 | + /** |
|
60 | + * @inheritdoc |
|
61 | + */ |
|
62 | + public function getSchemaPropertyNames(): array |
|
63 | + { |
|
64 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * @inheritdoc |
|
70 | - */ |
|
71 | - public function getSchemaPropertyExpectedTypes(): array |
|
72 | - { |
|
73 | - return [ |
|
74 | - 'about' => ['Thing'], |
|
75 | - 'abstract' => ['Text'], |
|
76 | - 'accessMode' => ['Text'], |
|
77 | - 'accessModeSufficient' => ['ItemList'], |
|
78 | - 'accessibilityAPI' => ['Text'], |
|
79 | - 'accessibilityControl' => ['Text'], |
|
80 | - 'accessibilityFeature' => ['Text'], |
|
81 | - 'accessibilityHazard' => ['Text'], |
|
82 | - 'accessibilitySummary' => ['Text'], |
|
83 | - 'accountablePerson' => ['Person'], |
|
84 | - 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
85 | - 'additionalType' => ['URL'], |
|
86 | - 'aggregateRating' => ['AggregateRating'], |
|
87 | - 'alternateName' => ['Text'], |
|
88 | - 'alternativeHeadline' => ['Text'], |
|
89 | - 'archivedAt' => ['WebPage', 'URL'], |
|
90 | - 'assesses' => ['DefinedTerm', 'Text'], |
|
91 | - 'associatedMedia' => ['MediaObject'], |
|
92 | - 'audience' => ['Audience'], |
|
93 | - 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
94 | - 'author' => ['Organization', 'Person'], |
|
95 | - 'award' => ['Text'], |
|
96 | - 'awards' => ['Text'], |
|
97 | - 'character' => ['Person'], |
|
98 | - 'citation' => ['CreativeWork', 'Text'], |
|
99 | - 'comment' => ['Comment'], |
|
100 | - 'commentCount' => ['Integer'], |
|
101 | - 'conditionsOfAccess' => ['Text'], |
|
102 | - 'contentLocation' => ['Place'], |
|
103 | - 'contentRating' => ['Text', 'Rating'], |
|
104 | - 'contentReferenceTime' => ['DateTime'], |
|
105 | - 'contributor' => ['Organization', 'Person'], |
|
106 | - 'copyrightHolder' => ['Organization', 'Person'], |
|
107 | - 'copyrightNotice' => ['Text'], |
|
108 | - 'copyrightYear' => ['Number'], |
|
109 | - 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
110 | - 'countryOfOrigin' => ['Country'], |
|
111 | - 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
112 | - 'creator' => ['Person', 'Organization'], |
|
113 | - 'creditText' => ['Text'], |
|
114 | - 'dateCreated' => ['DateTime', 'Date'], |
|
115 | - 'dateModified' => ['DateTime', 'Date'], |
|
116 | - 'datePublished' => ['DateTime', 'Date'], |
|
117 | - 'description' => ['Text'], |
|
118 | - 'disambiguatingDescription' => ['Text'], |
|
119 | - 'discussionUrl' => ['URL'], |
|
120 | - 'editEIDR' => ['URL', 'Text'], |
|
121 | - 'editor' => ['Person'], |
|
122 | - 'educationalAlignment' => ['AlignmentObject'], |
|
123 | - 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
124 | - 'educationalUse' => ['DefinedTerm', 'Text'], |
|
125 | - 'encoding' => ['MediaObject'], |
|
126 | - 'encodingFormat' => ['URL', 'Text'], |
|
127 | - 'encodings' => ['MediaObject'], |
|
128 | - 'exampleOfWork' => ['CreativeWork'], |
|
129 | - 'expires' => ['Date', 'DateTime'], |
|
130 | - 'fileFormat' => ['Text', 'URL'], |
|
131 | - 'funder' => ['Organization', 'Person'], |
|
132 | - 'funding' => ['Grant'], |
|
133 | - 'genre' => ['Text', 'URL'], |
|
134 | - 'hasPart' => ['CreativeWork'], |
|
135 | - 'headline' => ['Text'], |
|
136 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
137 | - 'image' => ['URL', 'ImageObject'], |
|
138 | - 'inLanguage' => ['Text', 'Language'], |
|
139 | - 'interactionStatistic' => ['InteractionCounter'], |
|
140 | - 'interactivityType' => ['Text'], |
|
141 | - 'interpretedAsClaim' => ['Claim'], |
|
142 | - 'isAccessibleForFree' => ['Boolean'], |
|
143 | - 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
144 | - 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
145 | - 'isFamilyFriendly' => ['Boolean'], |
|
146 | - 'isPartOf' => ['URL', 'CreativeWork'], |
|
147 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
148 | - 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
149 | - 'license' => ['URL', 'CreativeWork'], |
|
150 | - 'locationCreated' => ['Place'], |
|
151 | - 'mainEntity' => ['Thing'], |
|
152 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
153 | - 'maintainer' => ['Person', 'Organization'], |
|
154 | - 'material' => ['Product', 'URL', 'Text'], |
|
155 | - 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
156 | - 'mentions' => ['Thing'], |
|
157 | - 'name' => ['Text'], |
|
158 | - 'offers' => ['Demand', 'Offer'], |
|
159 | - 'pattern' => ['DefinedTerm', 'Text'], |
|
160 | - 'position' => ['Text', 'Integer'], |
|
161 | - 'potentialAction' => ['Action'], |
|
162 | - 'producer' => ['Organization', 'Person'], |
|
163 | - 'provider' => ['Organization', 'Person'], |
|
164 | - 'publication' => ['PublicationEvent'], |
|
165 | - 'publisher' => ['Organization', 'Person'], |
|
166 | - 'publisherImprint' => ['Organization'], |
|
167 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
168 | - 'recordedAt' => ['Event'], |
|
169 | - 'releasedEvent' => ['PublicationEvent'], |
|
170 | - 'review' => ['Review'], |
|
171 | - 'reviews' => ['Review'], |
|
172 | - 'sameAs' => ['URL'], |
|
173 | - 'schemaVersion' => ['URL', 'Text'], |
|
174 | - 'sdDatePublished' => ['Date'], |
|
175 | - 'sdLicense' => ['CreativeWork', 'URL'], |
|
176 | - 'sdPublisher' => ['Organization', 'Person'], |
|
177 | - 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
178 | - 'sourceOrganization' => ['Organization'], |
|
179 | - 'spatial' => ['Place'], |
|
180 | - 'spatialCoverage' => ['Place'], |
|
181 | - 'sponsor' => ['Organization', 'Person'], |
|
182 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
183 | - 'teaches' => ['DefinedTerm', 'Text'], |
|
184 | - 'temporal' => ['DateTime', 'Text'], |
|
185 | - 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
186 | - 'text' => ['Text'], |
|
187 | - 'thumbnailUrl' => ['URL'], |
|
188 | - 'timeRequired' => ['Duration'], |
|
189 | - 'translationOfWork' => ['CreativeWork'], |
|
190 | - 'translator' => ['Organization', 'Person'], |
|
191 | - 'typicalAgeRange' => ['Text'], |
|
192 | - 'url' => ['URL'], |
|
193 | - 'usageInfo' => ['URL', 'CreativeWork'], |
|
194 | - 'version' => ['Number', 'Text'], |
|
195 | - 'video' => ['VideoObject', 'Clip'], |
|
196 | - 'workExample' => ['CreativeWork'], |
|
197 | - 'workTranslation' => ['CreativeWork'] |
|
198 | - ]; |
|
199 | - } |
|
68 | + /** |
|
69 | + * @inheritdoc |
|
70 | + */ |
|
71 | + public function getSchemaPropertyExpectedTypes(): array |
|
72 | + { |
|
73 | + return [ |
|
74 | + 'about' => ['Thing'], |
|
75 | + 'abstract' => ['Text'], |
|
76 | + 'accessMode' => ['Text'], |
|
77 | + 'accessModeSufficient' => ['ItemList'], |
|
78 | + 'accessibilityAPI' => ['Text'], |
|
79 | + 'accessibilityControl' => ['Text'], |
|
80 | + 'accessibilityFeature' => ['Text'], |
|
81 | + 'accessibilityHazard' => ['Text'], |
|
82 | + 'accessibilitySummary' => ['Text'], |
|
83 | + 'accountablePerson' => ['Person'], |
|
84 | + 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
85 | + 'additionalType' => ['URL'], |
|
86 | + 'aggregateRating' => ['AggregateRating'], |
|
87 | + 'alternateName' => ['Text'], |
|
88 | + 'alternativeHeadline' => ['Text'], |
|
89 | + 'archivedAt' => ['WebPage', 'URL'], |
|
90 | + 'assesses' => ['DefinedTerm', 'Text'], |
|
91 | + 'associatedMedia' => ['MediaObject'], |
|
92 | + 'audience' => ['Audience'], |
|
93 | + 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
94 | + 'author' => ['Organization', 'Person'], |
|
95 | + 'award' => ['Text'], |
|
96 | + 'awards' => ['Text'], |
|
97 | + 'character' => ['Person'], |
|
98 | + 'citation' => ['CreativeWork', 'Text'], |
|
99 | + 'comment' => ['Comment'], |
|
100 | + 'commentCount' => ['Integer'], |
|
101 | + 'conditionsOfAccess' => ['Text'], |
|
102 | + 'contentLocation' => ['Place'], |
|
103 | + 'contentRating' => ['Text', 'Rating'], |
|
104 | + 'contentReferenceTime' => ['DateTime'], |
|
105 | + 'contributor' => ['Organization', 'Person'], |
|
106 | + 'copyrightHolder' => ['Organization', 'Person'], |
|
107 | + 'copyrightNotice' => ['Text'], |
|
108 | + 'copyrightYear' => ['Number'], |
|
109 | + 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
110 | + 'countryOfOrigin' => ['Country'], |
|
111 | + 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
112 | + 'creator' => ['Person', 'Organization'], |
|
113 | + 'creditText' => ['Text'], |
|
114 | + 'dateCreated' => ['DateTime', 'Date'], |
|
115 | + 'dateModified' => ['DateTime', 'Date'], |
|
116 | + 'datePublished' => ['DateTime', 'Date'], |
|
117 | + 'description' => ['Text'], |
|
118 | + 'disambiguatingDescription' => ['Text'], |
|
119 | + 'discussionUrl' => ['URL'], |
|
120 | + 'editEIDR' => ['URL', 'Text'], |
|
121 | + 'editor' => ['Person'], |
|
122 | + 'educationalAlignment' => ['AlignmentObject'], |
|
123 | + 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
124 | + 'educationalUse' => ['DefinedTerm', 'Text'], |
|
125 | + 'encoding' => ['MediaObject'], |
|
126 | + 'encodingFormat' => ['URL', 'Text'], |
|
127 | + 'encodings' => ['MediaObject'], |
|
128 | + 'exampleOfWork' => ['CreativeWork'], |
|
129 | + 'expires' => ['Date', 'DateTime'], |
|
130 | + 'fileFormat' => ['Text', 'URL'], |
|
131 | + 'funder' => ['Organization', 'Person'], |
|
132 | + 'funding' => ['Grant'], |
|
133 | + 'genre' => ['Text', 'URL'], |
|
134 | + 'hasPart' => ['CreativeWork'], |
|
135 | + 'headline' => ['Text'], |
|
136 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
137 | + 'image' => ['URL', 'ImageObject'], |
|
138 | + 'inLanguage' => ['Text', 'Language'], |
|
139 | + 'interactionStatistic' => ['InteractionCounter'], |
|
140 | + 'interactivityType' => ['Text'], |
|
141 | + 'interpretedAsClaim' => ['Claim'], |
|
142 | + 'isAccessibleForFree' => ['Boolean'], |
|
143 | + 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
144 | + 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
145 | + 'isFamilyFriendly' => ['Boolean'], |
|
146 | + 'isPartOf' => ['URL', 'CreativeWork'], |
|
147 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
148 | + 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
149 | + 'license' => ['URL', 'CreativeWork'], |
|
150 | + 'locationCreated' => ['Place'], |
|
151 | + 'mainEntity' => ['Thing'], |
|
152 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
153 | + 'maintainer' => ['Person', 'Organization'], |
|
154 | + 'material' => ['Product', 'URL', 'Text'], |
|
155 | + 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
156 | + 'mentions' => ['Thing'], |
|
157 | + 'name' => ['Text'], |
|
158 | + 'offers' => ['Demand', 'Offer'], |
|
159 | + 'pattern' => ['DefinedTerm', 'Text'], |
|
160 | + 'position' => ['Text', 'Integer'], |
|
161 | + 'potentialAction' => ['Action'], |
|
162 | + 'producer' => ['Organization', 'Person'], |
|
163 | + 'provider' => ['Organization', 'Person'], |
|
164 | + 'publication' => ['PublicationEvent'], |
|
165 | + 'publisher' => ['Organization', 'Person'], |
|
166 | + 'publisherImprint' => ['Organization'], |
|
167 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
168 | + 'recordedAt' => ['Event'], |
|
169 | + 'releasedEvent' => ['PublicationEvent'], |
|
170 | + 'review' => ['Review'], |
|
171 | + 'reviews' => ['Review'], |
|
172 | + 'sameAs' => ['URL'], |
|
173 | + 'schemaVersion' => ['URL', 'Text'], |
|
174 | + 'sdDatePublished' => ['Date'], |
|
175 | + 'sdLicense' => ['CreativeWork', 'URL'], |
|
176 | + 'sdPublisher' => ['Organization', 'Person'], |
|
177 | + 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
178 | + 'sourceOrganization' => ['Organization'], |
|
179 | + 'spatial' => ['Place'], |
|
180 | + 'spatialCoverage' => ['Place'], |
|
181 | + 'sponsor' => ['Organization', 'Person'], |
|
182 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
183 | + 'teaches' => ['DefinedTerm', 'Text'], |
|
184 | + 'temporal' => ['DateTime', 'Text'], |
|
185 | + 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
186 | + 'text' => ['Text'], |
|
187 | + 'thumbnailUrl' => ['URL'], |
|
188 | + 'timeRequired' => ['Duration'], |
|
189 | + 'translationOfWork' => ['CreativeWork'], |
|
190 | + 'translator' => ['Organization', 'Person'], |
|
191 | + 'typicalAgeRange' => ['Text'], |
|
192 | + 'url' => ['URL'], |
|
193 | + 'usageInfo' => ['URL', 'CreativeWork'], |
|
194 | + 'version' => ['Number', 'Text'], |
|
195 | + 'video' => ['VideoObject', 'Clip'], |
|
196 | + 'workExample' => ['CreativeWork'], |
|
197 | + 'workTranslation' => ['CreativeWork'] |
|
198 | + ]; |
|
199 | + } |
|
200 | 200 | |
201 | 201 | |
202 | - /** |
|
203 | - * @inheritdoc |
|
204 | - */ |
|
205 | - public function getSchemaPropertyDescriptions(): array |
|
206 | - { |
|
207 | - return [ |
|
208 | - 'about' => 'The subject matter of the content.', |
|
209 | - 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
210 | - '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).', |
|
211 | - '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).', |
|
212 | - '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).', |
|
213 | - '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).', |
|
214 | - '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).', |
|
215 | - '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).', |
|
216 | - '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."', |
|
217 | - 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
218 | - 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
219 | - '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.', |
|
220 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
221 | - 'alternateName' => 'An alias for the item.', |
|
222 | - 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
223 | - '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.', |
|
224 | - 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
225 | - 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
226 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
227 | - 'audio' => 'An embedded audio object.', |
|
228 | - '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.', |
|
229 | - 'award' => 'An award won by or for this item.', |
|
230 | - 'awards' => 'Awards won by or for this item.', |
|
231 | - 'character' => 'Fictional person connected with a creative work.', |
|
232 | - 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
233 | - 'comment' => 'Comments, typically from users.', |
|
234 | - '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.', |
|
235 | - '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 ". ', |
|
236 | - 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
237 | - 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
238 | - '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.', |
|
239 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
240 | - 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
241 | - '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.', |
|
242 | - 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
243 | - 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
244 | - '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.', |
|
245 | - '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.', |
|
246 | - 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
247 | - 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
248 | - 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
249 | - 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
250 | - 'datePublished' => 'Date of first broadcast/publication.', |
|
251 | - 'description' => 'A description of the item.', |
|
252 | - '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.', |
|
253 | - 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
254 | - '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. ', |
|
255 | - 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
256 | - '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.', |
|
257 | - '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.', |
|
258 | - 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
259 | - 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
260 | - '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.', |
|
261 | - 'encodings' => 'A media object that encodes this CreativeWork.', |
|
262 | - 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
263 | - '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.', |
|
264 | - '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.', |
|
265 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
266 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
267 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
268 | - 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
269 | - 'headline' => 'Headline of the article.', |
|
270 | - '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. ', |
|
271 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
272 | - '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]].', |
|
273 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
274 | - 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
275 | - '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]].', |
|
276 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
277 | - 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
278 | - '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.', |
|
279 | - 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
280 | - 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
281 | - '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.', |
|
282 | - 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
283 | - 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
284 | - 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
285 | - 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
286 | - '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.', |
|
287 | - '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. ', |
|
288 | - 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
289 | - 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
290 | - 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
291 | - 'name' => 'The name of the item.', |
|
292 | - '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. ', |
|
293 | - '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.', |
|
294 | - 'position' => 'The position of an item in a series or sequence of items.', |
|
295 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
296 | - 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
297 | - '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.', |
|
298 | - 'publication' => 'A publication event associated with the item.', |
|
299 | - 'publisher' => 'The publisher of the creative work.', |
|
300 | - 'publisherImprint' => 'The publishing division which published the comic.', |
|
301 | - '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. ', |
|
302 | - 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
303 | - 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
304 | - 'review' => 'A review of the item.', |
|
305 | - 'reviews' => 'Review of the item.', |
|
306 | - '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.', |
|
307 | - '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.', |
|
308 | - 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
309 | - 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
310 | - '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.', |
|
311 | - '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. ', |
|
312 | - 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
313 | - 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
314 | - '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.', |
|
315 | - 'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.', |
|
316 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
317 | - 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
318 | - '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.', |
|
319 | - '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.', |
|
320 | - 'text' => 'The textual content of this CreativeWork.', |
|
321 | - 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
322 | - '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\'.', |
|
323 | - 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
324 | - '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.', |
|
325 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
326 | - 'url' => 'URL of the item.', |
|
327 | - '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.', |
|
328 | - 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
329 | - 'video' => 'An embedded video object.', |
|
330 | - 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
331 | - '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.' |
|
332 | - ]; |
|
333 | - } |
|
202 | + /** |
|
203 | + * @inheritdoc |
|
204 | + */ |
|
205 | + public function getSchemaPropertyDescriptions(): array |
|
206 | + { |
|
207 | + return [ |
|
208 | + 'about' => 'The subject matter of the content.', |
|
209 | + 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
210 | + '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).', |
|
211 | + '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).', |
|
212 | + '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).', |
|
213 | + '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).', |
|
214 | + '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).', |
|
215 | + '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).', |
|
216 | + '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."', |
|
217 | + 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
218 | + 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
219 | + '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.', |
|
220 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
221 | + 'alternateName' => 'An alias for the item.', |
|
222 | + 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
223 | + '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.', |
|
224 | + 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
225 | + 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
226 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
227 | + 'audio' => 'An embedded audio object.', |
|
228 | + '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.', |
|
229 | + 'award' => 'An award won by or for this item.', |
|
230 | + 'awards' => 'Awards won by or for this item.', |
|
231 | + 'character' => 'Fictional person connected with a creative work.', |
|
232 | + 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
233 | + 'comment' => 'Comments, typically from users.', |
|
234 | + '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.', |
|
235 | + '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 ". ', |
|
236 | + 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
237 | + 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
238 | + '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.', |
|
239 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
240 | + 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
241 | + '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.', |
|
242 | + 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
243 | + 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
244 | + '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.', |
|
245 | + '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.', |
|
246 | + 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
247 | + 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
248 | + 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
249 | + 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
250 | + 'datePublished' => 'Date of first broadcast/publication.', |
|
251 | + 'description' => 'A description of the item.', |
|
252 | + '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.', |
|
253 | + 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
254 | + '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. ', |
|
255 | + 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
256 | + '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.', |
|
257 | + '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.', |
|
258 | + 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
259 | + 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
260 | + '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.', |
|
261 | + 'encodings' => 'A media object that encodes this CreativeWork.', |
|
262 | + 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
263 | + '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.', |
|
264 | + '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.', |
|
265 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
266 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
267 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
268 | + 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
269 | + 'headline' => 'Headline of the article.', |
|
270 | + '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. ', |
|
271 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
272 | + '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]].', |
|
273 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
274 | + 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
275 | + '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]].', |
|
276 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
277 | + 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
278 | + '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.', |
|
279 | + 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
280 | + 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
281 | + '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.', |
|
282 | + 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
283 | + 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
284 | + 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
285 | + 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
286 | + '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.', |
|
287 | + '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. ', |
|
288 | + 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
289 | + 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
290 | + 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
291 | + 'name' => 'The name of the item.', |
|
292 | + '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. ', |
|
293 | + '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.', |
|
294 | + 'position' => 'The position of an item in a series or sequence of items.', |
|
295 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
296 | + 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
297 | + '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.', |
|
298 | + 'publication' => 'A publication event associated with the item.', |
|
299 | + 'publisher' => 'The publisher of the creative work.', |
|
300 | + 'publisherImprint' => 'The publishing division which published the comic.', |
|
301 | + '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. ', |
|
302 | + 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
303 | + 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
304 | + 'review' => 'A review of the item.', |
|
305 | + 'reviews' => 'Review of the item.', |
|
306 | + '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.', |
|
307 | + '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.', |
|
308 | + 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
309 | + 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
310 | + '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.', |
|
311 | + '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. ', |
|
312 | + 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
313 | + 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
314 | + '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.', |
|
315 | + 'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.', |
|
316 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
317 | + 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
318 | + '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.', |
|
319 | + '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.', |
|
320 | + 'text' => 'The textual content of this CreativeWork.', |
|
321 | + 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
322 | + '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\'.', |
|
323 | + 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
324 | + '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.', |
|
325 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
326 | + 'url' => 'URL of the item.', |
|
327 | + '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.', |
|
328 | + 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
329 | + 'video' => 'An embedded video object.', |
|
330 | + 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
331 | + '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.' |
|
332 | + ]; |
|
333 | + } |
|
334 | 334 | |
335 | 335 | |
336 | - /** |
|
337 | - * @inheritdoc |
|
338 | - */ |
|
339 | - public function getGoogleRequiredSchema(): array |
|
340 | - { |
|
341 | - return ['description', 'name']; |
|
342 | - } |
|
336 | + /** |
|
337 | + * @inheritdoc |
|
338 | + */ |
|
339 | + public function getGoogleRequiredSchema(): array |
|
340 | + { |
|
341 | + return ['description', 'name']; |
|
342 | + } |
|
343 | 343 | |
344 | 344 | |
345 | - /** |
|
346 | - * @inheritdoc |
|
347 | - */ |
|
348 | - public function getGoogleRecommendedSchema(): array |
|
349 | - { |
|
350 | - return ['image', 'url']; |
|
351 | - } |
|
345 | + /** |
|
346 | + * @inheritdoc |
|
347 | + */ |
|
348 | + public function getGoogleRecommendedSchema(): array |
|
349 | + { |
|
350 | + return ['image', 'url']; |
|
351 | + } |
|
352 | 352 | |
353 | 353 | |
354 | - /** |
|
355 | - * @inheritdoc |
|
356 | - */ |
|
357 | - public function defineRules(): array |
|
358 | - { |
|
359 | - $rules = parent::defineRules(); |
|
360 | - $rules = array_merge($rules, [ |
|
361 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
362 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
363 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
364 | - ]); |
|
354 | + /** |
|
355 | + * @inheritdoc |
|
356 | + */ |
|
357 | + public function defineRules(): array |
|
358 | + { |
|
359 | + $rules = parent::defineRules(); |
|
360 | + $rules = array_merge($rules, [ |
|
361 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
362 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
363 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
364 | + ]); |
|
365 | 365 | |
366 | - return $rules; |
|
367 | - } |
|
366 | + return $rules; |
|
367 | + } |
|
368 | 368 | } |
@@ -24,146 +24,146 @@ |
||
24 | 24 | */ |
25 | 25 | class FindAction extends MetaJsonLd implements FindActionInterface, ActionInterface, ThingInterface |
26 | 26 | { |
27 | - use FindActionTrait; |
|
28 | - use ActionTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static $schemaTypeName = 'FindAction'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/FindAction'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'Action'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'The act of finding an object.\n\nRelated actions:\n\n* [[SearchAction]]: FindAction is generally lead by a SearchAction, but not necessarily.'; |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * @inheritdoc |
|
62 | - */ |
|
63 | - public function getSchemaPropertyNames(): array |
|
64 | - { |
|
65 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | - } |
|
67 | - |
|
68 | - |
|
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyExpectedTypes(): array |
|
73 | - { |
|
74 | - return [ |
|
75 | - 'actionStatus' => ['ActionStatusType'], |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'agent' => ['Organization', 'Person'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'description' => ['Text'], |
|
80 | - 'disambiguatingDescription' => ['Text'], |
|
81 | - 'endTime' => ['DateTime', 'Time'], |
|
82 | - 'error' => ['Thing'], |
|
83 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | - 'image' => ['URL', 'ImageObject'], |
|
85 | - 'instrument' => ['Thing'], |
|
86 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
87 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | - 'name' => ['Text'], |
|
89 | - 'object' => ['Thing'], |
|
90 | - 'participant' => ['Organization', 'Person'], |
|
91 | - 'potentialAction' => ['Action'], |
|
92 | - 'provider' => ['Organization', 'Person'], |
|
93 | - 'result' => ['Thing'], |
|
94 | - 'sameAs' => ['URL'], |
|
95 | - 'startTime' => ['Time', 'DateTime'], |
|
96 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | - 'target' => ['URL', 'EntryPoint'], |
|
98 | - 'url' => ['URL'] |
|
99 | - ]; |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * @inheritdoc |
|
105 | - */ |
|
106 | - public function getSchemaPropertyDescriptions(): array |
|
107 | - { |
|
108 | - return [ |
|
109 | - 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
110 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
111 | - 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
112 | - 'alternateName' => 'An alias for the item.', |
|
113 | - 'description' => 'A description of the item.', |
|
114 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
115 | - 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
116 | - 'error' => 'For failed actions, more information on the cause of the failure.', |
|
117 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
118 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
119 | - 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
120 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
121 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
122 | - 'name' => 'The name of the item.', |
|
123 | - 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
124 | - 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
125 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
126 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
127 | - 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
128 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
129 | - 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
130 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
131 | - 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
132 | - 'url' => 'URL of the item.' |
|
133 | - ]; |
|
134 | - } |
|
135 | - |
|
136 | - |
|
137 | - /** |
|
138 | - * @inheritdoc |
|
139 | - */ |
|
140 | - public function getGoogleRequiredSchema(): array |
|
141 | - { |
|
142 | - return ['description', 'name']; |
|
143 | - } |
|
144 | - |
|
145 | - |
|
146 | - /** |
|
147 | - * @inheritdoc |
|
148 | - */ |
|
149 | - public function getGoogleRecommendedSchema(): array |
|
150 | - { |
|
151 | - return ['image', 'url']; |
|
152 | - } |
|
153 | - |
|
154 | - |
|
155 | - /** |
|
156 | - * @inheritdoc |
|
157 | - */ |
|
158 | - public function defineRules(): array |
|
159 | - { |
|
160 | - $rules = parent::defineRules(); |
|
161 | - $rules = array_merge($rules, [ |
|
162 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
163 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
164 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
165 | - ]); |
|
166 | - |
|
167 | - return $rules; |
|
168 | - } |
|
27 | + use FindActionTrait; |
|
28 | + use ActionTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static $schemaTypeName = 'FindAction'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/FindAction'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'Action'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'The act of finding an object.\n\nRelated actions:\n\n* [[SearchAction]]: FindAction is generally lead by a SearchAction, but not necessarily.'; |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * @inheritdoc |
|
62 | + */ |
|
63 | + public function getSchemaPropertyNames(): array |
|
64 | + { |
|
65 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | + } |
|
67 | + |
|
68 | + |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyExpectedTypes(): array |
|
73 | + { |
|
74 | + return [ |
|
75 | + 'actionStatus' => ['ActionStatusType'], |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'agent' => ['Organization', 'Person'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'description' => ['Text'], |
|
80 | + 'disambiguatingDescription' => ['Text'], |
|
81 | + 'endTime' => ['DateTime', 'Time'], |
|
82 | + 'error' => ['Thing'], |
|
83 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
84 | + 'image' => ['URL', 'ImageObject'], |
|
85 | + 'instrument' => ['Thing'], |
|
86 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
87 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | + 'name' => ['Text'], |
|
89 | + 'object' => ['Thing'], |
|
90 | + 'participant' => ['Organization', 'Person'], |
|
91 | + 'potentialAction' => ['Action'], |
|
92 | + 'provider' => ['Organization', 'Person'], |
|
93 | + 'result' => ['Thing'], |
|
94 | + 'sameAs' => ['URL'], |
|
95 | + 'startTime' => ['Time', 'DateTime'], |
|
96 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
97 | + 'target' => ['URL', 'EntryPoint'], |
|
98 | + 'url' => ['URL'] |
|
99 | + ]; |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * @inheritdoc |
|
105 | + */ |
|
106 | + public function getSchemaPropertyDescriptions(): array |
|
107 | + { |
|
108 | + return [ |
|
109 | + 'actionStatus' => 'Indicates the current disposition of the Action.', |
|
110 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
111 | + 'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.', |
|
112 | + 'alternateName' => 'An alias for the item.', |
|
113 | + 'description' => 'A description of the item.', |
|
114 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
115 | + 'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
116 | + 'error' => 'For failed actions, more information on the cause of the failure.', |
|
117 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
118 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
119 | + 'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.', |
|
120 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
121 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
122 | + 'name' => 'The name of the item.', |
|
123 | + 'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.', |
|
124 | + 'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.', |
|
125 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
126 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
127 | + 'result' => 'The result produced in the action. E.g. John wrote *a book*.', |
|
128 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
129 | + 'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file. Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.', |
|
130 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
131 | + 'target' => 'Indicates a target EntryPoint, or url, for an Action.', |
|
132 | + 'url' => 'URL of the item.' |
|
133 | + ]; |
|
134 | + } |
|
135 | + |
|
136 | + |
|
137 | + /** |
|
138 | + * @inheritdoc |
|
139 | + */ |
|
140 | + public function getGoogleRequiredSchema(): array |
|
141 | + { |
|
142 | + return ['description', 'name']; |
|
143 | + } |
|
144 | + |
|
145 | + |
|
146 | + /** |
|
147 | + * @inheritdoc |
|
148 | + */ |
|
149 | + public function getGoogleRecommendedSchema(): array |
|
150 | + { |
|
151 | + return ['image', 'url']; |
|
152 | + } |
|
153 | + |
|
154 | + |
|
155 | + /** |
|
156 | + * @inheritdoc |
|
157 | + */ |
|
158 | + public function defineRules(): array |
|
159 | + { |
|
160 | + $rules = parent::defineRules(); |
|
161 | + $rules = array_merge($rules, [ |
|
162 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
163 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
164 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
165 | + ]); |
|
166 | + |
|
167 | + return $rules; |
|
168 | + } |
|
169 | 169 | } |
@@ -25,205 +25,205 @@ |
||
25 | 25 | */ |
26 | 26 | class UserLikes extends MetaJsonLd implements UserLikesInterface, UserInteractionInterface, EventInterface, ThingInterface |
27 | 27 | { |
28 | - use UserLikesTrait; |
|
29 | - use UserInteractionTrait; |
|
30 | - use EventTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'UserLikes'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/UserLikes'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'UserInteraction'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'UserInteraction and its subtypes is an old way of talking about users interacting with pages. It is generally better to use [[Action]]-based vocabulary, alongside types such as [[Comment]].'; |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'about' => ['Thing'], |
|
78 | - 'actor' => ['Person'], |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'aggregateRating' => ['AggregateRating'], |
|
81 | - 'alternateName' => ['Text'], |
|
82 | - 'attendee' => ['Organization', 'Person'], |
|
83 | - 'attendees' => ['Organization', 'Person'], |
|
84 | - 'audience' => ['Audience'], |
|
85 | - 'composer' => ['Organization', 'Person'], |
|
86 | - 'contributor' => ['Organization', 'Person'], |
|
87 | - 'description' => ['Text'], |
|
88 | - 'director' => ['Person'], |
|
89 | - 'disambiguatingDescription' => ['Text'], |
|
90 | - 'doorTime' => ['Time', 'DateTime'], |
|
91 | - 'duration' => ['Duration'], |
|
92 | - 'endDate' => ['DateTime', 'Date'], |
|
93 | - 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
|
94 | - 'eventSchedule' => ['Schedule'], |
|
95 | - 'eventStatus' => ['EventStatusType'], |
|
96 | - 'funder' => ['Organization', 'Person'], |
|
97 | - 'funding' => ['Grant'], |
|
98 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
99 | - 'image' => ['URL', 'ImageObject'], |
|
100 | - 'inLanguage' => ['Text', 'Language'], |
|
101 | - 'isAccessibleForFree' => ['Boolean'], |
|
102 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
103 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
104 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
105 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
106 | - 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
|
107 | - 'maximumVirtualAttendeeCapacity' => ['Integer'], |
|
108 | - 'name' => ['Text'], |
|
109 | - 'offers' => ['Demand', 'Offer'], |
|
110 | - 'organizer' => ['Organization', 'Person'], |
|
111 | - 'performer' => ['Person', 'Organization'], |
|
112 | - 'performers' => ['Person', 'Organization'], |
|
113 | - 'potentialAction' => ['Action'], |
|
114 | - 'previousStartDate' => ['Date'], |
|
115 | - 'recordedIn' => ['CreativeWork'], |
|
116 | - 'remainingAttendeeCapacity' => ['Integer'], |
|
117 | - 'review' => ['Review'], |
|
118 | - 'sameAs' => ['URL'], |
|
119 | - 'sponsor' => ['Organization', 'Person'], |
|
120 | - 'startDate' => ['DateTime', 'Date'], |
|
121 | - 'subEvent' => ['Event'], |
|
122 | - 'subEvents' => ['Event'], |
|
123 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
124 | - 'superEvent' => ['Event'], |
|
125 | - 'translator' => ['Organization', 'Person'], |
|
126 | - 'typicalAgeRange' => ['Text'], |
|
127 | - 'url' => ['URL'], |
|
128 | - 'workFeatured' => ['CreativeWork'], |
|
129 | - 'workPerformed' => ['CreativeWork'] |
|
130 | - ]; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function getSchemaPropertyDescriptions(): array |
|
138 | - { |
|
139 | - return [ |
|
140 | - 'about' => 'The subject matter of the content.', |
|
141 | - 'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.', |
|
142 | - '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.', |
|
143 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
144 | - 'alternateName' => 'An alias for the item.', |
|
145 | - 'attendee' => 'A person or organization attending the event.', |
|
146 | - 'attendees' => 'A person attending the event.', |
|
147 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
148 | - 'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.', |
|
149 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
150 | - 'description' => 'A description of the item.', |
|
151 | - 'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.', |
|
152 | - '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.', |
|
153 | - 'doorTime' => 'The time admission will commence.', |
|
154 | - 'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).', |
|
155 | - 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
156 | - 'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.', |
|
157 | - 'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months or seasons.', |
|
158 | - 'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.', |
|
159 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
160 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
161 | - '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. ', |
|
162 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
163 | - '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]].', |
|
164 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
165 | - '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.', |
|
166 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
167 | - '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.', |
|
168 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
169 | - 'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
170 | - 'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
171 | - 'name' => 'The name of the item.', |
|
172 | - '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. ', |
|
173 | - 'organizer' => 'An organizer of an Event.', |
|
174 | - 'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.', |
|
175 | - 'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.', |
|
176 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
177 | - 'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.', |
|
178 | - 'recordedIn' => 'The CreativeWork that captured all or part of this Event.', |
|
179 | - 'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.', |
|
180 | - 'review' => 'A review of the item.', |
|
181 | - '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.', |
|
182 | - '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.', |
|
183 | - 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
184 | - 'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.', |
|
185 | - 'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.', |
|
186 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
187 | - 'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.', |
|
188 | - '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.', |
|
189 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
190 | - 'url' => 'URL of the item.', |
|
191 | - 'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent. Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).', |
|
192 | - 'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.' |
|
193 | - ]; |
|
194 | - } |
|
195 | - |
|
196 | - |
|
197 | - /** |
|
198 | - * @inheritdoc |
|
199 | - */ |
|
200 | - public function getGoogleRequiredSchema(): array |
|
201 | - { |
|
202 | - return ['description', 'name']; |
|
203 | - } |
|
204 | - |
|
205 | - |
|
206 | - /** |
|
207 | - * @inheritdoc |
|
208 | - */ |
|
209 | - public function getGoogleRecommendedSchema(): array |
|
210 | - { |
|
211 | - return ['image', 'url']; |
|
212 | - } |
|
213 | - |
|
214 | - |
|
215 | - /** |
|
216 | - * @inheritdoc |
|
217 | - */ |
|
218 | - public function defineRules(): array |
|
219 | - { |
|
220 | - $rules = parent::defineRules(); |
|
221 | - $rules = array_merge($rules, [ |
|
222 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
223 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
224 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
225 | - ]); |
|
226 | - |
|
227 | - return $rules; |
|
228 | - } |
|
28 | + use UserLikesTrait; |
|
29 | + use UserInteractionTrait; |
|
30 | + use EventTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'UserLikes'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/UserLikes'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'UserInteraction'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'UserInteraction and its subtypes is an old way of talking about users interacting with pages. It is generally better to use [[Action]]-based vocabulary, alongside types such as [[Comment]].'; |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'about' => ['Thing'], |
|
78 | + 'actor' => ['Person'], |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'aggregateRating' => ['AggregateRating'], |
|
81 | + 'alternateName' => ['Text'], |
|
82 | + 'attendee' => ['Organization', 'Person'], |
|
83 | + 'attendees' => ['Organization', 'Person'], |
|
84 | + 'audience' => ['Audience'], |
|
85 | + 'composer' => ['Organization', 'Person'], |
|
86 | + 'contributor' => ['Organization', 'Person'], |
|
87 | + 'description' => ['Text'], |
|
88 | + 'director' => ['Person'], |
|
89 | + 'disambiguatingDescription' => ['Text'], |
|
90 | + 'doorTime' => ['Time', 'DateTime'], |
|
91 | + 'duration' => ['Duration'], |
|
92 | + 'endDate' => ['DateTime', 'Date'], |
|
93 | + 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
|
94 | + 'eventSchedule' => ['Schedule'], |
|
95 | + 'eventStatus' => ['EventStatusType'], |
|
96 | + 'funder' => ['Organization', 'Person'], |
|
97 | + 'funding' => ['Grant'], |
|
98 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
99 | + 'image' => ['URL', 'ImageObject'], |
|
100 | + 'inLanguage' => ['Text', 'Language'], |
|
101 | + 'isAccessibleForFree' => ['Boolean'], |
|
102 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
103 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
104 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
105 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
106 | + 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
|
107 | + 'maximumVirtualAttendeeCapacity' => ['Integer'], |
|
108 | + 'name' => ['Text'], |
|
109 | + 'offers' => ['Demand', 'Offer'], |
|
110 | + 'organizer' => ['Organization', 'Person'], |
|
111 | + 'performer' => ['Person', 'Organization'], |
|
112 | + 'performers' => ['Person', 'Organization'], |
|
113 | + 'potentialAction' => ['Action'], |
|
114 | + 'previousStartDate' => ['Date'], |
|
115 | + 'recordedIn' => ['CreativeWork'], |
|
116 | + 'remainingAttendeeCapacity' => ['Integer'], |
|
117 | + 'review' => ['Review'], |
|
118 | + 'sameAs' => ['URL'], |
|
119 | + 'sponsor' => ['Organization', 'Person'], |
|
120 | + 'startDate' => ['DateTime', 'Date'], |
|
121 | + 'subEvent' => ['Event'], |
|
122 | + 'subEvents' => ['Event'], |
|
123 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
124 | + 'superEvent' => ['Event'], |
|
125 | + 'translator' => ['Organization', 'Person'], |
|
126 | + 'typicalAgeRange' => ['Text'], |
|
127 | + 'url' => ['URL'], |
|
128 | + 'workFeatured' => ['CreativeWork'], |
|
129 | + 'workPerformed' => ['CreativeWork'] |
|
130 | + ]; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function getSchemaPropertyDescriptions(): array |
|
138 | + { |
|
139 | + return [ |
|
140 | + 'about' => 'The subject matter of the content.', |
|
141 | + 'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.', |
|
142 | + '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.', |
|
143 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
144 | + 'alternateName' => 'An alias for the item.', |
|
145 | + 'attendee' => 'A person or organization attending the event.', |
|
146 | + 'attendees' => 'A person attending the event.', |
|
147 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
148 | + 'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.', |
|
149 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
150 | + 'description' => 'A description of the item.', |
|
151 | + 'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.', |
|
152 | + '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.', |
|
153 | + 'doorTime' => 'The time admission will commence.', |
|
154 | + 'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).', |
|
155 | + 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
156 | + 'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.', |
|
157 | + 'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months or seasons.', |
|
158 | + 'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.', |
|
159 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
160 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
161 | + '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. ', |
|
162 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
163 | + '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]].', |
|
164 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
165 | + '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.', |
|
166 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
167 | + '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.', |
|
168 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
169 | + 'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
170 | + 'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
171 | + 'name' => 'The name of the item.', |
|
172 | + '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. ', |
|
173 | + 'organizer' => 'An organizer of an Event.', |
|
174 | + 'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.', |
|
175 | + 'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.', |
|
176 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
177 | + 'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.', |
|
178 | + 'recordedIn' => 'The CreativeWork that captured all or part of this Event.', |
|
179 | + 'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.', |
|
180 | + 'review' => 'A review of the item.', |
|
181 | + '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.', |
|
182 | + '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.', |
|
183 | + 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
184 | + 'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.', |
|
185 | + 'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.', |
|
186 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
187 | + 'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.', |
|
188 | + '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.', |
|
189 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
190 | + 'url' => 'URL of the item.', |
|
191 | + 'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent. Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).', |
|
192 | + 'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.' |
|
193 | + ]; |
|
194 | + } |
|
195 | + |
|
196 | + |
|
197 | + /** |
|
198 | + * @inheritdoc |
|
199 | + */ |
|
200 | + public function getGoogleRequiredSchema(): array |
|
201 | + { |
|
202 | + return ['description', 'name']; |
|
203 | + } |
|
204 | + |
|
205 | + |
|
206 | + /** |
|
207 | + * @inheritdoc |
|
208 | + */ |
|
209 | + public function getGoogleRecommendedSchema(): array |
|
210 | + { |
|
211 | + return ['image', 'url']; |
|
212 | + } |
|
213 | + |
|
214 | + |
|
215 | + /** |
|
216 | + * @inheritdoc |
|
217 | + */ |
|
218 | + public function defineRules(): array |
|
219 | + { |
|
220 | + $rules = parent::defineRules(); |
|
221 | + $rules = array_merge($rules, [ |
|
222 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
223 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
224 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
225 | + ]); |
|
226 | + |
|
227 | + return $rules; |
|
228 | + } |
|
229 | 229 | } |
@@ -30,151 +30,151 @@ |
||
30 | 30 | */ |
31 | 31 | class MedicalObservationalStudy extends MetaJsonLd implements MedicalObservationalStudyInterface, MedicalStudyInterface, MedicalEntityInterface, ThingInterface |
32 | 32 | { |
33 | - use MedicalObservationalStudyTrait; |
|
34 | - use MedicalStudyTrait; |
|
35 | - use MedicalEntityTrait; |
|
36 | - use ThingTrait; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Name |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeName = 'MedicalObservationalStudy'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Scope |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeScope = 'https://schema.org/MedicalObservationalStudy'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Extends |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeExtends = 'MedicalStudy'; |
|
58 | - |
|
59 | - /** |
|
60 | - * The Schema.org Type Description |
|
61 | - * |
|
62 | - * @var string |
|
63 | - */ |
|
64 | - public static $schemaTypeDescription = 'An observational study is a type of medical study that attempts to infer the possible effect of a treatment through observation of a cohort of subjects over a period of time. In an observational study, the assignment of subjects into treatment groups versus control groups is outside the control of the investigator. This is in contrast with controlled studies, such as the randomized controlled trials represented by MedicalTrial, where each subject is randomly assigned to a treatment group or a control group before the start of the treatment.'; |
|
65 | - |
|
66 | - |
|
67 | - /** |
|
68 | - * @inheritdoc |
|
69 | - */ |
|
70 | - public function getSchemaPropertyNames(): array |
|
71 | - { |
|
72 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
73 | - } |
|
74 | - |
|
75 | - |
|
76 | - /** |
|
77 | - * @inheritdoc |
|
78 | - */ |
|
79 | - public function getSchemaPropertyExpectedTypes(): array |
|
80 | - { |
|
81 | - return [ |
|
82 | - 'additionalType' => ['URL'], |
|
83 | - 'alternateName' => ['Text'], |
|
84 | - 'code' => ['MedicalCode'], |
|
85 | - 'description' => ['Text'], |
|
86 | - 'disambiguatingDescription' => ['Text'], |
|
87 | - 'funding' => ['Grant'], |
|
88 | - 'guideline' => ['MedicalGuideline'], |
|
89 | - 'healthCondition' => ['MedicalCondition'], |
|
90 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
91 | - 'image' => ['URL', 'ImageObject'], |
|
92 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
93 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
94 | - 'medicineSystem' => ['MedicineSystem'], |
|
95 | - 'name' => ['Text'], |
|
96 | - 'potentialAction' => ['Action'], |
|
97 | - 'recognizingAuthority' => ['Organization'], |
|
98 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
99 | - 'sameAs' => ['URL'], |
|
100 | - 'sponsor' => ['Organization', 'Person'], |
|
101 | - 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
102 | - 'study' => ['MedicalStudy'], |
|
103 | - 'studyDesign' => ['MedicalObservationalStudyDesign'], |
|
104 | - 'studyLocation' => ['AdministrativeArea'], |
|
105 | - 'studySubject' => ['MedicalEntity'], |
|
106 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
107 | - 'url' => ['URL'] |
|
108 | - ]; |
|
109 | - } |
|
110 | - |
|
111 | - |
|
112 | - /** |
|
113 | - * @inheritdoc |
|
114 | - */ |
|
115 | - public function getSchemaPropertyDescriptions(): array |
|
116 | - { |
|
117 | - return [ |
|
118 | - '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.', |
|
119 | - 'alternateName' => 'An alias for the item.', |
|
120 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
121 | - 'description' => 'A description of the item.', |
|
122 | - '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.', |
|
123 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
124 | - 'guideline' => 'A medical guideline related to this entity.', |
|
125 | - 'healthCondition' => 'Specifying the health condition(s) of a patient, medical study, or other target audience.', |
|
126 | - '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. ', |
|
127 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | - '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.', |
|
130 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | - 'name' => 'The name of the item.', |
|
132 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
134 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
135 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
136 | - '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.', |
|
137 | - 'status' => 'The status of the study (enumerated).', |
|
138 | - 'study' => 'A medical study or trial related to this entity.', |
|
139 | - 'studyDesign' => 'Specifics about the observational study design (enumerated).', |
|
140 | - 'studyLocation' => 'The location in which the study is taking/took place.', |
|
141 | - 'studySubject' => 'A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.', |
|
142 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
143 | - 'url' => 'URL of the item.' |
|
144 | - ]; |
|
145 | - } |
|
146 | - |
|
147 | - |
|
148 | - /** |
|
149 | - * @inheritdoc |
|
150 | - */ |
|
151 | - public function getGoogleRequiredSchema(): array |
|
152 | - { |
|
153 | - return ['description', 'name']; |
|
154 | - } |
|
155 | - |
|
156 | - |
|
157 | - /** |
|
158 | - * @inheritdoc |
|
159 | - */ |
|
160 | - public function getGoogleRecommendedSchema(): array |
|
161 | - { |
|
162 | - return ['image', 'url']; |
|
163 | - } |
|
164 | - |
|
165 | - |
|
166 | - /** |
|
167 | - * @inheritdoc |
|
168 | - */ |
|
169 | - public function defineRules(): array |
|
170 | - { |
|
171 | - $rules = parent::defineRules(); |
|
172 | - $rules = array_merge($rules, [ |
|
173 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
174 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
175 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
176 | - ]); |
|
177 | - |
|
178 | - return $rules; |
|
179 | - } |
|
33 | + use MedicalObservationalStudyTrait; |
|
34 | + use MedicalStudyTrait; |
|
35 | + use MedicalEntityTrait; |
|
36 | + use ThingTrait; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Name |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeName = 'MedicalObservationalStudy'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Scope |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeScope = 'https://schema.org/MedicalObservationalStudy'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Extends |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeExtends = 'MedicalStudy'; |
|
58 | + |
|
59 | + /** |
|
60 | + * The Schema.org Type Description |
|
61 | + * |
|
62 | + * @var string |
|
63 | + */ |
|
64 | + public static $schemaTypeDescription = 'An observational study is a type of medical study that attempts to infer the possible effect of a treatment through observation of a cohort of subjects over a period of time. In an observational study, the assignment of subjects into treatment groups versus control groups is outside the control of the investigator. This is in contrast with controlled studies, such as the randomized controlled trials represented by MedicalTrial, where each subject is randomly assigned to a treatment group or a control group before the start of the treatment.'; |
|
65 | + |
|
66 | + |
|
67 | + /** |
|
68 | + * @inheritdoc |
|
69 | + */ |
|
70 | + public function getSchemaPropertyNames(): array |
|
71 | + { |
|
72 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
73 | + } |
|
74 | + |
|
75 | + |
|
76 | + /** |
|
77 | + * @inheritdoc |
|
78 | + */ |
|
79 | + public function getSchemaPropertyExpectedTypes(): array |
|
80 | + { |
|
81 | + return [ |
|
82 | + 'additionalType' => ['URL'], |
|
83 | + 'alternateName' => ['Text'], |
|
84 | + 'code' => ['MedicalCode'], |
|
85 | + 'description' => ['Text'], |
|
86 | + 'disambiguatingDescription' => ['Text'], |
|
87 | + 'funding' => ['Grant'], |
|
88 | + 'guideline' => ['MedicalGuideline'], |
|
89 | + 'healthCondition' => ['MedicalCondition'], |
|
90 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
91 | + 'image' => ['URL', 'ImageObject'], |
|
92 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
93 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
94 | + 'medicineSystem' => ['MedicineSystem'], |
|
95 | + 'name' => ['Text'], |
|
96 | + 'potentialAction' => ['Action'], |
|
97 | + 'recognizingAuthority' => ['Organization'], |
|
98 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
99 | + 'sameAs' => ['URL'], |
|
100 | + 'sponsor' => ['Organization', 'Person'], |
|
101 | + 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
102 | + 'study' => ['MedicalStudy'], |
|
103 | + 'studyDesign' => ['MedicalObservationalStudyDesign'], |
|
104 | + 'studyLocation' => ['AdministrativeArea'], |
|
105 | + 'studySubject' => ['MedicalEntity'], |
|
106 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
107 | + 'url' => ['URL'] |
|
108 | + ]; |
|
109 | + } |
|
110 | + |
|
111 | + |
|
112 | + /** |
|
113 | + * @inheritdoc |
|
114 | + */ |
|
115 | + public function getSchemaPropertyDescriptions(): array |
|
116 | + { |
|
117 | + return [ |
|
118 | + '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.', |
|
119 | + 'alternateName' => 'An alias for the item.', |
|
120 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
121 | + 'description' => 'A description of the item.', |
|
122 | + '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.', |
|
123 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
124 | + 'guideline' => 'A medical guideline related to this entity.', |
|
125 | + 'healthCondition' => 'Specifying the health condition(s) of a patient, medical study, or other target audience.', |
|
126 | + '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. ', |
|
127 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | + '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.', |
|
130 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | + 'name' => 'The name of the item.', |
|
132 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
134 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
135 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
136 | + '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.', |
|
137 | + 'status' => 'The status of the study (enumerated).', |
|
138 | + 'study' => 'A medical study or trial related to this entity.', |
|
139 | + 'studyDesign' => 'Specifics about the observational study design (enumerated).', |
|
140 | + 'studyLocation' => 'The location in which the study is taking/took place.', |
|
141 | + 'studySubject' => 'A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs, etc. investigated by the study.', |
|
142 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
143 | + 'url' => 'URL of the item.' |
|
144 | + ]; |
|
145 | + } |
|
146 | + |
|
147 | + |
|
148 | + /** |
|
149 | + * @inheritdoc |
|
150 | + */ |
|
151 | + public function getGoogleRequiredSchema(): array |
|
152 | + { |
|
153 | + return ['description', 'name']; |
|
154 | + } |
|
155 | + |
|
156 | + |
|
157 | + /** |
|
158 | + * @inheritdoc |
|
159 | + */ |
|
160 | + public function getGoogleRecommendedSchema(): array |
|
161 | + { |
|
162 | + return ['image', 'url']; |
|
163 | + } |
|
164 | + |
|
165 | + |
|
166 | + /** |
|
167 | + * @inheritdoc |
|
168 | + */ |
|
169 | + public function defineRules(): array |
|
170 | + { |
|
171 | + $rules = parent::defineRules(); |
|
172 | + $rules = array_merge($rules, [ |
|
173 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
174 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
175 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
176 | + ]); |
|
177 | + |
|
178 | + return $rules; |
|
179 | + } |
|
180 | 180 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class ParkingMap extends MetaJsonLd implements ParkingMapInterface, MapCategoryTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use ParkingMapTrait; |
|
27 | - use MapCategoryTypeTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'ParkingMap'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/ParkingMap'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'MapCategoryType'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'A parking map.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use ParkingMapTrait; |
|
27 | + use MapCategoryTypeTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'ParkingMap'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/ParkingMap'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'MapCategoryType'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'A parking map.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -25,128 +25,128 @@ |
||
25 | 25 | */ |
26 | 26 | class Urologic extends MetaJsonLd implements UrologicInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, ThingInterface, MedicalEnumerationInterface |
27 | 27 | { |
28 | - use UrologicTrait; |
|
29 | - use MedicalSpecialtyTrait; |
|
30 | - use SpecialtyTrait; |
|
31 | - use EnumerationTrait; |
|
32 | - use IntangibleTrait; |
|
33 | - use ThingTrait; |
|
34 | - use MedicalEnumerationTrait; |
|
35 | - |
|
36 | - /** |
|
37 | - * The Schema.org Type Name |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - public static $schemaTypeName = 'Urologic'; |
|
42 | - |
|
43 | - /** |
|
44 | - * The Schema.org Type Scope |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public static $schemaTypeScope = 'https://schema.org/Urologic'; |
|
49 | - |
|
50 | - /** |
|
51 | - * The Schema.org Type Extends |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
55 | - public static $schemaTypeExtends = 'MedicalSpecialty'; |
|
56 | - |
|
57 | - /** |
|
58 | - * The Schema.org Type Description |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
62 | - public static $schemaTypeDescription = 'A specific branch of medical science that is concerned with the diagnosis and treatment of diseases pertaining to the urinary tract and the urogenital system.'; |
|
63 | - |
|
64 | - |
|
65 | - /** |
|
66 | - * @inheritdoc |
|
67 | - */ |
|
68 | - public function getSchemaPropertyNames(): array |
|
69 | - { |
|
70 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
71 | - } |
|
72 | - |
|
73 | - |
|
74 | - /** |
|
75 | - * @inheritdoc |
|
76 | - */ |
|
77 | - public function getSchemaPropertyExpectedTypes(): array |
|
78 | - { |
|
79 | - return [ |
|
80 | - 'additionalType' => ['URL'], |
|
81 | - 'alternateName' => ['Text'], |
|
82 | - 'description' => ['Text'], |
|
83 | - 'disambiguatingDescription' => ['Text'], |
|
84 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | - 'image' => ['URL', 'ImageObject'], |
|
86 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
87 | - 'name' => ['Text'], |
|
88 | - 'potentialAction' => ['Action'], |
|
89 | - 'sameAs' => ['URL'], |
|
90 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
91 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
92 | - 'url' => ['URL'] |
|
93 | - ]; |
|
94 | - } |
|
95 | - |
|
96 | - |
|
97 | - /** |
|
98 | - * @inheritdoc |
|
99 | - */ |
|
100 | - public function getSchemaPropertyDescriptions(): array |
|
101 | - { |
|
102 | - return [ |
|
103 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
104 | - 'alternateName' => 'An alias for the item.', |
|
105 | - 'description' => 'A description of the item.', |
|
106 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
107 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
108 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
109 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | - 'name' => 'The name of the item.', |
|
111 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
112 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
113 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
114 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
115 | - 'url' => 'URL of the item.' |
|
116 | - ]; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * @inheritdoc |
|
122 | - */ |
|
123 | - public function getGoogleRequiredSchema(): array |
|
124 | - { |
|
125 | - return ['description', 'name']; |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - /** |
|
130 | - * @inheritdoc |
|
131 | - */ |
|
132 | - public function getGoogleRecommendedSchema(): array |
|
133 | - { |
|
134 | - return ['image', 'url']; |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @inheritdoc |
|
140 | - */ |
|
141 | - public function defineRules(): array |
|
142 | - { |
|
143 | - $rules = parent::defineRules(); |
|
144 | - $rules = array_merge($rules, [ |
|
145 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | - ]); |
|
149 | - |
|
150 | - return $rules; |
|
151 | - } |
|
28 | + use UrologicTrait; |
|
29 | + use MedicalSpecialtyTrait; |
|
30 | + use SpecialtyTrait; |
|
31 | + use EnumerationTrait; |
|
32 | + use IntangibleTrait; |
|
33 | + use ThingTrait; |
|
34 | + use MedicalEnumerationTrait; |
|
35 | + |
|
36 | + /** |
|
37 | + * The Schema.org Type Name |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + public static $schemaTypeName = 'Urologic'; |
|
42 | + |
|
43 | + /** |
|
44 | + * The Schema.org Type Scope |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public static $schemaTypeScope = 'https://schema.org/Urologic'; |
|
49 | + |
|
50 | + /** |
|
51 | + * The Schema.org Type Extends |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | + public static $schemaTypeExtends = 'MedicalSpecialty'; |
|
56 | + |
|
57 | + /** |
|
58 | + * The Schema.org Type Description |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | + public static $schemaTypeDescription = 'A specific branch of medical science that is concerned with the diagnosis and treatment of diseases pertaining to the urinary tract and the urogenital system.'; |
|
63 | + |
|
64 | + |
|
65 | + /** |
|
66 | + * @inheritdoc |
|
67 | + */ |
|
68 | + public function getSchemaPropertyNames(): array |
|
69 | + { |
|
70 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
71 | + } |
|
72 | + |
|
73 | + |
|
74 | + /** |
|
75 | + * @inheritdoc |
|
76 | + */ |
|
77 | + public function getSchemaPropertyExpectedTypes(): array |
|
78 | + { |
|
79 | + return [ |
|
80 | + 'additionalType' => ['URL'], |
|
81 | + 'alternateName' => ['Text'], |
|
82 | + 'description' => ['Text'], |
|
83 | + 'disambiguatingDescription' => ['Text'], |
|
84 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | + 'image' => ['URL', 'ImageObject'], |
|
86 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
87 | + 'name' => ['Text'], |
|
88 | + 'potentialAction' => ['Action'], |
|
89 | + 'sameAs' => ['URL'], |
|
90 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
91 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
92 | + 'url' => ['URL'] |
|
93 | + ]; |
|
94 | + } |
|
95 | + |
|
96 | + |
|
97 | + /** |
|
98 | + * @inheritdoc |
|
99 | + */ |
|
100 | + public function getSchemaPropertyDescriptions(): array |
|
101 | + { |
|
102 | + return [ |
|
103 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
104 | + 'alternateName' => 'An alias for the item.', |
|
105 | + 'description' => 'A description of the item.', |
|
106 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
107 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
108 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
109 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | + 'name' => 'The name of the item.', |
|
111 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
112 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
113 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
114 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
115 | + 'url' => 'URL of the item.' |
|
116 | + ]; |
|
117 | + } |
|
118 | + |
|
119 | + |
|
120 | + /** |
|
121 | + * @inheritdoc |
|
122 | + */ |
|
123 | + public function getGoogleRequiredSchema(): array |
|
124 | + { |
|
125 | + return ['description', 'name']; |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + /** |
|
130 | + * @inheritdoc |
|
131 | + */ |
|
132 | + public function getGoogleRecommendedSchema(): array |
|
133 | + { |
|
134 | + return ['image', 'url']; |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @inheritdoc |
|
140 | + */ |
|
141 | + public function defineRules(): array |
|
142 | + { |
|
143 | + $rules = parent::defineRules(); |
|
144 | + $rules = array_merge($rules, [ |
|
145 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | + ]); |
|
149 | + |
|
150 | + return $rules; |
|
151 | + } |
|
152 | 152 | } |