Download the PHP package bordercloud/sparql without Composer
On this page you can find all versions of the php package bordercloud/sparql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bordercloud/sparql
More information about bordercloud/sparql
Files in bordercloud/sparql
Package sparql
Short Description Lib PHP very easy for SPARQL 1.1
License CC-BY-SA-4.0
Homepage https://github.com/BorderCloud/SPARQL
Informations about the package sparql
Lib Sparql 1.1 HTTP Client
Very simple SparqlClient for PHP.
Thanks to contributors.
Installation
This project assumes you have composer installed. Simply add new dependency via Composer:
To your composer.json, and then you can simply install with:
Test the lib with a php script : query
You can test your first query sparql with DBPEDIA via a command line :
And the doc of this script with virtuoso, 4store, Allegrograph, Fuseki and Sesame :
Examples
Send a simple query to Wikidata :
Send a simple query to DBpedia :
Send a simple query via an endpoint sparql-auth (with OpenLink Virtuoso Open-Source Edition) :
Documentation
- SparqlClient
Copy Sources and tests
Before to execute tests, you need to start database's instances. For example, Virtuoso 7
Execute PHPUnit
Contact
If you have remarks, questions, or suggestions, please send them to [email protected]
Release-Notes
-
V2.1.0 Add tools to detect SPARQL update queries Add the timeout parameter at the send of the query
-
V2.0.9 ** Fix : bugs in SPARQL client
-
V2.0.8 ** Fix : bugs when there are error messages of SPARQL services
-
V2.0.7 ** Fix : Insert the parameter User-agent in the header HTTP (for Wikidata)
-
V2.0.6 ** Fix : bug with the parser and the ASK query's results
-
V2.0.5 Compatibility : PHP 7.1 and psr-4 Rename the class Endpoint to SparqlClient and simplify the constructor. You can set the endpoints only by their setters. Rename several functions (PHP Lint) Update PHPDoc Add the function SparqlClient->getLastErreur() : can read the SPARQL syntax error directly, if the pattern of error exists (Add the pattern of Wikidata and Virtuoso) Move files and add tests + phpunit.xml. SparqlClient is coverage to 82% for the moment (coverage with Virtuoso and Wikidata). ** Enable Travis in GitHub
-
V1.2.1.0 Add fix for Wikidata and other
- V1.1.0.0 version SPARQL.Pro lib PHP by Karima Rafes [email protected]
license
SPARQL.Pro lib PHP (c)2019 by Karima Rafes - BorderCloud
SPARQL.Pro lib PHP is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
You should have received a copy of the license along with this work. If not, see http://creativecommons.org/licenses/by-sa/4.0/.
Compile DOC
Git...
Modify also the version in composer.json
All versions of sparql with dependencies
ext-xml Version *
ext-json Version *
ext-curl Version *