| 1 | package RDF::DOAP::Issue; | ||
| 2 | |||
| 3 | 1 | our $AUTHORITY = 'cpan:TOBYINK'; | |
| 4 | 1 | our $VERSION = '0.105'; | |
| 5 | |||
| 6 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | extends qw(RDF::DOAP::Resource); | |
| 8 | |||
| 9 | 1 | ▶ | use RDF::DOAP::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use RDF::DOAP::Utils -traits; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | ▶ | use RDF::Trine::Namespace qw(rdf rdfs owl xsd); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | my $dbug = 'RDF::Trine::Namespace'->new('http://ontologi.es/doap-bugs#'); | |
| 14 | |||
| 15 | 1 | has reporter => ( | |
| 16 | traits => [ WithURI, Gathering ], | ||
| 17 | is => 'ro', | ||
| 18 | isa => ArrayRef[ Person ], | ||
| 19 | coerce => 1, | ||
| 20 | uri => $dbug->reporter, | ||
| 21 | multi => 1, | ||
| 22 | gather_as => ['thanks'], | ||
| 23 | ); | ||
| 24 | |||
| 25 | 1 | has assignee => ( | |
| 26 | traits => [ WithURI, Gathering ], | ||
| 27 | is => 'ro', | ||
| 28 | isa => ArrayRef[ Person ], | ||
| 29 | coerce => 1, | ||
| 30 | uri => $dbug->assignee, | ||
| 31 | multi => 1, | ||
| 32 | gather_as => ['contributor'], | ||
| 33 | ); | ||
| 34 | |||
| 35 | 1 | has id => ( | |
| 36 | traits => [ WithURI ], | ||
| 37 | is => 'ro', | ||
| 38 | isa => String, | ||
| 39 | coerce => 1, | ||
| 40 | uri => $dbug->id, | ||
| 41 | ); | ||
| 42 | |||
| 43 | has $_ => ( | ||
| 44 | traits => [ WithURI ], | ||
| 45 | is => 'ro', | ||
| 46 | isa => Identifier, | ||
| 47 | coerce => 1, | ||
| 48 | uri => $dbug->$_, | ||
| 49 | 1 | ) for qw( severity status ); | |
| 50 | |||
| 51 | 1 | has page => ( | |
| 52 | traits => [ WithURI ], | ||
| 53 | is => 'ro', | ||
| 54 | isa => Identifier, | ||
| 55 | coerce => 1, | ||
| 56 | uri => $dbug->page, | ||
| 57 | ); | ||
| 58 | |||
| 59 | 1 | 1; | |