\acdhOeaw\fedoraSparqlClient

Simple SPARQL client with HTTP basic authentication support.

There is no support for UPDATE queries.

Summary

Methods
Properties
Constants
__construct()
query()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$url
$client
N/A

Properties

$url

$url : string

SPARQL endpoint URL

Type

string

$client

$client : \acdhOeaw\fedora\GuzzleHttp\Client

Guzzle client object

Type

\acdhOeaw\fedora\GuzzleHttp\Client

Methods

__construct()

__construct(string  $url, string  $user = '', string  $password = '') 

Creates SPARQL client object.

Parameters

string $url

SPARQL endpoint URL

string $user

HTTP basic authentication user name

string $password

HTTP basic authentication password

query()

query(string  $query, integer  $nTries = 1) : \EasyRdf\Sparql\Result

Runs a given query.

There is no support for UPDATE queries.

Parameters

string $query

SPARQL query to be run

integer $nTries

how many times request should be repeated in case of error before giving up

Returns

\EasyRdf\Sparql\Result