MooseX::Semantic::Role::Graph - Role for Moose objects that represent named graphs
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') );
The model this graph represents
More DWIMmy version of RDF::Trine::Model->add_statmeent
WARNING: Don't use this
To install MooseX::Semantic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Semantic
CPAN shell
perl -MCPAN -e shell install MooseX::Semantic
For more information on module installation, please visit the detailed CPAN module installation guide.