2.12. Creating A Simple .NET RIA Services Application To Display Data From Virtuoso
.NET RIA Services is a new framework from Microsoft that simplifies the development of n-tier web applications. A typical application will consist of a presentation layer, application logic and a data access layer. In these examples a combination of Silverlight 3 and .NET RIA Services will provide the presentation layer and application layer while the data will reside in Virtuoso and be accessed using the Virtuoso ADO.NET provider. The first example demonstrates how to display data from the Employee table in the Demo database in a grid on a web page. The second example shows how to display IRIs from the Linked Data Views of the demo data. The IRIs are used to create hyperlinks that are the starting point for exploring the linked data.
2.12.1. Pre-requisites
-
The example assumes that you have a local Virtuoso server with the Northwind demo database installed. If the demo database is not already installed then download the demo database VAD package (demo_dav.vad) and install it. The VAD package will create a new database in Virtuoso called demo containing the familiar Northwind tables. It will also creates Linked Data Views of the Northwind tables. In the example we assume the database is accessible on a hostname of "demo.openlinksw.com" on the default port 80, where an actually live instance of the Virtuoso Demo database is hosted. Users would use the appropriate hostname and port number of their Virtuoso installation to create the sample application, and would be would be example.com for a default installation or whatever the URIQA DefaultHost Virtuoso configuration parameter is set to when the demo database VAD package is installed.
-
The Virtuoso ADO.Net provider for .Net 3.5 and the Entity Framework.
-
Microsoft Visual Studio 2008
-
The Virtuoso Cartridges VAD package .