1

谁能向我解释一下“Dataset(QuadPattern,μ,GS,GS)”这句话是什么意思?特别是,我想弄清楚 DELETE DATA 操作 (DELETE DATA QuadData) 的模型,但我不明白 Dataset(QuadPattern ,{},GS,GS) 表示。

4

1 回答 1

2

您似乎指的是SPARQL 1.1 更新规范

Dataset(QuadPattern,μ,DS,GS) ...[an] 辅助函数从 QuadPattern 构造 RDF 数据集,给定解决方案映射和 RDF 数据集。

简而言之,它的函数在可能包含变量的图中采用一堆 RDF,例如:

GRAPH ?g { ?person a Person ; ex:tel ?tel }
{ ?g ex:source ?source }

和一组解 μ:

{ ?g => <http://example.com/graph1> , ?person => <http://example.com/alice> , ?tel => "0898 505050" , ?source => <http://192.com/> }
{ ?g => <http://example.com/graph2> , ?person => <http://example.com/bob> , ?tel => "117 117" , ?source => <http://192.com/> }

并绑定这些值,生成一个数据集:

{ 
  <http://example.com/graph1> ex:source <http://192.com/> .
  <http://example.com/graph2> ex:source <http://192.com/> .
}
GRAPH <http://example.com/graph1> { <http://example.com/alice> a Person ; ex:tel "0898 505050" }
GRAPH <http://example.com/graph2> { <http://example.com/bob> a Person ; ex:tel "117 117" }
于 2013-03-11T17:51:41.443 回答