Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages

Manual Reference Pages  -  RDF::TRINE::MODEL::DATASET (3)

.ds Aq ’


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



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


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


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_contexts Returns an iterator containing the nodes representing the named graphs in the model.
model Returns the underlying model object.


Please report any bugs or feature requests to through the GitHub web interface at <>.


Gregory Todd Williams <>


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.
Search for    or go to Top of page |  Section 3 |  Main Index

perl v5.20.3 RDF::TRINE::MODEL::DATASET (3) 2015-05-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.