query-f7aaa09939b6238834c135dc2f5b96a1

rq turtle/ttl

extreure P9984 claims sense P11686. (inclou values per fer proves) SELECT ?item ?itemLabel ?inspected ?anomenat ?ref ?pr ?rval WHERE { values ?item { wd:Q750403 wd:Q1200925 }

?item p:P9984 ?statement . ?statement ps:P9984 ?inspected. OPTIONAL { ?statement pq:P1810 ?anomenat } . OPTIONAL { ?statement prov:wasDerivedFrom ?ref . ?ref ?pr ?rval . [] wikibase:reference ?pr } . FILTER NOT EXISTS {?item wdt:P11686 ?inspected}

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } . } order by asc(?item) limit 500

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# extreure P9984 claims sense P11686. (inclou values per fer proves)
SELECT ?item ?itemLabel ?inspected ?anomenat ?ref ?pr ?rval 
WHERE
{
  values ?item {
 wd:Q750403
 wd:Q1200925
  }

  ?item p:P9984 ?statement .
  ?statement ps:P9984 ?inspected.
  OPTIONAL { ?statement pq:P1810 ?anomenat } .
  OPTIONAL {
    ?statement prov:wasDerivedFrom ?ref .
    ?ref ?pr ?rval .
    [] wikibase:reference ?pr
  }  .
  FILTER NOT EXISTS {?item wdt:P11686 ?inspected}

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } .
}
order by asc(?item)
limit  500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?anomenat"):::projected v2("?inspected"):::projected v3("?item"):::projected v6("?pr"):::projected v5("?ref"):::projected v7("?rval"):::projected v3("?statement") a1((" ")) c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:direct/P11686"--> e0v2 e0v2("?inspected"):::projected e0v1("?item"):::projected end f0--EXISTS--> f0e0 f0 --> v3 f0 --> c1 f0 --> v2 v3 --"p:direct/P11686"--> v2 bind1[/VALUES ?item/] bind1-->v3 bind10(["wd:Q750403"]) bind10 --> bind1 bind11(["wd:Q1200925"]) bind11 --> bind1 v3 --"p:P9984"--> v3 v3 --"p:statement/P9984"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P1810".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."prov:wasDerivedFrom".-> v5 v5 -->v6--> v7 a1 --"wikibase:reference"--> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end