<docbook><section><title>VirtSesameProvider</title><para>  </para>
<para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Virtuoso Sesame RDF Data Provider (Obsolete)</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem>see <ulink url="VirtSesame2Provider">VirtSesame2Provider</ulink> for current work</listitem>
</itemizedlist><para>The Virtuoso Sesame RDF Data Provider enables Semantic Web applications written using the Sesame RDF Frameworks to query the Virtuoso RDF Quad store directly.
 The Provider has been tested against the <ulink url="http://sourceforge.net/project/showfiles.php?group_id=46509&amp;package_id=40257">Sesame 1.2.7</ulink> version currently available.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3">Required Files</bridgehead>
<para>The Virtuoso Sesame Provider is packaged as a JAR file which is attached: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtSesameProvider/virt_sesame.jar">virt_sesame.jar</ulink></listitem>
</itemizedlist><para>The required Sesame and associated classes are also attached: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtSesameProvider/sesamejars.zip">sesamejars.zip</ulink></listitem>
</itemizedlist><para>The sample program are attached: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtSesameProvider/virtsesamesamples.zip">virtsesamesamples.zip</ulink></listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h3">Compiling Sesame Sample Programs</bridgehead>
<para>The sample Sesame applications  can be compiled as follows:</para>
<itemizedlist mark="bullet" spacing="compact"><listitem>Edit the sample programs VirtuosoExampleX.java, where X = 1 to 2 and set the JDBC connection strings within  to point to a valid Virtuoso Server instance of the form: <programlisting>&quot;jdbc:virtuoso://localhost:1111&quot;, &quot;dba&quot;, &quot;dba&quot;
</programlisting> </listitem>
<listitem>Compile the Sesame Sample applications using the following command: <programlisting>javac -Xlint -classpath &quot;xercesImpl.jar:lib/log4j-1.2.12.jar:commons-logging-1.1.jar:concurrent.jar:icu4j_3_4.jar:junit.jar:json.jar:openrdf-model.jar:iri.jar:sesame.jar:rio.jar:openrdf-util.jar:virt_sesame.jar&quot; VirtuosoExample2.java VirtuosoExample1.java
</programlisting> Note: You need to ensure all required JAR files are locatable with an appropriate CLASSPATH setting.</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h3">Testing</bridgehead>
<para>Once the Provider classes and sample program have been successfully compiled as indicated in the previous section, the Provider can then be tested using the two sample providers included</para>
<para> </para>
<orderedlist spacing="compact"><listitem>Run the VirtuosoExample1 as follows: <programlisting>java -classpath &quot;xercesImpl.jar:log4j-1.2.12.jar:commons-logging-1.1.jar:concurrent.jar:icu4j_3_4.jar:junit.jar:json.jar:openrdf-model.jar:iri.jar:sesame.jar:rio.jar:openrdf-util.jar:virt_sesame.jar:.&quot; VirtuosoExample1
</programlisting><itemizedlist mark="bullet" spacing="compact"><listitem>This sample program returns a count for triples from the URI &#39;<ulink url="http://demo.openlinksw.com/dataspace/person/demo#this">http://demo.openlinksw.com/dataspace/person/demo#this</ulink>&quot;</listitem>
</itemizedlist></listitem>
</orderedlist><orderedlist spacing="compact"><listitem>Run the VirtuosoExample2 as follows: <programlisting>java -classpath &quot;xercesImpl.jar:log4j-1.2.12.jar:commons-logging-1.1.jar:concurrent.jar:icu4j_3_4.jar:junit.jar:json.jar:openrdf-model.jar:iri.jar:sesame.jar:rio.jar:openrdf-util.jar:virt_sesame.jar:.&quot; VirtuosoExample2
</programlisting><itemizedlist mark="bullet" spacing="compact"><listitem>This sample program reads and returns a count of the records in the included &quot;data.nt&quot; file.</listitem>
</itemizedlist></listitem>
</orderedlist><para> <ulink url="CategoryRDF">CategoryRDF</ulink> <ulink url="CategoryOpenSource">CategoryOpenSource</ulink> <ulink url="CategoryVirtuoso">CategoryVirtuoso</ulink> <ulink url="CategoryVOS">CategoryVOS</ulink> <ulink url="CategorySesame">CategorySesame</ulink> <ulink url="CategoryDocumentation">CategoryDocumentation</ulink> <ulink url="CategoryObsolete">CategoryObsolete</ulink></para>
<para> </para>
</section></docbook>