query-a67f75bc1cbdaa66037fea70384bd3db
Propertiesofficial website (P856)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?linkcount ?statements ?itemLabel ?alias
WHERE {
?item ^schema:about/schema:isPartOf/^wdt:P856 wd:Q7102897 .
?item skos:altLabel ?alias .
FILTER( LANG( ?alias ) = 'or' && REGEX( LCASE( STR( ?alias ) ), '[a-z]' ) ) .
OPTIONAL { ?item wikibase:sitelinks ?linkcount. } #count sitelinks
?item wikibase:statements ?statements . # for counting statements
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } # for generating label
}
ORDER BY DESC(?linkcount)
LIMIT 123
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?alias"):::projected
v3("?item"):::projected
v1("?linkcount"):::projected
v4("?statements"):::projected
a1((" "))
a2((" "))
c5(["wd:Q7102897"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?alias = 'or'regex(lower-case(str(?alias)),'#91;a-z#93;')"]]
f0 --> v2
a1 --"schema:about"--> v3
a1 --"schema:isPartOf"--> a2
c5 --"wdt:P856"--> a2
v3 --"skos:altLabel"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wikibase:sitelinks".-> v1
end
v3 --"wikibase:statements"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end