query-6c57ca64fadd06fb595a0dc53d512706

rq turtle/ttl

All Humans with less than 6 statements linked with Odia Wikipedia SELECT ?item ?linkcount ?statementCount ?itemLabel ?itemDescription ?article WHERE { VALUES (?project ?maxStatementCount ?labelLanguage) { (https://or.wikipedia.org/6 "or") # adjust language and count here # URL above must be https:// and include the trailing / ! } ?item wdt:P31 wd:Q5 . # item = humans only ?article a schema:Article; schema:about ?item; schema:isPartOf ?project. ?item wikibase:statements ?statementCount. FILTER(?statementCount < ?maxStatementCount). OPTIONAL { ?item rdfs:label ?itemLabel. FILTER(LANG(?itemLabel) = ?labelLanguage). } OPTIONAL { ?item wikibase:sitelinks ?linkcount. } # for counting sitelinks SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } # for generating label } ORDER BY ASC (?statementCount) LIMIT 123

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#>
# All Humans  with less than 6 statements linked with Odia Wikipedia
SELECT ?item ?linkcount ?statementCount ?itemLabel ?itemDescription ?article  WHERE {
  VALUES (?project ?maxStatementCount ?labelLanguage) {
    (<https://or.wikipedia.org/>6 "or") # adjust language and count here
    # URL above must be https:// and include the trailing / !
  }
  ?item wdt:P31 wd:Q5 .         # item = humans only
  ?article a schema:Article;
           schema:about ?item;
           schema:isPartOf ?project.
  ?item wikibase:statements ?statementCount.
    FILTER(?statementCount < ?maxStatementCount).
  OPTIONAL { ?item rdfs:label ?itemLabel. 
    FILTER(LANG(?itemLabel) = ?labelLanguage). }
    OPTIONAL { ?item wikibase:sitelinks ?linkcount. } # for counting sitelinks
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } # for generating label
}
ORDER BY ASC (?statementCount)
LIMIT 123

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?article"):::projected v6("?item"):::projected v3("?itemLabel"):::projected v6("?labelLanguage") v8("?linkcount"):::projected v6("?maxStatementCount") v5("?project") v1("?statementCount"):::projected c4(["schema:Article"]):::iri c11(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal 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(["6^^xsd:integer"]) bind11 --> bind1 bind12(["or"]) bind12 --> bind1 v6 --"wdt:P31"--> c2 v7 --"a"--> c4 v7 --"schema:about"--> v6 v7 --"schema:isPartOf"--> v5 v6 --"wikibase:statements"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."rdfs:label".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."wikibase:sitelinks".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end