SemanticWeb-Schema
view release on metacpan or search on metacpan
lib/SemanticWeb/Schema/AggregateRating.pm view on Meta::CPAN
use utf8;
package SemanticWeb::Schema::AggregateRating;
# ABSTRACT: The average rating based on multiple ratings or reviews.
use Moo;
extends qw/ SemanticWeb::Schema::Rating /;
use MooX::JSON_LD 'AggregateRating';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespace::autoclean;
our $VERSION = 'v9.0.0';
has item_reviewed => (
is => 'rw',
predicate => '_has_item_reviewed',
json_ld => 'itemReviewed',
);
has rating_count => (
is => 'rw',
predicate => '_has_rating_count',
json_ld => 'ratingCount',
);
has review_count => (
is => 'rw',
predicate => '_has_review_count',
json_ld => 'reviewCount',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema::AggregateRating - The average rating based on multiple ratings or reviews.
=head1 VERSION
version v9.0.0
=head1 DESCRIPTION
The average rating based on multiple ratings or reviews.
=head1 ATTRIBUTES
=head2 C<item_reviewed>
C<itemReviewed>
The item that is being reviewed/rated.
( run in 1.192 second using v1.01-cache-2.11-cpan-39bf76dae61 )