1RDF::Trine::Store::MemoUrsye(r3)Contributed Perl DocumenRtDaFt:i:oTnrine::Store::Memory(3)
2
3
4

NAME

6       RDF::Trine::Store::Memory - Simple in-memory RDF store
7

VERSION

9       This document describes RDF::Trine::Store::Memory version 1.019
10

SYNOPSIS

12        use RDF::Trine::Store::Memory;
13

DESCRIPTION

15       RDF::Trine::Store::Memory provides an in-memory triple-store.
16

METHODS

18       Beyond the methods documented below, this class inherits methods from
19       the RDF::Trine::Store class.
20
21       "new ()"
22           Returns a new memory-backed storage object.
23
24       "new_with_config ( $hashref )"
25           Returns a new storage object configured with a hashref with certain
26           keys as arguments.
27
28           The "storetype" key must be "Memory" for this backend.
29
30           This module also supports initializing the store from a file or
31           URL, in which case, a "sources" key may be used. This holds an
32           arrayref of hashrefs.  To load a file, you may give the file name
33           with a "file" key in the hashref, and to load a URL, use "url". See
34           example below. Furthermore, the following keys may be used:
35
36           "syntax"
37               The syntax of the parsed file or URL.
38
39           "base_uri"
40               The base URI to be used for a parsed file.
41
42           "graph" NOT IMPLEMENTED
43               Use this URI as a graph name for the contents of the file or
44               URL.
45
46           The following example initializes a Memory store based on a local
47           file and a remote URL:
48
49             my $store = RDF::Trine::Store->new_with_config(
50                           {
51                             storetype => 'Memory',
52                             sources => [
53                               {
54                                 file => 'test-23.ttl',
55                                 syntax => 'turtle',
56                               },
57                               {
58                                 url => 'http://www.kjetil.kjernsmo.net/foaf',
59                                 syntax => 'rdfxml',
60                                 graph => 'http://example.org/graph/remote-users'
61                               }
62                             ]
63                           });
64
65       "temporary_store"
66           Returns a temporary (empty) triple store.
67
68       "get_statements ( $subject, $predicate, $object [, $context] )"
69           Returns a stream object of all statements matching the specified
70           subject, predicate and objects. Any of the arguments may be undef
71           to match any value.
72
73       "get_contexts"
74           Returns an RDF::Trine::Iterator over the RDF::Trine::Node objects
75           comprising the set of contexts of the stored quads.
76
77       "add_statement ( $statement [, $context] )"
78           Adds the specified $statement to the underlying model.
79
80       "remove_statement ( $statement [, $context])"
81           Removes the specified $statement from the underlying model.
82
83       "remove_statements ( $subject, $predicate, $object [, $context])"
84           Removes the specified $statement from the underlying model.
85
86       "count_statements ( $subject, $predicate, $object, $context )"
87           Returns a count of all the statements matching the specified
88           subject, predicate, object, and context. Any of the arguments may
89           be undef to match any value.
90
91       "etag"
92           If the store has the capability and knowledge to support caching,
93           returns a persistent token that will remain consistent as long as
94           the store's data doesn't change. This token is acceptable for use
95           as an HTTP ETag.
96
97       "size"
98           Returns the number of statements in the store.
99
100       "supports ( [ $feature ] )"
101           If $feature is specified, returns true if the feature is supported
102           by the store, false otherwise. If $feature is not specified,
103           returns a list of supported features.
104

BUGS

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

AUTHOR

110       Gregory Todd Williams  "<gwilliams@cpan.org>"
111
113       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
114       software; you can redistribute it and/or modify it under the same terms
115       as Perl itself.
116
117
118
119perl v5.32.1                      2021-01-27      RDF::Trine::Store::Memory(3)
Impressum