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

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

πŸ’– RDF::Trine::Store::Dydra πŸ’–

okay bestie, welcome to the RDF::Trine::Store::Dydra page from the User Contributed Perl Documentation, and no cap, it's a whole vibe. this is the RDF Store proxy for a Dydra endpoint β€” like, it's the little middleman that lets your RDF::Trine code talk to a remote Dydra instance. iconic behavior honestly πŸ¦‹


✨ VERSION ✨

this doc is describing RDF::Trine::Store::Dydra version 1.019. periodt πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, the bare minimum to get started:

use RDF::Trine::Store::Dydra;

that's it. that's the whole synopsis. she's lowkey mysterious but she delivers 🌸


🌈 DESCRIPTION 🌈

so here's the tea: RDF::Trine::Store::Dydra hands you a full RDF::Trine::Store API so you can interact with a remote Dydra endpoint. that's the entire job. she's a proxy, she's professional, she's booked and busy ✨


πŸ’… METHODS πŸ’…

okay so beyond everything documented right here, this class also inherits methods from the RDF::Trine::Store class. free real estate, we love to see it 🫢


🌟 new ( $user, $repo, $token )

returns a brand-new storage object that acts as a proxy for the Dydra endpoint β€” specifically for the $repo repository belonging to $user, using the API $token you hand her. three little args, one whole connection πŸ’–


🌟 new_with_config ( $hashref )

returns a new storage object, configured with a hashref whose keys are the arguments. very "give me a lil bundle and I'll handle it" energy πŸŽ€

the storetype key must be Dydra for this backend. no substitutions, no exceptions, that's the rule bestie πŸ’€

and these keys are also required, not optional:

  • user β€” the Dydra username πŸ‘‘
  • token β€” the Dydra API token πŸ”‘
  • repo β€” the Dydra repository name πŸ“¦

🌟 base

returns the service base URI, which defaults to http://dydra.com:80. that's the home base, the main character address 🏠✨


🌟 new_with_config ( \%config )

returns a new RDF::Trine::Store object based on the configuration hashref you supply. (yes, she's listed twice up in here β€” same name, and we are NOT editing the original. respect the lore 🫑)


🌟 add_statement ( $statement [, $context] )

adds the specified $statement to the underlying model. put it in, bestie πŸ’«


🌟 remove_statement ( $statement [, $context])

removes the specified $statement from the underlying model. bye girl, we hardly knew ye πŸ‘‹


🌟 remove_statements ( $subject, $predicate, $object [, $context])

removes the specified $statement from the underlying model. (yes, plural name, singular description β€” that's what the original says and I am simply the messenger πŸ™ˆ)


🌟 count_statements ( $subject, $predicate, $object, $context )

returns a count of every statement matching the subject, predicate, object, and context you pass in. and here's the cute part: any of those arguments can be undef to match, like, any value at all. wildcard energy 🌈


🌟 supports ( [ $feature ] )

if you pass $feature, she tells you true if that feature is supported by the store, false otherwise. if you don't pass a feature, she hands you back a whole list of supported features instead. she contains multitudes πŸ’œ


🌟 get_sparql ( $sparql )

returns an iterator object of all the bindings matching the SPARQL query you specified. give her a query, she gives you back a whole iterator, that's the trade πŸ”₯


🌟 size

returns the number of statements in the store. the headcount. the census. the ~vibe check~ πŸ“Šβœ¨


🌟 nuke

permanently removes the store and its data.

⚠️ bestie. PERMANENTLY. this is not a soft delete, this is not a "whoops undo", this is the full gone-gone. no takebacks, no cap, proceed with main-character-level caution πŸ’€πŸ”₯

πŸ› BUGS πŸ›

got a bug? got a feature request? please report it through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. they're literally waiting for you, go off 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams β€” <gwilliams@cpan.org> 🌸


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.


okay and that's the whole page!! this was generated by perl v5.38.2 and dated 2024-01-13, so if you're reading this in the future just know she was thriving back then too πŸ’–βœ¨ bye bestie, go proxy some RDF πŸ¦‹πŸ’…

πŸ“¦ where this page comes from