StandardConnection
in package
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
Table of Contents
Interfaces
Properties
- $connection : Connection
- $requestFactory : RequestFactoryInterface
- $url : string
Methods
- __construct() : mixed
- prepare() : PreparedStatement
- query() : Statement
- getRequest() : RequestInterface
Properties
$connection
private
Connection
$connection
$requestFactory
private
RequestFactoryInterface
$requestFactory
$url
private
string
$url
Methods
__construct()
public
__construct(string $url, DataFactoryInterface $dataFactory[, ClientInterface $client = null ][, RequestFactoryInterface $requestFactory = null ]) : mixed
Parameters
- $url : string
- $dataFactory : DataFactoryInterface
- $client : ClientInterface = null
- $requestFactory : RequestFactoryInterface = null
prepare()
public
prepare(string $query) : PreparedStatement
Parameters
- $query : string
Return values
PreparedStatementquery()
public
query(string $query) : Statement
Parameters
- $query : string
Return values
StatementgetRequest()
private
getRequest(string $query) : RequestInterface
Parameters
- $query : string