Types::Attean - Type constraints for dealing with Attean classes
TODO package IRI::Counter { use Moo; # or Moose use Types::Attean qw( AtteanIRI );
has iri => ( is => "ro", isa => AtteanIRI, required => 1, ); sub count_uses_in_document { ... } }
Types::Attean is a type constraint library suitable for use with Moo/Moose attributes, Kavorka sub signatures, and so forth. It builds on Types::URI.
AtteanIri
A class type for Attean::IRI.
Can coerce from URI, IRI, URI::Namespace, RDF::Trine::Node::Resource, RDF::Trine::Namespace, XML::Namespace and strings.
Additionally, a ScalarRef can be coerced into a data URI.
ScalarRef
data
This library can also coerce from Attean::IRI to the Namespace type defined in URI::Namespace.
Attean::IRI
Namespace
To install Attean, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Attean
CPAN shell
perl -MCPAN -e shell install Attean
For more information on module installation, please visit the detailed CPAN module installation guide.