SemanticWeb-Schema/lib/SemanticWeb/Schema/QualitativeValue.pm
use utf8;
package SemanticWeb::Schema::QualitativeValue;
# ABSTRACT: A predefined value for a product characteristic
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Enumeration /;
use MooX::JSON_LD 'QualitativeValue';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespace::autoclean;
our $VERSION = 'v23.0.0';
has additional_property => (
is => 'rw',
predicate => '_has_additional_property',
json_ld => 'additionalProperty',
);
has equal => (
is => 'rw',
predicate => '_has_equal',
json_ld => 'equal',
);
has greater => (
is => 'rw',
predicate => '_has_greater',
json_ld => 'greater',
);
has greater_or_equal => (
is => 'rw',
predicate => '_has_greater_or_equal',
json_ld => 'greaterOrEqual',
);
has lesser => (
is => 'rw',
predicate => '_has_lesser',
json_ld => 'lesser',
);
has lesser_or_equal => (
is => 'rw',
predicate => '_has_lesser_or_equal',
json_ld => 'lesserOrEqual',
);
has non_equal => (
is => 'rw',
predicate => '_has_non_equal',
json_ld => 'nonEqual',
);
has value_reference => (
is => 'rw',
predicate => '_has_value_reference',
json_ld => 'valueReference',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema::QualitativeValue - A predefined value for a product characteristic
=head1 VERSION
version v23.0.0
=head1 DESCRIPTION
A predefined value for a product characteristic, e.g. the power cord plug
type 'US' or the garment sizes 'S', 'M', 'L', and 'XL'.
=head1 ATTRIBUTES
=head2 C<additional_property>
C<additionalProperty>
A property-value pair representing an additional characteristic of the
entity, e.g. a product feature or another characteristic for which there is
no matching property in schema.org. Note: Publishers should be aware that
applications designed to use specific schema.org properties (e.g.
http://schema.org/width, http://schema.org/color, http://schema.org/gtin13,
...) will typically expect such data to be provided using those properties,
rather than using the generic property/value mechanism.
A additional_property should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::PropertyValue']>
=back
=head2 C<_has_additional_property>
A predicate for the L</additional_property> attribute.
=head2 C<equal>
This ordering relation for qualitative values indicates that the subject is
equal to the object.
A equal should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_equal>
A predicate for the L</equal> attribute.
=head2 C<greater>
This ordering relation for qualitative values indicates that the subject is
greater than the object.
A greater should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_greater>
A predicate for the L</greater> attribute.
=head2 C<greater_or_equal>
C<greaterOrEqual>
This ordering relation for qualitative values indicates that the subject is
greater than or equal to the object.
A greater_or_equal should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_greater_or_equal>
A predicate for the L</greater_or_equal> attribute.
=head2 C<lesser>
This ordering relation for qualitative values indicates that the subject is
lesser than the object.
A lesser should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_lesser>
A predicate for the L</lesser> attribute.
=head2 C<lesser_or_equal>
C<lesserOrEqual>
This ordering relation for qualitative values indicates that the subject is
lesser than or equal to the object.
A lesser_or_equal should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_lesser_or_equal>
A predicate for the L</lesser_or_equal> attribute.
=head2 C<non_equal>
C<nonEqual>
This ordering relation for qualitative values indicates that the subject is
not equal to the object.
A non_equal should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=back
=head2 C<_has_non_equal>
A predicate for the L</non_equal> attribute.
=head2 C<value_reference>
C<valueReference>
A secondary value that provides additional information on the original
value, e.g. a reference temperature or a type of measurement.
A value_reference should be one of the following types:
=over
=item C<InstanceOf['SemanticWeb::Schema::DefinedTerm']>
=item C<InstanceOf['SemanticWeb::Schema::Enumeration']>
=item C<InstanceOf['SemanticWeb::Schema::MeasurementTypeEnumeration']>
=item C<InstanceOf['SemanticWeb::Schema::PropertyValue']>
=item C<InstanceOf['SemanticWeb::Schema::QualitativeValue']>
=item C<InstanceOf['SemanticWeb::Schema::QuantitativeValue']>
=item C<InstanceOf['SemanticWeb::Schema::StructuredValue']>
=item C<Str>
=back
=head2 C<_has_value_reference>
A predicate for the L</value_reference> attribute.
=head1 SEE ALSO
L<SemanticWeb::Schema::Enumeration>
=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
L<https://github.com/robrwo/SemanticWeb-Schema/issues>
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