%META:TOPICPARENT{name="VirtRdb2RDFViewsGeneration"}%
---+ Virtuoso Linked Data Views for a JDBC Database
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.
1 Go to the Virtuoso Conductor (http://<cname>:port/conductor
). Note, the appropriate cname (hostname) and port number for dereferencing URIs must be set for the [[http://docs.openlinksw.com/virtuoso/databaseadmsrv.html#ini_URIQA][URIQA:DefaultHost]]
Virtuoso configuration parameter before creating the Linked Data Views.
1 Log in as user dba
(or another user with DBA privileges).
1 If not already done [[VirtOJDBCLinkingObjects][Link the JDBC tables into OpenLink Virtuoso]].
1 Select the Linked Data -> Views tab of the Conductor. (In previous versions, this path was Database -> Linked Data Views.)
%BR%%BR%%BR%%BR%
1 Select the Database Name Qualifier (e.g., "NWND
") that exposes the Tables / Views for this exercise.
1 Enter the Base URL to which your URL rewrite rules will be bound (e.g., http://<cname>:8890/NWND
).
%BR%%BR%%BR%%BR%
1 Select the specific Tables containing the data to be published.
1 Choose Generate via Wizard to perform a custom generation and continue with Step 9 or choose Generate & Publish to perform a one click generation of the Linked Data Views, in which case skip to Step 17.
%BR%%BR%%BR%%BR%
1 At this point, you are presented with the option to edit your column selection. Select the "Edit" link, for example, for table NWND..Customers
.
%BR%%BR%%BR%%BR%
1 For images or other binary data in MIME formats to be revealed as anything other than generic "binary objects", you must map large varbinary
types.
to the appropriate MIME types like image/gif
. To do so, select the Edit link for Binding/MIME Type of the relevant table columns. You can:
* Leave the Binding/MIME Type literal; or
* Set to skip, such that the column will not be used in RDF generation; or
* Select the binary object value in order for the column to be referenced as binary.
%BR%%BR%%BR%%BR%
1 After finishing with your changes click the Save button, or cancel the changes and go back by clicking the Cancel button.
1 Make sure you click the "Next" button.
1 At this point, the RDF View Definition form will let you Select Generation Targets options:
%BR%%BR%%BR%%BR%
* Data Source Ontology Mappings
* Instance Data View Mappings
* [[http://www.w3.org/TR/void/][VoID]] statistic
1 Make sure you click the "Next" button.
1 Based on your selections in the prior form, the RDF View Definition Deployment Options form will be offered:
* Data Source Ontology Rules
* Instance Data Rules
%BR%%BR%%BR%%BR%
1 Select the desired option(s) and click the "Prepare to Execute" button which unveils a generated Instance Data and/or Ontology form.
%BR%%BR%%BR%%BR%
1 Click the Execute button and Virtuoso will:
1 Apply the generated declarations (instance data and ontology) to your Virtuoso instance.
1 Publish / Deploy declarations that expose the Wizard-generated Rewrite Rules and associated endpoints.
%BR%%BR%%BR%%BR%
1 Click on one of the Instance Data Sample links to view some of the deployed Linked Data Views.
%BR%%BR%%BR%%BR%
1 Click on the Statistics Data (VoID Graph) link to view the VoID Statistics.
%BR%%BR%%BR%%BR%
1 Click on the Ontology link to view the ontology information.
%BR%%BR%%BR%%BR%