query-e8ed85236accde1bb8ce7e1b2a1674d8

rq turtle/ttl

All pages in Odia Wiki with less than 11 statements SELECT ?item ?statementCount ?itemLabel ?article WHERE { VALUES (?project ?maxStatementCount ?labelLanguage) { (https://or.wikipedia.org/ 11 "or") # adjust language and count here # URL above must be https:// and include the trailing / ! } ?article a schema:Article; schema:about ?item; schema:isPartOf ?project. ?item wikibase:statements ?statementCount. OPTIONAL { ?item rdfs:label ?itemLabel. FILTER(LANG(?itemLabel) = ?labelLanguage). } FILTER(?statementCount < ?maxStatementCount). } LIMIT 1000

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# All pages in Odia Wiki with less than 11 statements
SELECT ?item ?statementCount ?itemLabel ?article  WHERE {
  VALUES (?project ?maxStatementCount ?labelLanguage) {
    (<https://or.wikipedia.org/> 11 "or") # adjust language and count here
    # URL above must be https:// and include the trailing / !
  }
  ?article a schema:Article;
           schema:about ?item;
           schema:isPartOf ?project.
  ?item wikibase:statements ?statementCount.
  OPTIONAL { ?item rdfs:label ?itemLabel. 
    FILTER(LANG(?itemLabel) = ?labelLanguage). }
    FILTER(?statementCount < ?maxStatementCount).
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?article"):::projected v7("?item"):::projected v3("?itemLabel"):::projected v6("?labelLanguage") v6("?maxStatementCount") v5("?project") v1("?statementCount"):::projected c2(["schema:Article"]):::iri f0[["?statementCount < ?maxStatementCount"]] f0 --> v1 f0 --> v6 bind1[/VALUES ?labelLanguage ?maxStatementCount ?project/] bind1-->v5 bind1-->v6 bind1-->v6 bind10([https://or.wikipedia.org/]) bind10 --> bind1 bind11(["11^^xsd:integer"]) bind11 --> bind1 bind12(["or"]) bind12 --> bind1 v6 --"a"--> c2 v6 --"schema:about"--> v7 v6 --"schema:isPartOf"--> v5 v7 --"wikibase:statements"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v7 -."rdfs:label".-> v3 end