query-226a6eb7e268d70ca6bf1f09575023be

rq turtle/ttl

Militants pour les droits LGBT sans article en français

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (GROUP_CONCAT(DISTINCT ?occupationLabel; SEPARATOR=", ") AS ?occupations) (GROUP_CONCAT(DISTINCT ?countryLabel; SEPARATOR=", ") AS ?countries) {
  VALUES ?occupation {wd:Q19509201} . 
   ?item wdt:P31 wd:Q5;
               wdt:P27 ?country;
               wdt:P27 ?target_country;
               wdt:P106 ?occupation .
    FILTER NOT EXISTS {
    ?article schema:about ?item .
    ?article schema:isPartOf <https://fr.wikipedia.org/> .
  }
   SERVICE wikibase:label {
       bd:serviceParam wikibase:language "fr,en" .
       ?item rdfs:label ?itemLabel .
       ?occupation rdfs:label ?occupationLabel .
       ?country rdfs:label ?countryLabel .
   } .
} GROUP BY ?item ?itemLabel ORDER BY ?countries

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v11("?countries") v5("?country") v9("?countryLabel"):::projected v3("?item"):::projected v7("?itemLabel"):::projected v4("?occupation") v8("?occupationLabel"):::projected v10("?occupations") v6("?target_country") c9(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c11(["fr,en"]):::literal c3([https://fr.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article"):::projected e0v2("?item"):::projected e0c3([https://fr.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 f0 --> c2 f0 --> c3 v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 bind1[/VALUES ?occupation/] bind1-->v4 bind10(["wd:Q19509201"]) bind10 --> bind1 v3 --"wdt:P31"--> c5 v3 --"wdt:P27"--> v5 v3 --"wdt:P27"--> v6 v3 --"wdt:P106"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 v3 --"rdfs:label"--> v7 v4 --"rdfs:label"--> v8 v5 --"rdfs:label"--> v9 end bind4[/"?occupationLabel"/] v8 --o bind4 bind4 --as--o v10 bind5[/"?countryLabel"/] v9 --o bind5 bind5 --as--o v11