logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

Bugs

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

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.

Name

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

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

Version

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

See Also