query-88911dcb1b32b47e5785b61cde1eaa67

rq turtle/ttl


Azok az emberek,

- akik Magyarországhoz köthetően sportolnak,

- de nincs megadva az állampolgárságuk.

-----------------------------------------------------------------------------------------------------

Palotabarát-nak szeretettel, ( készült: Tacsipacsi-kódját felhasználva)

SELECT DISTINCT ?item ?itemLabel ?itemDescription (COUNT(?sitelink) AS ?sitelinks) WHERE { ?item wdt:P1532 wd:Q28 . # Country for sport = Hungary ?item wdt:P31 wd:Q5. # Instance of = Human MINUS { ?item wdt:P27 ?citizenship } . # Nincs citizenship megadva. OPTIONAL { ?sitelink schema:about ?item FILTER REGEX(STR(?sitelink), ".wikipedia.org/wiki/") } . FILTER NOT EXISTS { [] schema:about ?item; schema:isPartOf https://hu.wikipedia.org/ } . SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,es,fr,pt,ru,zh,jp,ceb" } } GROUP BY ?item ?itemLabel ?itemDescription ORDER BY DESC (?sitelinks) # csökkenő sorrendben kerül listázásra

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#>
# -----------------------------------------------------------------------------------------------------
#  Azok az emberek, 
#  - akik Magyarországhoz köthetően sportolnak, 
#  - de nincs megadva az állampolgárságuk.
# -----------------------------------------------------------------------------------------------------
#  Palotabarát-nak szeretettel,  ( készült: Tacsipacsi-kódját felhasználva)
#
SELECT DISTINCT ?item ?itemLabel ?itemDescription   (COUNT(?sitelink) AS ?sitelinks) WHERE {
    ?item   wdt:P1532 wd:Q28 .  # Country for sport = Hungary
    ?item   wdt:P31   wd:Q5.    # Instance of  = Human
    MINUS { ?item wdt:P27 ?citizenship } .  # Nincs citizenship megadva.
    OPTIONAL { ?sitelink schema:about ?item FILTER REGEX(STR(?sitelink), ".wikipedia.org/wiki/") } .
    FILTER NOT EXISTS { [] schema:about ?item; schema:isPartOf <https://hu.wikipedia.org/> } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,es,fr,pt,ru,zh,jp,ceb" }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC (?sitelinks)  # csökkenő sorrendben kerül listázásra

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?citizenship") v2("?item"):::projected v3("?sitelink"):::projected v5("?sitelinks") a1((" ")) c13(["hu,en,de,es,fr,pt,ru,zh,jp,ceb"]):::literal c6(["wd:Q28"]):::iri c3([https://hu.wikipedia.org/]):::iri c11(["bd:serviceParam"]):::iri c8(["wd:Q5"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?item"):::projected e0a1((" ")):::projected e0c3([https://hu.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> a1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 a1 --"schema:about"--> v2 a1 --"schema:isPartOf"--> c3 v2 --"wdt:P1532"--> c6 v2 --"wdt:P31"--> c8 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P27"--> v4 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; c11 --"wikibase:language"--> c13 end bind3[/"count(?sitelink)"/] v3 --o bind3 bind3 --as--o v5