query-2d38cec81d7ba80c2537383e60056f07

rq turtle/ttl

For use with QuickStatements

1. Run the Query and download as CSV

2. Go to QuickStatements and put the following up top: qid,Dsmn

3. Open the CSV file and copy all that stuff under "string" and paste it under the text inserted at step 2

4. Press "Import CSV commands"

SELECT DISTINCT (CONCAT(replace(str(?item),"http://www.wikidata.org/entity/", ""),',"almaa ovdânommâ"') as ?string) WHERE { ?item wdt:P31 wd:Q12308941; wdt:P282 []. SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en,de,it,es,pt,nb". } FILTER(NOT EXISTS { ?item schema:description ?itemdesc. FILTER(LANG(?itemdesc) = "smn") # with missing Inari Sámi description }) MINUS {?item wdt:P31 wd:Q3409032.} } LIMIT 3000

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#For use with QuickStatements
# 1. Run the Query and download as CSV 
# 2. Go to QuickStatements and put the following up top: qid,Dsmn
# 3. Open the CSV file and copy all that stuff under "string" and paste it under the text inserted at step 2
# 4. Press "Import CSV commands"
SELECT DISTINCT (CONCAT(replace(str(?item),"http://www.wikidata.org/entity/", ""),',"almaa ovdânommâ"') as ?string) WHERE {
  ?item wdt:P31 wd:Q12308941;
        wdt:P282 [].
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,en,de,it,es,pt,nb". }
  FILTER(NOT EXISTS {
    ?item schema:description ?itemdesc.
    FILTER(LANG(?itemdesc) = "smn") # with missing Inari Sámi description
  })
  MINUS {?item wdt:P31 wd:Q3409032.}
}
LIMIT 3000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?itemdesc") v3("?string") a1((" ")) c9(["nl,fr,en,de,it,es,pt,nb"]):::literal c4(["wd:Q12308941"]):::iri c7(["bd:serviceParam"]):::iri c10(["wd:Q3409032"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemdesc = 'smn'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v2("?item"):::projected e0v1("?itemdesc"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?itemdesc = 'smn'"]] f1 --> v1 v2 --"schema:description"--> v1 v2 --"wdt:P31"--> c4 v2 --"wdt:P282"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> c10 end bind3[/"concat(replace(str(?item),'http://www.wikidata.org/entity/',''),',"almaa ovdânommâ"')"/] v2 --o bind3 bind3 --as--o v3