1Types::Attean(3)      User Contributed Perl Documentation     Types::Attean(3)
2
3
4

NAME

6       Types::Attean - Type constraints for dealing with Attean classes
7

SYNOPSIS

9       TODO
10         package IRI::Counter {
11           use Moo;  # or Moose
12           use Types::Attean qw( AtteanIRI );
13
14           has iri => (
15             is => "ro",
16             isa => AtteanIRI,
17             required => 1,
18           );
19
20           sub count_uses_in_document { ... }
21         }
22

DESCRIPTION

24       Types::Attean is a type constraint library suitable for use with
25       Moo/Moose attributes, Kavorka sub signatures, and so forth. It builds
26       on Types::URI.
27

TYPES

29       "AtteanIri"
30           A class type for Attean::IRI.
31
32           Can coerce from URI, IRI, URI::Namespace,
33           RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace
34           and strings.
35
36           Additionally, a "ScalarRef" can be coerced into a "data" URI.
37

OTHER COERCIONS

39       This library can also coerce from "Attean::IRI" to the "Namespace" type
40       defined in URI::Namespace.
41
42
43
44perl v5.36.0                      2022-10-03                  Types::Attean(3)
Impressum