RDF::T...:SPARQL(3pm)
π RDF::Trine::Store::SPARQL π
okay bestie, so this page is from the User Contributed Perl Documentation and it's all about RDF::Trine::Store::SPARQL, no cap. pull up a chair, we're doing this. π«Ά
β¨ NAME β¨
RDF::Trine::Store::SPARQL β it's an RDF Store proxy for a SPARQL endpoint. literally the middleman of your dreams. π
πΈ VERSION πΈ
this doc describes RDF::Trine::Store::SPARQL version 1.019. that's the one, fr fr.
π¦ SYNOPSIS π¦
use RDF::Trine::Store::SPARQL;
that's it. that's the whole vibe check. two words and a semicolon. iconic. β¨
π DESCRIPTION π
so like, RDF::Trine::Store::SPARQL gives you an RDF::Trine::Store API so you can go talk to a remote SPARQL endpoint. it's giving "proxy but make it classy". you get the familiar store interface, the endpoint does the actual work, everybody wins. π
π METHODS π
bestie, real talk: beyond the methods listed down here, this class also inherits methods from the RDF::Trine::Store class. so there's more where that came from. π
new ( $url )β hands you a brand new storage object that acts as a proxy for the SPARQL endpoint you can reach at the$urlyou passed in. slay. πnew_with_config ( $hashref )β hands you a new storage object, built from a hashref with certain keys passed as arguments.
the storetype key must be SPARQL for this backend. no substitutions, that's the rule. π¨
and you also gotta use this key:
urlβ the URL of the remote endpoint. that's where the whole thing lives.
new_with_config ( \%config )β hands you a newRDF::Trine::Storeobject based on the configuration hashref you supplied. yes, same method name, different arg shape. it's flexible like that. πget_statements ( $subject, $predicate, $object [, $context] )β returns a stream object of all the statements matching the subject, predicate and objects you asked for. any of the arguments can beundefand that means "match any value". soundefis basically the wildcard card. πget_pattern ( $bgp [, $context] )β returns an iterator object of all the bindings matching the graph pattern you specified.get_contextsβ returns anRDF::Trine::Iteratorover theRDF::Trine::Nodeobjects that make up the set of contexts of the stored quads. contexts, but make it a whole iterator. πΈadd_statement ( $statement [, $context] )β adds the$statementyou gave it to the underlying model. new statement, who dis. πremove_statement ( $statement [, $context])β removes the$statementyou gave it from the underlying model. bye bestie. πremove_statements ( $subject, $predicate, $object [, $context])β removes the$statementfrom the underlying model. (yes, the doc says$statementhere even though the args are subject/predicate/object β we don't ask questions, we just report the facts. π)count_statements ( $subject, $predicate, $object, $context )β returns a count of every statement matching the subject, predicate, object and context you specified. any of the arguments can beundefto match any value. math, but cute. π’sizeβ returns the number of statements in the store. how big is the fit? this tells you. π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 whole list of the supported features instead. either way you're getting answers. βget_sparql ( $sparql )β returns an iterator object of all the bindings matching the SPARQL query you specified. this is the one that speaks fluent SPARQL, iykyk. π₯
π BUGS π
found a bug? got a feature request? pls pls pls report it through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. they wanna hear from you, genuinely. don't be shy. π«Ά
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" β the icon, the legend, the main character who wrote this. π
π 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.
so yeah β free software, same terms as Perl, go wild (responsibly). π
and that's the whole page, bestie!! this was RDF::T...:SPARQL(3pm) from the User Contributed Perl Documentation, generated with perl v5.38.2 on 2024-01-13. go forth and proxy your SPARQL endpoints, you absolute legend. mwah. π
β¨ππ¦
π¦ 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