query-353753492fba27a8bd2c77152d0984e8

rq turtle/ttl

Second method

Use at

PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?articleLabel
WHERE {
  ?article schema:about ?item ;
           schema:inLanguage "ckb" ;
           schema:isPartOf <https://ckb.wikipedia.org/> ;
           schema:name ?articleLabel .

  FILTER NOT EXISTS { 
    ?item schema:description ?description . 
    FILTER (lang(?description) = "ckb") 
  }

  OPTIONAL {
    ?item schema:description ?enDescription .
    FILTER (lang(?enDescription) = "en")
  }

  FILTER (!CONTAINS(LCASE(?enDescription), "wikimedia template"))
  FILTER (!CONTAINS(LCASE(?enDescription), "wikimedia category"))
  FILTER (!CONTAINS(LCASE(?enDescription), "wikimedia module"))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article") v5("?articleLabel"):::projected v2("?description") v1("?enDescription") v3("?item"):::projected c10([https://ckb.wikipedia.org/]):::iri c4(["ckb"]):::literal f0[["not contains(lower-case(?enDescription),'wikimedia module')"]] f0 --> v1 f1[["not contains(lower-case(?enDescription),'wikimedia category')"]] f1 --> v1 f2[["not contains(lower-case(?enDescription),'wikimedia template')"]] f2 --> v1 f3[["not "]] subgraph f3e0["Exists Clause"] e0f0[["?description = 'ckb'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v1("?description"):::projected e0v2("?item"):::projected end f3--EXISTS--> f3e0 f3 --> v2 f3 --> v3 f3 --> c5 f4[["?description = 'ckb'"]] f4 --> v2 v3 --"schema:description"--> v2 v4 --"schema:about"--> v3 v4 --"schema:inLanguage"--> c4 v4 --"schema:isPartOf"--> c10 v4 --"schema:name"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:description".-> v1 end