DOKK / manpages / debian 12 / libattean-perl / Attean::API::Literal.3pm.en
Attean::API::Literal(3pm) User Contributed Perl Documentation Attean::API::Literal(3pm)

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

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

  use v5.14;
  use Attean;

This is a Moo role that Literal RDF terms consume.

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

The following attributes exist:

"language"
A language tag string.
"datatype"
An Attean::API::IRI datatype.

This role provides default implementations of the following methods:

"ebv"
Returns the boolean value of this term.
"compare( $literal )"
Returns -1, 0, or 1 if $literal is less than, equal to, or greater than the referent based on SPARQL sorting order.

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

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

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

2022-10-06 perl v5.34.0