logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       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.

Name

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

Other Coercions

       This library can also coerce from "Attean::IRI" to the "Namespace" type defined in URI::Namespace.

perl v5.40.0                                       2025-01-26                                 Types::Attean(3pm)

Synopsis

       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

       "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.

       "AtteanBlank"
           A role type for Attean::API::Blank.

       "AtteanLiteral"
           A role type for Attean::API::Literal.

       "AtteanSubject"
           A  role  type  for  a  term  that  can  be  used  as  a  subject  in  a   triple   or   quad   (i.e.,
           Attean::API::BlankOrIRI).

       "AtteanPredicate"
           A role type for a term that can be used as a predicate in a triple or quad (i.e., Attean::API::IRI).

       "AtteanObject"
           A role type for a term that can be used as an object in a triple or quad (i.e., Attean::API::Term).

       "AtteanGraph"
           A role type for a term that can be used as a graph in a quad (i.e., Attean::API::BlankOrIRI).

       "AtteanTriple"
           A role type for Attean::API::Triple.

       "AtteanQuad"
           A role type for Attean::API::Quad.

See Also