NAME
RDF::Server::Role::Model - triple store role
SYNOPSIS
package My::TripleStore;
use Moose;
with 'RDF::Server::Role::Model';
has store => (
   is => 'rw',
   isa => 'RDF::Core::Model',
   default => sub {
       new RDF::Core::Model( Storage => new RDF::Core::Storage::Memory )
   }
);
sub has_triple { }
sub resource { }
sub resources { }
...
DESCRIPTION
This role defines the interface expected by the RDF::Server framework when working with a triple store. RDF::Server comes with several built for current RDF storage modules. See RDF::Server::Model.
METHODS
- resource ($namespace, $id) : Resource
 - resources ($namespace) : Iterator
 - resource_exists ($namespace, $id) : Bool
 - add_triple ($s, $p, $o) : Bool
 - has_triple ($s, $p, $o) : Bool
 - 
Returns true if the indicated triple is present in the triple store. Any of the parameters may be array references to two-element arrays of the form
[ $namespace, $localvalue ]. 
AUTHOR
James Smith, <jsmith@cpan.org>
LICENSE
Copyright (c) 2008 Texas A&M University.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.