query-c1e0290da607a5c6296ab08f0b33f878

rq turtle/ttl

items created by me in some time period without P31 and try something like: Special:Contributions/Jarekt. At the moment I need to scrape item IDs from (P31)instance of This is probably not possible by a SPARQL query, but just in case there is a way do do one: I am looking for items created by me that lack some property like

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
{ 
  VALUES ?item { 
wd:Q112272615
wd:Q112272614
  } . 
  MINUS {?item wdt:P31 []}.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?item/] bind0-->v1 bind00(["wd:Q112272615"]) bind00 --> bind0 bind01(["wd:Q112272614"]) bind01 --> bind0 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end