2013-03-11 17 views
1

任何人都可以向我解釋這句話「數據集(QuadPattern,μ,GS,GS)」是什麼意思?特別是,我試圖找出DELETE DATA操作模式(DELETE DATA QuadData),但是我不能理解數據集(QuadPattern,{},GS,GS)的含義。SPARQL DATASET定義

+0

如果user205512的回答回答d你的問題,你應該[接受它](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work)讓其他用戶知道它適合你。 – 2013-08-26 18:57:52

回答

2

你似乎參照SPARQL 1.1 Update spec

數據集(QuadPattern,μ,DS,GS) ... [一個]輔助功能構建從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" } 
+0

那麼當我們有μ= {}這意味着我們沒有值綁定或我們綁定所有值?實際上這裏的問題是空解映射的定義 – Cheryl 2013-03-11 17:57:57

+0

在這種情況下,您將得到一個空數據集:將不會生成有效的三元組,也不會生成有效的圖名稱。如果你已經習慣了CONSTRUCT的工作方式,那麼這同樣重要。 – user205512 2013-03-11 18:34:36