The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MooseX::Semantic::Role::Graph - Role for Moose objects that represent named graphs

SYNOPSIS

    package GraphPackage;
    use Moose;
    with qw( MooseX::Semantic::Role::Graph MooseX::Semantic::Role::RdfExport );
    has 'timestamp' => (
        traits => ['Semantic'],
        is => 'rw',
        default => '1234',
        uri => 'dc:date',
    );
    package main;
    my $g = GraphPackage->new;
    $g->rdf_graph->add_statement(statement iri('A'), iri('B'), iri('C') );

ATTRIBUTES

rdf_graph

The model this graph represents

METHODS

From RDF::Trine::Model

add_statement
get_statements

add_statement_smartly

More DWIMmy version of RDF::Trine::Model->add_statmeent

WARNING: Don't use this