konstantin baierer > MooseX-Semantic > MooseX::Semantic::Role::Graph

Download:
MooseX-Semantic-0.006.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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

syntax highlighting: