.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Attean::SPARQLClient 3pm" .TH Attean::SPARQLClient 3pm "2022-10-06" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Attean::SPARQLClient \- RDF blank nodes .SH "VERSION" .IX Header "VERSION" This document describes Attean::SPARQLClient version 0.033 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 7 \& use v5.14; \& use Attean; \& my $client = Attean::SPARQLClient\->new(endpoint => \*(Aqhttp://example.org/sparql\*(Aq); \& my $results = $client\->query(\*(AqSELECT * WHERE { ?s ?p ?o }\*(Aq); \& while (my $r = $results\->next) { \& say $r\->as_string; \& } .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" The Attean::SPARQLClient class provides an \s-1API\s0 to execute \s-1SPARQL\s0 queries against a remote \s-1SPARQL\s0 Protocol endpoint. .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" The following attributes exist: .ie n .IP """endpoint""" 4 .el .IP "\f(CWendpoint\fR" 4 .IX Item "endpoint" A \s-1URL\s0 of the remote service implementing the \s-1SPARQL 1.1\s0 Protocol. This value is a Attean::API::IRI, but can be coerced from a string. .ie n .IP """silent""" 4 .el .IP "\f(CWsilent\fR" 4 .IX Item "silent" .PD 0 .IP "<< user_agent >>" 4 .IX Item "<< user_agent >>" .ie n .IP """request_signer""" 4 .el .IP "\f(CWrequest_signer\fR" 4 .IX Item "request_signer" .PD .SH "METHODS" .IX Header "METHODS" .ie n .IP """query_request( $sparql )""" 4 .el .IP "\f(CWquery_request( $sparql )\fR" 4 .IX Item "query_request( $sparql )" Returns an HTTP::Request object for the given \s-1SPARQL\s0 query string. .ie n .IP """query( $sparql )""" 4 .el .IP "\f(CWquery( $sparql )\fR" 4 .IX Item "query( $sparql )" Executes the given \s-1SPARQL\s0 query string at the remote endpoint. If execution is successful, returns an Attean::API::Iterator object with the results. If execution fails but the client \f(CW\*(C`silent\*(C'\fR flag is true, returns an empty iterator. Otherwise raises an error via \f(CW\*(C`die\*(C'\fR. .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests to through the GitHub web interface at . .SH "SEE ALSO" .IX Header "SEE ALSO" \&\s-1SPARQL 1.1\s0 Protocol .SH "AUTHOR" .IX Header "AUTHOR" Gregory Todd Williams \f(CW\*(C`\*(C'\fR .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2014\-\-2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.