—use
utf8;
package
SemanticWeb::Schema::AggregateRating;
# ABSTRACT: The average rating based on multiple ratings or reviews.
use
v5.14;
use
Moo;
# RECOMMEND PREREQ: Ref::Util::XS
use
namespace::autoclean;
our
$VERSION
=
'v22.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 v22.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.
A item_reviewed should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::Thing']>
=back
=head2 C<_has_item_reviewed>
A predicate for the L</item_reviewed> attribute.
=head2 C<rating_count>
C<ratingCount>
The count of total number of ratings.
A rating_count should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::Integer']>
=back
=head2 C<_has_rating_count>
A predicate for the L</rating_count> attribute.
=head2 C<review_count>
C<reviewCount>
The count of total number of reviews.
A review_count should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::Integer']>
=back
=head2 C<_has_review_count>
A predicate for the L</review_count> attribute.
=head1 SEE ALSO
L<SemanticWeb::Schema::Rating>
=head1 SOURCE
The development version is on github at L<https://github.com/robrwo/SemanticWeb-Schema>
and may be cloned from L<git://github.com/robrwo/SemanticWeb-Schema.git>
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=head1 AUTHOR
Robert Rothenberg <rrwo@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2018-2023 by Robert Rothenberg.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut