RDF::T...edland(3pm)

πŸ“¦
version 1.019 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 are hashes, mysql, memory, file, postgresql, sqlite, tstore, uri or virtuoso. pick your fighter πŸ‘‘
  • name β€” the name of the storage.
  • options β€” any other options you wanna pass along to RDF::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 (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