query-2ff7719ca092ca5374a4b68477b979e8

rq turtle/ttl

ToolsStatement without qualifiers or references (useful for safe QuickStatements)

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 p: <http://www.wikidata.org/prop/>
SELECT ?item {
  ?item wdt:P21 wd:Q6581072 .
  ?item wdt:P27 wd:Q17 .
  ?item p:P735 ?givenStmt .
  ?givenStmt ps:P735 wd:Q19810348 .
  FILTER NOT EXISTS {
    ?givenStmt ?pred ?obj .
    ?prop wikibase:qualifier ?pred .
  }
  FILTER NOT EXISTS {
    ?givenStmt prov:wasDerivedFrom ?ref 
  }
}
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?givenStmt") v6("?item"):::projected v4("?obj") v3("?pred") v5("?prop") v2("?ref") c6(["wd:Q17"]):::iri c9(["wd:Q19810348"]):::iri c4(["wd:Q6581072"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"prov:wasDerivedFrom"--> e0v2 e0v1("?givenStmt"):::projected e0v2("?ref"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"prov:wasDerivedFrom"--> v2 f1[["not "]] subgraph f1e1["Exists Clause"] e1v1 -->e1v2--> e1v3 e1v4 --"wikibase:qualifier"--> e1v2 e1v1("?givenStmt"):::projected e1v3("?obj"):::projected e1v2("?pred"):::projected e1v4("?prop"):::projected end f1--EXISTS--> f1e1 f1 --> v1 f1 --> v3 f1 --> v4 f1 --> v5 f1 --> c2 v1 -->v3--> v4 v5 --"wikibase:qualifier"--> v3 v6 --"p:direct/P21"--> c4 v6 --"p:direct/P27"--> c6 v6 --"p:P735"--> v1 v1 --"p:statement/P735"--> c9