<docbook><section><title>VirtJdbcRDFViewUI</title><title> Virtuoso Linked Data Views for a JDBC Database</title> Virtuoso Linked Data Views for a JDBC Database
<para>This document details the steps required for building RDF-based Linked Data Views of schema objects in JDBC data sources, using the sample Northwind database.</para>
<orderedlist spacing="compact"><listitem>Go to the Virtuoso Conductor (http://&lt;cname&gt;:port/conductor).
 Note, the appropriate cname (hostname) and port number for dereferencing URIs must be set for the <ulink url="http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#ini_URIQA">URIQA:DefaultHost</ulink> Virtuoso configuration parameter before creating the Linked Data Views.
</listitem>
<listitem>Log in as user <emphasis>dba</emphasis> (or another user with DBA privileges).
</listitem>
<listitem>If not already done <ulink url="VirtOJDBCLinkingObjects">Link the JDBC tables into OpenLink Virtuoso</ulink>.
</listitem>
<listitem>Select the <emphasis>Linked Data</emphasis> -&gt; <emphasis>Views</emphasis> tab of the Conductor.
 (In previous versions, this path was <emphasis>Database</emphasis> -&gt; <emphasis>Linked Data Views</emphasis>.)    <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_01.png" /></figure> </listitem>
<listitem>Select the <emphasis>Database Name Qualifier</emphasis> (e.g., &quot;NWND&quot;)  that exposes the Tables / Views for this exercise.
</listitem>
<listitem>Enter the <emphasis>Base URL</emphasis> to which your URL rewrite rules will be bound (e.g., http://&lt;cname&gt;:8890/NWND).
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_02.png" /></figure> </listitem>
<listitem>Select the specific Tables containing the data to be published.
</listitem>
<listitem>Choose <emphasis>Generate via Wizard</emphasis> to perform a custom generation and continue with Step 9 or choose <emphasis>Generate &amp; Publish</emphasis> to perform a one click generation of the Linked Data Views, in which case skip to Step 17.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_03.png" /></figure> </listitem>
<listitem>At this point, you are presented with the option to edit your column selection.
 Select the &quot;Edit&quot; link, for example, for table NWND..Customers.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_04.png" /></figure> </listitem>
<listitem>For images or other binary data in MIME formats to be revealed as anything other than generic &quot;binary objects&quot;, you must map large varbinary types.
to the appropriate MIME types like image/gif.
 To do so, select the <emphasis>Edit</emphasis> link for <emphasis>Binding/MIME Type</emphasis> of the relevant table columns.
 You can: <itemizedlist mark="bullet" spacing="compact"><listitem>Leave the <emphasis>Binding/MIME Type</emphasis> literal; or </listitem>
<listitem>Set to skip, such that the column will not be used in RDF generation; or </listitem>
<listitem>Select the <emphasis>binary object</emphasis> value in order for the column to be referenced as binary.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_05.png" /></figure> </listitem>
</itemizedlist></listitem>
<listitem>After finishing with your changes click the <emphasis>Save</emphasis> button, or cancel the changes and go back by clicking the <emphasis>Cancel</emphasis> button.
</listitem>
<listitem>Make sure you click the &quot;Next&quot; button.
</listitem>
<listitem>At this point, the <emphasis>RDF View Definition</emphasis> form will let you <emphasis>Select Generation Targets</emphasis> options:    <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_06.png" /></figure> <itemizedlist mark="bullet" spacing="compact"><listitem>Data Source Ontology Mappings </listitem>
<listitem>Instance Data View Mappings </listitem>
<listitem><ulink url="http://www.w3.org/TR/void/">VoID</ulink> statistic </listitem>
</itemizedlist></listitem>
<listitem>Make sure you click the &quot;Next&quot; button.
</listitem>
<listitem>Based on your selections in the prior form, the <emphasis>RDF View Definition</emphasis> <emphasis>Deployment Options</emphasis> form will be offered: <itemizedlist mark="bullet" spacing="compact"><listitem>Data Source Ontology Rules </listitem>
<listitem>Instance Data Rules    <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_07.png" /></figure> </listitem>
</itemizedlist></listitem>
<listitem>Select the desired option(s) and click the &quot;Prepare to Execute&quot; button which unveils a generated Instance Data and/or Ontology form.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_08.png" /></figure> </listitem>
<listitem>Click the <emphasis>Execute</emphasis> button and Virtuoso will: <orderedlist spacing="compact"><listitem>Apply the generated declarations (instance data and ontology) to your Virtuoso instance.
</listitem>
<listitem>Publish / Deploy declarations that expose the Wizard-generated Rewrite Rules and associated endpoints.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_09.png" /></figure> </listitem>
</orderedlist></listitem>
<listitem>Click on one of the <emphasis>Instance Data</emphasis> Sample links to view some of the deployed Linked Data Views.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_10.png" /></figure> </listitem>
<listitem>Click on the <emphasis>Statistics Data (VoID Graph)</emphasis> link to view the VoID Statistics.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_11.png" /></figure> </listitem>
<listitem>Click on the <emphasis>Ontology</emphasis>  link to view the ontology information.
   <figure><graphic fileref="VirtJdbcRDFViewUI/VirtRDFViewUI_12.png" /></figure> </listitem>
</orderedlist></section></docbook>