From: Sid J. <si...@ya...> - 2011-08-01 13:37:29
|
Hello, I am trying to create an application in Windows Phone 7 that will query a remote SPARQL endpoint (such as DBpedia). However, when trying to run the following code, the emulator freezes without giving any error message. private void button1_Click(object sender, RoutedEventArgs e) { SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri("http://dbpedia.org/sparql"), "http://dbpedia.org"); //Make a SELECT query against the Endpoint SparqlResultSet results = endpoint.QueryWithResultSet("SELECT DISTINCT ?Concept WHERE {[] a ? foreach (SparqlResult result in results) { textBox1.Text = result.ToString(); } } It seems that the following line is causing the problem: SparqlResultSet results = endpoint.QueryWithResultSet("SELECT DISTINCT ?Concept WHERE {[] a ? Any reason why it is doing this.? I currently have the following references in my project: - HtmlAgilityPack.WindowsPhone.dll - dotNetRDF.WindowsPhone.dll - Newtonsoft.Json.Silverlight.dll Thanks, Sid |