Attean::Literal(3pm)

πŸ’– Attean::Literal β€” RDF Literals πŸ’–

okay so bestie, welcome to Attean::Literal(3pm) from the User Contributed Perl Documentation squad 🫢. This is the whole page, vibes intact, facts intact. let's go πŸŽ€


✨ VERSION ✨

This document describes Attean::Literal version 0.035. periodt πŸ’…


🌸 SYNOPSIS 🌸

like, here's the whole flex in code form:

  use v5.14;
  use Attean;
  my $langterm = Attean::Literal->new(value => 'foo', language => 'en-US');
  $langterm->ntriples_string; # "foo"@en-US

  my $typeterm = Attean::Literal->new(value => '123', datatype => 'http://www.w3.org/2001/XMLSchema#integer');
  $langterm->ntriples_string; # "123"^^<http://www.w3.org/2001/XMLSchema#integer>

yep β€” that second # comment really does live on $langterm in the original and not $typeterm. no cap, I'm not touching it πŸ™ˆ (character for character, bestie, that's the rule 🧚)


πŸ¦‹ DESCRIPTION πŸ¦‹

Attean::Literal is literally the class that represents RDF literals. it conforms to the Attean::API::Literal role β€” that's its whole main character energy πŸ‘‘πŸ’œ


⭐ ATTRIBUTES ⭐

The following attributes exist β€” yes, these three, that's the list, slay:

  • "value" πŸ“
  • "language" πŸŽ€
  • "datatype" 🌈

(that's genuinely all the page says about them, so I'm not gonna invent lore, iykyk πŸ’€)


πŸ’… METHODS πŸ’…

  • "has_language" β€” returns true if the literal has a language tag, and false otherwise. vibe check on the language tag, basically ✨
  • "true" β€” the xsd:true term. πŸ’―
  • "false" β€” the xsd:false term. 🫢

😭 BUGS 😭

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues>. (and yes β€” "report any bugs or feature requests to through" β€” that stray to is in the original and I refuse to ghost it, it's iconic now πŸ’€πŸ¦‹)


πŸ”₯ SEE ALSO πŸ”₯

ngl bestie, this section is empty on the original page. not me leaving it exactly as-is πŸ™ˆ nothing to see here. πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams "<gwilliams@cpan.org>" β€” the legend, the icon 🌟


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. πŸ’–


and that's the tea πŸ“ β€” this was Attean::Literal(3pm), generated from perl v5.40.0 on 2025-01-26, so jot that down in ur notes app bestie πŸŽ€βœ¨ bye!! πŸ§šπŸ’œ

πŸ“¦ where this page comes from