RDF::T...edland(3pm)
π RDF::Trine::Store::Redland β the tea β
okay so bestie, this is a page from the User Contributed Perl Documentation, and the module we're hyping up today is RDF::Trine::Store::Redland. Yes it's a mouthful. Yes it's iconic. Let's get into it π«Ά
β¨ NAME β¨
RDF::Trine::Store::Redland β a Redland-backed RDF store for RDF::Trine. literally it's the glow-up bridge between RDF::Trine and Redland. no cap π
πΈ VERSION πΈ
This doc describes RDF::Trine::Store::Redland version 1.019. slay.
π¦ SYNOPSIS π¦
use RDF::Trine::Store::Redland;
that's it. that's the whole vibe check. one line and you're in β¨
π DESCRIPTION π
RDF::Trine::Store::Redland gives you an RDF::Trine::Store interface to the Redland RDF store. so like, you get the Trine experience, but the actual storing is being handled by Redland underneath. it's giving collaborative excellence, it's giving delegation queen π
π METHODS π
Beyond the methods we're about to spill the tea on below, this class also inherits methods from the RDF::Trine::Store class. so there's extra lore you can go read. iykyk π
new ( $store )
Returns a shiny new storage object, using the RDF::Redland::Model object you hand it. give it a model, get a store. balanced, as all things should be β¨
new_with_config ( $hashref )
Returns a new storage object, configured with a hashref whose keys act as the arguments. very choose-your-own-adventure of it π
The storetype key must be Redland for this backend. like, that's the whole point bestie, don't fight it.
The following keys may also be used:
store_nameβ the name of the storage factory. currently the options arehashes,mysql,memory,file,postgresql,sqlite,tstore,uriorvirtuoso. pick your fighter πnameβ the name of the storage.optionsβ any other options you wanna pass along toRDF::Redland::Storage, as a hashref. the "and friends" bucket π
new_with_object ( $redland_model )
Initializes the store with a RDF::Redland::Model object. same energy as new, different doorway πͺβ¨
temporary_store
Returns a temporary (empty) triple store. it's a blank canvas. main character energy from the very first statement π
get_statements ( $subject, $predicate, $object [, $context] )
Returns a stream object of all the statements that match the subject, predicate and object you specified. and here's the cute part: any of the arguments may be undef to match any value. so undef is basically the wildcard friend who's down for anything π
get_contexts
Returns an RDF::Trine::Iterator over the RDF::Trine::Node objects that make up the set of contexts of the stored quads. contexts, but make it a whole iterator. obsessed π
add_statement ( $statement [, $context] )
Adds the specified $statement to the underlying model. drop it in, bestie π
remove_statement ( $statement [, $context])
Removes the specified $statement from the underlying model. okay bye π it's not you, it's the data model.
remove_statements ( $subject, $predicate, $object [, $context])
Removes the specified $statement from the underlying model. yes, the name has an s on the end and yes, that's intentional β that's the plural one, the sweep-everything-matching one π§Ήβ¨
count_statements ( $subject, $predicate, $object, $context )
Returns a count of all the statements matching the specified subject, predicate, object, and context. and yep, same rule as before: any of the arguments may be undef to match any value. undef stays undefeated π₯
size
Returns the number of statements in the store. the headcount. the roster. the "how many besties are at this party" number π
supports ( [ $feature ] )
If you pass $feature, it returns true if that feature is supported by the store, and false otherwise. If you don't pass $feature, it returns you a list of all the supported features. so either a yes/no or a whole list β your call, queen π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. don't suffer in silence, bestie, tell the maintainers ππ«Ά
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β the legend himself π
β COPYRIGHT β
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. periodt. π
and that's a wrap on the whole thing, angel π this page was brought to you by perl v5.38.2, dated 2024-01-13, filed under RDF::T...edland(3pm) in your friendly neighborhood user-contributed Perl docs. go forth and store some triples β¨π¦πΈ
π¦ where this page comes from
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms