在筛选子句中使用IN子句,在SPARQL查询中使用

在筛选子句中使用IN子句,在SPARQL查询中使用,sparql,Sparql,我是SPARQL的新手。我正在尝试运行此查询- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> SELECT * FROM <http://purl.obolibrary.org/obo/mer

我是SPARQL的新手。我正在尝试运行此查询-

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT * FROM <http://purl.obolibrary.org/obo/merged/DOID> WHERE {
    ?nodeID owl:annotatedSource <http://purl.obolibrary.org/obo/DOID_11330>.
    #?nodeID rdf:type owl:Annotation.
    ?nodeID owl:annotatedProperty ?annotatedProperty.
    ?nodeID owl:annotatedTarget ?annotatedTarget.
    ?nodeID ?aaProperty ?aaPropertyTarget.
    OPTIONAL {?annotatedProperty rdfs:label ?annotatedPropertyLabel}.
    OPTIONAL {?aaProperty rdfs:label ?aaPropertyLabel}.
    FILTER (isLiteral(?annotatedTarget)).   
    FILTER (not exists {?aaProperty in(owl:annotatedSource, rdf:type, owl:annotatedProperty, owl:annotatedTarget)
    })}
-但我犯了这个错误,我不知道该怎么办。请帮帮我。谢谢

Encountered " "in" "in "" at line 13, column 41.
Was expecting one of:
    <IRIref> ...
    <PNAME_NS> ...
    <PNAME_LN> ...
    <VAR1> ...
    <VAR2> ...
    "a" ...
    "distinct" ...
    "multi" ...
    "shortest" ...
    "(" ...
    "!" ...
    "^" ...

不存在需要图形模式。你想要的可能只是猜测

前缀rdfs: 前缀owl: 前缀rdf: 挑选* 从…起 哪里 {?nodeID owl:annotatedSource。 ?节点ID owl:annotatedProperty?annotatedProperty。 ?节点ID owl:annotatedTarget?annotatedTarget。 ?节点ID?aa属性?aa属性目标 可选择的 {?annotatedProperty rdfs:label?annotatedPropertyLabel} 可选择的 {?aaProperty rdfs:标签?aaPropertyLabel} 过滤器isLiteral?注释目标 筛选器?aa属性不在owl:annotatedSource、rdf:type、owl:annotatedProperty、owl:annotatedTarget中 }
你们想用不存在来做什么?你是想说你的价值不在你提到的清单中吗?