Schema/Product.pm untested

filter: Statementstmt 0.0% 0 / 77 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 83 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2  
3 package SemanticWeb::Schema::Product;
4  
5 # ABSTRACT: Any offered product or service
6  
7 use v5.14;
8 use Moo;
9  
10 extends qw/ SemanticWeb::Schema::Thing /;
11  
12  
13 use MooX::JSON_LD 'Product';
14 use Ref::Util qw/ is_plain_hashref /;
15 # RECOMMEND PREREQ: Ref::Util::XS
16  
17 use namespace::autoclean;
18  
19 our $VERSION = 'v23.0.0';
20  
21  
22 has additional_property => (
23 is => 'rw',
24 predicate => '_has_additional_property',
25 json_ld => 'additionalProperty',
26 );
27  
28  
29  
30 has aggregate_rating => (
31 is => 'rw',
32 predicate => '_has_aggregate_rating',
33 json_ld => 'aggregateRating',
34 );
35  
36  
37  
38 has asin => (
39 is => 'rw',
40 predicate => '_has_asin',
41 json_ld => 'asin',
42 );
43  
44  
45  
46 has audience => (
47 is => 'rw',
48 predicate => '_has_audience',
49 json_ld => 'audience',
50 );
51  
52  
53  
54 has award => (
55 is => 'rw',
56 predicate => '_has_award',
57 json_ld => 'award',
58 );
59  
60  
61  
62 has awards => (
63 is => 'rw',
64 predicate => '_has_awards',
65 json_ld => 'awards',
66 );
67  
68  
69  
70 has brand => (
71 is => 'rw',
72 predicate => '_has_brand',
73 json_ld => 'brand',
74 );
75  
76  
77  
78 has category => (
79 is => 'rw',
80 predicate => '_has_category',
81 json_ld => 'category',
82 );
83  
84  
85  
86 has color => (
87 is => 'rw',
88 predicate => '_has_color',
89 json_ld => 'color',
90 );
91  
92  
93  
94 has country_of_assembly => (
95 is => 'rw',
96 predicate => '_has_country_of_assembly',
97 json_ld => 'countryOfAssembly',
98 );
99  
100  
101  
102 has country_of_last_processing => (
103 is => 'rw',
104 predicate => '_has_country_of_last_processing',
105 json_ld => 'countryOfLastProcessing',
106 );
107  
108  
109  
110 has country_of_origin => (
111 is => 'rw',
112 predicate => '_has_country_of_origin',
113 json_ld => 'countryOfOrigin',
114 );
115  
116  
117  
118 has depth => (
119 is => 'rw',
120 predicate => '_has_depth',
121 json_ld => 'depth',
122 );
123  
124  
125  
126 has funding => (
127 is => 'rw',
128 predicate => '_has_funding',
129 json_ld => 'funding',
130 );
131  
132  
133  
134 has gtin => (
135 is => 'rw',
136 predicate => '_has_gtin',
137 json_ld => 'gtin',
138 );
139  
140  
141  
142 has gtin12 => (
143 is => 'rw',
144 predicate => '_has_gtin12',
145 json_ld => 'gtin12',
146 );
147  
148  
149  
150 has gtin13 => (
151 is => 'rw',
152 predicate => '_has_gtin13',
153 json_ld => 'gtin13',
154 );
155  
156  
157  
158 has gtin14 => (
159 is => 'rw',
160 predicate => '_has_gtin14',
161 json_ld => 'gtin14',
162 );
163  
164  
165  
166 has gtin8 => (
167 is => 'rw',
168 predicate => '_has_gtin8',
169 json_ld => 'gtin8',
170 );
171  
172  
173  
174 has has_adult_consideration => (
175 is => 'rw',
176 predicate => '_has_has_adult_consideration',
177 json_ld => 'hasAdultConsideration',
178 );
179  
180  
181  
182 has has_energy_consumption_details => (
183 is => 'rw',
184 predicate => '_has_has_energy_consumption_details',
185 json_ld => 'hasEnergyConsumptionDetails',
186 );
187  
188  
189  
190 has has_measurement => (
191 is => 'rw',
192 predicate => '_has_has_measurement',
193 json_ld => 'hasMeasurement',
194 );
195  
196  
197  
198 has has_merchant_return_policy => (
199 is => 'rw',
200 predicate => '_has_has_merchant_return_policy',
201 json_ld => 'hasMerchantReturnPolicy',
202 );
203  
204  
205  
206 has has_product_return_policy => (
207 is => 'rw',
208 predicate => '_has_has_product_return_policy',
209 json_ld => 'hasProductReturnPolicy',
210 );
211  
212  
213  
214 has height => (
215 is => 'rw',
216 predicate => '_has_height',
217 json_ld => 'height',
218 );
219  
220  
221  
222 has in_product_group_with_id => (
223 is => 'rw',
224 predicate => '_has_in_product_group_with_id',
225 json_ld => 'inProductGroupWithID',
226 );
227  
228  
229  
230 has is_accessory_or_spare_part_for => (
231 is => 'rw',
232 predicate => '_has_is_accessory_or_spare_part_for',
233 json_ld => 'isAccessoryOrSparePartFor',
234 );
235  
236  
237  
238 has is_consumable_for => (
239 is => 'rw',
240 predicate => '_has_is_consumable_for',
241 json_ld => 'isConsumableFor',
242 );
243  
244  
245  
246 has is_family_friendly => (
247 is => 'rw',
248 predicate => '_has_is_family_friendly',
249 json_ld => 'isFamilyFriendly',
250 );
251  
252  
253  
254 has is_related_to => (
255 is => 'rw',
256 predicate => '_has_is_related_to',
257 json_ld => 'isRelatedTo',
258 );
259  
260  
261  
262 has is_similar_to => (
263 is => 'rw',
264 predicate => '_has_is_similar_to',
265 json_ld => 'isSimilarTo',
266 );
267  
268  
269  
270 has is_variant_of => (
271 is => 'rw',
272 predicate => '_has_is_variant_of',
273 json_ld => 'isVariantOf',
274 );
275  
276  
277  
278 has item_condition => (
279 is => 'rw',
280 predicate => '_has_item_condition',
281 json_ld => 'itemCondition',
282 );
283  
284  
285  
286 has keywords => (
287 is => 'rw',
288 predicate => '_has_keywords',
289 json_ld => 'keywords',
290 );
291  
292  
293  
294 has logo => (
295 is => 'rw',
296 predicate => '_has_logo',
297 json_ld => 'logo',
298 );
299  
300  
301  
302 has manufacturer => (
303 is => 'rw',
304 predicate => '_has_manufacturer',
305 json_ld => 'manufacturer',
306 );
307  
308  
309  
310 has material => (
311 is => 'rw',
312 predicate => '_has_material',
313 json_ld => 'material',
314 );
315  
316  
317  
318 has mobile_url => (
319 is => 'rw',
320 predicate => '_has_mobile_url',
321 json_ld => 'mobileUrl',
322 );
323  
324  
325  
326 has model => (
327 is => 'rw',
328 predicate => '_has_model',
329 json_ld => 'model',
330 );
331  
332  
333  
334 has mpn => (
335 is => 'rw',
336 predicate => '_has_mpn',
337 json_ld => 'mpn',
338 );
339  
340  
341  
342 has negative_notes => (
343 is => 'rw',
344 predicate => '_has_negative_notes',
345 json_ld => 'negativeNotes',
346 );
347  
348  
349  
350 has nsn => (
351 is => 'rw',
352 predicate => '_has_nsn',
353 json_ld => 'nsn',
354 );
355  
356  
357  
358 has offers => (
359 is => 'rw',
360 predicate => '_has_offers',
361 json_ld => 'offers',
362 );
363  
364  
365  
366 has pattern => (
367 is => 'rw',
368 predicate => '_has_pattern',
369 json_ld => 'pattern',
370 );
371  
372  
373  
374 has positive_notes => (
375 is => 'rw',
376 predicate => '_has_positive_notes',
377 json_ld => 'positiveNotes',
378 );
379  
380  
381  
382 has product_id => (
383 is => 'rw',
384 predicate => '_has_product_id',
385 json_ld => 'productID',
386 );
387  
388  
389  
390 has production_date => (
391 is => 'rw',
392 predicate => '_has_production_date',
393 json_ld => 'productionDate',
394 );
395  
396  
397  
398 has purchase_date => (
399 is => 'rw',
400 predicate => '_has_purchase_date',
401 json_ld => 'purchaseDate',
402 );
403  
404  
405  
406 has release_date => (
407 is => 'rw',
408 predicate => '_has_release_date',
409 json_ld => 'releaseDate',
410 );
411  
412  
413  
414 has review => (
415 is => 'rw',
416 predicate => '_has_review',
417 json_ld => 'review',
418 );
419  
420  
421  
422 has reviews => (
423 is => 'rw',
424 predicate => '_has_reviews',
425 json_ld => 'reviews',
426 );
427  
428  
429  
430 has size => (
431 is => 'rw',
432 predicate => '_has_size',
433 json_ld => 'size',
434 );
435  
436  
437  
438 has sku => (
439 is => 'rw',
440 predicate => '_has_sku',
441 json_ld => 'sku',
442 );
443  
444  
445  
446 has slogan => (
447 is => 'rw',
448 predicate => '_has_slogan',
449 json_ld => 'slogan',
450 );
451  
452  
453  
454 has weight => (
455 is => 'rw',
456 predicate => '_has_weight',
457 json_ld => 'weight',
458 );
459  
460  
461  
462 has width => (
463 is => 'rw',
464 predicate => '_has_width',
465 json_ld => 'width',
466 );
467  
468  
469  
470  
471  
472 1;
473  
474 __END__