query-0a82cae31d73a731fc3b860e3f6148fb

rq turtle/ttl

Featured/Good articles in Korean that don't have a French Wikipedia page

SELECT DISTINCT ?item ?itemLabel WHERE { ?featuredArticle schema:about ?item ; schema:inLanguage "ko" ; wikibase:badge ?badgeValues .

VALUES ?badgeValues { wd:Q17437796 # that are featured articles wd:Q17506997 # or featured lists wd:Q17437798 # or good articles }

OPTIONAL { ?sitelink schema:about ?item ; schema:inLanguage "fr" . } FILTER (!BOUND(?sitelink))

SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en,ja,ko" . } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Featured/Good articles in Korean that don't have a French Wikipedia page

SELECT DISTINCT ?item ?itemLabel 
WHERE
{
  ?featuredArticle schema:about ?item ; 
                   schema:inLanguage "ko" ; 
                   wikibase:badge ?badgeValues .

  VALUES ?badgeValues { 
    wd:Q17437796 # that are featured articles
    wd:Q17506997 # or featured lists
    wd:Q17437798 # or good articles
  } 

  OPTIONAL { 
    ?sitelink schema:about ?item ; 
              schema:inLanguage "fr" .
  } 
  FILTER (!BOUND(?sitelink))

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "fr,en,ja,ko" .
  }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?badgeValues") v3("?featuredArticle") v4("?item"):::projected v1("?itemLabel"):::projected v2("?sitelink") c7(["bd:serviceParam"]):::iri c3(["ko"]):::literal c9(["fr,en,ja,ko"]):::literal c5(["fr"]):::literal f0[["not bound(?sitelink)"]] f0 --> v2 v3 --"schema:about"--> v4 v3 --"schema:inLanguage"--> c3 v3 --"wikibase:badge"--> v6 bind1[/VALUES ?badgeValues/] bind1-->v6 bind10(["wd:Q17437796"]) bind10 --> bind1 bind11(["wd:Q17506997"]) bind11 --> bind1 bind12(["wd:Q17437798"]) bind12 --> bind1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v4 v2 --"schema:inLanguage"--> c5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end