1RDF::Trine::Model::DataUsseetr(3C)ontributed Perl DocumeRnDtFa:t:iTornine::Model::Dataset(3)
2
3
4
6 RDF::Trine::Model::Dataset - Model for SPARQL datasets
7
9 This document describes RDF::Trine::Model::Dataset version 1.019
10
12 This module's API and functionality should be considered unstable. In
13 the future, this module may change in backwards-incompatible ways, or
14 be removed entirely. If you need functionality that this module
15 provides, please get in touch <http://www.perlrdf.org/>.
16
18 Beyond the methods documented below, this class inherits methods from
19 the RDF::Trine::Model class.
20
21 "new ( $model )"
22 Returns a new dataset-model over the supplied model.
23
24 "push_dataset ( default => \@graphs, named => \@graphs )"
25 Creates a new dataset view over the underlying model.
26
27 "pop_dataset"
28 Removes the last pushed dataset view.
29
30 "temporary_model"
31 Returns a new temporary (non-persistent) model.
32
33 "add_hashref ( $hashref [, $context] )"
34 Add triples represented in an RDF/JSON-like manner to the model.
35
36 "size"
37 Returns the number of statements in the model.
38
39 "supports ( [ $feature ] )"
40 If $feature is specified, returns true if the feature is supported
41 by the underlying store, false otherwise. If $feature is not
42 specified, returns a list of supported features.
43
44 "count_statements ( $subject, $predicate, $object )"
45 Returns a count of all the statements matching the specified
46 subject, predicate and objects. Any of the arguments may be undef
47 to match any value.
48
49 "add_statement ( $statement [, $context] )"
50 Adds the specified $statement to the rdf store.
51
52 "remove_statement ( $statement [, $context])"
53 Removes the specified $statement from the rdf store.
54
55 "remove_statements ( $subject, $predicate, $object [, $context] )"
56 Removes all statements matching the supplied $statement pattern
57 from the rdf store.
58
59 "get_statements ($subject, $predicate, $object [, $context] )"
60 Returns an iterator of all statements matching the specified
61 subject, predicate and objects from the rdf store. Any of the
62 arguments may be undef to match any value.
63
64 If three or fewer arguments are given, the statements returned will
65 be matched based on triple semantics (the graph union of triples
66 from all the named graphs). If four arguments are given (even if
67 $context is undef), statements will be matched based on quad
68 semantics (the union of all quads in the underlying store).
69
70 "get_pattern ( $bgp [, $context] [, %args ] )"
71 Returns a stream object of all bindings matching the specified
72 graph pattern.
73
74 "get_sparql ( $sparql )"
75 Returns a stream object of all bindings matching the specified
76 graph pattern.
77
78 "get_graphs"
79 "get_contexts"
80 Returns an iterator containing the nodes representing the named
81 graphs in the model.
82
83 "model"
84 Returns the underlying model object.
85
87 Please report any bugs or feature requests to through the GitHub web
88 interface at <https://github.com/kasei/perlrdf/issues>.
89
91 Gregory Todd Williams "<gwilliams@cpan.org>"
92
94 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
95 software; you can redistribute it and/or modify it under the same terms
96 as Perl itself.
97
98
99
100perl v5.36.0 2023-01-20 RDF::Trine::Model::Dataset(3)