Skip to content

Releases: sweetrdf/sparqlClient

PreparedStatement::getQuery() fixed

01 Sep 15:27
Compare
Choose a tag to compare
0.6.2

phpunit bumped to 10 and fix in PreparedStatement::getQuery()

Allow both rdfInterface v1 and v2

26 Jul 14:40
Compare
Choose a tag to compare
0.6.1

composer.json: allow both rdfInterface v1 and v2

Support for various SPARQL result formats added

08 Dec 21:23
Compare
Choose a tag to compare

Backward-incompatible changes

  • sparqlClient\SimpleConnectionInterface and therefore sparqlClient\StandardConnection dropped the ask() and prepareAsk() methods.
    This is because ASK SPARQL queries can now be properly parsed by the sparqlClient\Statement class and there is no need to maintain a separate API for them.

API enhancements

  • sparqlClient\StatementInterface and therefore sparqlClient\StatementInterface and sparqlClient\PreparedStatement:
    • fetchColumn() may now also return string (for CSV/TSV SPARQL responses) and bool (for ASK queries responses)
    • fetch() may now also return string (for CSV/TSV SPARQL responses when $fetchStyle equals PDO::FETCH_COLUMN) and bool (for ASK queries responses $fetchStyle equals PDO::FETCH_COLUMN)
    • fetch() and fetchAll() support also $fetchStyle of PDO::FETCH_NUM and PDO::FETCH_BOTH

Backend enhancements

  • sparqlClient\Statement and therefore sparqlClient\PreparedStatement:
    • can parse ASK SPARQL query results
    • can parse SPARQL results in any of application/sparql-results+json (including RDF-star), application/sparql-results+xml (including RDF-star), text/csv and text/tab-separated-values format

Bugfixes

  • sparqlClient\Connection::query() method properly sets the HTTP Accept header of the request to the response mime types supported by the sparqlClient\Statement class.

Adjusted to rdfInterface 1.0.0

01 Nov 10:36
Compare
Choose a tag to compare
0.5.0

README.md: minor fixes

PreparedStatement::bindParam() fixed

07 May 19:49
Compare
Choose a tag to compare
0.4.1

PreparedStatement::bindParam() fixed

Parameterized queries added

07 May 19:22
Compare
Choose a tag to compare
0.4.0

Prepared statements added

PDO::FETCH_ASSOC fetch style support added

07 Apr 18:35
Compare
Choose a tag to compare
0.3.0

PDO::FETCH_ASSOC fetch style added to the Statement class

StandardConnection class added

07 Apr 17:58
Compare
Choose a tag to compare
0.2.0

Statement::fetch() throws error on unsupported $fetchStyle

Initial release

29 Mar 20:28
Compare
Choose a tag to compare
0.1.0

README updates