问问题
56 次
1 回答
0
SparqlResult
行有值节点:https://bitbucket.org/dotnetrdf/dotnetrdf/wiki/UserGuide/Querying%20with%20SPARQL#!accessing-values:
INode value = r.Value("var");
值节点可以进行类型检查并转换为具有Value
属性的文字节点:https ://stackoverflow.com/a/40049736/464590
if (value is ILiteralNode)
{
var literal = value as ILiteralNode;
Console.WriteLine(literal.Value);
}
于 2017-05-01T16:01:37.537 回答