MooseX::Semantic::Role::WithRdfType - Role that for assigning a RDF type to a class
package My::Model::Person; use RDF::Trine::Namespace qw(foaf); with qw(MooseX::Semantic::Role::WithRdfType'); __PACKAGE__->rdf_type($foaf->Person); package main; print My::Model::Person->rdf_type;
A class that consumes this role has a class attribute
rdf_type that can be used in exporting objects of this class to or creating objects from RDF data.
Konstantin Baierer (<firstname.lastname@example.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.