sparql查询中的多个减号子句

sparql查询中的多个减号子句,sparql,Sparql,我试图在DBPedia的公共端点上运行以下SPARQL查询: select distinct ?o ?olabel where { { select distinct ?s where { ?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2000/01/rdf-schema#subClassOf>{,6} <http://dbpe

我试图在DBPedia的公共端点上运行以下SPARQL查询:

select distinct ?o ?olabel where { 
        { select distinct ?s where { 
        ?s   <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2000/01/rdf-schema#subClassOf>{,6}  <http://dbpedia.org/ontology/FictionalCharacter> 
        .  ?s <http://dbpedia.org/property/creator> ?oo  } limit 100000 } 
  .  ?s <http://dbpedia.org/property/creator> ?o 
  MINUS { ?o   <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2000/01/rdf-schema#subClassOf>{,6}  <http://dbpedia.org/class/yago/Communicator109610660>} 
#  MINUS { ?o   <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2000/01/rdf-schema#subClassOf>{,6}  <http://dbpedia.org/class/yago/Creator109614315>}  
  . ?o <http://www.w3.org/2000/01/rdf-schema#label> ?olabel . FILTER (lang(?olabel)=''||lang(?olabel)='en')  
} LIMIT 100
它工作正常。 但随后我取消了对已注释行的注释。 然后查询失败

据我所知,SPARQL中授权了多个减号子句


有谁能给我一些建议,让我重写我的查询,让DBPedia考虑到多个减号子句吗?

标准的一个好处是我们可以在规范中查找内容,所以在查看产品66、56之后,54 at我可以确认标准允许多个减号子句。

查询在处可编辑:查询不会失败。无论如何,您也可以通过一个包含两个图形模式的并集的减号来合并两个减号子句MINUS{{o/{,6}}}并集{o/{,6}}}}或使用VALUES子句:减号{VALUES?type{}?o/{,6}?type}