0
나는이 내 코드입니다 dotNetRdf
자 마린과 dotNetRdf
를 사용하여 자 마린과 DBpedia를 조회하기 위해 노력하고있어 :
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 ?Concept}");
foreach (SparqlResult result in results)
{
Console.WriteLine(result.ToString());
}
//Make a DESCRIBE query against the Endpoint
IGraph g = endpoint.QueryWithResultGraph("DESCRIBE ");
foreach (Triple t in g.Triples)
{
Console.WriteLine(t.ToString());
}
이 코드는 C# 프로젝트에 큰 작동하지만, 자 마린 안에 내가 다음과 같은 오류가 QueryWithResultSet
에 :
void SparqlRemoteEndpoint.QueryWithResultSet(string query, SparqlResultsCallback callback, object state)(+1 overload)
Makes a Query asynchronously where the expected Result is a SparqlResultSet i.e. SELECT and ASK Queries
난 내가 만드는 데 필요한 콜백 이해할 수 없습니다.
무엇이 잘못 되었나요?