RDF::T...astore(3pm)
π RDF::Trine::Store::Hexastore β the perl manpage but make it cute π
okay bestie, welcome to RDF::Trine::Store::Hexastore(3pm), a page from the User Contributed Perl Documentation section of the manual. yes the title got truncated to RDF::T...astore because manpages are dramatic like that, but we're doing the whole thing, no skips, periodt. β¨
πΈ VERSION πΈ
This document describes RDF::Trine::Store::Hexastore version 1.019. that's the vibe check result, locked in. π
π¦ SYNOPSIS π¦
the whole entire "how do I even start" moment:
use RDF::Trine::Store::Hexastore;
that's it. that's the synopsis. iconic, honestly. π
β¨ DESCRIPTION β¨
RDF::Trine::Store::Hexastore gives you an in-memory triple-store built on six-way indexing β the technique that got popularized by Hexastore. six ways of indexing everything so your lookups are fast. main character indexing energy, fr fr. π₯
π METHODS π
so besides all the methods we're about to list below, this class also inherits methods from the RDF::Trine::Store class. family inheritance, we love to see it. π«Ά
new ()β hands you a brand new storage object. fresh out the box, no cap. πΈnew_with_config ( $hashref )β hands you a new storage object that's been configured using a hashref, with certain keys passed in as arguments.
thestoretypekey must beHexastorefor this backend. like, mandatory. non-negotiable. π¨
This module can also initialize the store from a file or a URL, and in that case you can use a sources key. That key holds an arrayref of hashrefs. To load a file, you give the file name with a file key inside the hashref; to load a URL, use url. Check the example below bestie. On top of that, these keys are also available:
syntaxβ the syntax of the parsed file or URL.base_uriβ the base URI to be used for a parsed file.
Here's the example, and it sets up a Hexastore store from a local file and a remote URL at the same time. multitasking queen:
my $store = RDF::Trine::Store->new_with_config( {
storetype => 'Hexastore',
sources => [
{
file => 'test-23.ttl',
syntax => 'turtle',
},
{
url => 'http://www.kjetil.kjernsmo.net/foaf',
syntax => 'rdfxml',
}
]});
store ( $filename )β writes the triples data out to a file specified by$filename. and the good news? that data can be read right back in later with theloadmethod. round trip, slay. πΎload ( $filename )β returns a brand new Hexastore object with triples data pulled from the specified file. πtemporary_storeβ returns a temporary (empty) triple store. a lil blank canvas, a fresh start, we love her. β¨get_statements ($subject, $predicate, $object [, $context] )β returns a stream object of all the statements matching the subject, predicate and objects you specified. any of those arguments can beundefto match literally any value. wildcard behavior, we stan. πget_pattern ( $bgp [, $context] )β returns a stream object of all the bindings matching the specified graph pattern. π¦supports ( [ $feature ] )β if you pass$feature, it returns true when the store supports that feature and false when it doesn't. if you don't pass$feature, it returns a list of the supported features instead. yes-or-no or the whole menu, your call. πget_contextsβ (no description in the original, she's mysterious like that π)add_statement ( $statement [, $context] )β adds the specified$statementto the underlying model. drop it in, bestie. πremove_statement ( $statement [, $context])β removes the specified$statementfrom the underlying model. gone, bye. πremove_statements ( $subject, $predicate, $object [, $context])β removes the specified$statementfrom the underlying model. yes, the original really does say$statementhere even though the signature lists subject/predicate/object β we report, we don't rewrite. πetagβ returns an Etag suitable for use in an HTTP Header. headers but make it fashionable. πnukeβ permanently removes all the data in the store. all of it. every last triple. no undo button, no take-backs, this is not a drill. π₯count_statements ($subject, $predicate, $object)β returns a count of all the statements matching the specified subject, predicate and objects. any of the arguments may beundefto match any value. counting era. β
π BUGS π
please report any bugs or feature requests through the GitHub web interface at:
<https://github.com/kasei/perlrdf/issues>
tell them everything, they wanna know. π
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>". legend behavior. π
π 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. legally iconic, fr. π«Ά
okay that's the whole page, no details left behind, we ate and left no crumbs π
β¨ this was perl v5.38.2, dated 2024-01-13, and it lives in RDF::T...astore(3pm) β mwah, bye bestie! πππΈ
π¦ 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