| RDF-Server documentation | view source | Contained in the RDF-Server distribution. |
RDF::Server::Role::Model - triple store role
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 { }
...
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.
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 ].
James Smith, <jsmith@cpan.org>
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.
| RDF-Server documentation | view source | Contained in the RDF-Server distribution. |