NAME
MooseX::Semantic::Role::WithRdfType - Role that for assigning a RDF type to a class
SYNOPSIS
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;
DESCRIPTION
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.
METHODS
rdf_type
Class Attribute that stores one or more rdf:type URIs. The URIs are stored as an array of RDF::Trine::Resources and can be coerced from strings, URI objects and arrays thereof.
AUTHOR
Konstantin Baierer (<kba@cpan.org>)
SEE ALSO
LICENCE AND COPYRIGHT
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.