how group graph pattern work in SPARQL

后端 未结 1 1422
夕颜
夕颜 2021-01-24 02:16

First of all, i don\'t know if this really called group graph pattern or not. Anyway,

Look at this query please

select ?x  ?y where {
  {?x rdf:type rs:R         


        
相关标签:
1条回答
  • 2021-01-24 03:08
    select ?x  ?y where {
      {?x rdf:type rs:Recommendable}
    
      {?xd rs:doesntexist ?y}
    }
    

    is like (not identical) to:

    select ?x  ?y where {
      ?x rdf:type rs:Recommendable
      ?x rs:doesntexist ?y
    }
    

    Both patterns must match. If there is no rs:doesntexist the whole thing fails.

    {}
    

    matches all (zero) its patterns so it always works.

    0 讨论(0)
提交回复
热议问题