Attean...iteral(3pm)

πŸ’… NAME πŸ’…

okay so bestie, welcome to Attean::API::Literal β€” it's a role (not a class, a role, iykyk) that represents RDF Literal terms. That's the whole name, that's the whole vibe. This page lives in the perl manual, section 3pm, and the manual calls it Attean...iteral(3pm) because apparently even manpage headers get truncated for the aesthetic. ✨


πŸŽ€ VERSION πŸŽ€

This document describes Attean::API::Literal version 0.035. That's the exact number, no rounding, no vibes-based estimating. 🫢


🌸 SYNOPSIS 🌸

like, the entire usage demo is literally just this:

use v5.14;
use Attean;

that's it. that's the synopsis. minimal queen behavior πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

This is a Moo role that Literal RDF terms consume. So if you're an RDF literal out here in the world, this role is the little personality pack you take on. no cap, that's the entire description in the original and we're not gonna pretend there's more. πŸ’€


🌈 ROLES 🌈

okay so this role is itself a consumer, not just a provider β€” it consumes these two roles:

  • Attean::API::Term
  • Attean::API::BlankOrIRI

the way that a role can eat other roles and still be iconic 😭


πŸ’– ATTRIBUTES πŸ’–

The following attributes exist (yes, only these two, and yes, they're both important):

  • language β€” a language tag string. like a little string carrying the language tag, bestie. πŸ“
  • datatype β€” an Attean::API::IRI datatype. note: it's an IRI object, not just any old string. respect the type. πŸ’…

⭐ METHODS ⭐

This role provides default implementations of the following methods β€” default implementations, as in you get these for free, no cap:

  • ebv β€” returns the boolean value of this term. that's the whole deal. short king of a method. πŸ”₯
  • compare( $literal ) β€” Returns -1, 0, or 1 if $literal is less than, equal to, or greater than the referent, based on SPARQL sorting order. three numbers, one ordering, zero ambiguity. slay. ✨
careful with compare: those -1 / 0 / 1 values are for SPARQL sorting order specifically β€” that's not just alphabetically vibing, that's the actual spec order. 😌

πŸ› BUGS πŸ›

Please report any bugs or feature requests through the GitHub web interface at:

https://github.com/kasei/attean/issues

drop your bugs there, the maintainers will handle it 🫢


🧚 SEE ALSO 🧚

so this section exists in the original... and it's empty. zero entries. a beautiful void. no cross-references listed, and I'm not about to make any up because that would be lying and lying is not the vibe. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams "<gwilliams@cpan.org>" β€” the main character who wrote this. give him his flowers πŸ’


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. periodt.


🌟 and that's the page, bestie! this one came to you from the perl manual β€” perl v5.40.0, dated 2025-01-26 β€” and it's called Attean...iteral(3pm) on the tin. go forth and literal responsibly. πŸŽ€βœ¨πŸ’–
πŸ“¦ where this page comes from