@@ -24,127 +24,127 @@ |
||
24 | 24 | */ |
25 | 25 | class Nonprofit501c17 extends MetaJsonLd implements Nonprofit501c17Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use Nonprofit501c17Trait; |
|
28 | - use USNonprofitTypeTrait; |
|
29 | - use NonprofitTypeTrait; |
|
30 | - use EnumerationTrait; |
|
31 | - use IntangibleTrait; |
|
32 | - use ThingTrait; |
|
33 | - |
|
34 | - /** |
|
35 | - * The Schema.org Type Name |
|
36 | - * |
|
37 | - * @var string |
|
38 | - */ |
|
39 | - public static $schemaTypeName = 'Nonprofit501c17'; |
|
40 | - |
|
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/Nonprofit501c17'; |
|
47 | - |
|
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'USNonprofitType'; |
|
54 | - |
|
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'Nonprofit501c17: Non-profit type referring to Supplemental Unemployment Benefit Trusts.'; |
|
61 | - |
|
62 | - |
|
63 | - /** |
|
64 | - * @inheritdoc |
|
65 | - */ |
|
66 | - public function getSchemaPropertyNames(): array |
|
67 | - { |
|
68 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | - } |
|
70 | - |
|
71 | - |
|
72 | - /** |
|
73 | - * @inheritdoc |
|
74 | - */ |
|
75 | - public function getSchemaPropertyExpectedTypes(): array |
|
76 | - { |
|
77 | - return [ |
|
78 | - 'additionalType' => ['URL'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'description' => ['Text'], |
|
81 | - 'disambiguatingDescription' => ['Text'], |
|
82 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | - 'image' => ['URL', 'ImageObject'], |
|
84 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | - 'name' => ['Text'], |
|
86 | - 'potentialAction' => ['Action'], |
|
87 | - 'sameAs' => ['URL'], |
|
88 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
90 | - 'url' => ['URL'] |
|
91 | - ]; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * @inheritdoc |
|
97 | - */ |
|
98 | - public function getSchemaPropertyDescriptions(): array |
|
99 | - { |
|
100 | - return [ |
|
101 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | - 'alternateName' => 'An alias for the item.', |
|
103 | - 'description' => 'A description of the item.', |
|
104 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
105 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
106 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
108 | - 'name' => 'The name of the item.', |
|
109 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
111 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | - 'url' => 'URL of the item.' |
|
114 | - ]; |
|
115 | - } |
|
116 | - |
|
117 | - |
|
118 | - /** |
|
119 | - * @inheritdoc |
|
120 | - */ |
|
121 | - public function getGoogleRequiredSchema(): array |
|
122 | - { |
|
123 | - return ['description', 'name']; |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @inheritdoc |
|
129 | - */ |
|
130 | - public function getGoogleRecommendedSchema(): array |
|
131 | - { |
|
132 | - return ['image', 'url']; |
|
133 | - } |
|
134 | - |
|
135 | - |
|
136 | - /** |
|
137 | - * @inheritdoc |
|
138 | - */ |
|
139 | - public function defineRules(): array |
|
140 | - { |
|
141 | - $rules = parent::defineRules(); |
|
142 | - $rules = array_merge($rules, [ |
|
143 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | - ]); |
|
147 | - |
|
148 | - return $rules; |
|
149 | - } |
|
27 | + use Nonprofit501c17Trait; |
|
28 | + use USNonprofitTypeTrait; |
|
29 | + use NonprofitTypeTrait; |
|
30 | + use EnumerationTrait; |
|
31 | + use IntangibleTrait; |
|
32 | + use ThingTrait; |
|
33 | + |
|
34 | + /** |
|
35 | + * The Schema.org Type Name |
|
36 | + * |
|
37 | + * @var string |
|
38 | + */ |
|
39 | + public static $schemaTypeName = 'Nonprofit501c17'; |
|
40 | + |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/Nonprofit501c17'; |
|
47 | + |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'USNonprofitType'; |
|
54 | + |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'Nonprofit501c17: Non-profit type referring to Supplemental Unemployment Benefit Trusts.'; |
|
61 | + |
|
62 | + |
|
63 | + /** |
|
64 | + * @inheritdoc |
|
65 | + */ |
|
66 | + public function getSchemaPropertyNames(): array |
|
67 | + { |
|
68 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | + } |
|
70 | + |
|
71 | + |
|
72 | + /** |
|
73 | + * @inheritdoc |
|
74 | + */ |
|
75 | + public function getSchemaPropertyExpectedTypes(): array |
|
76 | + { |
|
77 | + return [ |
|
78 | + 'additionalType' => ['URL'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'description' => ['Text'], |
|
81 | + 'disambiguatingDescription' => ['Text'], |
|
82 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
83 | + 'image' => ['URL', 'ImageObject'], |
|
84 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
85 | + 'name' => ['Text'], |
|
86 | + 'potentialAction' => ['Action'], |
|
87 | + 'sameAs' => ['URL'], |
|
88 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
89 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
90 | + 'url' => ['URL'] |
|
91 | + ]; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * @inheritdoc |
|
97 | + */ |
|
98 | + public function getSchemaPropertyDescriptions(): array |
|
99 | + { |
|
100 | + return [ |
|
101 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
102 | + 'alternateName' => 'An alias for the item.', |
|
103 | + 'description' => 'A description of the item.', |
|
104 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
105 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
106 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
107 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
108 | + 'name' => 'The name of the item.', |
|
109 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
110 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
111 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
112 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
113 | + 'url' => 'URL of the item.' |
|
114 | + ]; |
|
115 | + } |
|
116 | + |
|
117 | + |
|
118 | + /** |
|
119 | + * @inheritdoc |
|
120 | + */ |
|
121 | + public function getGoogleRequiredSchema(): array |
|
122 | + { |
|
123 | + return ['description', 'name']; |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @inheritdoc |
|
129 | + */ |
|
130 | + public function getGoogleRecommendedSchema(): array |
|
131 | + { |
|
132 | + return ['image', 'url']; |
|
133 | + } |
|
134 | + |
|
135 | + |
|
136 | + /** |
|
137 | + * @inheritdoc |
|
138 | + */ |
|
139 | + public function defineRules(): array |
|
140 | + { |
|
141 | + $rules = parent::defineRules(); |
|
142 | + $rules = array_merge($rules, [ |
|
143 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
144 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
145 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
146 | + ]); |
|
147 | + |
|
148 | + return $rules; |
|
149 | + } |
|
150 | 150 | } |
@@ -23,125 +23,125 @@ |
||
23 | 23 | */ |
24 | 24 | class BookFormatType extends MetaJsonLd implements BookFormatTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use BookFormatTypeTrait; |
|
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 $schemaTypeName = 'BookFormatType'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/BookFormatType'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'Enumeration'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'The publication format of the book.'; |
|
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 BookFormatTypeTrait; |
|
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 $schemaTypeName = 'BookFormatType'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/BookFormatType'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'Enumeration'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'The publication format of the book.'; |
|
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 | } |
@@ -24,171 +24,171 @@ |
||
24 | 24 | */ |
25 | 25 | class CableOrSatelliteService extends MetaJsonLd implements CableOrSatelliteServiceInterface, ServiceInterface, IntangibleInterface, ThingInterface |
26 | 26 | { |
27 | - use CableOrSatelliteServiceTrait; |
|
28 | - use ServiceTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'CableOrSatelliteService'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/CableOrSatelliteService'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'Service'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'A service which provides access to media programming like TV or radio. Access may be via cable or satellite.'; |
|
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 | - 'aggregateRating' => ['AggregateRating'], |
|
78 | - 'alternateName' => ['Text'], |
|
79 | - 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
80 | - 'audience' => ['Audience'], |
|
81 | - 'availableChannel' => ['ServiceChannel'], |
|
82 | - 'award' => ['Text'], |
|
83 | - 'brand' => ['Brand', 'Organization'], |
|
84 | - 'broker' => ['Person', 'Organization'], |
|
85 | - 'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'], |
|
86 | - 'description' => ['Text'], |
|
87 | - 'disambiguatingDescription' => ['Text'], |
|
88 | - 'hasOfferCatalog' => ['OfferCatalog'], |
|
89 | - 'hoursAvailable' => ['OpeningHoursSpecification'], |
|
90 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
91 | - 'image' => ['URL', 'ImageObject'], |
|
92 | - 'isRelatedTo' => ['Product', 'Service'], |
|
93 | - 'isSimilarTo' => ['Product', 'Service'], |
|
94 | - 'logo' => ['ImageObject', 'URL'], |
|
95 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
96 | - 'name' => ['Text'], |
|
97 | - 'offers' => ['Demand', 'Offer'], |
|
98 | - 'potentialAction' => ['Action'], |
|
99 | - 'produces' => ['Thing'], |
|
100 | - 'provider' => ['Organization', 'Person'], |
|
101 | - 'providerMobility' => ['Text'], |
|
102 | - 'review' => ['Review'], |
|
103 | - 'sameAs' => ['URL'], |
|
104 | - 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
105 | - 'serviceAudience' => ['Audience'], |
|
106 | - 'serviceOutput' => ['Thing'], |
|
107 | - 'serviceType' => ['Text', 'GovernmentBenefitsType'], |
|
108 | - 'slogan' => ['Text'], |
|
109 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
110 | - 'termsOfService' => ['URL', 'Text'], |
|
111 | - 'url' => ['URL'] |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getSchemaPropertyDescriptions(): array |
|
120 | - { |
|
121 | - return [ |
|
122 | - '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.', |
|
123 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
124 | - 'alternateName' => 'An alias for the item.', |
|
125 | - 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
126 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
127 | - 'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).', |
|
128 | - 'award' => 'An award won by or for this item.', |
|
129 | - 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
130 | - 'broker' => 'An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.', |
|
131 | - 'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.', |
|
132 | - 'description' => 'A description of the item.', |
|
133 | - '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.', |
|
134 | - 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
135 | - 'hoursAvailable' => 'The hours during which this service or contact is available.', |
|
136 | - '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. ', |
|
137 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
138 | - 'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).', |
|
139 | - 'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).', |
|
140 | - 'logo' => 'An associated logo.', |
|
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 | - 'name' => 'The name of the item.', |
|
143 | - '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. ', |
|
144 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
145 | - 'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.', |
|
146 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
147 | - 'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').', |
|
148 | - 'review' => 'A review of the item.', |
|
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 | - 'serviceArea' => 'The geographic area where the service is provided.', |
|
151 | - 'serviceAudience' => 'The audience eligible for this service.', |
|
152 | - 'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.', |
|
153 | - 'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.', |
|
154 | - 'slogan' => 'A slogan or motto associated with the item.', |
|
155 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
156 | - 'termsOfService' => 'Human-readable terms of service documentation.', |
|
157 | - 'url' => 'URL of the item.' |
|
158 | - ]; |
|
159 | - } |
|
160 | - |
|
161 | - |
|
162 | - /** |
|
163 | - * @inheritdoc |
|
164 | - */ |
|
165 | - public function getGoogleRequiredSchema(): array |
|
166 | - { |
|
167 | - return ['description', 'name']; |
|
168 | - } |
|
169 | - |
|
170 | - |
|
171 | - /** |
|
172 | - * @inheritdoc |
|
173 | - */ |
|
174 | - public function getGoogleRecommendedSchema(): array |
|
175 | - { |
|
176 | - return ['image', 'url']; |
|
177 | - } |
|
178 | - |
|
179 | - |
|
180 | - /** |
|
181 | - * @inheritdoc |
|
182 | - */ |
|
183 | - public function defineRules(): array |
|
184 | - { |
|
185 | - $rules = parent::defineRules(); |
|
186 | - $rules = array_merge($rules, [ |
|
187 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
188 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
189 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
190 | - ]); |
|
191 | - |
|
192 | - return $rules; |
|
193 | - } |
|
27 | + use CableOrSatelliteServiceTrait; |
|
28 | + use ServiceTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'CableOrSatelliteService'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/CableOrSatelliteService'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'Service'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'A service which provides access to media programming like TV or radio. Access may be via cable or satellite.'; |
|
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 | + 'aggregateRating' => ['AggregateRating'], |
|
78 | + 'alternateName' => ['Text'], |
|
79 | + 'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'], |
|
80 | + 'audience' => ['Audience'], |
|
81 | + 'availableChannel' => ['ServiceChannel'], |
|
82 | + 'award' => ['Text'], |
|
83 | + 'brand' => ['Brand', 'Organization'], |
|
84 | + 'broker' => ['Person', 'Organization'], |
|
85 | + 'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'], |
|
86 | + 'description' => ['Text'], |
|
87 | + 'disambiguatingDescription' => ['Text'], |
|
88 | + 'hasOfferCatalog' => ['OfferCatalog'], |
|
89 | + 'hoursAvailable' => ['OpeningHoursSpecification'], |
|
90 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
91 | + 'image' => ['URL', 'ImageObject'], |
|
92 | + 'isRelatedTo' => ['Product', 'Service'], |
|
93 | + 'isSimilarTo' => ['Product', 'Service'], |
|
94 | + 'logo' => ['ImageObject', 'URL'], |
|
95 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
96 | + 'name' => ['Text'], |
|
97 | + 'offers' => ['Demand', 'Offer'], |
|
98 | + 'potentialAction' => ['Action'], |
|
99 | + 'produces' => ['Thing'], |
|
100 | + 'provider' => ['Organization', 'Person'], |
|
101 | + 'providerMobility' => ['Text'], |
|
102 | + 'review' => ['Review'], |
|
103 | + 'sameAs' => ['URL'], |
|
104 | + 'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'], |
|
105 | + 'serviceAudience' => ['Audience'], |
|
106 | + 'serviceOutput' => ['Thing'], |
|
107 | + 'serviceType' => ['Text', 'GovernmentBenefitsType'], |
|
108 | + 'slogan' => ['Text'], |
|
109 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
110 | + 'termsOfService' => ['URL', 'Text'], |
|
111 | + 'url' => ['URL'] |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getSchemaPropertyDescriptions(): array |
|
120 | + { |
|
121 | + return [ |
|
122 | + '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.', |
|
123 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
124 | + 'alternateName' => 'An alias for the item.', |
|
125 | + 'areaServed' => 'The geographic area where a service or offered item is provided.', |
|
126 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
127 | + 'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).', |
|
128 | + 'award' => 'An award won by or for this item.', |
|
129 | + 'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.', |
|
130 | + 'broker' => 'An entity that arranges for an exchange between a buyer and a seller. In most cases a broker never acquires or releases ownership of a product or service involved in an exchange. If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.', |
|
131 | + 'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.', |
|
132 | + 'description' => 'A description of the item.', |
|
133 | + '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.', |
|
134 | + 'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.', |
|
135 | + 'hoursAvailable' => 'The hours during which this service or contact is available.', |
|
136 | + '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. ', |
|
137 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
138 | + 'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).', |
|
139 | + 'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).', |
|
140 | + 'logo' => 'An associated logo.', |
|
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 | + 'name' => 'The name of the item.', |
|
143 | + '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. ', |
|
144 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
145 | + 'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.', |
|
146 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
147 | + 'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').', |
|
148 | + 'review' => 'A review of the item.', |
|
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 | + 'serviceArea' => 'The geographic area where the service is provided.', |
|
151 | + 'serviceAudience' => 'The audience eligible for this service.', |
|
152 | + 'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.', |
|
153 | + 'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.', |
|
154 | + 'slogan' => 'A slogan or motto associated with the item.', |
|
155 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
156 | + 'termsOfService' => 'Human-readable terms of service documentation.', |
|
157 | + 'url' => 'URL of the item.' |
|
158 | + ]; |
|
159 | + } |
|
160 | + |
|
161 | + |
|
162 | + /** |
|
163 | + * @inheritdoc |
|
164 | + */ |
|
165 | + public function getGoogleRequiredSchema(): array |
|
166 | + { |
|
167 | + return ['description', 'name']; |
|
168 | + } |
|
169 | + |
|
170 | + |
|
171 | + /** |
|
172 | + * @inheritdoc |
|
173 | + */ |
|
174 | + public function getGoogleRecommendedSchema(): array |
|
175 | + { |
|
176 | + return ['image', 'url']; |
|
177 | + } |
|
178 | + |
|
179 | + |
|
180 | + /** |
|
181 | + * @inheritdoc |
|
182 | + */ |
|
183 | + public function defineRules(): array |
|
184 | + { |
|
185 | + $rules = parent::defineRules(); |
|
186 | + $rules = array_merge($rules, [ |
|
187 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
188 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
189 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
190 | + ]); |
|
191 | + |
|
192 | + return $rules; |
|
193 | + } |
|
194 | 194 | } |
@@ -23,165 +23,165 @@ |
||
23 | 23 | */ |
24 | 24 | class RadiationTherapy extends MetaJsonLd implements RadiationTherapyInterface, MedicalTherapyInterface, TherapeuticProcedureInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface |
25 | 25 | { |
26 | - use RadiationTherapyTrait; |
|
27 | - use MedicalTherapyTrait; |
|
28 | - use TherapeuticProcedureTrait; |
|
29 | - use MedicalProcedureTrait; |
|
30 | - use MedicalEntityTrait; |
|
31 | - use ThingTrait; |
|
32 | - |
|
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'RadiationTherapy'; |
|
39 | - |
|
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/RadiationTherapy'; |
|
46 | - |
|
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'MedicalTherapy'; |
|
53 | - |
|
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'A process of care using radiation aimed at improving a health condition.'; |
|
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 | - 'adverseOutcome' => ['MedicalEntity'], |
|
79 | - 'alternateName' => ['Text'], |
|
80 | - 'bodyLocation' => ['Text'], |
|
81 | - 'code' => ['MedicalCode'], |
|
82 | - 'contraindication' => ['Text', 'MedicalContraindication'], |
|
83 | - 'description' => ['Text'], |
|
84 | - 'disambiguatingDescription' => ['Text'], |
|
85 | - 'doseSchedule' => ['DoseSchedule'], |
|
86 | - 'drug' => ['Drug'], |
|
87 | - 'duplicateTherapy' => ['MedicalTherapy'], |
|
88 | - 'followup' => ['Text'], |
|
89 | - 'funding' => ['Grant'], |
|
90 | - 'guideline' => ['MedicalGuideline'], |
|
91 | - 'howPerformed' => ['Text'], |
|
92 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
93 | - 'image' => ['URL', 'ImageObject'], |
|
94 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
95 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
96 | - 'medicineSystem' => ['MedicineSystem'], |
|
97 | - 'name' => ['Text'], |
|
98 | - 'potentialAction' => ['Action'], |
|
99 | - 'preparation' => ['Text', 'MedicalEntity'], |
|
100 | - 'procedureType' => ['MedicalProcedureType'], |
|
101 | - 'recognizingAuthority' => ['Organization'], |
|
102 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
103 | - 'sameAs' => ['URL'], |
|
104 | - 'seriousAdverseOutcome' => ['MedicalEntity'], |
|
105 | - 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
106 | - 'study' => ['MedicalStudy'], |
|
107 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
108 | - 'url' => ['URL'] |
|
109 | - ]; |
|
110 | - } |
|
111 | - |
|
112 | - |
|
113 | - /** |
|
114 | - * @inheritdoc |
|
115 | - */ |
|
116 | - public function getSchemaPropertyDescriptions(): array |
|
117 | - { |
|
118 | - return [ |
|
119 | - '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.', |
|
120 | - '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.', |
|
121 | - 'alternateName' => 'An alias for the item.', |
|
122 | - 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
123 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
124 | - 'contraindication' => 'A contraindication for this therapy.', |
|
125 | - 'description' => 'A description of the item.', |
|
126 | - '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.', |
|
127 | - 'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.', |
|
128 | - 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
129 | - 'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.', |
|
130 | - 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
131 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
132 | - 'guideline' => 'A medical guideline related to this entity.', |
|
133 | - 'howPerformed' => 'How the procedure is performed.', |
|
134 | - '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. ', |
|
135 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
136 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
137 | - '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.', |
|
138 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
139 | - 'name' => 'The name of the item.', |
|
140 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
141 | - 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
142 | - 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
143 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
144 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
145 | - '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.', |
|
146 | - '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.', |
|
147 | - 'status' => 'The status of the study (enumerated).', |
|
148 | - 'study' => 'A medical study or trial related to this entity.', |
|
149 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
150 | - 'url' => 'URL of the item.' |
|
151 | - ]; |
|
152 | - } |
|
153 | - |
|
154 | - |
|
155 | - /** |
|
156 | - * @inheritdoc |
|
157 | - */ |
|
158 | - public function getGoogleRequiredSchema(): array |
|
159 | - { |
|
160 | - return ['description', 'name']; |
|
161 | - } |
|
162 | - |
|
163 | - |
|
164 | - /** |
|
165 | - * @inheritdoc |
|
166 | - */ |
|
167 | - public function getGoogleRecommendedSchema(): array |
|
168 | - { |
|
169 | - return ['image', 'url']; |
|
170 | - } |
|
171 | - |
|
172 | - |
|
173 | - /** |
|
174 | - * @inheritdoc |
|
175 | - */ |
|
176 | - public function defineRules(): array |
|
177 | - { |
|
178 | - $rules = parent::defineRules(); |
|
179 | - $rules = array_merge($rules, [ |
|
180 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
181 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
182 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
183 | - ]); |
|
184 | - |
|
185 | - return $rules; |
|
186 | - } |
|
26 | + use RadiationTherapyTrait; |
|
27 | + use MedicalTherapyTrait; |
|
28 | + use TherapeuticProcedureTrait; |
|
29 | + use MedicalProcedureTrait; |
|
30 | + use MedicalEntityTrait; |
|
31 | + use ThingTrait; |
|
32 | + |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'RadiationTherapy'; |
|
39 | + |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/RadiationTherapy'; |
|
46 | + |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'MedicalTherapy'; |
|
53 | + |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'A process of care using radiation aimed at improving a health condition.'; |
|
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 | + 'adverseOutcome' => ['MedicalEntity'], |
|
79 | + 'alternateName' => ['Text'], |
|
80 | + 'bodyLocation' => ['Text'], |
|
81 | + 'code' => ['MedicalCode'], |
|
82 | + 'contraindication' => ['Text', 'MedicalContraindication'], |
|
83 | + 'description' => ['Text'], |
|
84 | + 'disambiguatingDescription' => ['Text'], |
|
85 | + 'doseSchedule' => ['DoseSchedule'], |
|
86 | + 'drug' => ['Drug'], |
|
87 | + 'duplicateTherapy' => ['MedicalTherapy'], |
|
88 | + 'followup' => ['Text'], |
|
89 | + 'funding' => ['Grant'], |
|
90 | + 'guideline' => ['MedicalGuideline'], |
|
91 | + 'howPerformed' => ['Text'], |
|
92 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
93 | + 'image' => ['URL', 'ImageObject'], |
|
94 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
95 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
96 | + 'medicineSystem' => ['MedicineSystem'], |
|
97 | + 'name' => ['Text'], |
|
98 | + 'potentialAction' => ['Action'], |
|
99 | + 'preparation' => ['Text', 'MedicalEntity'], |
|
100 | + 'procedureType' => ['MedicalProcedureType'], |
|
101 | + 'recognizingAuthority' => ['Organization'], |
|
102 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
103 | + 'sameAs' => ['URL'], |
|
104 | + 'seriousAdverseOutcome' => ['MedicalEntity'], |
|
105 | + 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
106 | + 'study' => ['MedicalStudy'], |
|
107 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
108 | + 'url' => ['URL'] |
|
109 | + ]; |
|
110 | + } |
|
111 | + |
|
112 | + |
|
113 | + /** |
|
114 | + * @inheritdoc |
|
115 | + */ |
|
116 | + public function getSchemaPropertyDescriptions(): array |
|
117 | + { |
|
118 | + return [ |
|
119 | + '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.', |
|
120 | + '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.', |
|
121 | + 'alternateName' => 'An alias for the item.', |
|
122 | + 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
123 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
124 | + 'contraindication' => 'A contraindication for this therapy.', |
|
125 | + 'description' => 'A description of the item.', |
|
126 | + '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.', |
|
127 | + 'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.', |
|
128 | + 'drug' => 'Specifying a drug or medicine used in a medication procedure.', |
|
129 | + 'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.', |
|
130 | + 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
131 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
132 | + 'guideline' => 'A medical guideline related to this entity.', |
|
133 | + 'howPerformed' => 'How the procedure is performed.', |
|
134 | + '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. ', |
|
135 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
136 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
137 | + '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.', |
|
138 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
139 | + 'name' => 'The name of the item.', |
|
140 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
141 | + 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
142 | + 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
143 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
144 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
145 | + '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.', |
|
146 | + '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.', |
|
147 | + 'status' => 'The status of the study (enumerated).', |
|
148 | + 'study' => 'A medical study or trial related to this entity.', |
|
149 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
150 | + 'url' => 'URL of the item.' |
|
151 | + ]; |
|
152 | + } |
|
153 | + |
|
154 | + |
|
155 | + /** |
|
156 | + * @inheritdoc |
|
157 | + */ |
|
158 | + public function getGoogleRequiredSchema(): array |
|
159 | + { |
|
160 | + return ['description', 'name']; |
|
161 | + } |
|
162 | + |
|
163 | + |
|
164 | + /** |
|
165 | + * @inheritdoc |
|
166 | + */ |
|
167 | + public function getGoogleRecommendedSchema(): array |
|
168 | + { |
|
169 | + return ['image', 'url']; |
|
170 | + } |
|
171 | + |
|
172 | + |
|
173 | + /** |
|
174 | + * @inheritdoc |
|
175 | + */ |
|
176 | + public function defineRules(): array |
|
177 | + { |
|
178 | + $rules = parent::defineRules(); |
|
179 | + $rules = array_merge($rules, [ |
|
180 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
181 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
182 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
183 | + ]); |
|
184 | + |
|
185 | + return $rules; |
|
186 | + } |
|
187 | 187 | } |
@@ -23,126 +23,126 @@ |
||
23 | 23 | */ |
24 | 24 | class RsvpResponseNo extends MetaJsonLd implements RsvpResponseNoInterface, RsvpResponseTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use RsvpResponseNoTrait; |
|
27 | - use RsvpResponseTypeTrait; |
|
28 | - use EnumerationTrait; |
|
29 | - use IntangibleTrait; |
|
30 | - use ThingTrait; |
|
31 | - |
|
32 | - /** |
|
33 | - * The Schema.org Type Name |
|
34 | - * |
|
35 | - * @var string |
|
36 | - */ |
|
37 | - public static $schemaTypeName = 'RsvpResponseNo'; |
|
38 | - |
|
39 | - /** |
|
40 | - * The Schema.org Type Scope |
|
41 | - * |
|
42 | - * @var string |
|
43 | - */ |
|
44 | - public static $schemaTypeScope = 'https://schema.org/RsvpResponseNo'; |
|
45 | - |
|
46 | - /** |
|
47 | - * The Schema.org Type Extends |
|
48 | - * |
|
49 | - * @var string |
|
50 | - */ |
|
51 | - public static $schemaTypeExtends = 'RsvpResponseType'; |
|
52 | - |
|
53 | - /** |
|
54 | - * The Schema.org Type Description |
|
55 | - * |
|
56 | - * @var string |
|
57 | - */ |
|
58 | - public static $schemaTypeDescription = 'The invitee will not attend.'; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * @inheritdoc |
|
63 | - */ |
|
64 | - public function getSchemaPropertyNames(): array |
|
65 | - { |
|
66 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | - } |
|
68 | - |
|
69 | - |
|
70 | - /** |
|
71 | - * @inheritdoc |
|
72 | - */ |
|
73 | - public function getSchemaPropertyExpectedTypes(): array |
|
74 | - { |
|
75 | - return [ |
|
76 | - 'additionalType' => ['URL'], |
|
77 | - 'alternateName' => ['Text'], |
|
78 | - 'description' => ['Text'], |
|
79 | - 'disambiguatingDescription' => ['Text'], |
|
80 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | - 'image' => ['URL', 'ImageObject'], |
|
82 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | - 'name' => ['Text'], |
|
84 | - 'potentialAction' => ['Action'], |
|
85 | - 'sameAs' => ['URL'], |
|
86 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | - 'url' => ['URL'] |
|
89 | - ]; |
|
90 | - } |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * @inheritdoc |
|
95 | - */ |
|
96 | - public function getSchemaPropertyDescriptions(): array |
|
97 | - { |
|
98 | - return [ |
|
99 | - 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | - 'alternateName' => 'An alias for the item.', |
|
101 | - 'description' => 'A description of the item.', |
|
102 | - 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | - 'name' => 'The name of the item.', |
|
107 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | - 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | - 'url' => 'URL of the item.' |
|
112 | - ]; |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * @inheritdoc |
|
118 | - */ |
|
119 | - public function getGoogleRequiredSchema(): array |
|
120 | - { |
|
121 | - return ['description', 'name']; |
|
122 | - } |
|
123 | - |
|
124 | - |
|
125 | - /** |
|
126 | - * @inheritdoc |
|
127 | - */ |
|
128 | - public function getGoogleRecommendedSchema(): array |
|
129 | - { |
|
130 | - return ['image', 'url']; |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * @inheritdoc |
|
136 | - */ |
|
137 | - public function defineRules(): array |
|
138 | - { |
|
139 | - $rules = parent::defineRules(); |
|
140 | - $rules = array_merge($rules, [ |
|
141 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | - ]); |
|
145 | - |
|
146 | - return $rules; |
|
147 | - } |
|
26 | + use RsvpResponseNoTrait; |
|
27 | + use RsvpResponseTypeTrait; |
|
28 | + use EnumerationTrait; |
|
29 | + use IntangibleTrait; |
|
30 | + use ThingTrait; |
|
31 | + |
|
32 | + /** |
|
33 | + * The Schema.org Type Name |
|
34 | + * |
|
35 | + * @var string |
|
36 | + */ |
|
37 | + public static $schemaTypeName = 'RsvpResponseNo'; |
|
38 | + |
|
39 | + /** |
|
40 | + * The Schema.org Type Scope |
|
41 | + * |
|
42 | + * @var string |
|
43 | + */ |
|
44 | + public static $schemaTypeScope = 'https://schema.org/RsvpResponseNo'; |
|
45 | + |
|
46 | + /** |
|
47 | + * The Schema.org Type Extends |
|
48 | + * |
|
49 | + * @var string |
|
50 | + */ |
|
51 | + public static $schemaTypeExtends = 'RsvpResponseType'; |
|
52 | + |
|
53 | + /** |
|
54 | + * The Schema.org Type Description |
|
55 | + * |
|
56 | + * @var string |
|
57 | + */ |
|
58 | + public static $schemaTypeDescription = 'The invitee will not attend.'; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * @inheritdoc |
|
63 | + */ |
|
64 | + public function getSchemaPropertyNames(): array |
|
65 | + { |
|
66 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
67 | + } |
|
68 | + |
|
69 | + |
|
70 | + /** |
|
71 | + * @inheritdoc |
|
72 | + */ |
|
73 | + public function getSchemaPropertyExpectedTypes(): array |
|
74 | + { |
|
75 | + return [ |
|
76 | + 'additionalType' => ['URL'], |
|
77 | + 'alternateName' => ['Text'], |
|
78 | + 'description' => ['Text'], |
|
79 | + 'disambiguatingDescription' => ['Text'], |
|
80 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
81 | + 'image' => ['URL', 'ImageObject'], |
|
82 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
83 | + 'name' => ['Text'], |
|
84 | + 'potentialAction' => ['Action'], |
|
85 | + 'sameAs' => ['URL'], |
|
86 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
87 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
88 | + 'url' => ['URL'] |
|
89 | + ]; |
|
90 | + } |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * @inheritdoc |
|
95 | + */ |
|
96 | + public function getSchemaPropertyDescriptions(): array |
|
97 | + { |
|
98 | + return [ |
|
99 | + 'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.', |
|
100 | + 'alternateName' => 'An alias for the item.', |
|
101 | + 'description' => 'A description of the item.', |
|
102 | + 'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.', |
|
103 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
104 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
105 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
106 | + 'name' => 'The name of the item.', |
|
107 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
108 | + 'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.', |
|
109 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
110 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
111 | + 'url' => 'URL of the item.' |
|
112 | + ]; |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * @inheritdoc |
|
118 | + */ |
|
119 | + public function getGoogleRequiredSchema(): array |
|
120 | + { |
|
121 | + return ['description', 'name']; |
|
122 | + } |
|
123 | + |
|
124 | + |
|
125 | + /** |
|
126 | + * @inheritdoc |
|
127 | + */ |
|
128 | + public function getGoogleRecommendedSchema(): array |
|
129 | + { |
|
130 | + return ['image', 'url']; |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * @inheritdoc |
|
136 | + */ |
|
137 | + public function defineRules(): array |
|
138 | + { |
|
139 | + $rules = parent::defineRules(); |
|
140 | + $rules = array_merge($rules, [ |
|
141 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
142 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
143 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
144 | + ]); |
|
145 | + |
|
146 | + return $rules; |
|
147 | + } |
|
148 | 148 | } |
@@ -25,365 +25,365 @@ |
||
25 | 25 | */ |
26 | 26 | class EmployerReview extends MetaJsonLd implements EmployerReviewInterface, ReviewInterface, CreativeWorkInterface, ThingInterface |
27 | 27 | { |
28 | - use EmployerReviewTrait; |
|
29 | - use ReviewTrait; |
|
30 | - use CreativeWorkTrait; |
|
31 | - use ThingTrait; |
|
28 | + use EmployerReviewTrait; |
|
29 | + use ReviewTrait; |
|
30 | + use CreativeWorkTrait; |
|
31 | + use ThingTrait; |
|
32 | 32 | |
33 | - /** |
|
34 | - * The Schema.org Type Name |
|
35 | - * |
|
36 | - * @var string |
|
37 | - */ |
|
38 | - public static $schemaTypeName = 'EmployerReview'; |
|
33 | + /** |
|
34 | + * The Schema.org Type Name |
|
35 | + * |
|
36 | + * @var string |
|
37 | + */ |
|
38 | + public static $schemaTypeName = 'EmployerReview'; |
|
39 | 39 | |
40 | - /** |
|
41 | - * The Schema.org Type Scope |
|
42 | - * |
|
43 | - * @var string |
|
44 | - */ |
|
45 | - public static $schemaTypeScope = 'https://schema.org/EmployerReview'; |
|
40 | + /** |
|
41 | + * The Schema.org Type Scope |
|
42 | + * |
|
43 | + * @var string |
|
44 | + */ |
|
45 | + public static $schemaTypeScope = 'https://schema.org/EmployerReview'; |
|
46 | 46 | |
47 | - /** |
|
48 | - * The Schema.org Type Extends |
|
49 | - * |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - public static $schemaTypeExtends = 'Review'; |
|
47 | + /** |
|
48 | + * The Schema.org Type Extends |
|
49 | + * |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + public static $schemaTypeExtends = 'Review'; |
|
53 | 53 | |
54 | - /** |
|
55 | - * The Schema.org Type Description |
|
56 | - * |
|
57 | - * @var string |
|
58 | - */ |
|
59 | - public static $schemaTypeDescription = 'An [[EmployerReview]] is a review of an [[Organization]] regarding its role as an employer, written by a current or former employee of that organization.'; |
|
54 | + /** |
|
55 | + * The Schema.org Type Description |
|
56 | + * |
|
57 | + * @var string |
|
58 | + */ |
|
59 | + public static $schemaTypeDescription = 'An [[EmployerReview]] is a review of an [[Organization]] regarding its role as an employer, written by a current or former employee of that organization.'; |
|
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 | - 'about' => ['Thing'], |
|
78 | - 'abstract' => ['Text'], |
|
79 | - 'accessMode' => ['Text'], |
|
80 | - 'accessModeSufficient' => ['ItemList'], |
|
81 | - 'accessibilityAPI' => ['Text'], |
|
82 | - 'accessibilityControl' => ['Text'], |
|
83 | - 'accessibilityFeature' => ['Text'], |
|
84 | - 'accessibilityHazard' => ['Text'], |
|
85 | - 'accessibilitySummary' => ['Text'], |
|
86 | - 'accountablePerson' => ['Person'], |
|
87 | - 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
88 | - 'additionalType' => ['URL'], |
|
89 | - 'aggregateRating' => ['AggregateRating'], |
|
90 | - 'alternateName' => ['Text'], |
|
91 | - 'alternativeHeadline' => ['Text'], |
|
92 | - 'archivedAt' => ['WebPage', 'URL'], |
|
93 | - 'assesses' => ['DefinedTerm', 'Text'], |
|
94 | - 'associatedClaimReview' => ['Review'], |
|
95 | - 'associatedMedia' => ['MediaObject'], |
|
96 | - 'associatedMediaReview' => ['Review'], |
|
97 | - 'associatedReview' => ['Review'], |
|
98 | - 'audience' => ['Audience'], |
|
99 | - 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
100 | - 'author' => ['Organization', 'Person'], |
|
101 | - 'award' => ['Text'], |
|
102 | - 'awards' => ['Text'], |
|
103 | - 'character' => ['Person'], |
|
104 | - 'citation' => ['CreativeWork', 'Text'], |
|
105 | - 'comment' => ['Comment'], |
|
106 | - 'commentCount' => ['Integer'], |
|
107 | - 'conditionsOfAccess' => ['Text'], |
|
108 | - 'contentLocation' => ['Place'], |
|
109 | - 'contentRating' => ['Text', 'Rating'], |
|
110 | - 'contentReferenceTime' => ['DateTime'], |
|
111 | - 'contributor' => ['Organization', 'Person'], |
|
112 | - 'copyrightHolder' => ['Organization', 'Person'], |
|
113 | - 'copyrightNotice' => ['Text'], |
|
114 | - 'copyrightYear' => ['Number'], |
|
115 | - 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
116 | - 'countryOfOrigin' => ['Country'], |
|
117 | - 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
118 | - 'creator' => ['Person', 'Organization'], |
|
119 | - 'creditText' => ['Text'], |
|
120 | - 'dateCreated' => ['DateTime', 'Date'], |
|
121 | - 'dateModified' => ['DateTime', 'Date'], |
|
122 | - 'datePublished' => ['DateTime', 'Date'], |
|
123 | - 'description' => ['Text'], |
|
124 | - 'disambiguatingDescription' => ['Text'], |
|
125 | - 'discussionUrl' => ['URL'], |
|
126 | - 'editEIDR' => ['URL', 'Text'], |
|
127 | - 'editor' => ['Person'], |
|
128 | - 'educationalAlignment' => ['AlignmentObject'], |
|
129 | - 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
130 | - 'educationalUse' => ['DefinedTerm', 'Text'], |
|
131 | - 'encoding' => ['MediaObject'], |
|
132 | - 'encodingFormat' => ['URL', 'Text'], |
|
133 | - 'encodings' => ['MediaObject'], |
|
134 | - 'exampleOfWork' => ['CreativeWork'], |
|
135 | - 'expires' => ['Date', 'DateTime'], |
|
136 | - 'fileFormat' => ['Text', 'URL'], |
|
137 | - 'funder' => ['Organization', 'Person'], |
|
138 | - 'funding' => ['Grant'], |
|
139 | - 'genre' => ['Text', 'URL'], |
|
140 | - 'hasPart' => ['CreativeWork'], |
|
141 | - 'headline' => ['Text'], |
|
142 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
143 | - 'image' => ['URL', 'ImageObject'], |
|
144 | - 'inLanguage' => ['Text', 'Language'], |
|
145 | - 'interactionStatistic' => ['InteractionCounter'], |
|
146 | - 'interactivityType' => ['Text'], |
|
147 | - 'interpretedAsClaim' => ['Claim'], |
|
148 | - 'isAccessibleForFree' => ['Boolean'], |
|
149 | - 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
150 | - 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
151 | - 'isFamilyFriendly' => ['Boolean'], |
|
152 | - 'isPartOf' => ['URL', 'CreativeWork'], |
|
153 | - 'itemReviewed' => ['Thing'], |
|
154 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
155 | - 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
156 | - 'license' => ['URL', 'CreativeWork'], |
|
157 | - 'locationCreated' => ['Place'], |
|
158 | - 'mainEntity' => ['Thing'], |
|
159 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
160 | - 'maintainer' => ['Person', 'Organization'], |
|
161 | - 'material' => ['Product', 'URL', 'Text'], |
|
162 | - 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
163 | - 'mentions' => ['Thing'], |
|
164 | - 'name' => ['Text'], |
|
165 | - 'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'], |
|
166 | - 'offers' => ['Demand', 'Offer'], |
|
167 | - 'pattern' => ['DefinedTerm', 'Text'], |
|
168 | - 'position' => ['Text', 'Integer'], |
|
169 | - 'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'], |
|
170 | - 'potentialAction' => ['Action'], |
|
171 | - 'producer' => ['Organization', 'Person'], |
|
172 | - 'provider' => ['Organization', 'Person'], |
|
173 | - 'publication' => ['PublicationEvent'], |
|
174 | - 'publisher' => ['Organization', 'Person'], |
|
175 | - 'publisherImprint' => ['Organization'], |
|
176 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
177 | - 'recordedAt' => ['Event'], |
|
178 | - 'releasedEvent' => ['PublicationEvent'], |
|
179 | - 'review' => ['Review'], |
|
180 | - 'reviewAspect' => ['Text'], |
|
181 | - 'reviewBody' => ['Text'], |
|
182 | - 'reviewRating' => ['Rating'], |
|
183 | - 'reviews' => ['Review'], |
|
184 | - 'sameAs' => ['URL'], |
|
185 | - 'schemaVersion' => ['URL', 'Text'], |
|
186 | - 'sdDatePublished' => ['Date'], |
|
187 | - 'sdLicense' => ['CreativeWork', 'URL'], |
|
188 | - 'sdPublisher' => ['Organization', 'Person'], |
|
189 | - 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
190 | - 'sourceOrganization' => ['Organization'], |
|
191 | - 'spatial' => ['Place'], |
|
192 | - 'spatialCoverage' => ['Place'], |
|
193 | - 'sponsor' => ['Organization', 'Person'], |
|
194 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
195 | - 'teaches' => ['DefinedTerm', 'Text'], |
|
196 | - 'temporal' => ['DateTime', 'Text'], |
|
197 | - 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
198 | - 'text' => ['Text'], |
|
199 | - 'thumbnailUrl' => ['URL'], |
|
200 | - 'timeRequired' => ['Duration'], |
|
201 | - 'translationOfWork' => ['CreativeWork'], |
|
202 | - 'translator' => ['Organization', 'Person'], |
|
203 | - 'typicalAgeRange' => ['Text'], |
|
204 | - 'url' => ['URL'], |
|
205 | - 'usageInfo' => ['URL', 'CreativeWork'], |
|
206 | - 'version' => ['Number', 'Text'], |
|
207 | - 'video' => ['VideoObject', 'Clip'], |
|
208 | - 'workExample' => ['CreativeWork'], |
|
209 | - 'workTranslation' => ['CreativeWork'] |
|
210 | - ]; |
|
211 | - } |
|
71 | + /** |
|
72 | + * @inheritdoc |
|
73 | + */ |
|
74 | + public function getSchemaPropertyExpectedTypes(): array |
|
75 | + { |
|
76 | + return [ |
|
77 | + 'about' => ['Thing'], |
|
78 | + 'abstract' => ['Text'], |
|
79 | + 'accessMode' => ['Text'], |
|
80 | + 'accessModeSufficient' => ['ItemList'], |
|
81 | + 'accessibilityAPI' => ['Text'], |
|
82 | + 'accessibilityControl' => ['Text'], |
|
83 | + 'accessibilityFeature' => ['Text'], |
|
84 | + 'accessibilityHazard' => ['Text'], |
|
85 | + 'accessibilitySummary' => ['Text'], |
|
86 | + 'accountablePerson' => ['Person'], |
|
87 | + 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
88 | + 'additionalType' => ['URL'], |
|
89 | + 'aggregateRating' => ['AggregateRating'], |
|
90 | + 'alternateName' => ['Text'], |
|
91 | + 'alternativeHeadline' => ['Text'], |
|
92 | + 'archivedAt' => ['WebPage', 'URL'], |
|
93 | + 'assesses' => ['DefinedTerm', 'Text'], |
|
94 | + 'associatedClaimReview' => ['Review'], |
|
95 | + 'associatedMedia' => ['MediaObject'], |
|
96 | + 'associatedMediaReview' => ['Review'], |
|
97 | + 'associatedReview' => ['Review'], |
|
98 | + 'audience' => ['Audience'], |
|
99 | + 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
100 | + 'author' => ['Organization', 'Person'], |
|
101 | + 'award' => ['Text'], |
|
102 | + 'awards' => ['Text'], |
|
103 | + 'character' => ['Person'], |
|
104 | + 'citation' => ['CreativeWork', 'Text'], |
|
105 | + 'comment' => ['Comment'], |
|
106 | + 'commentCount' => ['Integer'], |
|
107 | + 'conditionsOfAccess' => ['Text'], |
|
108 | + 'contentLocation' => ['Place'], |
|
109 | + 'contentRating' => ['Text', 'Rating'], |
|
110 | + 'contentReferenceTime' => ['DateTime'], |
|
111 | + 'contributor' => ['Organization', 'Person'], |
|
112 | + 'copyrightHolder' => ['Organization', 'Person'], |
|
113 | + 'copyrightNotice' => ['Text'], |
|
114 | + 'copyrightYear' => ['Number'], |
|
115 | + 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
116 | + 'countryOfOrigin' => ['Country'], |
|
117 | + 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
118 | + 'creator' => ['Person', 'Organization'], |
|
119 | + 'creditText' => ['Text'], |
|
120 | + 'dateCreated' => ['DateTime', 'Date'], |
|
121 | + 'dateModified' => ['DateTime', 'Date'], |
|
122 | + 'datePublished' => ['DateTime', 'Date'], |
|
123 | + 'description' => ['Text'], |
|
124 | + 'disambiguatingDescription' => ['Text'], |
|
125 | + 'discussionUrl' => ['URL'], |
|
126 | + 'editEIDR' => ['URL', 'Text'], |
|
127 | + 'editor' => ['Person'], |
|
128 | + 'educationalAlignment' => ['AlignmentObject'], |
|
129 | + 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
130 | + 'educationalUse' => ['DefinedTerm', 'Text'], |
|
131 | + 'encoding' => ['MediaObject'], |
|
132 | + 'encodingFormat' => ['URL', 'Text'], |
|
133 | + 'encodings' => ['MediaObject'], |
|
134 | + 'exampleOfWork' => ['CreativeWork'], |
|
135 | + 'expires' => ['Date', 'DateTime'], |
|
136 | + 'fileFormat' => ['Text', 'URL'], |
|
137 | + 'funder' => ['Organization', 'Person'], |
|
138 | + 'funding' => ['Grant'], |
|
139 | + 'genre' => ['Text', 'URL'], |
|
140 | + 'hasPart' => ['CreativeWork'], |
|
141 | + 'headline' => ['Text'], |
|
142 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
143 | + 'image' => ['URL', 'ImageObject'], |
|
144 | + 'inLanguage' => ['Text', 'Language'], |
|
145 | + 'interactionStatistic' => ['InteractionCounter'], |
|
146 | + 'interactivityType' => ['Text'], |
|
147 | + 'interpretedAsClaim' => ['Claim'], |
|
148 | + 'isAccessibleForFree' => ['Boolean'], |
|
149 | + 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
150 | + 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
151 | + 'isFamilyFriendly' => ['Boolean'], |
|
152 | + 'isPartOf' => ['URL', 'CreativeWork'], |
|
153 | + 'itemReviewed' => ['Thing'], |
|
154 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
155 | + 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
156 | + 'license' => ['URL', 'CreativeWork'], |
|
157 | + 'locationCreated' => ['Place'], |
|
158 | + 'mainEntity' => ['Thing'], |
|
159 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
160 | + 'maintainer' => ['Person', 'Organization'], |
|
161 | + 'material' => ['Product', 'URL', 'Text'], |
|
162 | + 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
163 | + 'mentions' => ['Thing'], |
|
164 | + 'name' => ['Text'], |
|
165 | + 'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'], |
|
166 | + 'offers' => ['Demand', 'Offer'], |
|
167 | + 'pattern' => ['DefinedTerm', 'Text'], |
|
168 | + 'position' => ['Text', 'Integer'], |
|
169 | + 'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'], |
|
170 | + 'potentialAction' => ['Action'], |
|
171 | + 'producer' => ['Organization', 'Person'], |
|
172 | + 'provider' => ['Organization', 'Person'], |
|
173 | + 'publication' => ['PublicationEvent'], |
|
174 | + 'publisher' => ['Organization', 'Person'], |
|
175 | + 'publisherImprint' => ['Organization'], |
|
176 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
177 | + 'recordedAt' => ['Event'], |
|
178 | + 'releasedEvent' => ['PublicationEvent'], |
|
179 | + 'review' => ['Review'], |
|
180 | + 'reviewAspect' => ['Text'], |
|
181 | + 'reviewBody' => ['Text'], |
|
182 | + 'reviewRating' => ['Rating'], |
|
183 | + 'reviews' => ['Review'], |
|
184 | + 'sameAs' => ['URL'], |
|
185 | + 'schemaVersion' => ['URL', 'Text'], |
|
186 | + 'sdDatePublished' => ['Date'], |
|
187 | + 'sdLicense' => ['CreativeWork', 'URL'], |
|
188 | + 'sdPublisher' => ['Organization', 'Person'], |
|
189 | + 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
190 | + 'sourceOrganization' => ['Organization'], |
|
191 | + 'spatial' => ['Place'], |
|
192 | + 'spatialCoverage' => ['Place'], |
|
193 | + 'sponsor' => ['Organization', 'Person'], |
|
194 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
195 | + 'teaches' => ['DefinedTerm', 'Text'], |
|
196 | + 'temporal' => ['DateTime', 'Text'], |
|
197 | + 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
198 | + 'text' => ['Text'], |
|
199 | + 'thumbnailUrl' => ['URL'], |
|
200 | + 'timeRequired' => ['Duration'], |
|
201 | + 'translationOfWork' => ['CreativeWork'], |
|
202 | + 'translator' => ['Organization', 'Person'], |
|
203 | + 'typicalAgeRange' => ['Text'], |
|
204 | + 'url' => ['URL'], |
|
205 | + 'usageInfo' => ['URL', 'CreativeWork'], |
|
206 | + 'version' => ['Number', 'Text'], |
|
207 | + 'video' => ['VideoObject', 'Clip'], |
|
208 | + 'workExample' => ['CreativeWork'], |
|
209 | + 'workTranslation' => ['CreativeWork'] |
|
210 | + ]; |
|
211 | + } |
|
212 | 212 | |
213 | 213 | |
214 | - /** |
|
215 | - * @inheritdoc |
|
216 | - */ |
|
217 | - public function getSchemaPropertyDescriptions(): array |
|
218 | - { |
|
219 | - return [ |
|
220 | - 'about' => 'The subject matter of the content.', |
|
221 | - 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
222 | - 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
223 | - 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
224 | - 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
225 | - 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
226 | - 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
227 | - 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
228 | - 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
229 | - 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
230 | - 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
231 | - '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.', |
|
232 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
233 | - 'alternateName' => 'An alias for the item.', |
|
234 | - 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
235 | - 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
236 | - 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
237 | - 'associatedClaimReview' => 'An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].', |
|
238 | - 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
239 | - 'associatedMediaReview' => 'An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].', |
|
240 | - 'associatedReview' => 'An associated [[Review]].', |
|
241 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
242 | - 'audio' => 'An embedded audio object.', |
|
243 | - 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
244 | - 'award' => 'An award won by or for this item.', |
|
245 | - 'awards' => 'Awards won by or for this item.', |
|
246 | - 'character' => 'Fictional person connected with a creative work.', |
|
247 | - 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
248 | - 'comment' => 'Comments, typically from users.', |
|
249 | - 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
250 | - 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
251 | - 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
252 | - 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
253 | - 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
254 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
255 | - 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
256 | - 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
257 | - 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
258 | - 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
259 | - 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
260 | - 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
261 | - 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
262 | - 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
263 | - 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
264 | - 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
265 | - 'datePublished' => 'Date of first broadcast/publication.', |
|
266 | - 'description' => 'A description of the item.', |
|
267 | - '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.', |
|
268 | - 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
269 | - 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
270 | - 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
271 | - 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
272 | - 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
273 | - 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
274 | - 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
275 | - 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
276 | - 'encodings' => 'A media object that encodes this CreativeWork.', |
|
277 | - 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
278 | - 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
279 | - 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
280 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
281 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
282 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
283 | - 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
284 | - 'headline' => 'Headline of the article.', |
|
285 | - '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. ', |
|
286 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
287 | - '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]].', |
|
288 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
289 | - 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
290 | - 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
291 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
292 | - 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
293 | - 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
294 | - 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
295 | - 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
296 | - 'itemReviewed' => 'The item that is being reviewed/rated.', |
|
297 | - '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.', |
|
298 | - 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
299 | - 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
300 | - 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
301 | - 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
302 | - '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.', |
|
303 | - 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
304 | - 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
305 | - 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
306 | - 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
307 | - 'name' => 'The name of the item.', |
|
308 | - 'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).', |
|
309 | - '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. ', |
|
310 | - 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
311 | - 'position' => 'The position of an item in a series or sequence of items.', |
|
312 | - 'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).', |
|
313 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
314 | - 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
315 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
316 | - 'publication' => 'A publication event associated with the item.', |
|
317 | - 'publisher' => 'The publisher of the creative work.', |
|
318 | - 'publisherImprint' => 'The publishing division which published the comic.', |
|
319 | - '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. ', |
|
320 | - 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
321 | - 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
322 | - 'review' => 'A review of the item.', |
|
323 | - 'reviewAspect' => 'This Review or Rating is relevant to this part or facet of the itemReviewed.', |
|
324 | - 'reviewBody' => 'The actual body of the review.', |
|
325 | - 'reviewRating' => 'The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work.', |
|
326 | - 'reviews' => 'Review of the item.', |
|
327 | - '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.', |
|
328 | - 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
329 | - 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
330 | - 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
331 | - 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
332 | - 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
333 | - 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
334 | - 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
335 | - 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
336 | - '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.', |
|
337 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
338 | - 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
339 | - 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
340 | - 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
341 | - 'text' => 'The textual content of this CreativeWork.', |
|
342 | - 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
343 | - 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
344 | - 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
345 | - '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.', |
|
346 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
347 | - 'url' => 'URL of the item.', |
|
348 | - 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
349 | - 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
350 | - 'video' => 'An embedded video object.', |
|
351 | - 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
352 | - 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
353 | - ]; |
|
354 | - } |
|
214 | + /** |
|
215 | + * @inheritdoc |
|
216 | + */ |
|
217 | + public function getSchemaPropertyDescriptions(): array |
|
218 | + { |
|
219 | + return [ |
|
220 | + 'about' => 'The subject matter of the content.', |
|
221 | + 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
222 | + 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
223 | + 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
224 | + 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
225 | + 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
226 | + 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
227 | + 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
228 | + 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
229 | + 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
230 | + 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
231 | + '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.', |
|
232 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
233 | + 'alternateName' => 'An alias for the item.', |
|
234 | + 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
235 | + 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
236 | + 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
237 | + 'associatedClaimReview' => 'An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].', |
|
238 | + 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
239 | + 'associatedMediaReview' => 'An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].', |
|
240 | + 'associatedReview' => 'An associated [[Review]].', |
|
241 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
242 | + 'audio' => 'An embedded audio object.', |
|
243 | + 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
244 | + 'award' => 'An award won by or for this item.', |
|
245 | + 'awards' => 'Awards won by or for this item.', |
|
246 | + 'character' => 'Fictional person connected with a creative work.', |
|
247 | + 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
248 | + 'comment' => 'Comments, typically from users.', |
|
249 | + 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
250 | + 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
251 | + 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
252 | + 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
253 | + 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
254 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
255 | + 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
256 | + 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
257 | + 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
258 | + 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
259 | + 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
260 | + 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
261 | + 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
262 | + 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
263 | + 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
264 | + 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
265 | + 'datePublished' => 'Date of first broadcast/publication.', |
|
266 | + 'description' => 'A description of the item.', |
|
267 | + '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.', |
|
268 | + 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
269 | + 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
270 | + 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
271 | + 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
272 | + 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
273 | + 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
274 | + 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
275 | + 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
276 | + 'encodings' => 'A media object that encodes this CreativeWork.', |
|
277 | + 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
278 | + 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
279 | + 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
280 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
281 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
282 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
283 | + 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
284 | + 'headline' => 'Headline of the article.', |
|
285 | + '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. ', |
|
286 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
287 | + '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]].', |
|
288 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
289 | + 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
290 | + 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
291 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
292 | + 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
293 | + 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
294 | + 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
295 | + 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
296 | + 'itemReviewed' => 'The item that is being reviewed/rated.', |
|
297 | + '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.', |
|
298 | + 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
299 | + 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
300 | + 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
301 | + 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
302 | + '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.', |
|
303 | + 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
304 | + 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
305 | + 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
306 | + 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
307 | + 'name' => 'The name of the item.', |
|
308 | + 'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]]. The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).', |
|
309 | + '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. ', |
|
310 | + 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
311 | + 'position' => 'The position of an item in a series or sequence of items.', |
|
312 | + 'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews. In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).', |
|
313 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
314 | + 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
315 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
316 | + 'publication' => 'A publication event associated with the item.', |
|
317 | + 'publisher' => 'The publisher of the creative work.', |
|
318 | + 'publisherImprint' => 'The publishing division which published the comic.', |
|
319 | + '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. ', |
|
320 | + 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
321 | + 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
322 | + 'review' => 'A review of the item.', |
|
323 | + 'reviewAspect' => 'This Review or Rating is relevant to this part or facet of the itemReviewed.', |
|
324 | + 'reviewBody' => 'The actual body of the review.', |
|
325 | + 'reviewRating' => 'The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work.', |
|
326 | + 'reviews' => 'Review of the item.', |
|
327 | + '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.', |
|
328 | + 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
329 | + 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
330 | + 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
331 | + 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
332 | + 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
333 | + 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
334 | + 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
335 | + 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
336 | + '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.', |
|
337 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
338 | + 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
339 | + 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
340 | + 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
341 | + 'text' => 'The textual content of this CreativeWork.', |
|
342 | + 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
343 | + 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
344 | + 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
345 | + '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.', |
|
346 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
347 | + 'url' => 'URL of the item.', |
|
348 | + 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
349 | + 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
350 | + 'video' => 'An embedded video object.', |
|
351 | + 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
352 | + 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
353 | + ]; |
|
354 | + } |
|
355 | 355 | |
356 | 356 | |
357 | - /** |
|
358 | - * @inheritdoc |
|
359 | - */ |
|
360 | - public function getGoogleRequiredSchema(): array |
|
361 | - { |
|
362 | - return ['description', 'name']; |
|
363 | - } |
|
357 | + /** |
|
358 | + * @inheritdoc |
|
359 | + */ |
|
360 | + public function getGoogleRequiredSchema(): array |
|
361 | + { |
|
362 | + return ['description', 'name']; |
|
363 | + } |
|
364 | 364 | |
365 | 365 | |
366 | - /** |
|
367 | - * @inheritdoc |
|
368 | - */ |
|
369 | - public function getGoogleRecommendedSchema(): array |
|
370 | - { |
|
371 | - return ['image', 'url']; |
|
372 | - } |
|
366 | + /** |
|
367 | + * @inheritdoc |
|
368 | + */ |
|
369 | + public function getGoogleRecommendedSchema(): array |
|
370 | + { |
|
371 | + return ['image', 'url']; |
|
372 | + } |
|
373 | 373 | |
374 | 374 | |
375 | - /** |
|
376 | - * @inheritdoc |
|
377 | - */ |
|
378 | - public function defineRules(): array |
|
379 | - { |
|
380 | - $rules = parent::defineRules(); |
|
381 | - $rules = array_merge($rules, [ |
|
382 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
383 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
384 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
385 | - ]); |
|
375 | + /** |
|
376 | + * @inheritdoc |
|
377 | + */ |
|
378 | + public function defineRules(): array |
|
379 | + { |
|
380 | + $rules = parent::defineRules(); |
|
381 | + $rules = array_merge($rules, [ |
|
382 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
383 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
384 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
385 | + ]); |
|
386 | 386 | |
387 | - return $rules; |
|
388 | - } |
|
387 | + return $rules; |
|
388 | + } |
|
389 | 389 | } |
@@ -23,125 +23,125 @@ |
||
23 | 23 | */ |
24 | 24 | class LegalValueLevel extends MetaJsonLd implements LegalValueLevelInterface, EnumerationInterface, IntangibleInterface, ThingInterface |
25 | 25 | { |
26 | - use LegalValueLevelTrait; |
|
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 $schemaTypeName = 'LegalValueLevel'; |
|
37 | - |
|
38 | - /** |
|
39 | - * The Schema.org Type Scope |
|
40 | - * |
|
41 | - * @var string |
|
42 | - */ |
|
43 | - public static $schemaTypeScope = 'https://schema.org/LegalValueLevel'; |
|
44 | - |
|
45 | - /** |
|
46 | - * The Schema.org Type Extends |
|
47 | - * |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public static $schemaTypeExtends = 'Enumeration'; |
|
51 | - |
|
52 | - /** |
|
53 | - * The Schema.org Type Description |
|
54 | - * |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public static $schemaTypeDescription = 'A list of possible levels for the legal validity of a legislation.'; |
|
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 LegalValueLevelTrait; |
|
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 $schemaTypeName = 'LegalValueLevel'; |
|
37 | + |
|
38 | + /** |
|
39 | + * The Schema.org Type Scope |
|
40 | + * |
|
41 | + * @var string |
|
42 | + */ |
|
43 | + public static $schemaTypeScope = 'https://schema.org/LegalValueLevel'; |
|
44 | + |
|
45 | + /** |
|
46 | + * The Schema.org Type Extends |
|
47 | + * |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public static $schemaTypeExtends = 'Enumeration'; |
|
51 | + |
|
52 | + /** |
|
53 | + * The Schema.org Type Description |
|
54 | + * |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public static $schemaTypeDescription = 'A list of possible levels for the legal validity of a legislation.'; |
|
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 | } |
@@ -24,369 +24,369 @@ |
||
24 | 24 | */ |
25 | 25 | class MovieSeries extends MetaJsonLd implements MovieSeriesInterface, CreativeWorkSeriesInterface, SeriesInterface, IntangibleInterface, ThingInterface, CreativeWorkInterface |
26 | 26 | { |
27 | - use MovieSeriesTrait; |
|
28 | - use CreativeWorkSeriesTrait; |
|
29 | - use SeriesTrait; |
|
30 | - use IntangibleTrait; |
|
31 | - use ThingTrait; |
|
32 | - use CreativeWorkTrait; |
|
27 | + use MovieSeriesTrait; |
|
28 | + use CreativeWorkSeriesTrait; |
|
29 | + use SeriesTrait; |
|
30 | + use IntangibleTrait; |
|
31 | + use ThingTrait; |
|
32 | + use CreativeWorkTrait; |
|
33 | 33 | |
34 | - /** |
|
35 | - * The Schema.org Type Name |
|
36 | - * |
|
37 | - * @var string |
|
38 | - */ |
|
39 | - public static $schemaTypeName = 'MovieSeries'; |
|
34 | + /** |
|
35 | + * The Schema.org Type Name |
|
36 | + * |
|
37 | + * @var string |
|
38 | + */ |
|
39 | + public static $schemaTypeName = 'MovieSeries'; |
|
40 | 40 | |
41 | - /** |
|
42 | - * The Schema.org Type Scope |
|
43 | - * |
|
44 | - * @var string |
|
45 | - */ |
|
46 | - public static $schemaTypeScope = 'https://schema.org/MovieSeries'; |
|
41 | + /** |
|
42 | + * The Schema.org Type Scope |
|
43 | + * |
|
44 | + * @var string |
|
45 | + */ |
|
46 | + public static $schemaTypeScope = 'https://schema.org/MovieSeries'; |
|
47 | 47 | |
48 | - /** |
|
49 | - * The Schema.org Type Extends |
|
50 | - * |
|
51 | - * @var string |
|
52 | - */ |
|
53 | - public static $schemaTypeExtends = 'CreativeWorkSeries'; |
|
48 | + /** |
|
49 | + * The Schema.org Type Extends |
|
50 | + * |
|
51 | + * @var string |
|
52 | + */ |
|
53 | + public static $schemaTypeExtends = 'CreativeWorkSeries'; |
|
54 | 54 | |
55 | - /** |
|
56 | - * The Schema.org Type Description |
|
57 | - * |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public static $schemaTypeDescription = 'A series of movies. Included movies can be indicated with the hasPart property.'; |
|
55 | + /** |
|
56 | + * The Schema.org Type Description |
|
57 | + * |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public static $schemaTypeDescription = 'A series of movies. Included movies can be indicated with the hasPart property.'; |
|
61 | 61 | |
62 | 62 | |
63 | - /** |
|
64 | - * @inheritdoc |
|
65 | - */ |
|
66 | - public function getSchemaPropertyNames(): array |
|
67 | - { |
|
68 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | - } |
|
63 | + /** |
|
64 | + * @inheritdoc |
|
65 | + */ |
|
66 | + public function getSchemaPropertyNames(): array |
|
67 | + { |
|
68 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
69 | + } |
|
70 | 70 | |
71 | 71 | |
72 | - /** |
|
73 | - * @inheritdoc |
|
74 | - */ |
|
75 | - public function getSchemaPropertyExpectedTypes(): array |
|
76 | - { |
|
77 | - return [ |
|
78 | - 'about' => ['Thing'], |
|
79 | - 'abstract' => ['Text'], |
|
80 | - 'accessMode' => ['Text'], |
|
81 | - 'accessModeSufficient' => ['ItemList'], |
|
82 | - 'accessibilityAPI' => ['Text'], |
|
83 | - 'accessibilityControl' => ['Text'], |
|
84 | - 'accessibilityFeature' => ['Text'], |
|
85 | - 'accessibilityHazard' => ['Text'], |
|
86 | - 'accessibilitySummary' => ['Text'], |
|
87 | - 'accountablePerson' => ['Person'], |
|
88 | - 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
89 | - 'actor' => ['Person'], |
|
90 | - 'actors' => ['Person'], |
|
91 | - 'additionalType' => ['URL'], |
|
92 | - 'aggregateRating' => ['AggregateRating'], |
|
93 | - 'alternateName' => ['Text'], |
|
94 | - 'alternativeHeadline' => ['Text'], |
|
95 | - 'archivedAt' => ['WebPage', 'URL'], |
|
96 | - 'assesses' => ['DefinedTerm', 'Text'], |
|
97 | - 'associatedMedia' => ['MediaObject'], |
|
98 | - 'audience' => ['Audience'], |
|
99 | - 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
100 | - 'author' => ['Organization', 'Person'], |
|
101 | - 'award' => ['Text'], |
|
102 | - 'awards' => ['Text'], |
|
103 | - 'character' => ['Person'], |
|
104 | - 'citation' => ['CreativeWork', 'Text'], |
|
105 | - 'comment' => ['Comment'], |
|
106 | - 'commentCount' => ['Integer'], |
|
107 | - 'conditionsOfAccess' => ['Text'], |
|
108 | - 'contentLocation' => ['Place'], |
|
109 | - 'contentRating' => ['Text', 'Rating'], |
|
110 | - 'contentReferenceTime' => ['DateTime'], |
|
111 | - 'contributor' => ['Organization', 'Person'], |
|
112 | - 'copyrightHolder' => ['Organization', 'Person'], |
|
113 | - 'copyrightNotice' => ['Text'], |
|
114 | - 'copyrightYear' => ['Number'], |
|
115 | - 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
116 | - 'countryOfOrigin' => ['Country'], |
|
117 | - 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
118 | - 'creator' => ['Person', 'Organization'], |
|
119 | - 'creditText' => ['Text'], |
|
120 | - 'dateCreated' => ['DateTime', 'Date'], |
|
121 | - 'dateModified' => ['DateTime', 'Date'], |
|
122 | - 'datePublished' => ['DateTime', 'Date'], |
|
123 | - 'description' => ['Text'], |
|
124 | - 'director' => ['Person'], |
|
125 | - 'directors' => ['Person'], |
|
126 | - 'disambiguatingDescription' => ['Text'], |
|
127 | - 'discussionUrl' => ['URL'], |
|
128 | - 'editEIDR' => ['URL', 'Text'], |
|
129 | - 'editor' => ['Person'], |
|
130 | - 'educationalAlignment' => ['AlignmentObject'], |
|
131 | - 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
132 | - 'educationalUse' => ['DefinedTerm', 'Text'], |
|
133 | - 'encoding' => ['MediaObject'], |
|
134 | - 'encodingFormat' => ['URL', 'Text'], |
|
135 | - 'encodings' => ['MediaObject'], |
|
136 | - 'endDate' => ['DateTime', 'Date'], |
|
137 | - 'exampleOfWork' => ['CreativeWork'], |
|
138 | - 'expires' => ['Date', 'DateTime'], |
|
139 | - 'fileFormat' => ['Text', 'URL'], |
|
140 | - 'funder' => ['Organization', 'Person'], |
|
141 | - 'funding' => ['Grant'], |
|
142 | - 'genre' => ['Text', 'URL'], |
|
143 | - 'hasPart' => ['CreativeWork'], |
|
144 | - 'headline' => ['Text'], |
|
145 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
146 | - 'image' => ['URL', 'ImageObject'], |
|
147 | - 'inLanguage' => ['Text', 'Language'], |
|
148 | - 'interactionStatistic' => ['InteractionCounter'], |
|
149 | - 'interactivityType' => ['Text'], |
|
150 | - 'interpretedAsClaim' => ['Claim'], |
|
151 | - 'isAccessibleForFree' => ['Boolean'], |
|
152 | - 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
153 | - 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
154 | - 'isFamilyFriendly' => ['Boolean'], |
|
155 | - 'isPartOf' => ['URL', 'CreativeWork'], |
|
156 | - 'issn' => ['Text'], |
|
157 | - 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
158 | - 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
159 | - 'license' => ['URL', 'CreativeWork'], |
|
160 | - 'locationCreated' => ['Place'], |
|
161 | - 'mainEntity' => ['Thing'], |
|
162 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
163 | - 'maintainer' => ['Person', 'Organization'], |
|
164 | - 'material' => ['Product', 'URL', 'Text'], |
|
165 | - 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
166 | - 'mentions' => ['Thing'], |
|
167 | - 'musicBy' => ['MusicGroup', 'Person'], |
|
168 | - 'name' => ['Text'], |
|
169 | - 'offers' => ['Demand', 'Offer'], |
|
170 | - 'pattern' => ['DefinedTerm', 'Text'], |
|
171 | - 'position' => ['Text', 'Integer'], |
|
172 | - 'potentialAction' => ['Action'], |
|
173 | - 'producer' => ['Organization', 'Person'], |
|
174 | - 'productionCompany' => ['Organization'], |
|
175 | - 'provider' => ['Organization', 'Person'], |
|
176 | - 'publication' => ['PublicationEvent'], |
|
177 | - 'publisher' => ['Organization', 'Person'], |
|
178 | - 'publisherImprint' => ['Organization'], |
|
179 | - 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
180 | - 'recordedAt' => ['Event'], |
|
181 | - 'releasedEvent' => ['PublicationEvent'], |
|
182 | - 'review' => ['Review'], |
|
183 | - 'reviews' => ['Review'], |
|
184 | - 'sameAs' => ['URL'], |
|
185 | - 'schemaVersion' => ['URL', 'Text'], |
|
186 | - 'sdDatePublished' => ['Date'], |
|
187 | - 'sdLicense' => ['CreativeWork', 'URL'], |
|
188 | - 'sdPublisher' => ['Organization', 'Person'], |
|
189 | - 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
190 | - 'sourceOrganization' => ['Organization'], |
|
191 | - 'spatial' => ['Place'], |
|
192 | - 'spatialCoverage' => ['Place'], |
|
193 | - 'sponsor' => ['Organization', 'Person'], |
|
194 | - 'startDate' => ['DateTime', 'Date'], |
|
195 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
196 | - 'teaches' => ['DefinedTerm', 'Text'], |
|
197 | - 'temporal' => ['DateTime', 'Text'], |
|
198 | - 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
199 | - 'text' => ['Text'], |
|
200 | - 'thumbnailUrl' => ['URL'], |
|
201 | - 'timeRequired' => ['Duration'], |
|
202 | - 'trailer' => ['VideoObject'], |
|
203 | - 'translationOfWork' => ['CreativeWork'], |
|
204 | - 'translator' => ['Organization', 'Person'], |
|
205 | - 'typicalAgeRange' => ['Text'], |
|
206 | - 'url' => ['URL'], |
|
207 | - 'usageInfo' => ['URL', 'CreativeWork'], |
|
208 | - 'version' => ['Number', 'Text'], |
|
209 | - 'video' => ['VideoObject', 'Clip'], |
|
210 | - 'workExample' => ['CreativeWork'], |
|
211 | - 'workTranslation' => ['CreativeWork'] |
|
212 | - ]; |
|
213 | - } |
|
72 | + /** |
|
73 | + * @inheritdoc |
|
74 | + */ |
|
75 | + public function getSchemaPropertyExpectedTypes(): array |
|
76 | + { |
|
77 | + return [ |
|
78 | + 'about' => ['Thing'], |
|
79 | + 'abstract' => ['Text'], |
|
80 | + 'accessMode' => ['Text'], |
|
81 | + 'accessModeSufficient' => ['ItemList'], |
|
82 | + 'accessibilityAPI' => ['Text'], |
|
83 | + 'accessibilityControl' => ['Text'], |
|
84 | + 'accessibilityFeature' => ['Text'], |
|
85 | + 'accessibilityHazard' => ['Text'], |
|
86 | + 'accessibilitySummary' => ['Text'], |
|
87 | + 'accountablePerson' => ['Person'], |
|
88 | + 'acquireLicensePage' => ['CreativeWork', 'URL'], |
|
89 | + 'actor' => ['Person'], |
|
90 | + 'actors' => ['Person'], |
|
91 | + 'additionalType' => ['URL'], |
|
92 | + 'aggregateRating' => ['AggregateRating'], |
|
93 | + 'alternateName' => ['Text'], |
|
94 | + 'alternativeHeadline' => ['Text'], |
|
95 | + 'archivedAt' => ['WebPage', 'URL'], |
|
96 | + 'assesses' => ['DefinedTerm', 'Text'], |
|
97 | + 'associatedMedia' => ['MediaObject'], |
|
98 | + 'audience' => ['Audience'], |
|
99 | + 'audio' => ['MusicRecording', 'AudioObject', 'Clip'], |
|
100 | + 'author' => ['Organization', 'Person'], |
|
101 | + 'award' => ['Text'], |
|
102 | + 'awards' => ['Text'], |
|
103 | + 'character' => ['Person'], |
|
104 | + 'citation' => ['CreativeWork', 'Text'], |
|
105 | + 'comment' => ['Comment'], |
|
106 | + 'commentCount' => ['Integer'], |
|
107 | + 'conditionsOfAccess' => ['Text'], |
|
108 | + 'contentLocation' => ['Place'], |
|
109 | + 'contentRating' => ['Text', 'Rating'], |
|
110 | + 'contentReferenceTime' => ['DateTime'], |
|
111 | + 'contributor' => ['Organization', 'Person'], |
|
112 | + 'copyrightHolder' => ['Organization', 'Person'], |
|
113 | + 'copyrightNotice' => ['Text'], |
|
114 | + 'copyrightYear' => ['Number'], |
|
115 | + 'correction' => ['URL', 'Text', 'CorrectionComment'], |
|
116 | + 'countryOfOrigin' => ['Country'], |
|
117 | + 'creativeWorkStatus' => ['DefinedTerm', 'Text'], |
|
118 | + 'creator' => ['Person', 'Organization'], |
|
119 | + 'creditText' => ['Text'], |
|
120 | + 'dateCreated' => ['DateTime', 'Date'], |
|
121 | + 'dateModified' => ['DateTime', 'Date'], |
|
122 | + 'datePublished' => ['DateTime', 'Date'], |
|
123 | + 'description' => ['Text'], |
|
124 | + 'director' => ['Person'], |
|
125 | + 'directors' => ['Person'], |
|
126 | + 'disambiguatingDescription' => ['Text'], |
|
127 | + 'discussionUrl' => ['URL'], |
|
128 | + 'editEIDR' => ['URL', 'Text'], |
|
129 | + 'editor' => ['Person'], |
|
130 | + 'educationalAlignment' => ['AlignmentObject'], |
|
131 | + 'educationalLevel' => ['Text', 'URL', 'DefinedTerm'], |
|
132 | + 'educationalUse' => ['DefinedTerm', 'Text'], |
|
133 | + 'encoding' => ['MediaObject'], |
|
134 | + 'encodingFormat' => ['URL', 'Text'], |
|
135 | + 'encodings' => ['MediaObject'], |
|
136 | + 'endDate' => ['DateTime', 'Date'], |
|
137 | + 'exampleOfWork' => ['CreativeWork'], |
|
138 | + 'expires' => ['Date', 'DateTime'], |
|
139 | + 'fileFormat' => ['Text', 'URL'], |
|
140 | + 'funder' => ['Organization', 'Person'], |
|
141 | + 'funding' => ['Grant'], |
|
142 | + 'genre' => ['Text', 'URL'], |
|
143 | + 'hasPart' => ['CreativeWork'], |
|
144 | + 'headline' => ['Text'], |
|
145 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
146 | + 'image' => ['URL', 'ImageObject'], |
|
147 | + 'inLanguage' => ['Text', 'Language'], |
|
148 | + 'interactionStatistic' => ['InteractionCounter'], |
|
149 | + 'interactivityType' => ['Text'], |
|
150 | + 'interpretedAsClaim' => ['Claim'], |
|
151 | + 'isAccessibleForFree' => ['Boolean'], |
|
152 | + 'isBasedOn' => ['URL', 'Product', 'CreativeWork'], |
|
153 | + 'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'], |
|
154 | + 'isFamilyFriendly' => ['Boolean'], |
|
155 | + 'isPartOf' => ['URL', 'CreativeWork'], |
|
156 | + 'issn' => ['Text'], |
|
157 | + 'keywords' => ['URL', 'DefinedTerm', 'Text'], |
|
158 | + 'learningResourceType' => ['DefinedTerm', 'Text'], |
|
159 | + 'license' => ['URL', 'CreativeWork'], |
|
160 | + 'locationCreated' => ['Place'], |
|
161 | + 'mainEntity' => ['Thing'], |
|
162 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
163 | + 'maintainer' => ['Person', 'Organization'], |
|
164 | + 'material' => ['Product', 'URL', 'Text'], |
|
165 | + 'materialExtent' => ['QuantitativeValue', 'Text'], |
|
166 | + 'mentions' => ['Thing'], |
|
167 | + 'musicBy' => ['MusicGroup', 'Person'], |
|
168 | + 'name' => ['Text'], |
|
169 | + 'offers' => ['Demand', 'Offer'], |
|
170 | + 'pattern' => ['DefinedTerm', 'Text'], |
|
171 | + 'position' => ['Text', 'Integer'], |
|
172 | + 'potentialAction' => ['Action'], |
|
173 | + 'producer' => ['Organization', 'Person'], |
|
174 | + 'productionCompany' => ['Organization'], |
|
175 | + 'provider' => ['Organization', 'Person'], |
|
176 | + 'publication' => ['PublicationEvent'], |
|
177 | + 'publisher' => ['Organization', 'Person'], |
|
178 | + 'publisherImprint' => ['Organization'], |
|
179 | + 'publishingPrinciples' => ['CreativeWork', 'URL'], |
|
180 | + 'recordedAt' => ['Event'], |
|
181 | + 'releasedEvent' => ['PublicationEvent'], |
|
182 | + 'review' => ['Review'], |
|
183 | + 'reviews' => ['Review'], |
|
184 | + 'sameAs' => ['URL'], |
|
185 | + 'schemaVersion' => ['URL', 'Text'], |
|
186 | + 'sdDatePublished' => ['Date'], |
|
187 | + 'sdLicense' => ['CreativeWork', 'URL'], |
|
188 | + 'sdPublisher' => ['Organization', 'Person'], |
|
189 | + 'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'], |
|
190 | + 'sourceOrganization' => ['Organization'], |
|
191 | + 'spatial' => ['Place'], |
|
192 | + 'spatialCoverage' => ['Place'], |
|
193 | + 'sponsor' => ['Organization', 'Person'], |
|
194 | + 'startDate' => ['DateTime', 'Date'], |
|
195 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
196 | + 'teaches' => ['DefinedTerm', 'Text'], |
|
197 | + 'temporal' => ['DateTime', 'Text'], |
|
198 | + 'temporalCoverage' => ['URL', 'Text', 'DateTime'], |
|
199 | + 'text' => ['Text'], |
|
200 | + 'thumbnailUrl' => ['URL'], |
|
201 | + 'timeRequired' => ['Duration'], |
|
202 | + 'trailer' => ['VideoObject'], |
|
203 | + 'translationOfWork' => ['CreativeWork'], |
|
204 | + 'translator' => ['Organization', 'Person'], |
|
205 | + 'typicalAgeRange' => ['Text'], |
|
206 | + 'url' => ['URL'], |
|
207 | + 'usageInfo' => ['URL', 'CreativeWork'], |
|
208 | + 'version' => ['Number', 'Text'], |
|
209 | + 'video' => ['VideoObject', 'Clip'], |
|
210 | + 'workExample' => ['CreativeWork'], |
|
211 | + 'workTranslation' => ['CreativeWork'] |
|
212 | + ]; |
|
213 | + } |
|
214 | 214 | |
215 | 215 | |
216 | - /** |
|
217 | - * @inheritdoc |
|
218 | - */ |
|
219 | - public function getSchemaPropertyDescriptions(): array |
|
220 | - { |
|
221 | - return [ |
|
222 | - 'about' => 'The subject matter of the content.', |
|
223 | - 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
224 | - 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
225 | - 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
226 | - 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
227 | - 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
228 | - 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
229 | - 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
230 | - 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
231 | - 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
232 | - 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
233 | - '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.', |
|
234 | - 'actors' => 'An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.', |
|
235 | - '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.', |
|
236 | - 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
237 | - 'alternateName' => 'An alias for the item.', |
|
238 | - 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
239 | - 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
240 | - 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
241 | - 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
242 | - 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
243 | - 'audio' => 'An embedded audio object.', |
|
244 | - 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
245 | - 'award' => 'An award won by or for this item.', |
|
246 | - 'awards' => 'Awards won by or for this item.', |
|
247 | - 'character' => 'Fictional person connected with a creative work.', |
|
248 | - 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
249 | - 'comment' => 'Comments, typically from users.', |
|
250 | - 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
251 | - 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
252 | - 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
253 | - 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
254 | - 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
255 | - 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
256 | - 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
257 | - 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
258 | - 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
259 | - 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
260 | - 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
261 | - 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
262 | - 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
263 | - 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
264 | - 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
265 | - 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
266 | - 'datePublished' => 'Date of first broadcast/publication.', |
|
267 | - 'description' => 'A description of the item.', |
|
268 | - '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.', |
|
269 | - 'directors' => 'A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.', |
|
270 | - '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.', |
|
271 | - 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
272 | - 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
273 | - 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
274 | - 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
275 | - 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
276 | - 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
277 | - 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
278 | - 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
279 | - 'encodings' => 'A media object that encodes this CreativeWork.', |
|
280 | - 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
281 | - 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
282 | - 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
283 | - 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
284 | - 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
285 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
286 | - 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
287 | - 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
288 | - 'headline' => 'Headline of the article.', |
|
289 | - '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. ', |
|
290 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
291 | - '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]].', |
|
292 | - 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
293 | - 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
294 | - 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
295 | - 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
296 | - 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
297 | - 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
298 | - 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
299 | - 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
300 | - 'issn' => 'The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.', |
|
301 | - '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.', |
|
302 | - 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
303 | - 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
304 | - 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
305 | - 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
306 | - '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.', |
|
307 | - 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
308 | - 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
309 | - 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
310 | - 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
311 | - 'musicBy' => 'The composer of the soundtrack.', |
|
312 | - 'name' => 'The name of the item.', |
|
313 | - '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. ', |
|
314 | - 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
315 | - 'position' => 'The position of an item in a series or sequence of items.', |
|
316 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
317 | - 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
318 | - 'productionCompany' => 'The production company or studio responsible for the item, e.g. series, video game, episode etc.', |
|
319 | - 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
320 | - 'publication' => 'A publication event associated with the item.', |
|
321 | - 'publisher' => 'The publisher of the creative work.', |
|
322 | - 'publisherImprint' => 'The publishing division which published the comic.', |
|
323 | - '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. ', |
|
324 | - 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
325 | - 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
326 | - 'review' => 'A review of the item.', |
|
327 | - 'reviews' => 'Review of the item.', |
|
328 | - '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.', |
|
329 | - 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
330 | - 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
331 | - 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
332 | - 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
333 | - 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
334 | - 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
335 | - 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
336 | - 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
337 | - '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.', |
|
338 | - 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
339 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
340 | - 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
341 | - 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
342 | - 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
343 | - 'text' => 'The textual content of this CreativeWork.', |
|
344 | - 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
345 | - 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
346 | - 'trailer' => 'The trailer of a movie or TV/radio series, season, episode, etc.', |
|
347 | - 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
348 | - '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.', |
|
349 | - 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
350 | - 'url' => 'URL of the item.', |
|
351 | - 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
352 | - 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
353 | - 'video' => 'An embedded video object.', |
|
354 | - 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
355 | - 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
356 | - ]; |
|
357 | - } |
|
216 | + /** |
|
217 | + * @inheritdoc |
|
218 | + */ |
|
219 | + public function getSchemaPropertyDescriptions(): array |
|
220 | + { |
|
221 | + return [ |
|
222 | + 'about' => 'The subject matter of the content.', |
|
223 | + 'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].', |
|
224 | + 'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).', |
|
225 | + 'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).', |
|
226 | + 'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).', |
|
227 | + 'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).', |
|
228 | + 'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).', |
|
229 | + 'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).', |
|
230 | + 'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."', |
|
231 | + 'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.', |
|
232 | + 'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.', |
|
233 | + '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.', |
|
234 | + 'actors' => 'An actor, e.g. in TV, radio, movie, video games etc. Actors can be associated with individual items or with a series, episode, clip.', |
|
235 | + '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.', |
|
236 | + 'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.', |
|
237 | + 'alternateName' => 'An alias for the item.', |
|
238 | + 'alternativeHeadline' => 'A secondary title of the CreativeWork.', |
|
239 | + 'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.', |
|
240 | + 'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.', |
|
241 | + 'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.', |
|
242 | + 'audience' => 'An intended audience, i.e. a group for whom something was created.', |
|
243 | + 'audio' => 'An embedded audio object.', |
|
244 | + 'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.', |
|
245 | + 'award' => 'An award won by or for this item.', |
|
246 | + 'awards' => 'Awards won by or for this item.', |
|
247 | + 'character' => 'Fictional person connected with a creative work.', |
|
248 | + 'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.', |
|
249 | + 'comment' => 'Comments, typically from users.', |
|
250 | + 'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.', |
|
251 | + 'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language. For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ', |
|
252 | + 'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.', |
|
253 | + 'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.', |
|
254 | + 'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.', |
|
255 | + 'contributor' => 'A secondary contributor to the CreativeWork or Event.', |
|
256 | + 'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.', |
|
257 | + 'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.', |
|
258 | + 'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.', |
|
259 | + 'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.', |
|
260 | + 'countryOfOrigin' => 'The country of origin of something, including products as well as creative works such as movie and TV content. In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable. In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.', |
|
261 | + 'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.', |
|
262 | + 'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.', |
|
263 | + 'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.', |
|
264 | + 'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.', |
|
265 | + 'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.', |
|
266 | + 'datePublished' => 'Date of first broadcast/publication.', |
|
267 | + 'description' => 'A description of the item.', |
|
268 | + '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.', |
|
269 | + 'directors' => 'A director of e.g. TV, radio, movie, video games etc. content. Directors can be associated with individual items or with a series, episode, clip.', |
|
270 | + '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.', |
|
271 | + 'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.', |
|
272 | + 'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television. For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3". Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ', |
|
273 | + 'editor' => 'Specifies the Person who edited the CreativeWork.', |
|
274 | + 'educationalAlignment' => 'An alignment to an established educational framework. This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.', |
|
275 | + 'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.', |
|
276 | + 'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.', |
|
277 | + 'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.', |
|
278 | + 'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc. In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information. Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.', |
|
279 | + 'encodings' => 'A media object that encodes this CreativeWork.', |
|
280 | + 'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
281 | + 'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.', |
|
282 | + 'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.', |
|
283 | + 'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.', |
|
284 | + 'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.', |
|
285 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
286 | + 'genre' => 'Genre of the creative work, broadcast channel or group.', |
|
287 | + 'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).', |
|
288 | + 'headline' => 'Headline of the article.', |
|
289 | + '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. ', |
|
290 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
291 | + '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]].', |
|
292 | + 'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.', |
|
293 | + 'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.', |
|
294 | + 'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].', |
|
295 | + 'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.', |
|
296 | + 'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.', |
|
297 | + 'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.', |
|
298 | + 'isFamilyFriendly' => 'Indicates whether this content is family friendly.', |
|
299 | + 'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.', |
|
300 | + 'issn' => 'The International Standard Serial Number (ISSN) that identifies this serial publication. You can repeat this property to identify different formats of, or the linking ISSN (ISSN-L) for, this serial publication.', |
|
301 | + '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.', |
|
302 | + 'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.', |
|
303 | + 'license' => 'A license document that applies to this content, typically indicated by URL.', |
|
304 | + 'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.', |
|
305 | + 'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.', |
|
306 | + '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.', |
|
307 | + 'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work. ', |
|
308 | + 'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.', |
|
309 | + 'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.', |
|
310 | + 'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.', |
|
311 | + 'musicBy' => 'The composer of the soundtrack.', |
|
312 | + 'name' => 'The name of the item.', |
|
313 | + '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. ', |
|
314 | + 'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.', |
|
315 | + 'position' => 'The position of an item in a series or sequence of items.', |
|
316 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
317 | + 'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).', |
|
318 | + 'productionCompany' => 'The production company or studio responsible for the item, e.g. series, video game, episode etc.', |
|
319 | + 'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.', |
|
320 | + 'publication' => 'A publication event associated with the item.', |
|
321 | + 'publisher' => 'The publisher of the creative work.', |
|
322 | + 'publisherImprint' => 'The publishing division which published the comic.', |
|
323 | + '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. ', |
|
324 | + 'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.', |
|
325 | + 'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.', |
|
326 | + 'review' => 'A review of the item.', |
|
327 | + 'reviews' => 'Review of the item.', |
|
328 | + '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.', |
|
329 | + 'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.', |
|
330 | + 'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]', |
|
331 | + 'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.', |
|
332 | + 'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.', |
|
333 | + 'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ', |
|
334 | + 'sourceOrganization' => 'The Organization on whose behalf the creator was working.', |
|
335 | + 'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.', |
|
336 | + 'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.', |
|
337 | + '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.', |
|
338 | + 'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).', |
|
339 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
340 | + 'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.', |
|
341 | + 'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.', |
|
342 | + 'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL. Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945". Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.', |
|
343 | + 'text' => 'The textual content of this CreativeWork.', |
|
344 | + 'thumbnailUrl' => 'A thumbnail image relevant to the Thing.', |
|
345 | + 'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.', |
|
346 | + 'trailer' => 'The trailer of a movie or TV/radio series, season, episode, etc.', |
|
347 | + 'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.', |
|
348 | + '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.', |
|
349 | + 'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.', |
|
350 | + 'url' => 'URL of the item.', |
|
351 | + 'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options. This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.', |
|
352 | + 'version' => 'The version of the CreativeWork embodied by a specified resource.', |
|
353 | + 'video' => 'An embedded video object.', |
|
354 | + 'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.', |
|
355 | + 'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese translation Tây du ký bình khảo.' |
|
356 | + ]; |
|
357 | + } |
|
358 | 358 | |
359 | 359 | |
360 | - /** |
|
361 | - * @inheritdoc |
|
362 | - */ |
|
363 | - public function getGoogleRequiredSchema(): array |
|
364 | - { |
|
365 | - return ['description', 'name']; |
|
366 | - } |
|
360 | + /** |
|
361 | + * @inheritdoc |
|
362 | + */ |
|
363 | + public function getGoogleRequiredSchema(): array |
|
364 | + { |
|
365 | + return ['description', 'name']; |
|
366 | + } |
|
367 | 367 | |
368 | 368 | |
369 | - /** |
|
370 | - * @inheritdoc |
|
371 | - */ |
|
372 | - public function getGoogleRecommendedSchema(): array |
|
373 | - { |
|
374 | - return ['image', 'url']; |
|
375 | - } |
|
369 | + /** |
|
370 | + * @inheritdoc |
|
371 | + */ |
|
372 | + public function getGoogleRecommendedSchema(): array |
|
373 | + { |
|
374 | + return ['image', 'url']; |
|
375 | + } |
|
376 | 376 | |
377 | 377 | |
378 | - /** |
|
379 | - * @inheritdoc |
|
380 | - */ |
|
381 | - public function defineRules(): array |
|
382 | - { |
|
383 | - $rules = parent::defineRules(); |
|
384 | - $rules = array_merge($rules, [ |
|
385 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
386 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
387 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
388 | - ]); |
|
378 | + /** |
|
379 | + * @inheritdoc |
|
380 | + */ |
|
381 | + public function defineRules(): array |
|
382 | + { |
|
383 | + $rules = parent::defineRules(); |
|
384 | + $rules = array_merge($rules, [ |
|
385 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
386 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
387 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
388 | + ]); |
|
389 | 389 | |
390 | - return $rules; |
|
391 | - } |
|
390 | + return $rules; |
|
391 | + } |
|
392 | 392 | } |
@@ -23,157 +23,157 @@ |
||
23 | 23 | */ |
24 | 24 | class CardiovascularExam extends MetaJsonLd implements CardiovascularExamInterface, PhysicalExamInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface |
25 | 25 | { |
26 | - use CardiovascularExamTrait; |
|
27 | - use PhysicalExamTrait; |
|
28 | - use MedicalProcedureTrait; |
|
29 | - use MedicalEntityTrait; |
|
30 | - use ThingTrait; |
|
31 | - use MedicalEnumerationTrait; |
|
32 | - use EnumerationTrait; |
|
33 | - use IntangibleTrait; |
|
34 | - |
|
35 | - /** |
|
36 | - * The Schema.org Type Name |
|
37 | - * |
|
38 | - * @var string |
|
39 | - */ |
|
40 | - public static $schemaTypeName = 'CardiovascularExam'; |
|
41 | - |
|
42 | - /** |
|
43 | - * The Schema.org Type Scope |
|
44 | - * |
|
45 | - * @var string |
|
46 | - */ |
|
47 | - public static $schemaTypeScope = 'https://schema.org/CardiovascularExam'; |
|
48 | - |
|
49 | - /** |
|
50 | - * The Schema.org Type Extends |
|
51 | - * |
|
52 | - * @var string |
|
53 | - */ |
|
54 | - public static $schemaTypeExtends = 'PhysicalExam'; |
|
55 | - |
|
56 | - /** |
|
57 | - * The Schema.org Type Description |
|
58 | - * |
|
59 | - * @var string |
|
60 | - */ |
|
61 | - public static $schemaTypeDescription = 'Cardiovascular system assessment with clinical examination.'; |
|
62 | - |
|
63 | - |
|
64 | - /** |
|
65 | - * @inheritdoc |
|
66 | - */ |
|
67 | - public function getSchemaPropertyNames(): array |
|
68 | - { |
|
69 | - return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
70 | - } |
|
71 | - |
|
72 | - |
|
73 | - /** |
|
74 | - * @inheritdoc |
|
75 | - */ |
|
76 | - public function getSchemaPropertyExpectedTypes(): array |
|
77 | - { |
|
78 | - return [ |
|
79 | - 'additionalType' => ['URL'], |
|
80 | - 'alternateName' => ['Text'], |
|
81 | - 'bodyLocation' => ['Text'], |
|
82 | - 'code' => ['MedicalCode'], |
|
83 | - 'description' => ['Text'], |
|
84 | - 'disambiguatingDescription' => ['Text'], |
|
85 | - 'followup' => ['Text'], |
|
86 | - 'funding' => ['Grant'], |
|
87 | - 'guideline' => ['MedicalGuideline'], |
|
88 | - 'howPerformed' => ['Text'], |
|
89 | - 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
90 | - 'image' => ['URL', 'ImageObject'], |
|
91 | - 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
92 | - 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
93 | - 'medicineSystem' => ['MedicineSystem'], |
|
94 | - 'name' => ['Text'], |
|
95 | - 'potentialAction' => ['Action'], |
|
96 | - 'preparation' => ['Text', 'MedicalEntity'], |
|
97 | - 'procedureType' => ['MedicalProcedureType'], |
|
98 | - 'recognizingAuthority' => ['Organization'], |
|
99 | - 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | - 'sameAs' => ['URL'], |
|
101 | - 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
102 | - 'study' => ['MedicalStudy'], |
|
103 | - 'subjectOf' => ['Event', 'CreativeWork'], |
|
104 | - 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
105 | - 'url' => ['URL'] |
|
106 | - ]; |
|
107 | - } |
|
108 | - |
|
109 | - |
|
110 | - /** |
|
111 | - * @inheritdoc |
|
112 | - */ |
|
113 | - public function getSchemaPropertyDescriptions(): array |
|
114 | - { |
|
115 | - return [ |
|
116 | - '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.', |
|
117 | - 'alternateName' => 'An alias for the item.', |
|
118 | - 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
119 | - 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
120 | - 'description' => 'A description of the item.', |
|
121 | - '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.', |
|
122 | - 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
123 | - 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
124 | - 'guideline' => 'A medical guideline related to this entity.', |
|
125 | - 'howPerformed' => 'How the procedure is performed.', |
|
126 | - 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
127 | - 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | - 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | - 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
130 | - 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | - 'name' => 'The name of the item.', |
|
132 | - 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | - 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
134 | - 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
135 | - 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
136 | - 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
137 | - '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.', |
|
138 | - 'status' => 'The status of the study (enumerated).', |
|
139 | - 'study' => 'A medical study or trial related to this entity.', |
|
140 | - 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
141 | - 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
142 | - 'url' => 'URL of the item.' |
|
143 | - ]; |
|
144 | - } |
|
145 | - |
|
146 | - |
|
147 | - /** |
|
148 | - * @inheritdoc |
|
149 | - */ |
|
150 | - public function getGoogleRequiredSchema(): array |
|
151 | - { |
|
152 | - return ['description', 'name']; |
|
153 | - } |
|
154 | - |
|
155 | - |
|
156 | - /** |
|
157 | - * @inheritdoc |
|
158 | - */ |
|
159 | - public function getGoogleRecommendedSchema(): array |
|
160 | - { |
|
161 | - return ['image', 'url']; |
|
162 | - } |
|
163 | - |
|
164 | - |
|
165 | - /** |
|
166 | - * @inheritdoc |
|
167 | - */ |
|
168 | - public function defineRules(): array |
|
169 | - { |
|
170 | - $rules = parent::defineRules(); |
|
171 | - $rules = array_merge($rules, [ |
|
172 | - [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
173 | - [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
174 | - [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
175 | - ]); |
|
176 | - |
|
177 | - return $rules; |
|
178 | - } |
|
26 | + use CardiovascularExamTrait; |
|
27 | + use PhysicalExamTrait; |
|
28 | + use MedicalProcedureTrait; |
|
29 | + use MedicalEntityTrait; |
|
30 | + use ThingTrait; |
|
31 | + use MedicalEnumerationTrait; |
|
32 | + use EnumerationTrait; |
|
33 | + use IntangibleTrait; |
|
34 | + |
|
35 | + /** |
|
36 | + * The Schema.org Type Name |
|
37 | + * |
|
38 | + * @var string |
|
39 | + */ |
|
40 | + public static $schemaTypeName = 'CardiovascularExam'; |
|
41 | + |
|
42 | + /** |
|
43 | + * The Schema.org Type Scope |
|
44 | + * |
|
45 | + * @var string |
|
46 | + */ |
|
47 | + public static $schemaTypeScope = 'https://schema.org/CardiovascularExam'; |
|
48 | + |
|
49 | + /** |
|
50 | + * The Schema.org Type Extends |
|
51 | + * |
|
52 | + * @var string |
|
53 | + */ |
|
54 | + public static $schemaTypeExtends = 'PhysicalExam'; |
|
55 | + |
|
56 | + /** |
|
57 | + * The Schema.org Type Description |
|
58 | + * |
|
59 | + * @var string |
|
60 | + */ |
|
61 | + public static $schemaTypeDescription = 'Cardiovascular system assessment with clinical examination.'; |
|
62 | + |
|
63 | + |
|
64 | + /** |
|
65 | + * @inheritdoc |
|
66 | + */ |
|
67 | + public function getSchemaPropertyNames(): array |
|
68 | + { |
|
69 | + return array_keys($this->getSchemaPropertyExpectedTypes()); |
|
70 | + } |
|
71 | + |
|
72 | + |
|
73 | + /** |
|
74 | + * @inheritdoc |
|
75 | + */ |
|
76 | + public function getSchemaPropertyExpectedTypes(): array |
|
77 | + { |
|
78 | + return [ |
|
79 | + 'additionalType' => ['URL'], |
|
80 | + 'alternateName' => ['Text'], |
|
81 | + 'bodyLocation' => ['Text'], |
|
82 | + 'code' => ['MedicalCode'], |
|
83 | + 'description' => ['Text'], |
|
84 | + 'disambiguatingDescription' => ['Text'], |
|
85 | + 'followup' => ['Text'], |
|
86 | + 'funding' => ['Grant'], |
|
87 | + 'guideline' => ['MedicalGuideline'], |
|
88 | + 'howPerformed' => ['Text'], |
|
89 | + 'identifier' => ['PropertyValue', 'URL', 'Text'], |
|
90 | + 'image' => ['URL', 'ImageObject'], |
|
91 | + 'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'], |
|
92 | + 'mainEntityOfPage' => ['URL', 'CreativeWork'], |
|
93 | + 'medicineSystem' => ['MedicineSystem'], |
|
94 | + 'name' => ['Text'], |
|
95 | + 'potentialAction' => ['Action'], |
|
96 | + 'preparation' => ['Text', 'MedicalEntity'], |
|
97 | + 'procedureType' => ['MedicalProcedureType'], |
|
98 | + 'recognizingAuthority' => ['Organization'], |
|
99 | + 'relevantSpecialty' => ['MedicalSpecialty'], |
|
100 | + 'sameAs' => ['URL'], |
|
101 | + 'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'], |
|
102 | + 'study' => ['MedicalStudy'], |
|
103 | + 'subjectOf' => ['Event', 'CreativeWork'], |
|
104 | + 'supersededBy' => ['Class', 'Property', 'Enumeration'], |
|
105 | + 'url' => ['URL'] |
|
106 | + ]; |
|
107 | + } |
|
108 | + |
|
109 | + |
|
110 | + /** |
|
111 | + * @inheritdoc |
|
112 | + */ |
|
113 | + public function getSchemaPropertyDescriptions(): array |
|
114 | + { |
|
115 | + return [ |
|
116 | + '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.', |
|
117 | + 'alternateName' => 'An alias for the item.', |
|
118 | + 'bodyLocation' => 'Location in the body of the anatomical structure.', |
|
119 | + 'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.', |
|
120 | + 'description' => 'A description of the item.', |
|
121 | + '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.', |
|
122 | + 'followup' => 'Typical or recommended followup care after the procedure is performed.', |
|
123 | + 'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].', |
|
124 | + 'guideline' => 'A medical guideline related to this entity.', |
|
125 | + 'howPerformed' => 'How the procedure is performed.', |
|
126 | + 'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ', |
|
127 | + 'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].', |
|
128 | + 'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.', |
|
129 | + 'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.', |
|
130 | + 'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.', |
|
131 | + 'name' => 'The name of the item.', |
|
132 | + 'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.', |
|
133 | + 'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.', |
|
134 | + 'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.', |
|
135 | + 'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.', |
|
136 | + 'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.', |
|
137 | + '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.', |
|
138 | + 'status' => 'The status of the study (enumerated).', |
|
139 | + 'study' => 'A medical study or trial related to this entity.', |
|
140 | + 'subjectOf' => 'A CreativeWork or Event about this Thing.', |
|
141 | + 'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.', |
|
142 | + 'url' => 'URL of the item.' |
|
143 | + ]; |
|
144 | + } |
|
145 | + |
|
146 | + |
|
147 | + /** |
|
148 | + * @inheritdoc |
|
149 | + */ |
|
150 | + public function getGoogleRequiredSchema(): array |
|
151 | + { |
|
152 | + return ['description', 'name']; |
|
153 | + } |
|
154 | + |
|
155 | + |
|
156 | + /** |
|
157 | + * @inheritdoc |
|
158 | + */ |
|
159 | + public function getGoogleRecommendedSchema(): array |
|
160 | + { |
|
161 | + return ['image', 'url']; |
|
162 | + } |
|
163 | + |
|
164 | + |
|
165 | + /** |
|
166 | + * @inheritdoc |
|
167 | + */ |
|
168 | + public function defineRules(): array |
|
169 | + { |
|
170 | + $rules = parent::defineRules(); |
|
171 | + $rules = array_merge($rules, [ |
|
172 | + [$this->getSchemaPropertyNames(), 'validateJsonSchema'], |
|
173 | + [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'], |
|
174 | + [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.'] |
|
175 | + ]); |
|
176 | + |
|
177 | + return $rules; |
|
178 | + } |
|
179 | 179 | } |