query-a81f0dc501af3d052ec9d1e284f3faaf

rq turtle/ttl

Articles SELECT DISTINCT ?language ?groupeLabel ?languageLabel ?sitelink WHERE { { VALUES (?language ?groupe) { (wd:Q33302 wd:Q496250) (wd:Q150 wd:Q23492) } } UNION { ?language wdt:P361 ?groupe . ?groupe wdt:P361 wd:Q496250 . }

OPTIONAL { ?sitelink schema:about ?language . ?sitelink schema:inLanguage "fr" . ?sitelink schema:isPartOf https://fr.wikipedia.org/. }

SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". } } ORDER BY ?languageLabel

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#>
# Articles 
SELECT DISTINCT ?language ?groupeLabel ?languageLabel ?sitelink
WHERE {
  {
    VALUES (?language ?groupe) {
      (wd:Q33302 wd:Q496250)
      (wd:Q150 wd:Q23492)
      }
  } UNION {
    ?language wdt:P361 ?groupe .
    ?groupe wdt:P361 wd:Q496250 .
  }

  OPTIONAL {
    ?sitelink schema:about ?language .
    ?sitelink schema:inLanguage "fr" .
    ?sitelink schema:isPartOf <https://fr.wikipedia.org/>.
  }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
} ORDER BY ?languageLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?groupe") v2("?language"):::projected v1("?languageLabel"):::projected v4("?sitelink"):::projected c9(["bd:serviceParam"]):::iri c7([https://fr.wikipedia.org/]):::iri c5(["fr"]):::literal c2(["wd:Q496250"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P361"--> v3 v3 --"wdt:P361"--> c2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; bind0[/VALUES ?groupe ?language/] bind0-->v2 bind0-->v3 bind00(["wd:Q33302"]) bind00 --> bind0 bind01(["wd:Q496250"]) bind01 --> bind0 bind02(["wd:Q150"]) bind02 --> bind0 bind03(["wd:Q23492"]) bind03 --> bind0 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v2 v4 --"schema:inLanguage"--> c5 v4 --"schema:isPartOf"--> c7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c5 end