p5-moosex-semantic / t / role_withrdftype.t

use Test::More;
use Test::Moose;
# use Devel::PartialDump qw(warn);
use MooseX::Semantic::Test::Person;
use Data::Dumper;

# warn Dumper [ MooseX::Semantic::Test::Person->meta->get_all_class_attributes ];
is(MooseX::Semantic::Test::Person->get_rdf_type(0)->uri, 'http://xmlns.com/foaf/0.1/Person', 
    'rdf_type of MooseX::Semantic::Test::Person is "foaf:Person"');
# warn Dumper(
    # MooseX::Semantic::Test::Person->rdf_type
# );
# {
#     package My::Test::Model;
#     use Moose;
#     with (
#         'MooseX::Semantic::Role::WithRdfType' => {
#             types => ['abc'],
#         },
#     );
#     1;
# }

done_testing;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.