Documentation

StandardConnection implements SimpleConnectionInterface

SPARQL endpoint connection class assuming query can be passed as a "query" parameter of a POST request (which isn't guaranteed by any SPARQL standard but is a de facto standard for SPARQL database REST API implementations).

Tags
author

zozlak

Interfaces, Classes and Traits

SimpleConnectionInterface

Table of Contents

$connection  : Connection
$requestFactory  : RequestFactoryInterface
$url  : string
__construct()  : mixed
askQuery()  : bool
prepare()  : PreparedStatement
prepareAsk()  : PreparedStatement
query()  : Statement
getRequest()  : RequestInterface

Properties

Methods

__construct()

public __construct(string $url, DataFactory $dataFactory[, ClientInterface $client = null ][, RequestFactoryInterface $requestFactory = null ]) : mixed
Parameters
$url : string
$dataFactory : DataFactory
$client : ClientInterface = null
$requestFactory : RequestFactoryInterface = null
Return values
mixed

askQuery()

public askQuery(string $query) : bool
Parameters
$query : string
Return values
bool

getRequest()

private getRequest(string $query) : RequestInterface
Parameters
$query : string
Return values
RequestInterface

Search results