小编Pau*_*ulo的帖子

SPARQL 查询中表达式的顺序

下面的两个查询有什么区别吗?

select distinct ?i 
where{
    ?i rdf:type <http://foo/bar#A>. 
    FILTER EXISTS {
        ?i <http://foo/bar#hasB> ?b.
        ?b rdf:type <http://foo/bar#B1>.
    }            
}


select distinct ?i 
    where{
        FILTER EXISTS {
            ?i <http://foo/bar#hasB> ?b.
            ?b rdf:type <http://foo/bar#B1>.
        }
        ?i rdf:type <http://foo/bar#A>.             
    }
Run Code Online (Sandbox Code Playgroud)

性能或结果存在差异吗?

rdf semantic-web rdfs sparql triplestore

2
推荐指数
1
解决办法
1238
查看次数

标签 统计

rdf ×1

rdfs ×1

semantic-web ×1

sparql ×1

triplestore ×1