
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_aboutThe URI of the resource this object represents. When not specified, this defaults to a random urn:UUID URI.

is_blankDelegation to RDF::Trine::Node. Returns a true value if the rdf_about node is a blank node.
is_resourceDelegation to RDF::Trine::Node. Returns a true value if the rdf_about node is a resource node.
is_auto_generatedReturns 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.