Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi everyone


this line in my code causes this exception

C#
Uri endpoint = new Uri("http://dbpedia.org");
            string query = "SELECT ?cat   WHERE { <http://dbpedia.org/resource/London> dcterms:subject ?cat .}";


       
            SparqlRemoteEndpoint source = new SparqlRemoteEndpoint(new Uri("http://dbpedia.org/sparql"), "http://dbpedia.org");
            SparqlResultSet resultSet = new SparqlResultSet();

       

            resultSet = source.=QueryWithResultSet(query);



help me please
thanx
Posted
Comments
Sergey Alexandrovich Kryukov 26-May-15 9:52am    
And where is that XML?
—SA

1 solution

Please see my comment to the question. Use XML v.1.0. This is the version supported by .NET XML tools, such as generators.
This MSDN page states that .NET (as of v.4.6) supports XML v.1.0:
https://msdn.microsoft.com/en-us/library/system.xml%28v=vs.110%29.aspx[^],
http://www.w3.org/TR/2006/REC-xml-20060816/[^].

Good luck.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900