%META:TOPICPARENT{name="VirtAdoNet35Provider"}% ---+Silverlight Application for Browsing RDF Data %TOC% ---++ Introduction There are several examples in this documentation showing how to integrate Virtuoso's RDF data store into a Windows forms application or ADO.NET Data Service using the Virtuoso ADO.NET Data Provider. This example demonstrates how it is is possible to bypass ADO.NET completely and integrate RDF data from Virtuoso into a Silverlight application by directly querying the SPARQL endpoint on the Virtuoso Server using the .NET WebClient. ---++ Prerequisites * Virtuoso Server. * The Virtuoso [[https://virtuoso.openlinksw.com/download/][Cartridges]] VAD package. * Microsoft Visual Studio 2008. * [[http://www.microsoft.com/downloads/details.aspx?familyid=9442b0f2-7465-417a-88f3-5e7b5409e9dd&displaylang=en][Silverlight 3 Tools for Visual Studio 2008 SP1]]. ---++ Create the Silverlight Application ---+++ Create the project 1. Open Visual Studio and create a new Silverlight Application project called RDFBrowser. Click the OK button. %BR%%BR% %BR%%BR% 1. In the New Silverlight Application dialog box check the Host the Silverlight application in a new Web site box. Click OK. 1. Add a title to the Silverlight page by editing MainPage.xaml. Drag a TextBlock from the Toolbox onto MainPage.xaml between the <Grid> and </Grid> tags. Add the title text, "Example RDF Browser" and some formatting so that it looks like: ---+++ Get The List of Graphs Below the title we want a box where we can type in the address of a SPARQL endpoint and a button to click to get a list of graphs available on that endpoint. So drag another TextBlock, a TextBox and a Button onto the grid. We will now add some row and column formatting to the grid as well.