@@ -28,164 +28,164 @@ |
||
28 | 28 | */ |
29 | 29 | class MedicalTherapy extends MetaJsonLd implements MedicalTherapyInterface, TherapeuticProcedureInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface |
30 | 30 | { |
31 | - use MedicalTherapyTrait; |
|
32 | - use TherapeuticProcedureTrait; |
|
33 | - use MedicalProcedureTrait; |
|
34 | - use MedicalEntityTrait; |
|
35 | - use ThingTrait; |
|
36 | - |
|
37 | - /** |
|
38 | - * The Schema.org Type Name |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public static string $schemaTypeName = 'MedicalTherapy'; |
|
43 | - |
|
44 | - /** |
|
45 | - * The Schema.org Type Scope |
|
46 | - * |
|
47 | - * @var string |
|
48 | - */ |
|
49 | - public static string $schemaTypeScope = 'https://schema.org/MedicalTherapy'; |
|
50 | - |
|
51 | - /** |
|
52 | - * The Schema.org Type Extends |
|
53 | - * |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public static string $schemaTypeExtends = 'TherapeuticProcedure'; |
|
57 | - |
|
58 | - /** |
|
59 | - * The Schema.org Type Description |
|
60 | - * |
|
61 | - * @var string |
|
62 | - */ |
|
63 | - public static string $schemaTypeDescription = 'Any medical intervention designed to prevent, treat, and cure human diseases and medical conditions, including both curative and palliative therapies. Medical therapies are typically processes of care relying upon pharmacotherapy, behavioral therapy, supportive therapy (with fluid or nutrition for example), or detoxification (e.g. hemodialysis) aimed at improving or preventing a health condition.'; |
|
64 | - |
|
65 | - |
|
66 | - /** |
|
67 | - * @inheritdoc |
|
68 | - */ |
|
69 | - public function getSchemaPropertyNames(): array |
|
70 | - { |
|
71 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
72 | - } |
|
73 | - |
|
74 | - |
|
75 | - /** |
|
76 | - * @inheritdoc |
|
77 | - */ |
|
78 | - public function getSchemaPropertyExpectedTypes(): array |
|
79 | - { |
|
80 | - return [ |
|
81 | - 'additionalType' => ['URL'], |
|
82 | - 'adverseOutcome' => ['MedicalEntity'], |
|
83 | - 'alternateName' => ['Text'], |
|
84 | - 'bodyLocation' => ['Text'], |
|
85 | - 'code' => ['MedicalCode'], |
|
86 | - 'contraindication' => ['Text', 'MedicalContraindication'], |
|
87 | - 'description' => ['Text'], |
|
88 | - 'disambiguatingDescription' => ['Text'], |
|
89 | - 'doseSchedule' => ['DoseSchedule'], |
|
90 | - 'drug' => ['Drug'], |
|
91 | - 'duplicateTherapy' => ['MedicalTherapy'], |
|
92 | - 'followup' => ['Text'], |
|
93 | - 'funding' => ['Grant'], |
|
94 | - 'guideline' => ['MedicalGuideline'], |
|
95 | - 'howPerformed' => ['Text'], |
|
96 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
97 | - 'image' => ['URL', 'ImageObject'], |
|
98 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
99 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
100 | - 'medicineSystem' => ['MedicineSystem'], |
|
101 | - 'name' => ['Text'], |
|
102 | - 'potentialAction' => ['Action'], |
|
103 | - 'preparation' => ['Text', 'MedicalEntity'], |
|
104 | - 'procedureType' => ['MedicalProcedureType'], |
|
105 | - 'recognizingAuthority' => ['Organization'], |
|
106 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
107 | - 'sameAs' => ['URL'], |
|
108 | - 'seriousAdverseOutcome' => ['MedicalEntity'], |
|
109 | - 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
110 | - 'study' => ['MedicalStudy'], |
|
111 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
112 | - 'url' => ['URL'] |
|
113 | - ]; |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - /** |
|
118 | - * @inheritdoc |
|
119 | - */ |
|
120 | - public function getSchemaPropertyDescriptions(): array |
|
121 | - { |
|
122 | - return [ |
|
123 | - '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.', |
|
124 | - 'adverseOutcome' => 'A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.', |
|
125 | - 'alternateName' => 'An alias for the item.', |
|
126 | - 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
127 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
128 | - 'contraindication' => 'A contraindication for this therapy.', |
|
129 | - 'description' => 'A description of the item.', |
|
130 | - '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.', |
|
131 | - 'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.', |
|
132 | - 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
133 | - 'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.', |
|
134 | - 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
135 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
136 | - 'guideline' => 'A medical guideline related to this entity.', |
|
137 | - 'howPerformed' => 'How the procedure is performed.', |
|
138 | - '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. ', |
|
139 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
140 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
141 | - '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.', |
|
142 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
143 | - 'name' => 'The name of the item.', |
|
144 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
145 | - 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
146 | - 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
147 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
148 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
149 | - '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.', |
|
150 | - 'seriousAdverseOutcome' => 'A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.', |
|
151 | - 'status' => 'The status of the study (enumerated).', |
|
152 | - 'study' => 'A medical study or trial related to this entity.', |
|
153 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
154 | - 'url' => 'URL of the item.' |
|
155 | - ]; |
|
156 | - } |
|
157 | - |
|
158 | - |
|
159 | - /** |
|
160 | - * @inheritdoc |
|
161 | - */ |
|
162 | - public function getGoogleRequiredSchema(): array |
|
163 | - { |
|
164 | - return ['description', 'name']; |
|
165 | - } |
|
166 | - |
|
167 | - |
|
168 | - /** |
|
169 | - * @inheritdoc |
|
170 | - */ |
|
171 | - public function getGoogleRecommendedSchema(): array |
|
172 | - { |
|
173 | - return ['image', 'url']; |
|
174 | - } |
|
175 | - |
|
176 | - |
|
177 | - /** |
|
178 | - * @inheritdoc |
|
179 | - */ |
|
180 | - public function defineRules(): array |
|
181 | - { |
|
182 | - $rules = parent::defineRules(); |
|
183 | - $rules = array_merge($rules, [ |
|
184 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
185 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
186 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
187 | - ]); |
|
188 | - |
|
189 | - return $rules; |
|
190 | - } |
|
31 | + use MedicalTherapyTrait; |
|
32 | + use TherapeuticProcedureTrait; |
|
33 | + use MedicalProcedureTrait; |
|
34 | + use MedicalEntityTrait; |
|
35 | + use ThingTrait; |
|
36 | + |
|
37 | + /** |
|
38 | + * The Schema.org Type Name |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public static string $schemaTypeName = 'MedicalTherapy'; |
|
43 | + |
|
44 | + /** |
|
45 | + * The Schema.org Type Scope |
|
46 | + * |
|
47 | + * @var string |
|
48 | + */ |
|
49 | + public static string $schemaTypeScope = 'https://schema.org/MedicalTherapy'; |
|
50 | + |
|
51 | + /** |
|
52 | + * The Schema.org Type Extends |
|
53 | + * |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public static string $schemaTypeExtends = 'TherapeuticProcedure'; |
|
57 | + |
|
58 | + /** |
|
59 | + * The Schema.org Type Description |
|
60 | + * |
|
61 | + * @var string |
|
62 | + */ |
|
63 | + public static string $schemaTypeDescription = 'Any medical intervention designed to prevent, treat, and cure human diseases and medical conditions, including both curative and palliative therapies. Medical therapies are typically processes of care relying upon pharmacotherapy, behavioral therapy, supportive therapy (with fluid or nutrition for example), or detoxification (e.g. hemodialysis) aimed at improving or preventing a health condition.'; |
|
64 | + |
|
65 | + |
|
66 | + /** |
|
67 | + * @inheritdoc |
|
68 | + */ |
|
69 | + public function getSchemaPropertyNames(): array |
|
70 | + { |
|
71 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
72 | + } |
|
73 | + |
|
74 | + |
|
75 | + /** |
|
76 | + * @inheritdoc |
|
77 | + */ |
|
78 | + public function getSchemaPropertyExpectedTypes(): array |
|
79 | + { |
|
80 | + return [ |
|
81 | + 'additionalType' => ['URL'], |
|
82 | + 'adverseOutcome' => ['MedicalEntity'], |
|
83 | + 'alternateName' => ['Text'], |
|
84 | + 'bodyLocation' => ['Text'], |
|
85 | + 'code' => ['MedicalCode'], |
|
86 | + 'contraindication' => ['Text', 'MedicalContraindication'], |
|
87 | + 'description' => ['Text'], |
|
88 | + 'disambiguatingDescription' => ['Text'], |
|
89 | + 'doseSchedule' => ['DoseSchedule'], |
|
90 | + 'drug' => ['Drug'], |
|
91 | + 'duplicateTherapy' => ['MedicalTherapy'], |
|
92 | + 'followup' => ['Text'], |
|
93 | + 'funding' => ['Grant'], |
|
94 | + 'guideline' => ['MedicalGuideline'], |
|
95 | + 'howPerformed' => ['Text'], |
|
96 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
97 | + 'image' => ['URL', 'ImageObject'], |
|
98 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
99 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
100 | + 'medicineSystem' => ['MedicineSystem'], |
|
101 | + 'name' => ['Text'], |
|
102 | + 'potentialAction' => ['Action'], |
|
103 | + 'preparation' => ['Text', 'MedicalEntity'], |
|
104 | + 'procedureType' => ['MedicalProcedureType'], |
|
105 | + 'recognizingAuthority' => ['Organization'], |
|
106 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
107 | + 'sameAs' => ['URL'], |
|
108 | + 'seriousAdverseOutcome' => ['MedicalEntity'], |
|
109 | + 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
110 | + 'study' => ['MedicalStudy'], |
|
111 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
112 | + 'url' => ['URL'] |
|
113 | + ]; |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + /** |
|
118 | + * @inheritdoc |
|
119 | + */ |
|
120 | + public function getSchemaPropertyDescriptions(): array |
|
121 | + { |
|
122 | + return [ |
|
123 | + '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.', |
|
124 | + 'adverseOutcome' => 'A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.', |
|
125 | + 'alternateName' => 'An alias for the item.', |
|
126 | + 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
127 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
128 | + 'contraindication' => 'A contraindication for this therapy.', |
|
129 | + 'description' => 'A description of the item.', |
|
130 | + '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.', |
|
131 | + 'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.', |
|
132 | + 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
133 | + 'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.', |
|
134 | + 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
135 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
136 | + 'guideline' => 'A medical guideline related to this entity.', |
|
137 | + 'howPerformed' => 'How the procedure is performed.', |
|
138 | + '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. ', |
|
139 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
140 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
141 | + '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.', |
|
142 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
143 | + 'name' => 'The name of the item.', |
|
144 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
145 | + 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
146 | + 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
147 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
148 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
149 | + '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.', |
|
150 | + 'seriousAdverseOutcome' => 'A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.', |
|
151 | + 'status' => 'The status of the study (enumerated).', |
|
152 | + 'study' => 'A medical study or trial related to this entity.', |
|
153 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
154 | + 'url' => 'URL of the item.' |
|
155 | + ]; |
|
156 | + } |
|
157 | + |
|
158 | + |
|
159 | + /** |
|
160 | + * @inheritdoc |
|
161 | + */ |
|
162 | + public function getGoogleRequiredSchema(): array |
|
163 | + { |
|
164 | + return ['description', 'name']; |
|
165 | + } |
|
166 | + |
|
167 | + |
|
168 | + /** |
|
169 | + * @inheritdoc |
|
170 | + */ |
|
171 | + public function getGoogleRecommendedSchema(): array |
|
172 | + { |
|
173 | + return ['image', 'url']; |
|
174 | + } |
|
175 | + |
|
176 | + |
|
177 | + /** |
|
178 | + * @inheritdoc |
|
179 | + */ |
|
180 | + public function defineRules(): array |
|
181 | + { |
|
182 | + $rules = parent::defineRules(); |
|
183 | + $rules = array_merge($rules, [ |
|
184 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
185 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
186 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
187 | + ]); |
|
188 | + |
|
189 | + return $rules; |
|
190 | + } |
|
191 | 191 | } |
@@ -23,323 +23,323 @@ |
||
23 | 23 | */ |
24 | 24 | class ElementarySchool extends MetaJsonLd implements ElementarySchoolInterface, EducationalOrganizationInterface, CivicStructureInterface, PlaceInterface, ThingInterface, OrganizationInterface |
25 | 25 | { |
26 | - use ElementarySchoolTrait; |
|
27 | - use EducationalOrganizationTrait; |
|
28 | - use CivicStructureTrait; |
|
29 | - use PlaceTrait; |
|
30 | - use ThingTrait; |
|
31 | - use OrganizationTrait; |
|
26 | + use ElementarySchoolTrait; |
|
27 | + use EducationalOrganizationTrait; |
|
28 | + use CivicStructureTrait; |
|
29 | + use PlaceTrait; |
|
30 | + use ThingTrait; |
|
31 | + use OrganizationTrait; |
|
32 | 32 | |
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static string $schemaTypeName = 'ElementarySchool'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static string $schemaTypeName = 'ElementarySchool'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static string $schemaTypeScope = 'https://schema.org/ElementarySchool'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static string $schemaTypeScope = 'https://schema.org/ElementarySchool'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static string $schemaTypeExtends = 'EducationalOrganization'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static string $schemaTypeExtends = 'EducationalOrganization'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static string $schemaTypeDescription = 'An elementary school.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static string $schemaTypeDescription = 'An elementary school.'; |
|
60 | 60 | |
61 | 61 | |
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | 69 | |
70 | 70 | |
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | - 'additionalProperty' => ['PropertyValue'], |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'address' => ['Text', 'PostalAddress'], |
|
81 | - 'aggregateRating' => ['AggregateRating'], |
|
82 | - 'alternateName' => ['Text'], |
|
83 | - 'alumni' => ['Person'], |
|
84 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
85 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
86 | - 'award' => ['Text'], |
|
87 | - 'awards' => ['Text'], |
|
88 | - 'branchCode' => ['Text'], |
|
89 | - 'brand' => ['Brand', 'Organization'], |
|
90 | - 'contactPoint' => ['ContactPoint'], |
|
91 | - 'contactPoints' => ['ContactPoint'], |
|
92 | - 'containedIn' => ['Place'], |
|
93 | - 'containedInPlace' => ['Place'], |
|
94 | - 'containsPlace' => ['Place'], |
|
95 | - 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
96 | - 'department' => ['Organization'], |
|
97 | - 'description' => ['Text'], |
|
98 | - 'disambiguatingDescription' => ['Text'], |
|
99 | - 'dissolutionDate' => ['Date'], |
|
100 | - 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
101 | - 'diversityStaffingReport' => ['Article', 'URL'], |
|
102 | - 'duns' => ['Text'], |
|
103 | - 'email' => ['Text'], |
|
104 | - 'employee' => ['Person'], |
|
105 | - 'employees' => ['Person'], |
|
106 | - 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
107 | - 'event' => ['Event'], |
|
108 | - 'events' => ['Event'], |
|
109 | - 'faxNumber' => ['Text'], |
|
110 | - 'founder' => ['Person'], |
|
111 | - 'founders' => ['Person'], |
|
112 | - 'foundingDate' => ['Date'], |
|
113 | - 'foundingLocation' => ['Place'], |
|
114 | - 'funder' => ['Organization', 'Person'], |
|
115 | - 'funding' => ['Grant'], |
|
116 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
117 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
118 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
119 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
120 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
121 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
122 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
123 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
124 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
125 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
126 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
127 | - 'globalLocationNumber' => ['Text'], |
|
128 | - 'hasCredential' => ['EducationalOccupationalCredential'], |
|
129 | - 'hasDriveThroughService' => ['Boolean'], |
|
130 | - 'hasMap' => ['URL', 'Map'], |
|
131 | - 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
132 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
133 | - 'hasPOS' => ['Place'], |
|
134 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
135 | - 'image' => ['URL', 'ImageObject'], |
|
136 | - 'interactionStatistic' => ['InteractionCounter'], |
|
137 | - 'isAccessibleForFree' => ['Boolean'], |
|
138 | - 'isicV4' => ['Text'], |
|
139 | - 'iso6523Code' => ['Text'], |
|
140 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
141 | - 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
142 | - 'knowsLanguage' => ['Text', 'Language'], |
|
143 | - 'latitude' => ['Number', 'Text'], |
|
144 | - 'legalName' => ['Text'], |
|
145 | - 'leiCode' => ['Text'], |
|
146 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
147 | - 'logo' => ['ImageObject', 'URL'], |
|
148 | - 'longitude' => ['Text', 'Number'], |
|
149 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
150 | - 'makesOffer' => ['Offer'], |
|
151 | - 'map' => ['URL'], |
|
152 | - 'maps' => ['URL'], |
|
153 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
154 | - 'member' => ['Organization', 'Person'], |
|
155 | - 'memberOf' => ['Organization', 'ProgramMembership'], |
|
156 | - 'members' => ['Organization', 'Person'], |
|
157 | - 'naics' => ['Text'], |
|
158 | - 'name' => ['Text'], |
|
159 | - 'nonprofitStatus' => ['NonprofitType'], |
|
160 | - 'numberOfEmployees' => ['QuantitativeValue'], |
|
161 | - 'openingHours' => ['Text'], |
|
162 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
163 | - 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
164 | - 'owns' => ['Product', 'OwnershipInfo'], |
|
165 | - 'parentOrganization' => ['Organization'], |
|
166 | - 'photo' => ['Photograph', 'ImageObject'], |
|
167 | - 'photos' => ['ImageObject', 'Photograph'], |
|
168 | - 'potentialAction' => ['Action'], |
|
169 | - 'publicAccess' => ['Boolean'], |
|
170 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
171 | - 'review' => ['Review'], |
|
172 | - 'reviews' => ['Review'], |
|
173 | - 'sameAs' => ['URL'], |
|
174 | - 'seeks' => ['Demand'], |
|
175 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
176 | - 'slogan' => ['Text'], |
|
177 | - 'smokingAllowed' => ['Boolean'], |
|
178 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
179 | - 'sponsor' => ['Organization', 'Person'], |
|
180 | - 'subOrganization' => ['Organization'], |
|
181 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
182 | - 'taxID' => ['Text'], |
|
183 | - 'telephone' => ['Text'], |
|
184 | - 'tourBookingPage' => ['URL'], |
|
185 | - 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
186 | - 'url' => ['URL'], |
|
187 | - 'vatID' => ['Text'] |
|
188 | - ]; |
|
189 | - } |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'actionableFeedbackPolicy' => ['CreativeWork', 'URL'], |
|
78 | + 'additionalProperty' => ['PropertyValue'], |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'address' => ['Text', 'PostalAddress'], |
|
81 | + 'aggregateRating' => ['AggregateRating'], |
|
82 | + 'alternateName' => ['Text'], |
|
83 | + 'alumni' => ['Person'], |
|
84 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
85 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
86 | + 'award' => ['Text'], |
|
87 | + 'awards' => ['Text'], |
|
88 | + 'branchCode' => ['Text'], |
|
89 | + 'brand' => ['Brand', 'Organization'], |
|
90 | + 'contactPoint' => ['ContactPoint'], |
|
91 | + 'contactPoints' => ['ContactPoint'], |
|
92 | + 'containedIn' => ['Place'], |
|
93 | + 'containedInPlace' => ['Place'], |
|
94 | + 'containsPlace' => ['Place'], |
|
95 | + 'correctionsPolicy' => ['URL', 'CreativeWork'], |
|
96 | + 'department' => ['Organization'], |
|
97 | + 'description' => ['Text'], |
|
98 | + 'disambiguatingDescription' => ['Text'], |
|
99 | + 'dissolutionDate' => ['Date'], |
|
100 | + 'diversityPolicy' => ['URL', 'CreativeWork'], |
|
101 | + 'diversityStaffingReport' => ['Article', 'URL'], |
|
102 | + 'duns' => ['Text'], |
|
103 | + 'email' => ['Text'], |
|
104 | + 'employee' => ['Person'], |
|
105 | + 'employees' => ['Person'], |
|
106 | + 'ethicsPolicy' => ['CreativeWork', 'URL'], |
|
107 | + 'event' => ['Event'], |
|
108 | + 'events' => ['Event'], |
|
109 | + 'faxNumber' => ['Text'], |
|
110 | + 'founder' => ['Person'], |
|
111 | + 'founders' => ['Person'], |
|
112 | + 'foundingDate' => ['Date'], |
|
113 | + 'foundingLocation' => ['Place'], |
|
114 | + 'funder' => ['Organization', 'Person'], |
|
115 | + 'funding' => ['Grant'], |
|
116 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
117 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
118 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
119 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
120 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
121 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
122 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
123 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
124 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
125 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
126 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
127 | + 'globalLocationNumber' => ['Text'], |
|
128 | + 'hasCredential' => ['EducationalOccupationalCredential'], |
|
129 | + 'hasDriveThroughService' => ['Boolean'], |
|
130 | + 'hasMap' => ['URL', 'Map'], |
|
131 | + 'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'], |
|
132 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
133 | + 'hasPOS' => ['Place'], |
|
134 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
135 | + 'image' => ['URL', 'ImageObject'], |
|
136 | + 'interactionStatistic' => ['InteractionCounter'], |
|
137 | + 'isAccessibleForFree' => ['Boolean'], |
|
138 | + 'isicV4' => ['Text'], |
|
139 | + 'iso6523Code' => ['Text'], |
|
140 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
141 | + 'knowsAbout' => ['Thing', 'Text', 'URL'], |
|
142 | + 'knowsLanguage' => ['Text', 'Language'], |
|
143 | + 'latitude' => ['Number', 'Text'], |
|
144 | + 'legalName' => ['Text'], |
|
145 | + 'leiCode' => ['Text'], |
|
146 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
147 | + 'logo' => ['ImageObject', 'URL'], |
|
148 | + 'longitude' => ['Text', 'Number'], |
|
149 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
150 | + 'makesOffer' => ['Offer'], |
|
151 | + 'map' => ['URL'], |
|
152 | + 'maps' => ['URL'], |
|
153 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
154 | + 'member' => ['Organization', 'Person'], |
|
155 | + 'memberOf' => ['Organization', 'ProgramMembership'], |
|
156 | + 'members' => ['Organization', 'Person'], |
|
157 | + 'naics' => ['Text'], |
|
158 | + 'name' => ['Text'], |
|
159 | + 'nonprofitStatus' => ['NonprofitType'], |
|
160 | + 'numberOfEmployees' => ['QuantitativeValue'], |
|
161 | + 'openingHours' => ['Text'], |
|
162 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
163 | + 'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'], |
|
164 | + 'owns' => ['Product', 'OwnershipInfo'], |
|
165 | + 'parentOrganization' => ['Organization'], |
|
166 | + 'photo' => ['Photograph', 'ImageObject'], |
|
167 | + 'photos' => ['ImageObject', 'Photograph'], |
|
168 | + 'potentialAction' => ['Action'], |
|
169 | + 'publicAccess' => ['Boolean'], |
|
170 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
171 | + 'review' => ['Review'], |
|
172 | + 'reviews' => ['Review'], |
|
173 | + 'sameAs' => ['URL'], |
|
174 | + 'seeks' => ['Demand'], |
|
175 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
176 | + 'slogan' => ['Text'], |
|
177 | + 'smokingAllowed' => ['Boolean'], |
|
178 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
179 | + 'sponsor' => ['Organization', 'Person'], |
|
180 | + 'subOrganization' => ['Organization'], |
|
181 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
182 | + 'taxID' => ['Text'], |
|
183 | + 'telephone' => ['Text'], |
|
184 | + 'tourBookingPage' => ['URL'], |
|
185 | + 'unnamedSourcesPolicy' => ['CreativeWork', 'URL'], |
|
186 | + 'url' => ['URL'], |
|
187 | + 'vatID' => ['Text'] |
|
188 | + ]; |
|
189 | + } |
|
190 | 190 | |
191 | 191 | |
192 | - /** |
|
193 | - * @inheritdoc |
|
194 | - */ |
|
195 | - public function getSchemaPropertyDescriptions(): array |
|
196 | - { |
|
197 | - return [ |
|
198 | - 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
199 | - 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
200 | - '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.', |
|
201 | - 'address' => 'Physical address of the item.', |
|
202 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
203 | - 'alternateName' => 'An alias for the item.', |
|
204 | - 'alumni' => 'Alumni of an organization.', |
|
205 | - 'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.', |
|
206 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
207 | - 'award' => 'An award won by or for this item.', |
|
208 | - 'awards' => 'Awards won by or for this item.', |
|
209 | - 'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. ', |
|
210 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
211 | - 'contactPoint' => 'A contact point for a person or organization.', |
|
212 | - 'contactPoints' => 'A contact point for a person or organization.', |
|
213 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
214 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
215 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
216 | - 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
217 | - 'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.', |
|
218 | - 'description' => 'A description of the item.', |
|
219 | - '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.', |
|
220 | - 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
221 | - 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
222 | - 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
223 | - 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
224 | - 'email' => 'Email address.', |
|
225 | - 'employee' => 'Someone working for this organization.', |
|
226 | - 'employees' => 'People working for this organization.', |
|
227 | - 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
228 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
229 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
230 | - 'faxNumber' => 'The fax number.', |
|
231 | - 'founder' => 'A person who founded this organization.', |
|
232 | - 'founders' => 'A person who founded this organization.', |
|
233 | - 'foundingDate' => 'The date that this organization was founded.', |
|
234 | - 'foundingLocation' => 'The place where the Organization was founded.', |
|
235 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
236 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
237 | - 'geo' => 'The geo coordinates of the place.', |
|
238 | - 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
239 | - 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
240 | - 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
241 | - 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
242 | - 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
243 | - 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
244 | - 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
245 | - 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
246 | - 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
247 | - 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
248 | - 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', |
|
249 | - 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
250 | - 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
251 | - 'hasMap' => 'A URL to a map of the place.', |
|
252 | - 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
253 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
254 | - 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
255 | - '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. ', |
|
256 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
257 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
258 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
259 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
260 | - 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
261 | - '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.', |
|
262 | - 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
263 | - 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
264 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
265 | - 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
266 | - 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
267 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
268 | - 'logo' => 'An associated logo.', |
|
269 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
270 | - '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.', |
|
271 | - 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
272 | - 'map' => 'A URL to a map of the place.', |
|
273 | - 'maps' => 'A URL to a map of the place.', |
|
274 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
275 | - 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
276 | - 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
277 | - 'members' => 'A member of this organization.', |
|
278 | - 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
279 | - 'name' => 'The name of the item.', |
|
280 | - 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
281 | - 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
282 | - 'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'. * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.', |
|
283 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
284 | - 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
285 | - 'owns' => 'Products owned by the organization or person.', |
|
286 | - 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
287 | - 'photo' => 'A photograph of this place.', |
|
288 | - 'photos' => 'Photographs of this place.', |
|
289 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
290 | - 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
291 | - '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. ', |
|
292 | - 'review' => 'A review of the item.', |
|
293 | - 'reviews' => 'Review of the item.', |
|
294 | - '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.', |
|
295 | - 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
296 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
297 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
298 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
299 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
300 | - '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.', |
|
301 | - 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
302 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
303 | - 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
304 | - 'telephone' => 'The telephone number.', |
|
305 | - 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
306 | - 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
307 | - 'url' => 'URL of the item.', |
|
308 | - 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
309 | - ]; |
|
310 | - } |
|
192 | + /** |
|
193 | + * @inheritdoc |
|
194 | + */ |
|
195 | + public function getSchemaPropertyDescriptions(): array |
|
196 | + { |
|
197 | + return [ |
|
198 | + 'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.', |
|
199 | + 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
200 | + '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.', |
|
201 | + 'address' => 'Physical address of the item.', |
|
202 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
203 | + 'alternateName' => 'An alias for the item.', |
|
204 | + 'alumni' => 'Alumni of an organization.', |
|
205 | + 'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.', |
|
206 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
207 | + 'award' => 'An award won by or for this item.', |
|
208 | + 'awards' => 'Awards won by or for this item.', |
|
209 | + 'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. ', |
|
210 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
211 | + 'contactPoint' => 'A contact point for a person or organization.', |
|
212 | + 'contactPoints' => 'A contact point for a person or organization.', |
|
213 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
214 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
215 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
216 | + 'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.', |
|
217 | + 'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.', |
|
218 | + 'description' => 'A description of the item.', |
|
219 | + '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.', |
|
220 | + 'dissolutionDate' => 'The date that this organization was dissolved.', |
|
221 | + 'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.', |
|
222 | + 'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.', |
|
223 | + 'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.', |
|
224 | + 'email' => 'Email address.', |
|
225 | + 'employee' => 'Someone working for this organization.', |
|
226 | + 'employees' => 'People working for this organization.', |
|
227 | + 'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.', |
|
228 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
229 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
230 | + 'faxNumber' => 'The fax number.', |
|
231 | + 'founder' => 'A person who founded this organization.', |
|
232 | + 'founders' => 'A person who founded this organization.', |
|
233 | + 'foundingDate' => 'The date that this organization was founded.', |
|
234 | + 'foundingLocation' => 'The place where the Organization was founded.', |
|
235 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
236 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
237 | + 'geo' => 'The geo coordinates of the place.', |
|
238 | + 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
239 | + 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
240 | + 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
241 | + 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
242 | + 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
243 | + 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
244 | + 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
245 | + 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
246 | + 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
247 | + 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
248 | + 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', |
|
249 | + 'hasCredential' => 'A credential awarded to the Person or Organization.', |
|
250 | + 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
251 | + 'hasMap' => 'A URL to a map of the place.', |
|
252 | + 'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.', |
|
253 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
254 | + 'hasPOS' => 'Points-of-Sales operated by the organization or person.', |
|
255 | + '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. ', |
|
256 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
257 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
258 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
259 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
260 | + 'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ', |
|
261 | + '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.', |
|
262 | + 'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.', |
|
263 | + 'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).', |
|
264 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
265 | + 'legalName' => 'The official name of the organization, e.g. the registered company name.', |
|
266 | + 'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.', |
|
267 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
268 | + 'logo' => 'An associated logo.', |
|
269 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
270 | + '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.', |
|
271 | + 'makesOffer' => 'A pointer to products or services offered by the organization or person.', |
|
272 | + 'map' => 'A URL to a map of the place.', |
|
273 | + 'maps' => 'A URL to a map of the place.', |
|
274 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
275 | + 'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.', |
|
276 | + 'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.', |
|
277 | + 'members' => 'A member of this organization.', |
|
278 | + 'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.', |
|
279 | + 'name' => 'The name of the item.', |
|
280 | + 'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.', |
|
281 | + 'numberOfEmployees' => 'The number of employees in an organization, e.g. business.', |
|
282 | + 'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'. * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```. * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.', |
|
283 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
284 | + 'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence. Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.', |
|
285 | + 'owns' => 'Products owned by the organization or person.', |
|
286 | + 'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.', |
|
287 | + 'photo' => 'A photograph of this place.', |
|
288 | + 'photos' => 'Photographs of this place.', |
|
289 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
290 | + 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
291 | + '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. ', |
|
292 | + 'review' => 'A review of the item.', |
|
293 | + 'reviews' => 'Review of the item.', |
|
294 | + '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.', |
|
295 | + 'seeks' => 'A pointer to products or services sought by the organization or person (demand).', |
|
296 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
297 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
298 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
299 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
300 | + '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.', |
|
301 | + 'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.', |
|
302 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
303 | + 'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.', |
|
304 | + 'telephone' => 'The telephone number.', |
|
305 | + 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
306 | + 'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.', |
|
307 | + 'url' => 'URL of the item.', |
|
308 | + 'vatID' => 'The Value-added Tax ID of the organization or person.' |
|
309 | + ]; |
|
310 | + } |
|
311 | 311 | |
312 | 312 | |
313 | - /** |
|
314 | - * @inheritdoc |
|
315 | - */ |
|
316 | - public function getGoogleRequiredSchema(): array |
|
317 | - { |
|
318 | - return ['description', 'name']; |
|
319 | - } |
|
313 | + /** |
|
314 | + * @inheritdoc |
|
315 | + */ |
|
316 | + public function getGoogleRequiredSchema(): array |
|
317 | + { |
|
318 | + return ['description', 'name']; |
|
319 | + } |
|
320 | 320 | |
321 | 321 | |
322 | - /** |
|
323 | - * @inheritdoc |
|
324 | - */ |
|
325 | - public function getGoogleRecommendedSchema(): array |
|
326 | - { |
|
327 | - return ['image', 'url']; |
|
328 | - } |
|
322 | + /** |
|
323 | + * @inheritdoc |
|
324 | + */ |
|
325 | + public function getGoogleRecommendedSchema(): array |
|
326 | + { |
|
327 | + return ['image', 'url']; |
|
328 | + } |
|
329 | 329 | |
330 | 330 | |
331 | - /** |
|
332 | - * @inheritdoc |
|
333 | - */ |
|
334 | - public function defineRules(): array |
|
335 | - { |
|
336 | - $rules = parent::defineRules(); |
|
337 | - $rules = array_merge($rules, [ |
|
338 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
339 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
340 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
341 | - ]); |
|
331 | + /** |
|
332 | + * @inheritdoc |
|
333 | + */ |
|
334 | + public function defineRules(): array |
|
335 | + { |
|
336 | + $rules = parent::defineRules(); |
|
337 | + $rules = array_merge($rules, [ |
|
338 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
339 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
340 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
341 | + ]); |
|
342 | 342 | |
343 | - return $rules; |
|
344 | - } |
|
343 | + return $rules; |
|
344 | + } |
|
345 | 345 | } |
@@ -23,136 +23,136 @@ |
||
23 | 23 | */ |
24 | 24 | class AMRadioChannel extends MetaJsonLd implements AMRadioChannelInterface, RadioChannelInterface, BroadcastChannelInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use AMRadioChannelTrait; |
|
27 | - use RadioChannelTrait; |
|
28 | - use BroadcastChannelTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static string $schemaTypeName = 'AMRadioChannel'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static string $schemaTypeScope = 'https://schema.org/AMRadioChannel'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static string $schemaTypeExtends = 'RadioChannel'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static string $schemaTypeDescription = 'A radio channel that uses AM.'; |
|
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 | - 'broadcastChannelId' => ['Text'], |
|
79 | - 'broadcastFrequency' => ['Text', 'BroadcastFrequencySpecification'], |
|
80 | - 'broadcastServiceTier' => ['Text'], |
|
81 | - 'description' => ['Text'], |
|
82 | - 'disambiguatingDescription' => ['Text'], |
|
83 | - 'genre' => ['Text', 'URL'], |
|
84 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | - 'image' => ['URL', 'ImageObject'], |
|
86 | - 'inBroadcastLineup' => ['CableOrSatelliteService'], |
|
87 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | - 'name' => ['Text'], |
|
89 | - 'potentialAction' => ['Action'], |
|
90 | - 'providesBroadcastService' => ['BroadcastService'], |
|
91 | - 'sameAs' => ['URL'], |
|
92 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
93 | - 'url' => ['URL'] |
|
94 | - ]; |
|
95 | - } |
|
96 | - |
|
97 | - |
|
98 | - /** |
|
99 | - * @inheritdoc |
|
100 | - */ |
|
101 | - public function getSchemaPropertyDescriptions(): array |
|
102 | - { |
|
103 | - return [ |
|
104 | - '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.', |
|
105 | - 'alternateName' => 'An alias for the item.', |
|
106 | - 'broadcastChannelId' => 'The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.', |
|
107 | - 'broadcastFrequency' => 'The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".', |
|
108 | - 'broadcastServiceTier' => 'The type of service required to have access to the channel (e.g. Standard or Premium).', |
|
109 | - 'description' => 'A description of the item.', |
|
110 | - '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.', |
|
111 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
112 | - '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. ', |
|
113 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
114 | - 'inBroadcastLineup' => 'The CableOrSatelliteService offering the channel.', |
|
115 | - '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.', |
|
116 | - 'name' => 'The name of the item.', |
|
117 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
118 | - 'providesBroadcastService' => 'The BroadcastService offered on this channel.', |
|
119 | - '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.', |
|
120 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
121 | - 'url' => 'URL of the item.' |
|
122 | - ]; |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - /** |
|
127 | - * @inheritdoc |
|
128 | - */ |
|
129 | - public function getGoogleRequiredSchema(): array |
|
130 | - { |
|
131 | - return ['description', 'name']; |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * @inheritdoc |
|
137 | - */ |
|
138 | - public function getGoogleRecommendedSchema(): array |
|
139 | - { |
|
140 | - return ['image', 'url']; |
|
141 | - } |
|
142 | - |
|
143 | - |
|
144 | - /** |
|
145 | - * @inheritdoc |
|
146 | - */ |
|
147 | - public function defineRules(): array |
|
148 | - { |
|
149 | - $rules = parent::defineRules(); |
|
150 | - $rules = array_merge($rules, [ |
|
151 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
152 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
153 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
154 | - ]); |
|
155 | - |
|
156 | - return $rules; |
|
157 | - } |
|
26 | + use AMRadioChannelTrait; |
|
27 | + use RadioChannelTrait; |
|
28 | + use BroadcastChannelTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static string $schemaTypeName = 'AMRadioChannel'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static string $schemaTypeScope = 'https://schema.org/AMRadioChannel'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static string $schemaTypeExtends = 'RadioChannel'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static string $schemaTypeDescription = 'A radio channel that uses AM.'; |
|
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 | + 'broadcastChannelId' => ['Text'], |
|
79 | + 'broadcastFrequency' => ['Text', 'BroadcastFrequencySpecification'], |
|
80 | + 'broadcastServiceTier' => ['Text'], |
|
81 | + 'description' => ['Text'], |
|
82 | + 'disambiguatingDescription' => ['Text'], |
|
83 | + 'genre' => ['Text', 'URL'], |
|
84 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | + 'image' => ['URL', 'ImageObject'], |
|
86 | + 'inBroadcastLineup' => ['CableOrSatelliteService'], |
|
87 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
88 | + 'name' => ['Text'], |
|
89 | + 'potentialAction' => ['Action'], |
|
90 | + 'providesBroadcastService' => ['BroadcastService'], |
|
91 | + 'sameAs' => ['URL'], |
|
92 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
93 | + 'url' => ['URL'] |
|
94 | + ]; |
|
95 | + } |
|
96 | + |
|
97 | + |
|
98 | + /** |
|
99 | + * @inheritdoc |
|
100 | + */ |
|
101 | + public function getSchemaPropertyDescriptions(): array |
|
102 | + { |
|
103 | + return [ |
|
104 | + '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.', |
|
105 | + 'alternateName' => 'An alias for the item.', |
|
106 | + 'broadcastChannelId' => 'The unique address by which the BroadcastService can be identified in a provider lineup. In US, this is typically a number.', |
|
107 | + 'broadcastFrequency' => 'The frequency used for over-the-air broadcasts. Numeric values or simple ranges, e.g. 87-99. In addition a shortcut idiom is supported for frequences of AM and FM radio channels, e.g. "87 FM".', |
|
108 | + 'broadcastServiceTier' => 'The type of service required to have access to the channel (e.g. Standard or Premium).', |
|
109 | + 'description' => 'A description of the item.', |
|
110 | + '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.', |
|
111 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
112 | + '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. ', |
|
113 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
114 | + 'inBroadcastLineup' => 'The CableOrSatelliteService offering the channel.', |
|
115 | + '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.', |
|
116 | + 'name' => 'The name of the item.', |
|
117 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
118 | + 'providesBroadcastService' => 'The BroadcastService offered on this channel.', |
|
119 | + '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.', |
|
120 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
121 | + 'url' => 'URL of the item.' |
|
122 | + ]; |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + /** |
|
127 | + * @inheritdoc |
|
128 | + */ |
|
129 | + public function getGoogleRequiredSchema(): array |
|
130 | + { |
|
131 | + return ['description', 'name']; |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * @inheritdoc |
|
137 | + */ |
|
138 | + public function getGoogleRecommendedSchema(): array |
|
139 | + { |
|
140 | + return ['image', 'url']; |
|
141 | + } |
|
142 | + |
|
143 | + |
|
144 | + /** |
|
145 | + * @inheritdoc |
|
146 | + */ |
|
147 | + public function defineRules(): array |
|
148 | + { |
|
149 | + $rules = parent::defineRules(); |
|
150 | + $rules = array_merge($rules, [ |
|
151 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
152 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
153 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
154 | + ]); |
|
155 | + |
|
156 | + return $rules; |
|
157 | + } |
|
158 | 158 | } |
@@ -23,213 +23,213 @@ |
||
23 | 23 | */ |
24 | 24 | class State extends MetaJsonLd implements StateInterface, AdministrativeAreaInterface, PlaceInterface, ThingInterface |
25 | 25 | { |
26 | - use StateTrait; |
|
27 | - use AdministrativeAreaTrait; |
|
28 | - use PlaceTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static string $schemaTypeName = 'State'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static string $schemaTypeScope = 'https://schema.org/State'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static string $schemaTypeExtends = 'AdministrativeArea'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static string $schemaTypeDescription = 'A state or province of a country.'; |
|
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 | - 'additionalProperty' => ['PropertyValue'], |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'address' => ['Text', 'PostalAddress'], |
|
78 | - 'aggregateRating' => ['AggregateRating'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'amenityFeature' => ['LocationFeatureSpecification'], |
|
81 | - 'branchCode' => ['Text'], |
|
82 | - 'containedIn' => ['Place'], |
|
83 | - 'containedInPlace' => ['Place'], |
|
84 | - 'containsPlace' => ['Place'], |
|
85 | - 'description' => ['Text'], |
|
86 | - 'disambiguatingDescription' => ['Text'], |
|
87 | - 'event' => ['Event'], |
|
88 | - 'events' => ['Event'], |
|
89 | - 'faxNumber' => ['Text'], |
|
90 | - 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
91 | - 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
92 | - 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
93 | - 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
94 | - 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
95 | - 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
96 | - 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
97 | - 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
98 | - 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
99 | - 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
100 | - 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
101 | - 'globalLocationNumber' => ['Text'], |
|
102 | - 'hasDriveThroughService' => ['Boolean'], |
|
103 | - 'hasMap' => ['URL', 'Map'], |
|
104 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
105 | - 'image' => ['URL', 'ImageObject'], |
|
106 | - 'isAccessibleForFree' => ['Boolean'], |
|
107 | - 'isicV4' => ['Text'], |
|
108 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
109 | - 'latitude' => ['Number', 'Text'], |
|
110 | - 'logo' => ['ImageObject', 'URL'], |
|
111 | - 'longitude' => ['Text', 'Number'], |
|
112 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
113 | - 'map' => ['URL'], |
|
114 | - 'maps' => ['URL'], |
|
115 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
116 | - 'name' => ['Text'], |
|
117 | - 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
118 | - 'photo' => ['Photograph', 'ImageObject'], |
|
119 | - 'photos' => ['ImageObject', 'Photograph'], |
|
120 | - 'potentialAction' => ['Action'], |
|
121 | - 'publicAccess' => ['Boolean'], |
|
122 | - 'review' => ['Review'], |
|
123 | - 'reviews' => ['Review'], |
|
124 | - 'sameAs' => ['URL'], |
|
125 | - 'slogan' => ['Text'], |
|
126 | - 'smokingAllowed' => ['Boolean'], |
|
127 | - 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
128 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
129 | - 'telephone' => ['Text'], |
|
130 | - 'tourBookingPage' => ['URL'], |
|
131 | - 'url' => ['URL'] |
|
132 | - ]; |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - /** |
|
137 | - * @inheritdoc |
|
138 | - */ |
|
139 | - public function getSchemaPropertyDescriptions(): array |
|
140 | - { |
|
141 | - return [ |
|
142 | - 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
143 | - '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.', |
|
144 | - 'address' => 'Physical address of the item.', |
|
145 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
146 | - 'alternateName' => 'An alias for the item.', |
|
147 | - 'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.', |
|
148 | - 'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. ', |
|
149 | - 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
150 | - 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
151 | - 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
152 | - 'description' => 'A description of the item.', |
|
153 | - '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.', |
|
154 | - 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
155 | - 'events' => 'Upcoming or past events associated with this place or organization.', |
|
156 | - 'faxNumber' => 'The fax number.', |
|
157 | - 'geo' => 'The geo coordinates of the place.', |
|
158 | - 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
159 | - 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
160 | - 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
161 | - 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
162 | - 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
163 | - 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
164 | - 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
165 | - 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
166 | - 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
167 | - 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
168 | - 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', |
|
169 | - 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
170 | - 'hasMap' => 'A URL to a map of the place.', |
|
171 | - '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. ', |
|
172 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
173 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
174 | - 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
175 | - '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.', |
|
176 | - 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
177 | - 'logo' => 'An associated logo.', |
|
178 | - 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
179 | - '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.', |
|
180 | - 'map' => 'A URL to a map of the place.', |
|
181 | - 'maps' => 'A URL to a map of the place.', |
|
182 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
183 | - 'name' => 'The name of the item.', |
|
184 | - 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
185 | - 'photo' => 'A photograph of this place.', |
|
186 | - 'photos' => 'Photographs of this place.', |
|
187 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
188 | - 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
189 | - 'review' => 'A review of the item.', |
|
190 | - 'reviews' => 'Review of the item.', |
|
191 | - '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.', |
|
192 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
193 | - 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
194 | - 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
195 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
196 | - 'telephone' => 'The telephone number.', |
|
197 | - 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
198 | - 'url' => 'URL of the item.' |
|
199 | - ]; |
|
200 | - } |
|
201 | - |
|
202 | - |
|
203 | - /** |
|
204 | - * @inheritdoc |
|
205 | - */ |
|
206 | - public function getGoogleRequiredSchema(): array |
|
207 | - { |
|
208 | - return ['description', 'name']; |
|
209 | - } |
|
210 | - |
|
211 | - |
|
212 | - /** |
|
213 | - * @inheritdoc |
|
214 | - */ |
|
215 | - public function getGoogleRecommendedSchema(): array |
|
216 | - { |
|
217 | - return ['image', 'url']; |
|
218 | - } |
|
219 | - |
|
220 | - |
|
221 | - /** |
|
222 | - * @inheritdoc |
|
223 | - */ |
|
224 | - public function defineRules(): array |
|
225 | - { |
|
226 | - $rules = parent::defineRules(); |
|
227 | - $rules = array_merge($rules, [ |
|
228 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
229 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
230 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
231 | - ]); |
|
232 | - |
|
233 | - return $rules; |
|
234 | - } |
|
26 | + use StateTrait; |
|
27 | + use AdministrativeAreaTrait; |
|
28 | + use PlaceTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static string $schemaTypeName = 'State'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static string $schemaTypeScope = 'https://schema.org/State'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static string $schemaTypeExtends = 'AdministrativeArea'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static string $schemaTypeDescription = 'A state or province of a country.'; |
|
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 | + 'additionalProperty' => ['PropertyValue'], |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'address' => ['Text', 'PostalAddress'], |
|
78 | + 'aggregateRating' => ['AggregateRating'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'amenityFeature' => ['LocationFeatureSpecification'], |
|
81 | + 'branchCode' => ['Text'], |
|
82 | + 'containedIn' => ['Place'], |
|
83 | + 'containedInPlace' => ['Place'], |
|
84 | + 'containsPlace' => ['Place'], |
|
85 | + 'description' => ['Text'], |
|
86 | + 'disambiguatingDescription' => ['Text'], |
|
87 | + 'event' => ['Event'], |
|
88 | + 'events' => ['Event'], |
|
89 | + 'faxNumber' => ['Text'], |
|
90 | + 'geo' => ['GeoCoordinates', 'GeoShape'], |
|
91 | + 'geoContains' => ['Place', 'GeospatialGeometry'], |
|
92 | + 'geoCoveredBy' => ['GeospatialGeometry', 'Place'], |
|
93 | + 'geoCovers' => ['GeospatialGeometry', 'Place'], |
|
94 | + 'geoCrosses' => ['GeospatialGeometry', 'Place'], |
|
95 | + 'geoDisjoint' => ['GeospatialGeometry', 'Place'], |
|
96 | + 'geoEquals' => ['GeospatialGeometry', 'Place'], |
|
97 | + 'geoIntersects' => ['GeospatialGeometry', 'Place'], |
|
98 | + 'geoOverlaps' => ['GeospatialGeometry', 'Place'], |
|
99 | + 'geoTouches' => ['GeospatialGeometry', 'Place'], |
|
100 | + 'geoWithin' => ['GeospatialGeometry', 'Place'], |
|
101 | + 'globalLocationNumber' => ['Text'], |
|
102 | + 'hasDriveThroughService' => ['Boolean'], |
|
103 | + 'hasMap' => ['URL', 'Map'], |
|
104 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
105 | + 'image' => ['URL', 'ImageObject'], |
|
106 | + 'isAccessibleForFree' => ['Boolean'], |
|
107 | + 'isicV4' => ['Text'], |
|
108 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
109 | + 'latitude' => ['Number', 'Text'], |
|
110 | + 'logo' => ['ImageObject', 'URL'], |
|
111 | + 'longitude' => ['Text', 'Number'], |
|
112 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
113 | + 'map' => ['URL'], |
|
114 | + 'maps' => ['URL'], |
|
115 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
116 | + 'name' => ['Text'], |
|
117 | + 'openingHoursSpecification' => ['OpeningHoursSpecification'], |
|
118 | + 'photo' => ['Photograph', 'ImageObject'], |
|
119 | + 'photos' => ['ImageObject', 'Photograph'], |
|
120 | + 'potentialAction' => ['Action'], |
|
121 | + 'publicAccess' => ['Boolean'], |
|
122 | + 'review' => ['Review'], |
|
123 | + 'reviews' => ['Review'], |
|
124 | + 'sameAs' => ['URL'], |
|
125 | + 'slogan' => ['Text'], |
|
126 | + 'smokingAllowed' => ['Boolean'], |
|
127 | + 'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'], |
|
128 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
129 | + 'telephone' => ['Text'], |
|
130 | + 'tourBookingPage' => ['URL'], |
|
131 | + 'url' => ['URL'] |
|
132 | + ]; |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + /** |
|
137 | + * @inheritdoc |
|
138 | + */ |
|
139 | + public function getSchemaPropertyDescriptions(): array |
|
140 | + { |
|
141 | + return [ |
|
142 | + 'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org. Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ', |
|
143 | + '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.', |
|
144 | + 'address' => 'Physical address of the item.', |
|
145 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
146 | + 'alternateName' => 'An alias for the item.', |
|
147 | + 'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.', |
|
148 | + 'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs. For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch. ', |
|
149 | + 'containedIn' => 'The basic containment relation between a place and one that contains it.', |
|
150 | + 'containedInPlace' => 'The basic containment relation between a place and one that contains it.', |
|
151 | + 'containsPlace' => 'The basic containment relation between a place and another that it contains.', |
|
152 | + 'description' => 'A description of the item.', |
|
153 | + '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.', |
|
154 | + 'event' => 'Upcoming or past event associated with this place, organization, or action.', |
|
155 | + 'events' => 'Upcoming or past events associated with this place or organization.', |
|
156 | + 'faxNumber' => 'The fax number.', |
|
157 | + 'geo' => 'The geo coordinates of the place.', |
|
158 | + 'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
159 | + 'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
160 | + 'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
161 | + 'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
162 | + 'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
163 | + 'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).', |
|
164 | + 'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
165 | + 'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
166 | + 'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)', |
|
167 | + 'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).', |
|
168 | + 'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.', |
|
169 | + 'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.', |
|
170 | + 'hasMap' => 'A URL to a map of the place.', |
|
171 | + '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. ', |
|
172 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
173 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
174 | + 'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.', |
|
175 | + '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.', |
|
176 | + 'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
177 | + 'logo' => 'An associated logo.', |
|
178 | + 'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).', |
|
179 | + '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.', |
|
180 | + 'map' => 'A URL to a map of the place.', |
|
181 | + 'maps' => 'A URL to a map of the place.', |
|
182 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
183 | + 'name' => 'The name of the item.', |
|
184 | + 'openingHoursSpecification' => 'The opening hours of a certain place.', |
|
185 | + 'photo' => 'A photograph of this place.', |
|
186 | + 'photos' => 'Photographs of this place.', |
|
187 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
188 | + 'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors. If this property is omitted there is no assumed default boolean value', |
|
189 | + 'review' => 'A review of the item.', |
|
190 | + 'reviews' => 'Review of the item.', |
|
191 | + '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.', |
|
192 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
193 | + 'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.', |
|
194 | + 'specialOpeningHoursSpecification' => 'The special opening hours of a certain place. Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]]. ', |
|
195 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
196 | + 'telephone' => 'The telephone number.', |
|
197 | + 'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.', |
|
198 | + 'url' => 'URL of the item.' |
|
199 | + ]; |
|
200 | + } |
|
201 | + |
|
202 | + |
|
203 | + /** |
|
204 | + * @inheritdoc |
|
205 | + */ |
|
206 | + public function getGoogleRequiredSchema(): array |
|
207 | + { |
|
208 | + return ['description', 'name']; |
|
209 | + } |
|
210 | + |
|
211 | + |
|
212 | + /** |
|
213 | + * @inheritdoc |
|
214 | + */ |
|
215 | + public function getGoogleRecommendedSchema(): array |
|
216 | + { |
|
217 | + return ['image', 'url']; |
|
218 | + } |
|
219 | + |
|
220 | + |
|
221 | + /** |
|
222 | + * @inheritdoc |
|
223 | + */ |
|
224 | + public function defineRules(): array |
|
225 | + { |
|
226 | + $rules = parent::defineRules(); |
|
227 | + $rules = array_merge($rules, [ |
|
228 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
229 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
230 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
231 | + ]); |
|
232 | + |
|
233 | + return $rules; |
|
234 | + } |
|
235 | 235 | } |
@@ -26,127 +26,127 @@ |
||
26 | 26 | */ |
27 | 27 | class Nonprofit501c3 extends MetaJsonLd implements Nonprofit501c3Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
28 | 28 | { |
29 | - use Nonprofit501c3Trait; |
|
30 | - use USNonprofitTypeTrait; |
|
31 | - use NonprofitTypeTrait; |
|
32 | - use EnumerationTrait; |
|
33 | - use IntangibleTrait; |
|
34 | - use ThingTrait; |
|
35 | - |
|
36 | - /** |
|
37 | - * The Schema.org Type Name |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - public static string $schemaTypeName = 'Nonprofit501c3'; |
|
42 | - |
|
43 | - /** |
|
44 | - * The Schema.org Type Scope |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public static string $schemaTypeScope = 'https://schema.org/Nonprofit501c3'; |
|
49 | - |
|
50 | - /** |
|
51 | - * The Schema.org Type Extends |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
55 | - public static string $schemaTypeExtends = 'USNonprofitType'; |
|
56 | - |
|
57 | - /** |
|
58 | - * The Schema.org Type Description |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
62 | - public static string $schemaTypeDescription = 'Nonprofit501c3: Non-profit type referring to Religious, Educational, Charitable, Scientific, Literary, Testing for Public Safety, Fostering National or International Amateur Sports Competition, or Prevention of Cruelty to Children or Animals Organizations.'; |
|
63 | - |
|
64 | - |
|
65 | - /** |
|
66 | - * @inheritdoc |
|
67 | - */ |
|
68 | - public function getSchemaPropertyNames(): array |
|
69 | - { |
|
70 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
71 | - } |
|
72 | - |
|
73 | - |
|
74 | - /** |
|
75 | - * @inheritdoc |
|
76 | - */ |
|
77 | - public function getSchemaPropertyExpectedTypes(): array |
|
78 | - { |
|
79 | - return [ |
|
80 | - 'additionalType' => ['URL'], |
|
81 | - 'alternateName' => ['Text'], |
|
82 | - 'description' => ['Text'], |
|
83 | - 'disambiguatingDescription' => ['Text'], |
|
84 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
85 | - 'image' => ['URL', 'ImageObject'], |
|
86 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
87 | - 'name' => ['Text'], |
|
88 | - 'potentialAction' => ['Action'], |
|
89 | - 'sameAs' => ['URL'], |
|
90 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
91 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
92 | - 'url' => ['URL'] |
|
93 | - ]; |
|
94 | - } |
|
95 | - |
|
96 | - |
|
97 | - /** |
|
98 | - * @inheritdoc |
|
99 | - */ |
|
100 | - public function getSchemaPropertyDescriptions(): array |
|
101 | - { |
|
102 | - return [ |
|
103 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
104 | - 'alternateName' => 'An alias for the item.', |
|
105 | - 'description' => 'A description of the item.', |
|
106 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
107 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
108 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
109 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
110 | - 'name' => 'The name of the item.', |
|
111 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
112 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
113 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
114 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
115 | - 'url' => 'URL of the item.' |
|
116 | - ]; |
|
117 | - } |
|
118 | - |
|
119 | - |
|
120 | - /** |
|
121 | - * @inheritdoc |
|
122 | - */ |
|
123 | - public function getGoogleRequiredSchema(): array |
|
124 | - { |
|
125 | - return ['description', 'name']; |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - /** |
|
130 | - * @inheritdoc |
|
131 | - */ |
|
132 | - public function getGoogleRecommendedSchema(): array |
|
133 | - { |
|
134 | - return ['image', 'url']; |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @inheritdoc |
|
140 | - */ |
|
141 | - public function defineRules(): array |
|
142 | - { |
|
143 | - $rules = parent::defineRules(); |
|
144 | - $rules = array_merge($rules, [ |
|
145 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
146 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
147 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
148 | - ]); |
|
149 | - |
|
150 | - return $rules; |
|
151 | - } |
|
29 | + use Nonprofit501c3Trait; |
|
30 | + use USNonprofitTypeTrait; |
|
31 | + use NonprofitTypeTrait; |
|
32 | + use EnumerationTrait; |
|
33 | + use IntangibleTrait; |
|
34 | + use ThingTrait; |
|
35 | + |
|
36 | + /** |
|
37 | + * The Schema.org Type Name |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + public static string $schemaTypeName = 'Nonprofit501c3'; |
|
42 | + |
|
43 | + /** |
|
44 | + * The Schema.org Type Scope |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public static string $schemaTypeScope = 'https://schema.org/Nonprofit501c3'; |
|
49 | + |
|
50 | + /** |
|
51 | + * The Schema.org Type Extends |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | + public static string $schemaTypeExtends = 'USNonprofitType'; |
|
56 | + |
|
57 | + /** |
|
58 | + * The Schema.org Type Description |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | + public static string $schemaTypeDescription = 'Nonprofit501c3: Non-profit type referring to Religious, Educational, Charitable, Scientific, Literary, Testing for Public Safety, Fostering National or International Amateur Sports Competition, or Prevention of Cruelty to Children or Animals Organizations.'; |
|
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 | } |
@@ -29,146 +29,146 @@ |
||
29 | 29 | */ |
30 | 30 | class MedicalGuideline extends MetaJsonLd implements MedicalGuidelineInterface, MedicalEntityInterface, ThingInterface |
31 | 31 | { |
32 | - use MedicalGuidelineTrait; |
|
33 | - use MedicalEntityTrait; |
|
34 | - use ThingTrait; |
|
35 | - |
|
36 | - /** |
|
37 | - * The Schema.org Type Name |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - public static string $schemaTypeName = 'MedicalGuideline'; |
|
42 | - |
|
43 | - /** |
|
44 | - * The Schema.org Type Scope |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public static string $schemaTypeScope = 'https://schema.org/MedicalGuideline'; |
|
49 | - |
|
50 | - /** |
|
51 | - * The Schema.org Type Extends |
|
52 | - * |
|
53 | - * @var string |
|
54 | - */ |
|
55 | - public static string $schemaTypeExtends = 'MedicalEntity'; |
|
56 | - |
|
57 | - /** |
|
58 | - * The Schema.org Type Description |
|
59 | - * |
|
60 | - * @var string |
|
61 | - */ |
|
62 | - public static string $schemaTypeDescription = 'Any recommendation made by a standard society (e.g. ACC/AHA) or consensus statement that denotes how to diagnose and treat a particular condition. Note: this type should be used to tag the actual guideline recommendation; if the guideline recommendation occurs in a larger scholarly article, use MedicalScholarlyArticle to tag the overall article, not this type. Note also: the organization making the recommendation should be captured in the recognizingAuthority base property of MedicalEntity.'; |
|
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 | - 'code' => ['MedicalCode'], |
|
83 | - 'description' => ['Text'], |
|
84 | - 'disambiguatingDescription' => ['Text'], |
|
85 | - 'evidenceLevel' => ['MedicalEvidenceLevel'], |
|
86 | - 'evidenceOrigin' => ['Text'], |
|
87 | - 'funding' => ['Grant'], |
|
88 | - 'guideline' => ['MedicalGuideline'], |
|
89 | - 'guidelineDate' => ['Date'], |
|
90 | - 'guidelineSubject' => ['MedicalEntity'], |
|
91 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
92 | - 'image' => ['URL', 'ImageObject'], |
|
93 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
94 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
95 | - 'medicineSystem' => ['MedicineSystem'], |
|
96 | - 'name' => ['Text'], |
|
97 | - 'potentialAction' => ['Action'], |
|
98 | - 'recognizingAuthority' => ['Organization'], |
|
99 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | - 'sameAs' => ['URL'], |
|
101 | - 'study' => ['MedicalStudy'], |
|
102 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
103 | - 'url' => ['URL'] |
|
104 | - ]; |
|
105 | - } |
|
106 | - |
|
107 | - |
|
108 | - /** |
|
109 | - * @inheritdoc |
|
110 | - */ |
|
111 | - public function getSchemaPropertyDescriptions(): array |
|
112 | - { |
|
113 | - return [ |
|
114 | - '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.', |
|
115 | - 'alternateName' => 'An alias for the item.', |
|
116 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
117 | - 'description' => 'A description of the item.', |
|
118 | - '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.', |
|
119 | - 'evidenceLevel' => 'Strength of evidence of the data used to formulate the guideline (enumerated).', |
|
120 | - 'evidenceOrigin' => 'Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc.', |
|
121 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
122 | - 'guideline' => 'A medical guideline related to this entity.', |
|
123 | - 'guidelineDate' => 'Date on which this guideline\'s recommendation was made.', |
|
124 | - 'guidelineSubject' => 'The medical conditions, treatments, etc. that are the subject of the guideline.', |
|
125 | - '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. ', |
|
126 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
127 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
128 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
129 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
130 | - 'name' => 'The name of the item.', |
|
131 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
132 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
133 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
134 | - '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.', |
|
135 | - 'study' => 'A medical study or trial related to this entity.', |
|
136 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
137 | - 'url' => 'URL of the item.' |
|
138 | - ]; |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - /** |
|
143 | - * @inheritdoc |
|
144 | - */ |
|
145 | - public function getGoogleRequiredSchema(): array |
|
146 | - { |
|
147 | - return ['description', 'name']; |
|
148 | - } |
|
149 | - |
|
150 | - |
|
151 | - /** |
|
152 | - * @inheritdoc |
|
153 | - */ |
|
154 | - public function getGoogleRecommendedSchema(): array |
|
155 | - { |
|
156 | - return ['image', 'url']; |
|
157 | - } |
|
158 | - |
|
159 | - |
|
160 | - /** |
|
161 | - * @inheritdoc |
|
162 | - */ |
|
163 | - public function defineRules(): array |
|
164 | - { |
|
165 | - $rules = parent::defineRules(); |
|
166 | - $rules = array_merge($rules, [ |
|
167 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
168 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
169 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
170 | - ]); |
|
171 | - |
|
172 | - return $rules; |
|
173 | - } |
|
32 | + use MedicalGuidelineTrait; |
|
33 | + use MedicalEntityTrait; |
|
34 | + use ThingTrait; |
|
35 | + |
|
36 | + /** |
|
37 | + * The Schema.org Type Name |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + public static string $schemaTypeName = 'MedicalGuideline'; |
|
42 | + |
|
43 | + /** |
|
44 | + * The Schema.org Type Scope |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public static string $schemaTypeScope = 'https://schema.org/MedicalGuideline'; |
|
49 | + |
|
50 | + /** |
|
51 | + * The Schema.org Type Extends |
|
52 | + * |
|
53 | + * @var string |
|
54 | + */ |
|
55 | + public static string $schemaTypeExtends = 'MedicalEntity'; |
|
56 | + |
|
57 | + /** |
|
58 | + * The Schema.org Type Description |
|
59 | + * |
|
60 | + * @var string |
|
61 | + */ |
|
62 | + public static string $schemaTypeDescription = 'Any recommendation made by a standard society (e.g. ACC/AHA) or consensus statement that denotes how to diagnose and treat a particular condition. Note: this type should be used to tag the actual guideline recommendation; if the guideline recommendation occurs in a larger scholarly article, use MedicalScholarlyArticle to tag the overall article, not this type. Note also: the organization making the recommendation should be captured in the recognizingAuthority base property of MedicalEntity.'; |
|
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 | + 'code' => ['MedicalCode'], |
|
83 | + 'description' => ['Text'], |
|
84 | + 'disambiguatingDescription' => ['Text'], |
|
85 | + 'evidenceLevel' => ['MedicalEvidenceLevel'], |
|
86 | + 'evidenceOrigin' => ['Text'], |
|
87 | + 'funding' => ['Grant'], |
|
88 | + 'guideline' => ['MedicalGuideline'], |
|
89 | + 'guidelineDate' => ['Date'], |
|
90 | + 'guidelineSubject' => ['MedicalEntity'], |
|
91 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
92 | + 'image' => ['URL', 'ImageObject'], |
|
93 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
94 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
95 | + 'medicineSystem' => ['MedicineSystem'], |
|
96 | + 'name' => ['Text'], |
|
97 | + 'potentialAction' => ['Action'], |
|
98 | + 'recognizingAuthority' => ['Organization'], |
|
99 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | + 'sameAs' => ['URL'], |
|
101 | + 'study' => ['MedicalStudy'], |
|
102 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
103 | + 'url' => ['URL'] |
|
104 | + ]; |
|
105 | + } |
|
106 | + |
|
107 | + |
|
108 | + /** |
|
109 | + * @inheritdoc |
|
110 | + */ |
|
111 | + public function getSchemaPropertyDescriptions(): array |
|
112 | + { |
|
113 | + return [ |
|
114 | + '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.', |
|
115 | + 'alternateName' => 'An alias for the item.', |
|
116 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
117 | + 'description' => 'A description of the item.', |
|
118 | + '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.', |
|
119 | + 'evidenceLevel' => 'Strength of evidence of the data used to formulate the guideline (enumerated).', |
|
120 | + 'evidenceOrigin' => 'Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc.', |
|
121 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
122 | + 'guideline' => 'A medical guideline related to this entity.', |
|
123 | + 'guidelineDate' => 'Date on which this guideline\'s recommendation was made.', |
|
124 | + 'guidelineSubject' => 'The medical conditions, treatments, etc. that are the subject of the guideline.', |
|
125 | + '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. ', |
|
126 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
127 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
128 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
129 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
130 | + 'name' => 'The name of the item.', |
|
131 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
132 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
133 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
134 | + '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.', |
|
135 | + 'study' => 'A medical study or trial related to this entity.', |
|
136 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
137 | + 'url' => 'URL of the item.' |
|
138 | + ]; |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + /** |
|
143 | + * @inheritdoc |
|
144 | + */ |
|
145 | + public function getGoogleRequiredSchema(): array |
|
146 | + { |
|
147 | + return ['description', 'name']; |
|
148 | + } |
|
149 | + |
|
150 | + |
|
151 | + /** |
|
152 | + * @inheritdoc |
|
153 | + */ |
|
154 | + public function getGoogleRecommendedSchema(): array |
|
155 | + { |
|
156 | + return ['image', 'url']; |
|
157 | + } |
|
158 | + |
|
159 | + |
|
160 | + /** |
|
161 | + * @inheritdoc |
|
162 | + */ |
|
163 | + public function defineRules(): array |
|
164 | + { |
|
165 | + $rules = parent::defineRules(); |
|
166 | + $rules = array_merge($rules, [ |
|
167 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
168 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
169 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
170 | + ]); |
|
171 | + |
|
172 | + return $rules; |
|
173 | + } |
|
174 | 174 | } |
@@ -25,210 +25,210 @@ |
||
25 | 25 | */ |
26 | 26 | class CourseInstance extends MetaJsonLd implements CourseInstanceInterface, EventInterface, ThingInterface |
27 | 27 | { |
28 | - use CourseInstanceTrait; |
|
29 | - use EventTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static string $schemaTypeName = 'CourseInstance'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static string $schemaTypeScope = 'https://schema.org/CourseInstance'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static string $schemaTypeExtends = 'Event'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static string $schemaTypeDescription = 'An instance of a [[Course]] which is distinct from other instances because it is offered at a different time or location or through different media or modes of study or to a specific section of students.'; |
|
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 | - 'about' => ['Thing'], |
|
77 | - 'actor' => ['Person'], |
|
78 | - 'additionalType' => ['URL'], |
|
79 | - 'aggregateRating' => ['AggregateRating'], |
|
80 | - 'alternateName' => ['Text'], |
|
81 | - 'attendee' => ['Organization', 'Person'], |
|
82 | - 'attendees' => ['Organization', 'Person'], |
|
83 | - 'audience' => ['Audience'], |
|
84 | - 'composer' => ['Organization', 'Person'], |
|
85 | - 'contributor' => ['Organization', 'Person'], |
|
86 | - 'courseMode' => ['Text', 'URL'], |
|
87 | - 'courseWorkload' => ['Text'], |
|
88 | - 'description' => ['Text'], |
|
89 | - 'director' => ['Person'], |
|
90 | - 'disambiguatingDescription' => ['Text'], |
|
91 | - 'doorTime' => ['Time', 'DateTime'], |
|
92 | - 'duration' => ['Duration'], |
|
93 | - 'endDate' => ['DateTime', 'Date'], |
|
94 | - 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
|
95 | - 'eventSchedule' => ['Schedule'], |
|
96 | - 'eventStatus' => ['EventStatusType'], |
|
97 | - 'funder' => ['Organization', 'Person'], |
|
98 | - 'funding' => ['Grant'], |
|
99 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
100 | - 'image' => ['URL', 'ImageObject'], |
|
101 | - 'inLanguage' => ['Text', 'Language'], |
|
102 | - 'instructor' => ['Person'], |
|
103 | - 'isAccessibleForFree' => ['Boolean'], |
|
104 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
105 | - 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
106 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
107 | - 'maximumAttendeeCapacity' => ['Integer'], |
|
108 | - 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
|
109 | - 'maximumVirtualAttendeeCapacity' => ['Integer'], |
|
110 | - 'name' => ['Text'], |
|
111 | - 'offers' => ['Demand', 'Offer'], |
|
112 | - 'organizer' => ['Organization', 'Person'], |
|
113 | - 'performer' => ['Person', 'Organization'], |
|
114 | - 'performers' => ['Person', 'Organization'], |
|
115 | - 'potentialAction' => ['Action'], |
|
116 | - 'previousStartDate' => ['Date'], |
|
117 | - 'recordedIn' => ['CreativeWork'], |
|
118 | - 'remainingAttendeeCapacity' => ['Integer'], |
|
119 | - 'review' => ['Review'], |
|
120 | - 'sameAs' => ['URL'], |
|
121 | - 'sponsor' => ['Organization', 'Person'], |
|
122 | - 'startDate' => ['DateTime', 'Date'], |
|
123 | - 'subEvent' => ['Event'], |
|
124 | - 'subEvents' => ['Event'], |
|
125 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
126 | - 'superEvent' => ['Event'], |
|
127 | - 'translator' => ['Organization', 'Person'], |
|
128 | - 'typicalAgeRange' => ['Text'], |
|
129 | - 'url' => ['URL'], |
|
130 | - 'workFeatured' => ['CreativeWork'], |
|
131 | - 'workPerformed' => ['CreativeWork'] |
|
132 | - ]; |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - /** |
|
137 | - * @inheritdoc |
|
138 | - */ |
|
139 | - public function getSchemaPropertyDescriptions(): array |
|
140 | - { |
|
141 | - return [ |
|
142 | - 'about' => 'The subject matter of the content.', |
|
143 | - '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.', |
|
144 | - '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.', |
|
145 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
146 | - 'alternateName' => 'An alias for the item.', |
|
147 | - 'attendee' => 'A person or organization attending the event.', |
|
148 | - 'attendees' => 'A person attending the event.', |
|
149 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
150 | - 'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.', |
|
151 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
152 | - 'courseMode' => 'The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous).', |
|
153 | - 'courseWorkload' => 'The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".', |
|
154 | - 'description' => 'A description of the item.', |
|
155 | - '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.', |
|
156 | - '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.', |
|
157 | - 'doorTime' => 'The time admission will commence.', |
|
158 | - 'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).', |
|
159 | - 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
160 | - 'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.', |
|
161 | - '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.', |
|
162 | - 'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.', |
|
163 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
164 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
165 | - '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. ', |
|
166 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
167 | - '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]].', |
|
168 | - 'instructor' => 'A person assigned to instruct or provide instructional assistance for the [[CourseInstance]].', |
|
169 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
170 | - '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.', |
|
171 | - 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
172 | - '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.', |
|
173 | - 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
174 | - 'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
175 | - 'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
176 | - 'name' => 'The name of the item.', |
|
177 | - '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. ', |
|
178 | - 'organizer' => 'An organizer of an Event.', |
|
179 | - 'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.', |
|
180 | - 'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.', |
|
181 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
182 | - '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.', |
|
183 | - 'recordedIn' => 'The CreativeWork that captured all or part of this Event.', |
|
184 | - 'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.', |
|
185 | - 'review' => 'A review of the item.', |
|
186 | - '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.', |
|
187 | - '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.', |
|
188 | - 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
189 | - '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.', |
|
190 | - 'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.', |
|
191 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
192 | - '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.', |
|
193 | - '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.', |
|
194 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
195 | - 'url' => 'URL of the item.', |
|
196 | - '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).', |
|
197 | - 'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.' |
|
198 | - ]; |
|
199 | - } |
|
200 | - |
|
201 | - |
|
202 | - /** |
|
203 | - * @inheritdoc |
|
204 | - */ |
|
205 | - public function getGoogleRequiredSchema(): array |
|
206 | - { |
|
207 | - return ['description', 'name']; |
|
208 | - } |
|
209 | - |
|
210 | - |
|
211 | - /** |
|
212 | - * @inheritdoc |
|
213 | - */ |
|
214 | - public function getGoogleRecommendedSchema(): array |
|
215 | - { |
|
216 | - return ['image', 'url']; |
|
217 | - } |
|
218 | - |
|
219 | - |
|
220 | - /** |
|
221 | - * @inheritdoc |
|
222 | - */ |
|
223 | - public function defineRules(): array |
|
224 | - { |
|
225 | - $rules = parent::defineRules(); |
|
226 | - $rules = array_merge($rules, [ |
|
227 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
228 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
229 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
230 | - ]); |
|
231 | - |
|
232 | - return $rules; |
|
233 | - } |
|
28 | + use CourseInstanceTrait; |
|
29 | + use EventTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static string $schemaTypeName = 'CourseInstance'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static string $schemaTypeScope = 'https://schema.org/CourseInstance'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static string $schemaTypeExtends = 'Event'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static string $schemaTypeDescription = 'An instance of a [[Course]] which is distinct from other instances because it is offered at a different time or location or through different media or modes of study or to a specific section of students.'; |
|
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 | + 'about' => ['Thing'], |
|
77 | + 'actor' => ['Person'], |
|
78 | + 'additionalType' => ['URL'], |
|
79 | + 'aggregateRating' => ['AggregateRating'], |
|
80 | + 'alternateName' => ['Text'], |
|
81 | + 'attendee' => ['Organization', 'Person'], |
|
82 | + 'attendees' => ['Organization', 'Person'], |
|
83 | + 'audience' => ['Audience'], |
|
84 | + 'composer' => ['Organization', 'Person'], |
|
85 | + 'contributor' => ['Organization', 'Person'], |
|
86 | + 'courseMode' => ['Text', 'URL'], |
|
87 | + 'courseWorkload' => ['Text'], |
|
88 | + 'description' => ['Text'], |
|
89 | + 'director' => ['Person'], |
|
90 | + 'disambiguatingDescription' => ['Text'], |
|
91 | + 'doorTime' => ['Time', 'DateTime'], |
|
92 | + 'duration' => ['Duration'], |
|
93 | + 'endDate' => ['DateTime', 'Date'], |
|
94 | + 'eventAttendanceMode' => ['EventAttendanceModeEnumeration'], |
|
95 | + 'eventSchedule' => ['Schedule'], |
|
96 | + 'eventStatus' => ['EventStatusType'], |
|
97 | + 'funder' => ['Organization', 'Person'], |
|
98 | + 'funding' => ['Grant'], |
|
99 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
100 | + 'image' => ['URL', 'ImageObject'], |
|
101 | + 'inLanguage' => ['Text', 'Language'], |
|
102 | + 'instructor' => ['Person'], |
|
103 | + 'isAccessibleForFree' => ['Boolean'], |
|
104 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
105 | + 'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'], |
|
106 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
107 | + 'maximumAttendeeCapacity' => ['Integer'], |
|
108 | + 'maximumPhysicalAttendeeCapacity' => ['Integer'], |
|
109 | + 'maximumVirtualAttendeeCapacity' => ['Integer'], |
|
110 | + 'name' => ['Text'], |
|
111 | + 'offers' => ['Demand', 'Offer'], |
|
112 | + 'organizer' => ['Organization', 'Person'], |
|
113 | + 'performer' => ['Person', 'Organization'], |
|
114 | + 'performers' => ['Person', 'Organization'], |
|
115 | + 'potentialAction' => ['Action'], |
|
116 | + 'previousStartDate' => ['Date'], |
|
117 | + 'recordedIn' => ['CreativeWork'], |
|
118 | + 'remainingAttendeeCapacity' => ['Integer'], |
|
119 | + 'review' => ['Review'], |
|
120 | + 'sameAs' => ['URL'], |
|
121 | + 'sponsor' => ['Organization', 'Person'], |
|
122 | + 'startDate' => ['DateTime', 'Date'], |
|
123 | + 'subEvent' => ['Event'], |
|
124 | + 'subEvents' => ['Event'], |
|
125 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
126 | + 'superEvent' => ['Event'], |
|
127 | + 'translator' => ['Organization', 'Person'], |
|
128 | + 'typicalAgeRange' => ['Text'], |
|
129 | + 'url' => ['URL'], |
|
130 | + 'workFeatured' => ['CreativeWork'], |
|
131 | + 'workPerformed' => ['CreativeWork'] |
|
132 | + ]; |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + /** |
|
137 | + * @inheritdoc |
|
138 | + */ |
|
139 | + public function getSchemaPropertyDescriptions(): array |
|
140 | + { |
|
141 | + return [ |
|
142 | + 'about' => 'The subject matter of the content.', |
|
143 | + '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.', |
|
144 | + '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.', |
|
145 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
146 | + 'alternateName' => 'An alias for the item.', |
|
147 | + 'attendee' => 'A person or organization attending the event.', |
|
148 | + 'attendees' => 'A person attending the event.', |
|
149 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
150 | + 'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.', |
|
151 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
152 | + 'courseMode' => 'The medium or means of delivery of the course instance or the mode of study, either as a text label (e.g. "online", "onsite" or "blended"; "synchronous" or "asynchronous"; "full-time" or "part-time") or as a URL reference to a term from a controlled vocabulary (e.g. https://ceds.ed.gov/element/001311#Asynchronous).', |
|
153 | + 'courseWorkload' => 'The amount of work expected of students taking the course, often provided as a figure per week or per month, and may be broken down by type. For example, "2 hours of lectures, 1 hour of lab work and 3 hours of independent study per week".', |
|
154 | + 'description' => 'A description of the item.', |
|
155 | + '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.', |
|
156 | + '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.', |
|
157 | + 'doorTime' => 'The time admission will commence.', |
|
158 | + 'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).', |
|
159 | + 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
160 | + 'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.', |
|
161 | + '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.', |
|
162 | + 'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.', |
|
163 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
164 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
165 | + '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. ', |
|
166 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
167 | + '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]].', |
|
168 | + 'instructor' => 'A person assigned to instruct or provide instructional assistance for the [[CourseInstance]].', |
|
169 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
170 | + '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.', |
|
171 | + 'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.', |
|
172 | + '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.', |
|
173 | + 'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.', |
|
174 | + 'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
175 | + 'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ', |
|
176 | + 'name' => 'The name of the item.', |
|
177 | + '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. ', |
|
178 | + 'organizer' => 'An organizer of an Event.', |
|
179 | + 'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.', |
|
180 | + 'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.', |
|
181 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
182 | + '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.', |
|
183 | + 'recordedIn' => 'The CreativeWork that captured all or part of this Event.', |
|
184 | + 'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.', |
|
185 | + 'review' => 'A review of the item.', |
|
186 | + '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.', |
|
187 | + '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.', |
|
188 | + 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
189 | + '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.', |
|
190 | + 'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.', |
|
191 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
192 | + '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.', |
|
193 | + '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.', |
|
194 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
195 | + 'url' => 'URL of the item.', |
|
196 | + '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).', |
|
197 | + 'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.' |
|
198 | + ]; |
|
199 | + } |
|
200 | + |
|
201 | + |
|
202 | + /** |
|
203 | + * @inheritdoc |
|
204 | + */ |
|
205 | + public function getGoogleRequiredSchema(): array |
|
206 | + { |
|
207 | + return ['description', 'name']; |
|
208 | + } |
|
209 | + |
|
210 | + |
|
211 | + /** |
|
212 | + * @inheritdoc |
|
213 | + */ |
|
214 | + public function getGoogleRecommendedSchema(): array |
|
215 | + { |
|
216 | + return ['image', 'url']; |
|
217 | + } |
|
218 | + |
|
219 | + |
|
220 | + /** |
|
221 | + * @inheritdoc |
|
222 | + */ |
|
223 | + public function defineRules(): array |
|
224 | + { |
|
225 | + $rules = parent::defineRules(); |
|
226 | + $rules = array_merge($rules, [ |
|
227 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
228 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
229 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
230 | + ]); |
|
231 | + |
|
232 | + return $rules; |
|
233 | + } |
|
234 | 234 | } |
@@ -24,126 +24,126 @@ |
||
24 | 24 | */ |
25 | 25 | class TobaccoNicotineConsideration extends MetaJsonLd implements TobaccoNicotineConsiderationInterface, AdultOrientedEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use TobaccoNicotineConsiderationTrait; |
|
28 | - use AdultOrientedEnumerationTrait; |
|
29 | - use EnumerationTrait; |
|
30 | - use IntangibleTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static string $schemaTypeName = 'TobaccoNicotineConsideration'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static string $schemaTypeScope = 'https://schema.org/TobaccoNicotineConsideration'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static string $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static string $schemaTypeDescription = 'Item contains tobacco and/or nicotine, for example cigars, cigarettes, chewing tobacco, e-cigarettes, or hookahs.'; |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * @inheritdoc |
|
64 | - */ |
|
65 | - public function getSchemaPropertyNames(): array |
|
66 | - { |
|
67 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @inheritdoc |
|
73 | - */ |
|
74 | - public function getSchemaPropertyExpectedTypes(): array |
|
75 | - { |
|
76 | - return [ |
|
77 | - 'additionalType' => ['URL'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'description' => ['Text'], |
|
80 | - 'disambiguatingDescription' => ['Text'], |
|
81 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
82 | - 'image' => ['URL', 'ImageObject'], |
|
83 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
84 | - 'name' => ['Text'], |
|
85 | - 'potentialAction' => ['Action'], |
|
86 | - 'sameAs' => ['URL'], |
|
87 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
88 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
89 | - 'url' => ['URL'] |
|
90 | - ]; |
|
91 | - } |
|
92 | - |
|
93 | - |
|
94 | - /** |
|
95 | - * @inheritdoc |
|
96 | - */ |
|
97 | - public function getSchemaPropertyDescriptions(): array |
|
98 | - { |
|
99 | - return [ |
|
100 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
101 | - 'alternateName' => 'An alias for the item.', |
|
102 | - 'description' => 'A description of the item.', |
|
103 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
104 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
105 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
106 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
107 | - 'name' => 'The name of the item.', |
|
108 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
109 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
110 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
111 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
112 | - 'url' => 'URL of the item.' |
|
113 | - ]; |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - /** |
|
118 | - * @inheritdoc |
|
119 | - */ |
|
120 | - public function getGoogleRequiredSchema(): array |
|
121 | - { |
|
122 | - return ['description', 'name']; |
|
123 | - } |
|
124 | - |
|
125 | - |
|
126 | - /** |
|
127 | - * @inheritdoc |
|
128 | - */ |
|
129 | - public function getGoogleRecommendedSchema(): array |
|
130 | - { |
|
131 | - return ['image', 'url']; |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * @inheritdoc |
|
137 | - */ |
|
138 | - public function defineRules(): array |
|
139 | - { |
|
140 | - $rules = parent::defineRules(); |
|
141 | - $rules = array_merge($rules, [ |
|
142 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
143 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
144 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
145 | - ]); |
|
146 | - |
|
147 | - return $rules; |
|
148 | - } |
|
27 | + use TobaccoNicotineConsiderationTrait; |
|
28 | + use AdultOrientedEnumerationTrait; |
|
29 | + use EnumerationTrait; |
|
30 | + use IntangibleTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static string $schemaTypeName = 'TobaccoNicotineConsideration'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static string $schemaTypeScope = 'https://schema.org/TobaccoNicotineConsideration'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static string $schemaTypeExtends = 'AdultOrientedEnumeration'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static string $schemaTypeDescription = 'Item contains tobacco and/or nicotine, for example cigars, cigarettes, chewing tobacco, e-cigarettes, or hookahs.'; |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * @inheritdoc |
|
64 | + */ |
|
65 | + public function getSchemaPropertyNames(): array |
|
66 | + { |
|
67 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'additionalType' => ['URL'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'description' => ['Text'], |
|
80 | + 'disambiguatingDescription' => ['Text'], |
|
81 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
82 | + 'image' => ['URL', 'ImageObject'], |
|
83 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
84 | + 'name' => ['Text'], |
|
85 | + 'potentialAction' => ['Action'], |
|
86 | + 'sameAs' => ['URL'], |
|
87 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
88 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
89 | + 'url' => ['URL'] |
|
90 | + ]; |
|
91 | + } |
|
92 | + |
|
93 | + |
|
94 | + /** |
|
95 | + * @inheritdoc |
|
96 | + */ |
|
97 | + public function getSchemaPropertyDescriptions(): array |
|
98 | + { |
|
99 | + return [ |
|
100 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
101 | + 'alternateName' => 'An alias for the item.', |
|
102 | + 'description' => 'A description of the item.', |
|
103 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
104 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
105 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
106 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
107 | + 'name' => 'The name of the item.', |
|
108 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
109 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
110 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
111 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
112 | + 'url' => 'URL of the item.' |
|
113 | + ]; |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + /** |
|
118 | + * @inheritdoc |
|
119 | + */ |
|
120 | + public function getGoogleRequiredSchema(): array |
|
121 | + { |
|
122 | + return ['description', 'name']; |
|
123 | + } |
|
124 | + |
|
125 | + |
|
126 | + /** |
|
127 | + * @inheritdoc |
|
128 | + */ |
|
129 | + public function getGoogleRecommendedSchema(): array |
|
130 | + { |
|
131 | + return ['image', 'url']; |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * @inheritdoc |
|
137 | + */ |
|
138 | + public function defineRules(): array |
|
139 | + { |
|
140 | + $rules = parent::defineRules(); |
|
141 | + $rules = array_merge($rules, [ |
|
142 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
143 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
144 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
145 | + ]); |
|
146 | + |
|
147 | + return $rules; |
|
148 | + } |
|
149 | 149 | } |
@@ -23,125 +23,125 @@ |
||
23 | 23 | */ |
24 | 24 | class PhysicalActivityCategory extends MetaJsonLd implements PhysicalActivityCategoryInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use PhysicalActivityCategoryTrait; |
|
27 | - use EnumerationTrait; |
|
28 | - use IntangibleTrait; |
|
29 | - use ThingTrait; |
|
30 | - |
|
31 | - /** |
|
32 | - * The Schema.org Type Name |
|
33 | - * |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public static string $schemaTypeName = 'PhysicalActivityCategory'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static string $schemaTypeScope = 'https://schema.org/PhysicalActivityCategory'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static string $schemaTypeExtends = 'Enumeration'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static string $schemaTypeDescription = 'Categories of physical activity, organized by physiologic classification.'; |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * @inheritdoc |
|
62 | - */ |
|
63 | - public function getSchemaPropertyNames(): array |
|
64 | - { |
|
65 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | - } |
|
67 | - |
|
68 | - |
|
69 | - /** |
|
70 | - * @inheritdoc |
|
71 | - */ |
|
72 | - public function getSchemaPropertyExpectedTypes(): array |
|
73 | - { |
|
74 | - return [ |
|
75 | - 'additionalType' => ['URL'], |
|
76 | - 'alternateName' => ['Text'], |
|
77 | - 'description' => ['Text'], |
|
78 | - 'disambiguatingDescription' => ['Text'], |
|
79 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
80 | - 'image' => ['URL', 'ImageObject'], |
|
81 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
82 | - 'name' => ['Text'], |
|
83 | - 'potentialAction' => ['Action'], |
|
84 | - 'sameAs' => ['URL'], |
|
85 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
86 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
87 | - 'url' => ['URL'] |
|
88 | - ]; |
|
89 | - } |
|
90 | - |
|
91 | - |
|
92 | - /** |
|
93 | - * @inheritdoc |
|
94 | - */ |
|
95 | - public function getSchemaPropertyDescriptions(): array |
|
96 | - { |
|
97 | - return [ |
|
98 | - '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.', |
|
99 | - 'alternateName' => 'An alias for the item.', |
|
100 | - 'description' => 'A description of the item.', |
|
101 | - '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.', |
|
102 | - '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. ', |
|
103 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
104 | - '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.', |
|
105 | - 'name' => 'The name of the item.', |
|
106 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
107 | - '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.', |
|
108 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
109 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
110 | - 'url' => 'URL of the item.' |
|
111 | - ]; |
|
112 | - } |
|
113 | - |
|
114 | - |
|
115 | - /** |
|
116 | - * @inheritdoc |
|
117 | - */ |
|
118 | - public function getGoogleRequiredSchema(): array |
|
119 | - { |
|
120 | - return ['description', 'name']; |
|
121 | - } |
|
122 | - |
|
123 | - |
|
124 | - /** |
|
125 | - * @inheritdoc |
|
126 | - */ |
|
127 | - public function getGoogleRecommendedSchema(): array |
|
128 | - { |
|
129 | - return ['image', 'url']; |
|
130 | - } |
|
131 | - |
|
132 | - |
|
133 | - /** |
|
134 | - * @inheritdoc |
|
135 | - */ |
|
136 | - public function defineRules(): array |
|
137 | - { |
|
138 | - $rules = parent::defineRules(); |
|
139 | - $rules = array_merge($rules, [ |
|
140 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
141 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
142 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
143 | - ]); |
|
144 | - |
|
145 | - return $rules; |
|
146 | - } |
|
26 | + use PhysicalActivityCategoryTrait; |
|
27 | + use EnumerationTrait; |
|
28 | + use IntangibleTrait; |
|
29 | + use ThingTrait; |
|
30 | + |
|
31 | + /** |
|
32 | + * The Schema.org Type Name |
|
33 | + * |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public static string $schemaTypeName = 'PhysicalActivityCategory'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static string $schemaTypeScope = 'https://schema.org/PhysicalActivityCategory'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static string $schemaTypeExtends = 'Enumeration'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static string $schemaTypeDescription = 'Categories of physical activity, organized by physiologic classification.'; |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * @inheritdoc |
|
62 | + */ |
|
63 | + public function getSchemaPropertyNames(): array |
|
64 | + { |
|
65 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
66 | + } |
|
67 | + |
|
68 | + |
|
69 | + /** |
|
70 | + * @inheritdoc |
|
71 | + */ |
|
72 | + public function getSchemaPropertyExpectedTypes(): array |
|
73 | + { |
|
74 | + return [ |
|
75 | + 'additionalType' => ['URL'], |
|
76 | + 'alternateName' => ['Text'], |
|
77 | + 'description' => ['Text'], |
|
78 | + 'disambiguatingDescription' => ['Text'], |
|
79 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
80 | + 'image' => ['URL', 'ImageObject'], |
|
81 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
82 | + 'name' => ['Text'], |
|
83 | + 'potentialAction' => ['Action'], |
|
84 | + 'sameAs' => ['URL'], |
|
85 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
86 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
87 | + 'url' => ['URL'] |
|
88 | + ]; |
|
89 | + } |
|
90 | + |
|
91 | + |
|
92 | + /** |
|
93 | + * @inheritdoc |
|
94 | + */ |
|
95 | + public function getSchemaPropertyDescriptions(): array |
|
96 | + { |
|
97 | + return [ |
|
98 | + '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.', |
|
99 | + 'alternateName' => 'An alias for the item.', |
|
100 | + 'description' => 'A description of the item.', |
|
101 | + '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.', |
|
102 | + '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. ', |
|
103 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
104 | + '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.', |
|
105 | + 'name' => 'The name of the item.', |
|
106 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
107 | + '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.', |
|
108 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
109 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
110 | + 'url' => 'URL of the item.' |
|
111 | + ]; |
|
112 | + } |
|
113 | + |
|
114 | + |
|
115 | + /** |
|
116 | + * @inheritdoc |
|
117 | + */ |
|
118 | + public function getGoogleRequiredSchema(): array |
|
119 | + { |
|
120 | + return ['description', 'name']; |
|
121 | + } |
|
122 | + |
|
123 | + |
|
124 | + /** |
|
125 | + * @inheritdoc |
|
126 | + */ |
|
127 | + public function getGoogleRecommendedSchema(): array |
|
128 | + { |
|
129 | + return ['image', 'url']; |
|
130 | + } |
|
131 | + |
|
132 | + |
|
133 | + /** |
|
134 | + * @inheritdoc |
|
135 | + */ |
|
136 | + public function defineRules(): array |
|
137 | + { |
|
138 | + $rules = parent::defineRules(); |
|
139 | + $rules = array_merge($rules, [ |
|
140 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
141 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
142 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
143 | + ]); |
|
144 | + |
|
145 | + return $rules; |
|
146 | + } |
|
147 | 147 | } |