query-82315ac63ff9f12e4d87b7f2a059370f

rq turtle/ttl

Artikler på norsk wikipedia, uten bilde på Wikidata men med kobling til kategori på Commons

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#>
select ?item ?itemLabel ?instLabel ?sl_nowiki ?sl_commons
where {
  {
    select *
    where {
      ?item wdt:P17|wdt:P27|wdt:P495|wdt:P1532|wdt:P8047 wd:Q20 .
      ?item wdt:P31 ?inst .
      filter not exists { ?item wdt:P18 [] . }
      ?sl_nowiki schema:about ?item ;
        schema:isPartOf <https://no.wikipedia.org/> .
      ?sl_commons schema:about ?item ;
        schema:isPartOf <https://commons.wikimedia.org/> .
    }
  }
  service wikibase:label { bd:serviceParam wikibase:language "nb,nn,en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?inst") v1("?item"):::projected v4("?sl_commons"):::projected v3("?sl_nowiki"):::projected a1((" ")) c16(["nb,nn,en"]):::literal c12([https://commons.wikimedia.org/]):::iri c3(["wd:Q20"]):::iri c14(["bd:serviceParam"]):::iri c11([https://no.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P18"--> e0a1 e0v1("?item"):::projected e0a1((" ")):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> a1 v1 --"wdt:P18"--> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P8047"--> c3 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P1532"--> c3 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P495"--> c3 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P27"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P31"--> v2 v3 --"schema:about"--> v1 v3 --"schema:isPartOf"--> c11 v4 --"schema:about"--> v1 v4 --"schema:isPartOf"--> c12 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end