query-ec462bc1fb05a076f0aa70d016658074
Címkék és leírások lekérdezése
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
?item wdt:P31 wd:Q5;
{?item wdt:P27 wd:Q28} UNION {?item wdt:P27 wd:Q171150} UNION {?item wdt:P27 wd:Q655621}
# wdt:P8998 ?y_22.
# ?article schema:about ?item ;
# schema:isPartOf <https://hu.wikipedia.org/> .
# MINUS { ?item rdfs:label ?hulabel FILTER ( lang(?hulabel) = "eo" ) }
MINUS { ?item schema:description ?hudescription FILTER ( lang(?hudescription) = "ru" ) }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?hudescription")
v1("?item"):::projected
c8(["wd:Q28"]):::iri
c9(["wd:Q171150"]):::iri
c10(["wd:Q655621"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,hu"]):::literal
c6(["wd:Q5"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
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;
v1 --"wdt:P27"--> c10
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c9
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P27"--> c8
end
union0r <== or ==> union0l
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?hudescription = 'ru'"]]
f1 --> v2
v1 --"schema:description"--> v2
end