| 1 | use utf8; | ||
| 2 | |||
| 3 | package SemanticWeb::Schema::MusicComposition; | ||
| 4 | |||
| 5 | # ABSTRACT: A musical composition. | ||
| 6 | |||
| 7 | use v5.14; | ||
| 8 | use Moo; | ||
| 9 | |||
| 10 | extends qw/ SemanticWeb::Schema::CreativeWork /; | ||
| 11 | |||
| 12 | |||
| 13 | use MooX::JSON_LD 'MusicComposition'; | ||
| 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 composer => ( | ||
| 23 | is => 'rw', | ||
| 24 | predicate => '_has_composer', | ||
| 25 | json_ld => 'composer', | ||
| 26 | ); | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | has first_performance => ( | ||
| 31 | is => 'rw', | ||
| 32 | predicate => '_has_first_performance', | ||
| 33 | json_ld => 'firstPerformance', | ||
| 34 | ); | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | has included_composition => ( | ||
| 39 | is => 'rw', | ||
| 40 | predicate => '_has_included_composition', | ||
| 41 | json_ld => 'includedComposition', | ||
| 42 | ); | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | has iswc_code => ( | ||
| 47 | is => 'rw', | ||
| 48 | predicate => '_has_iswc_code', | ||
| 49 | json_ld => 'iswcCode', | ||
| 50 | ); | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | has lyricist => ( | ||
| 55 | is => 'rw', | ||
| 56 | predicate => '_has_lyricist', | ||
| 57 | json_ld => 'lyricist', | ||
| 58 | ); | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | has lyrics => ( | ||
| 63 | is => 'rw', | ||
| 64 | predicate => '_has_lyrics', | ||
| 65 | json_ld => 'lyrics', | ||
| 66 | ); | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | has music_arrangement => ( | ||
| 71 | is => 'rw', | ||
| 72 | predicate => '_has_music_arrangement', | ||
| 73 | json_ld => 'musicArrangement', | ||
| 74 | ); | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | has music_composition_form => ( | ||
| 79 | is => 'rw', | ||
| 80 | predicate => '_has_music_composition_form', | ||
| 81 | json_ld => 'musicCompositionForm', | ||
| 82 | ); | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | has musical_key => ( | ||
| 87 | is => 'rw', | ||
| 88 | predicate => '_has_musical_key', | ||
| 89 | json_ld => 'musicalKey', | ||
| 90 | ); | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | has recorded_as => ( | ||
| 95 | is => 'rw', | ||
| 96 | predicate => '_has_recorded_as', | ||
| 97 | json_ld => 'recordedAs', | ||
| 98 | ); | ||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | 1; | ||
| 105 | |||
| 106 | __END__ |