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

NAME

RDF::Trine::Model::Dataset - Model for SPARQL datasets

VERSION

This document describes RDF::Trine::Model::Dataset version 0.130

METHODS

new ( $model )

Returns a new dataset-model over the supplied model.

push_dataset ( default => \@graphs, named => \@graphs )

Creates a new dataset view over the underlying model.

pop_dataset

Removes the last pushed dataset view.

temporary_model

Returns a new temporary (non-persistent) model.

add_hashref ( $hashref [, $context] )

Add triples represented in an RDF/JSON-like manner to the model.

size

Returns the number of statements in the model.

count_statements ( $subject, $predicate, $object )

Returns a count of all the statements matching the specified subject, predicate and objects. Any of the arguments may be undef to match any value.

add_statement ( $statement [, $context] )

Adds the specified $statement to the rdf store.

remove_statement ( $statement [, $context])

Removes the specified $statement from the rdf store.

remove_statements ( $subject, $predicate, $object [, $context] )

Removes all statements matching the supplied $statement pattern from the rdf store.

get_statements ($subject, $predicate, $object [, $context] )

Returns an iterator of all statements matching the specified subject, predicate and objects from the rdf store. Any of the arguments may be undef to match any value.

If three or fewer arguments are given, the statements returned will be matched based on triple semantics (the graph union of triples from all the named graphs). If four arguments are given (even if $context is undef), statements will be matched based on quad semantics (the union of all quads in the underlying store).

get_pattern ( $bgp [, $context] [, %args ] )

Returns a stream object of all bindings matching the specified graph pattern.

get_contexts

Returns an iterator containing the nodes representing the named graphs in the model.

model

Returns the underlying model object.

AUTHOR

Gregory Todd Williams <gwilliams@cpan.org>

COPYRIGHT

Copyright (c) 2006-2010 Gregory Todd Williams. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.