【发布时间】:2017-02-21 09:30:57
【问题描述】:
我正在运行 AllegroGraph 服务器,但无法查询远程数据存储,文档信息很少。
这是我的一小段代码:
using System;
using VDS.RDF;
using VDS.RDF.Storage;
namespace PoC {
class Program {
static void Main(string[] args) {
string server = "http://server";
string repo = "repo";
string username = "username";
string password = "password";
AllegroGraphConnector agraph = new AllegroGraphConnector(server, repo, username, password);
Options.HttpDebugging = true;
Options.HttpFullDebugging = true;
agraph.Query("SELECT * WHERE { emid:_PCAT_0001 ?p ?o }");
Console.ReadLine();
}
}
}
错误查询:解析错误:未定义“emid”的命名空间映射 扩展 QName "emid:_PCAT_0001" 时。
尽管在 AllegroGraph WebView 中我可以运行完全相同的查询,并且命名空间已加载到存储库中。
我该如何解决?
【问题讨论】:
标签: c# sparql dotnetrdf allegrograph