<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="RQ-S-2">
  <refmeta>
    <refentrytitle>SPARQL query on PHP-script Hosting</refentrytitle>
    <refmiscinfo>tutorial</refmiscinfo>
  </refmeta>
  <refnamediv>
    <refname>SPARQL Query on PHP ODBC Hosting Demo</refname>
    <refpurpose>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.</refpurpose>
  </refnamediv>
  <refsect1 id="HO-S-30">
    <title>PHP script calling ODBC</title>
    <para>
      This demo shows simple ODBC functions being used in a PHP script:
      odbc_connect(), odbc_exec(), odbc_result_all() and odbc_tables().
    </para>
    <para>
      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. 
    </para>
  </refsect1>
</refentry>
