manticWeb::ClassGenerator;
use v5.10;
use Moo;
use Carp;
use Const::Fast;
use HTML::Strip;
use JSON::MaybeXS;
use List::Util 1.33 qw/ any pairgrep uniqstr /;
use LWP::UserAgent;
use Markdown::Pod;
default => 't',
);
has json => (
is => 'lazy',
isa => InstanceOf [qw/ Cpanel::JSON::XS JSON JSON::PP JSON::XS /],
builder => sub {
return JSON->new->canonical->utf8->sp
or constructing the class as a JSON
# file. We can use this for debugging as well as tests.
my $test = path( $self->test_dir, 'data/classes', $filename . '.json' );
$test->parent->mkpath;
organization, e
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Intangible /;
use MooX::JSON_LD 'Permit';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespa
predicate => '_has_issued_by',
json_ld => 'issuedBy',
);
has issued_through => (
is => 'rw',
predicate => '_has_issued_through',
json_ld => 'issuedThrough',
);
has p
edicate => '_has_permit_audience',
json_ld => 'permitAudience',
);
has valid_for => (
is => 'rw',
predicate => '_has_valid_for',
json_ld => 'validFor',
);
has valid_fr
for example
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::StructuredValue /;
use MooX::JSON_LD 'ContactPoint';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use n
cate => '_has_area_served',
json_ld => 'areaServed',
);
has available_language => (
is => 'rw',
predicate => '_has_available_language',
json_ld => 'availableLanguage',
);
dicate => '_has_contact_option',
json_ld => 'contactOption',
);
has contact_type => (
is => 'rw',
predicate => '_has_contact_type',
json_ld => 'contactType',
);
has em
RACT: A movie.
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::CreativeWork /;
use MooX::JSON_LD 'Movie';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespac
=> 'rw',
predicate => '_has_actor',
json_ld => 'actor',
);
has actors => (
is => 'rw',
predicate => '_has_actors',
json_ld => 'actors',
);
has country_of_origin
dicate => '_has_country_of_origin',
json_ld => 'countryOfOrigin',
);
has director => (
is => 'rw',
predicate => '_has_director',
json_ld => 'director',
);
has director
: Wikipedia
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::LodgingBusiness /;
use MooX::JSON_LD 'Hotel';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespac
cal condition
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::MedicalEntity /;
use MooX::JSON_LD 'MedicalCause';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use n
ION = 'v23.0.0';
has cause_of => (
is => 'rw',
predicate => '_has_cause_of',
json_ld => 'causeOf',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema::
vice: Attorney
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::LegalService /;
use MooX::JSON_LD 'Attorney';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use names
rt—for example
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Intangible /;
use MooX::JSON_LD 'ItemList';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use names
=> '_has_item_list_element',
json_ld => 'itemListElement',
);
has item_list_order => (
is => 'rw',
predicate => '_has_item_list_order',
json_ld => 'itemListOrder',
);
has number_of_items => (
is => 'rw',
predicate => '_has_number_of_items',
json_ld => 'numberOfItems',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema:
or passengers.
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Organization /;
use MooX::JSON_LD 'Airline';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namesp
edicate => '_has_boarding_policy',
json_ld => 'boardingPolicy',
);
has iata_code => (
is => 'rw',
predicate => '_has_iata_code',
json_ld => 'iataCode',
);
1;
__END_
laying field.
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::LocalBusiness /;
use MooX::JSON_LD 'SportsActivityLocation';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util:
well-described ways
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Product /;
use MooX::JSON_LD 'ProductGroup';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use n
dicate => '_has_has_variant',
json_ld => 'hasVariant',
);
has product_group_id => (
is => 'rw',
predicate => '_has_product_group_id',
json_ld => 'productGroupID',
);
h
as varies_by => (
is => 'rw',
predicate => '_has_varies_by',
json_ld => 'variesBy',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema::ProductGroup - A
nteracting with pages
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Event /;
use MooX::JSON_LD 'UserInteraction';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
us
(ownership).
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::TransferAction /;
use MooX::JSON_LD 'ReturnAction';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use n
N = 'v23.0.0';
has recipient => (
is => 'rw',
predicate => '_has_recipient',
json_ld => 'recipient',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema
information
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::StructuredValue /;
use MooX::JSON_LD 'DeliveryTimeSettings';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::X
'_has_delivery_time',
json_ld => 'deliveryTime',
);
has is_unlabelled_fallback => (
is => 'rw',
predicate => '_has_is_unlabelled_fallback',
json_ld => 'isUnlabelledFallb
_shipping_destination',
json_ld => 'shippingDestination',
);
has transit_time_label => (
is => 'rw',
predicate => '_has_transit_time_label',
json_ld => 'transitTimeLabel'
n body.
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::AnatomicalStructure /;
use MooX::JSON_LD 'Bone';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespace
n a structure
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Accommodation /;
use MooX::JSON_LD 'Room';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use namespace
r diagnose
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::MedicalProcedure /;
use MooX::JSON_LD 'SurgicalProcedure';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
a later date
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::TransferAction /;
use MooX::JSON_LD 'LendAction';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use nam
ION = 'v23.0.0';
has borrower => (
is => 'rw',
predicate => '_has_borrower',
json_ld => 'borrower',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema:
onetary compensation
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::Action /;
use MooX::JSON_LD 'TradeAction';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use na
w',
predicate => '_has_price',
json_ld => 'price',
);
has price_currency => (
is => 'rw',
predicate => '_has_price_currency',
json_ld => 'priceCurrency',
);
has pr
ice_specification => (
is => 'rw',
predicate => '_has_price_specification',
json_ld => 'priceSpecification',
);
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::
with pages
use v5.14;
use Moo;
extends qw/ SemanticWeb::Schema::UserInteraction /;
use MooX::JSON_LD 'UserPageVisits';
use Ref::Util qw/ is_plain_hashref /;
# RECOMMEND PREREQ: Ref::Util::XS
use