Web::ID::Util(3pm)
π 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 anRDF::Trine::Modelu($curie)β expands a CURIE, returning anRDF::Trine::Node::Resourceuu($curie)β as peru($curie), but returns stringu()β called with no CURIE, returns theRDF::Trine::NamespaceMapused to map CURIEs to URIsmake_bigint_from_node($node, %options)β makes aMath::BigIntobject from a numericRDF::Trine::Node::Literal. Supports most datatypes you'd care about, including hexadecimally ones. π₯- Supported options are
fallbackwhich provides a fallback node which will be used when$nodeis non-literal; andfallback_typeeither'dec'or'hex'which is used when parsing the fallback node, or if$nodeis a plain literal. (The actual datatype of the fallback node is ignored for hysterical raisins.)
- Supported options are
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>.
π COPYRIGHT AND LICENCE π
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
- debian bookworm: libweb-id-perl 1.927-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libweb-id-perl 1.927-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libweb-id-perl 1.927-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libweb-id-perl 1.927-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms