oracular (3) RDF::Trine::Model::Dataset.3pm.gz

Provided by: librdf-trine-perl_1.019-4_all bug

NAME

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

VERSION

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

STATUS

       This module's API and functionality should be considered unstable.  In the future, this module may change
       in backwards-incompatible ways, or be removed entirely. If you need functionality that this module
       provides, please get in touch <http://www.perlrdf.org/>.

METHODS

       Beyond the methods documented below, this class inherits methods from the RDF::Trine::Model class.

       "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.

       "supports ( [ $feature ] )"
           If $feature is specified, returns true if the feature is supported by the underlying store, false
           otherwise. If $feature is not specified, returns a list of supported features.

       "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_sparql ( $sparql )"
           Returns a stream object of all bindings matching the specified graph pattern.

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

       "model"
           Returns the underlying model object.

BUGS

       Please report any bugs or feature requests to through the GitHub web interface at
       <https://github.com/kasei/perlrdf/issues>.

AUTHOR

       Gregory Todd Williams  "<gwilliams@cpan.org>"

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