MooseX::Semantic::Role::Resource - Handle Moose objects as RDF resources
package My::Model::Person; with qw(MooseX::Semantic::Role::Resource); 1; package main; my $p = My::Model::Person->new( rdf_about => 'http://someone.org/#me' );
rdf_about
The URI of the resource this object represents. When not specified, this defaults to a random urn:UUID URI.
is_blank
Delegation to RDF::Trine::Node. Returns a true value if the rdf_about node is a blank node.
RDF::Trine::Node
is_resource
Delegation to RDF::Trine::Node. Returns a true value if the rdf_about node is a resource node.
is_auto_generated
Returns true value if the 'rdf_about' attribute was aut-generated, false if it has been explicitly set (at constructor time or using the 'rdf_about' accessor)
Konstantin Baierer (<kba@cpan.org>)
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install MooseX::Semantic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Semantic
CPAN shell
perl -MCPAN -e shell install MooseX::Semantic
For more information on module installation, please visit the detailed CPAN module installation guide.