SemanticWeb-Schema
view release on metacpan or search on metacpan
lib/SemanticWeb/Schema.pm view on Meta::CPAN
use utf8;
package SemanticWeb::Schema;
# ABSTRACT: Moo classes for http://schema.org/ classes
use v5.10.1;
use Moo;
use List::Util qw/ first /;
use MooX::JSON_LD 'base';
use Ref::Util qw/ is_blessed_ref is_plain_arrayref /;
use Types::Standard qw/ Str /;
use namespace::autoclean;
our $VERSION = 'v9.0.0';
# RECOMMEND PREREQ: aliased
# RECOMMEND PREREQ: Class::XSAccessor 1.18
# RECOMMEND PREREQ: Ref::Util::XS
# RECOMMEND PREREQ: Type::Tiny::XS
has id => (
is => 'rw',
isa => Str,
predicate => 1,
json_ld => '@id',
);
around _build_context => sub { return 'http://schema.org/' };
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
SemanticWeb::Schema - Moo classes for http://schema.org/ classes
=head1 VERSION
version v9.0.0
The version number of this distribution is based on the corresponding
version of schema classes.
=head1 SYNOPSIS
use aliased 'SemanticWeb::Schema::Person' => 'Person';
my $person = Person->new(
name => 'James Clerk Maxwell',
birth_date => '1831-06-13',
birth_place => 'Edinburgh',
);
print $person->json_ld;
=head1 DESCRIPTION
This distribution contains Perl classes for L<https://schema.org>
semantic markup. These can be used to generate JSON-LD
to embed in websites.
This is a base class for the C<SemanticWeb::Schema> classes, which
were generated automatically from the following sources:
=over
=item L<https://schema.org/version/9.0/schemaorg-all-http.rdf>
=back
( run in 2.284 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )