Documentation

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
author

zozlak

Table of Contents

Interfaces

SimpleConnectionInterface

Properties

$connection  : Connection
$requestFactory  : RequestFactoryInterface
$url  : string

Methods

__construct()  : mixed
prepare()  : PreparedStatement
query()  : Statement
getRequest()  : RequestInterface

Properties

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

getRequest()

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

        
On this page

Search results