SPARQL query on PHP-script Hosting
RQ-S-2 SPARQL Query on PHP ODBC Hosting Demo
Demonstrates the use of a PHP script hosted in Virtuoso to execute SPARQL queries against Virtuoso's RDF Triplestore. Note, this demo leverages PHP's ODBC based data access layer and Virtuoso's ability to execute SPARQL via its SQL query processor.
PHP script calling ODBC
This demo shows simple ODBC functions being used in a PHP script: odbc_connect(), odbc_exec(), odbc_result_all() and odbc_tables().
The demo makes sparql queries on Virtuoso's RDF database using "sparql select" syntax. The data is loaded on tutorial vad installation time by the sparql_demo.
In order to run this example you need PHP Runtime Hosting Enabled.
| View the source | Action |
|---|---|
| 1. create_local_dsn.sql | Set the initial state |
| 2. sparql_query.php | Run |
OpenLink Home
Technical Support