=head1 NAME

Attean::API::Literal - Role representing RDF Literal terms

=head1 VERSION

This document describes Attean::API::Literal version 0.030


  use v5.14;
  use Attean;


This is a Moo role that Literal RDF terms consume.

=head1 ROLES

This role consumes the L<Attean::API::Term> and L<Attean::API::BlankOrIRI> roles.


The following attributes exist:

=over 4

=item C<< language >>

A language tag string.

=item C<< datatype >>

An L<Attean::API::IRI> datatype.


=head1 METHODS

This role provides default implementations of the following methods:

=over 4

=item C<< ebv >>

Returns the boolean value of this term.

=item C<< compare( $literal ) >>

Returns -1, 0, or 1 if C<< $literal >> is less than, equal to, or greater than
the referent based on SPARQL sorting order.


=head1 BUGS

Please report any bugs or feature requests to through the GitHub web interface
at L<https://github.com/kasei/attean/issues>.

=head1 SEE ALSO

=head1 AUTHOR

Gregory Todd Williams  C<< <gwilliams@cpan.org> >>


Copyright (c) 2014--2020 Gregory Todd Williams.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.