query-bd1014cfaa50d1b1e251e6263e716ccb

rq turtle/ttl

20 criteria for 2 or 3 focus languages 07:45, 4 March 2021 (UTC) Jura. --- Wikidata:Lexicographical data/Focus languages/RequirementsCould be interesting to have a query that finds the language(s) described in 11:42, 4 March 2021 (UTC) pagetalk / TomT0m author — can be written but not succintly or easily). Some of the criteria seems also hard to capture ( « The group has at least two members who can communicate in English and who are willing to be the long-term communication facilitators. » for example) Seems impossible to do here, I don’t think we even have informations like community size (do we?). https://web.imt-atlantique.fr/x-info/sdemasse/gccat/Calldifferent.htmlI can imagine easily a query that finds languages that finds candidates. Finding (a) set(s) of candidates is beyond what can be easily done in sparql because it would require something like an « alldiff » constraint ( Some should be possible. Here are two criteria partially:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?lang ?langLabel 
{
    ?wp wdt:P31 wd:Q10876391; wdt:P407 ?lang . # (7a) language edition
    ?lang p:P1098 [ ps:P1098 ?speakers ] . FILTER( ?speakers > 3000000)  # (5)
    FILTER( ?lang != wd:Q1860 )  # not English
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?lang"):::projected v2("?speakers") v3("?wp") a1((" ")) c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q10876391"]):::iri f0[["?lang != 'wd:Q1860'"]] f0 --> v1 f1[["?speakers > '3000000^^xsd:integer'"]] f1 --> v2 v3 --"p:direct/P31"--> c4 v3 --"p:direct/P407"--> v1 a1 --"p:statement/P1098"--> v2 v1 --"p:P1098"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end