use utf8;
package SemanticWeb::Schema::Recipe;
# ABSTRACT: A recipe
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::HowTo /;
use MooX::JSON_LD 'Recipe';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespace::autoclean;
our $VERSION = 'v21.0.0';
has cook_time => (
is => 'rw',
predicate => '_has_cook_time',
json_ld => 'cookTime',
);
has cooking_method => (
is => 'rw',
predicate => '_has_cooking_method',
json_ld => 'cookingMethod',
);
has ingredients => (
is => 'rw',
predicate => '_has_ingredients',
json_ld => 'ingredients',
);
has nutrition => (
is => 'rw',
predicate => '_has_nutrition',
json_ld => 'nutrition',
);
has recipe_category => (
is => 'rw',
predicate => '_has_recipe_category',
json_ld => 'recipeCategory',
);
has recipe_cuisine => (
is => 'rw',
predicate => '_has_recipe_cuisine',
json_ld => 'recipeCuisine',
);
has recipe_ingredient => (
is => 'rw',
predicate => '_has_recipe_ingredient',
json_ld => 'recipeIngredient',
);
has recipe_instructions => (
is => 'rw',
predicate => '_has_recipe_instructions',
json_ld => 'recipeInstructions',
);
has recipe_yield => (
is => 'rw',
predicate => '_has_recipe_yield',
json_ld => 'recipeYield',
);
has suitable_for_diet => (
is => 'rw',
predicate => '_has_suitable_for_diet',
json_ld => 'suitableForDiet',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema::Recipe - A recipe
=head1 VERSION
version v21.0.0
=head1 DESCRIPTION
A recipe. For dietary restrictions covered by the recipe, a few common restrictions are enumerated via [[suitableForDiet]]. The [[keywords]] property can also be used to add more detail.
=head1 ATTRIBUTES
=head2 C
C
The time it takes to actually cook the dish, in [ISO 8601 duration
format](http://en.wikipedia.org/wiki/ISO_8601).
A cook_time should be one of the following types:
=over
=item C
=back
=head2 C<_has_cook_time>
A predicate for the L attribute.
=head2 C
C
The method of cooking, such as Frying, Steaming, ...
A cooking_method should be one of the following types:
=over
=item C
=back
=head2 C<_has_cooking_method>
A predicate for the L attribute.
=head2 C
A single ingredient used in the recipe, e.g. sugar, flour or garlic.
A ingredients should be one of the following types:
=over
=item C
=back
=head2 C<_has_ingredients>
A predicate for the L attribute.
=head2 C
Nutrition information about the recipe or menu item.
A nutrition should be one of the following types:
=over
=item C
=back
=head2 C<_has_nutrition>
A predicate for the L attribute.
=head2 C
C
The category of the recipe—for example, appetizer, entree, etc.
A recipe_category should be one of the following types:
=over
=item C
=back
=head2 C<_has_recipe_category>
A predicate for the L attribute.
=head2 C
C
The cuisine of the recipe (for example, French or Ethiopian).
A recipe_cuisine should be one of the following types:
=over
=item C
=back
=head2 C<_has_recipe_cuisine>
A predicate for the L attribute.
=head2 C
C
A single ingredient used in the recipe, e.g. sugar, flour or garlic.
A recipe_ingredient should be one of the following types:
=over
=item C
=back
=head2 C<_has_recipe_ingredient>
A predicate for the L attribute.
=head2 C
C
A step in making the recipe, in the form of a single item (document, video,
etc.) or an ordered list with HowToStep and/or HowToSection items.
A recipe_instructions should be one of the following types:
=over
=item C
=item C
=item C
=back
=head2 C<_has_recipe_instructions>
A predicate for the L attribute.
=head2 C
C
The quantity produced by the recipe (for example, number of people served,
number of servings, etc).
A recipe_yield should be one of the following types:
=over
=item C
=item C
=back
=head2 C<_has_recipe_yield>
A predicate for the L attribute.
=head2 C
C
Indicates a dietary restriction or guideline for which this recipe or menu
item is suitable, e.g. diabetic, halal etc.
A suitable_for_diet should be one of the following types:
=over
=item C
=back
=head2 C<_has_suitable_for_diet>
A predicate for the L attribute.
=head1 SEE ALSO
L
=head1 SOURCE
The development version is on github at L
and may be cloned from L
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website
L
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
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2018-2022 by Robert Rothenberg.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut