Schema/Thing.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Place.pm ↑ Summary
1 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package SemanticWeb::Schema::Thing;
4  
5 # ABSTRACT: The most generic type of item.
6  
7 3 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 extends qw/ SemanticWeb::Schema /;
11  
12  
13 3 ▶use MooX::JSON_LD 'Thing';
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use Ref::Util qw/ is_plain_hashref /;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 # RECOMMEND PREREQ: Ref::Util::XS
16  
17 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 3 our $VERSION = 'v23.0.0';
20  
21  
22 3 has additional_type => (
23 is => 'rw',
24 predicate => '_has_additional_type',
25 json_ld => 'additionalType',
26 );
27  
28  
29  
30 3 has alternate_name => (
31 is => 'rw',
32 predicate => '_has_alternate_name',
33 json_ld => 'alternateName',
34 );
35  
36  
37  
38 3 has description => (
39 is => 'rw',
40 predicate => '_has_description',
41 json_ld => 'description',
42 );
43  
44  
45  
46 3 has disambiguating_description => (
47 is => 'rw',
48 predicate => '_has_disambiguating_description',
49 json_ld => 'disambiguatingDescription',
50 );
51  
52  
53  
54 3 has identifier => (
55 is => 'rw',
56 predicate => '_has_identifier',
57 json_ld => 'identifier',
58 );
59  
60  
61  
62 3 has image => (
63 is => 'rw',
64 predicate => '_has_image',
65 json_ld => 'image',
66 );
67  
68  
69  
70 3 has main_entity_of_page => (
71 is => 'rw',
72 predicate => '_has_main_entity_of_page',
73 json_ld => 'mainEntityOfPage',
74 );
75  
76  
77  
78 3 has name => (
79 is => 'rw',
80 predicate => '_has_name',
81 json_ld => 'name',
82 );
83  
84  
85  
86 3 has potential_action => (
87 is => 'rw',
88 predicate => '_has_potential_action',
89 json_ld => 'potentialAction',
90 );
91  
92  
93  
94 3 has same_as => (
95 is => 'rw',
96 predicate => '_has_same_as',
97 json_ld => 'sameAs',
98 );
99  
100  
101  
102 3 has subject_of => (
103 is => 'rw',
104 predicate => '_has_subject_of',
105 json_ld => 'subjectOf',
106 );
107  
108  
109  
110 3 has url => (
111 is => 'rw',
112 predicate => '_has_url',
113 json_ld => 'url',
114 );
115  
116  
117  
118  
119  
120 3 1;
121  
122 __END__
« Schema/Place.pm ↑ Summary