query-8a064c27a3b98fd6e3a293420c522cb1

rq turtle/ttl

TODO

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
WHERE
{
    ?item schema:description "Wikimedia list article"@en .
    MINUS { ?item wdt:P31/wdt:P279* wd:Q13406463 }
    FILTER NOT EXISTS {
      ?item rdfs:label ?enLabel.
      FILTER(LANG(?enLabel) = 'en') 
      FILTER(STRSTARTS(lcase(STR(?enLabel)), 'list'))
    }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?enLabel") v2("?item"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c5([sWikimedia list article^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal c2(["en"]):::literal c8(["wd:Q13406463"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["starts-with(lower-case(str(?enLabel)),'list')"]] e0f0 --> e0v1 e0f1[["?enLabel = 'en'"]] e0f1 --> e0v1 e0v2 --"rdfs:label"--> e0v1 e0v1("?enLabel"):::projected e0v2("?item"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c3 f1[["starts-with(lower-case(str(?enLabel)),'list')"]] f1 --> v1 f2[["?enLabel = 'en'"]] f2 --> v1 v2 --"rdfs:label"--> v1 v2 --"schema:description"--> c5 subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c2 end