query-0c04f3dbfba63c19d40e9de93fbecee5

rq turtle/ttl

Huwikiből hiányzó albán témájú cikkek

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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?alban ?albanLabel ?albanDescription (COUNT(distinct ?sitelink) AS ?sitelinks) WHERE {
    { ?alban wdt:P172 wd:Q179248 } UNION { ?alban wdt:P27 wd:Q222 } UNION { ?alban wdt:P17 wd:Q222 } UNION { ?alban wdt:P495 wd:Q222 }
    OPTIONAL { ?sitelink schema:about ?alban FILTER REGEX(STR(?sitelink), ".wikipedia.org/wiki/") } .
    FILTER NOT EXISTS { [] schema:about ?alban; schema:isPartOf <https://hu.wikipedia.org/> } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en" }
}
GROUP BY ?alban ?albanLabel ?albanDescription
HAVING (?sitelinks > 9)
ORDER BY DESC (?sitelinks)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?alban"):::projected v3("?sitelink"):::projected v4("?sitelinks") a1((" ")) c15(["hu,en"]):::literal c4([https://hu.wikipedia.org/]):::iri c13(["bd:serviceParam"]):::iri c9(["wd:Q222"]):::iri c7(["wd:Q179248"]):::iri f0[["?sitelinks > '9^^xsd:integer'"]] f0 --> v4 f1[["not "]] subgraph f1e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?alban"):::projected e0a1((" ")):::projected e0c3([https://hu.wikipedia.org/]):::iri end f1--EXISTS--> f1e0 f1 --> a1 f1 --> c2 f1 --> v2 f1 --> c3 f1 --> c4 a1 --"schema:about"--> v2 a1 --"schema:isPartOf"--> c4 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P495"--> c9 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P17"--> c9 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P27"--> c9 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P172"--> c7 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:about".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind3[/"count(?sitelink)"/] v3 --o bind3 bind3 --as--o v4