Web::ID::Util(3pm)

πŸ“¦
version 1.927 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Web::ID::Util β€” the utility drawer πŸ’–

okay so bestie, this is Web::ID::Util, part of the User Contributed Perl Documentation collection, and it's literally just the little grab-bag of helpers that make Web-ID go. pull up a chair 🫢


✨ NAME ✨

Web::ID::Util β€” utility functions used in Web-ID


🌸 DESCRIPTION 🌸

These are utility functions which I found useful building Web-ID. Many of them may also be useful creating the kind of apps that Web-ID is used to authenticate for.

Here is a very brief summary. By default, they're all exported to your namespace. (This module uses Exporter::Tiny so you get pretty good control over what gets exported.) πŸ‘‘

  • true β€” constant for true ✨
  • false β€” constant for false πŸ’€
  • read_only β€” constant for string 'ro' (nice for Moose/Mouse) πŸŽ€
  • read_write β€” constant for string 'rw' (nice for Moose/Mouse) πŸŽ€
  • get_trine_model($url) β€” fetches a URL and parses RDF into an RDF::Trine::Model
  • u($curie) β€” expands a CURIE, returning an RDF::Trine::Node::Resource
  • uu($curie) β€” as per u($curie), but returns string
  • u() β€” called with no CURIE, returns the RDF::Trine::NamespaceMap used to map CURIEs to URIs
  • make_bigint_from_node($node, %options) β€” makes a Math::BigInt object from a numeric RDF::Trine::Node::Literal. Supports most datatypes you'd care about, including hexadecimally ones. πŸ”₯
    • Supported options are fallback which provides a fallback node which will be used when $node is non-literal; and fallback_type either 'dec' or 'hex' which is used when parsing the fallback node, or if $node is a plain literal. (The actual datatype of the fallback node is ignored for hysterical raisins.)

Additionally, any function from List::MoreUtils can be exported by request, except true and false as they conflict with the constants above. πŸ™ˆ

use Web::ID::Utils qw(:default uniq);

πŸ’… BUGS πŸ’…

I don't wanna hear about them unless they cause knock-on bugs for Web-ID itself.


πŸ¦‹ SEE ALSO πŸ¦‹

Exporter::Tiny, Web::ID, Acme::24.


πŸ‘‘ AUTHOR πŸ‘‘

Toby Inkster <tobyink@cpan.org>.


This software is copyright (c) 2012 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


🚨 DISCLAIMER OF WARRANTIES 🚨

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

and that's the whole thing bestie πŸ₯° this page ships as part of perl v5.32.1, dated 2021-09-11 β€” go forth and build your cute little Web-ID apps, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from