1Web::ID::Util(3)      User Contributed Perl Documentation     Web::ID::Util(3)
2
3
4

NAME

6       Web::ID::Util - utility functions used in Web-ID
7

DESCRIPTION

9       These are utility functions which I found useful building Web-ID.  Many
10       of them may also be useful creating the kind of apps that Web-ID is
11       used to authenticate for.
12
13       Here is a very brief summary. By default, they're all exported to your
14       namespace. (This module uses Exporter::Tiny so you get pretty good
15       control over what gets exported.)
16
17       "true" - constant for true
18       "false" - constant for false
19       "read_only" - constant for string 'ro' (nice for Moose/Mouse)
20       "read_write" - constant for string 'rw' (nice for Moose/Mouse)
21       "get_trine_model($url)" - fetches a URL and parses RDF into an
22       RDF::Trine::Model
23       "u($curie)" - expands a CURIE, returning an RDF::Trine::Node::Resource
24       "uu($curie)" - as per "u($curie)", but returns string
25       "u()" - called with no CURIE, returns the RDF::Trine::NamespaceMap used
26       to map CURIEs to URIs
27       "make_bigint_from_node($node, %options)" - makes a Math::BigInt object
28       from a numeric RDF::Trine::Node::Literal. Supports most datatypes you'd
29       care about, including hexadecimally ones.
30           Supported options are "fallback" which provides a fallback node
31           which will be used when $node is non-literal; and "fallback_type"
32           either 'dec' or 'hex' which is used when parsing the fallback node,
33           or if $node is a plain literal. (The actual datatype of the
34           fallback node is ignored for hysterical raisins.)
35
36       Additionally, any function from List::MoreUtils can be exported by
37       request, except "true" and "false" as they conflict with the constants
38       above.
39
40         use Web::ID::Utils qw(:default uniq);
41

BUGS

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

SEE ALSO

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

AUTHOR

50       Toby Inkster <tobyink@cpan.org>.
51
53       This software is copyright (c) 2012 by Toby Inkster.
54
55       This is free software; you can redistribute it and/or modify it under
56       the same terms as the Perl 5 programming language system itself.
57

DISCLAIMER OF WARRANTIES

59       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
60       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
61       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
62
63
64
65perl v5.32.0                      2020-07-28                  Web::ID::Util(3)
Impressum