RDF::Q...Service(3pm)
β¨ NAME β¨
RDF::Query::Plan::Service β it's the executable query plan for remote SPARQL queries, bestie π like literally the thing that handles SERVICE calls to a far-away endpoint.
πΈ VERSION πΈ
This doc is describing RDF::Query::Plan::Service version 2.919. periodt.
π METHODS π
okay so first things first: on top of everything listed down here, this class also inherits methods from the RDF::Query::Plan class. so it's giving nepo baby but in a good way π«Ά
new ( $endpoint, $plan, $silent, $sparql, [ \%logging_keys ] )β hands you back a shiny new SERVICE (remote endpoint call) query plan object β¨.<$endpoint>is the URL of the endpoint (as a node object), no cap.<$plan>is the query plan that represents the query getting yeeted to the remote endpoint (you need it for cost estimates, iykyk).<$sparql>is the serialized SPARQL query that's actually getting sent over to the remote endpoint. and last but not least, if it's there,<%logging_keys>is a HASH holding the keys to use when logging the execution of this plan. the valid HASH keys are:bfβ the bound/free string representing$planπ
new_from_plan ( $endpoint, $plan, $context )β returns a new SERVICE query plan object, slay.<$endpoint>is the URL of the endpoint (as a string this time, not a node).<$plan>is the query plan representing the query to send to the remote endpoint. and the exact SPARQL serialization that'll get used? you get it by grabbing the originatingRDF::Query::Algebraobject from<$plan>and serializing it (with a lil assist from theRDF::Query::ExecutionContextobject<$context>) π
execute ( $execution_context )β does the thing πβοΈnextβ next bestie, nextcloseβ wrap it up πendpointβ the endpoint, obviouslysparqlβ returns the SPARQL query (as a string) that's gonna get sent to the remote endpoint. this is the one, fr fr
lhsβ left hand side behavior, iconicsilentβ returns a boolean value telling you whether the service plan will ignore errors π«£ (yes queen, silently ignore them)
patternβ returns the query plan that'll be used in the remote service call
distinctβ returns true if the pattern is guaranteed to return distinct results, i.e. no duplicates allowed, main character energy only β¨
orderedβ returns true if the pattern is guaranteed to return ordered results. sorted, literally
plan_node_nameβ returns the string name of this plan node, suitable for use in serialization π
plan_prototypeβ returns a list of scalar identifiers for the type of the content (children) nodes of this plan node. wanna know the allowable identifiers? peek atRDF::Query::Plan, it's all in there
plan_node_dataβ returns the data for this plan node that corresponds to the values described by the signature returned byplan_prototypeπ
graph ( $g )β graph time πexplainβ returns a string serialization of the query plan, appropriate for display on the command line. it's the explain era, we love her
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β the icon, the moment, the legend π«Ά
and that's a wrap, bestie π this whole thing is perl v5.40.1, dated 2025-08-18. go forth and SERVICE those remote SPARQL queries, no cap π¦β
π¦ where this page comes from
- ubuntu resolute: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-query-perl 2.919-2 Β· 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