query-e872a3b972f20cb13c6f02dda6808d2d

rq turtle/ttl

Segédlekérdezés az idegen hangzású nevekhez

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?langLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],hu". }
  { ?item wdt:P27 wd:Q28. }  UNION  { ?item wdt:P27 wd:Q171150. }  UNION  { ?item wdt:P27 wd:Q655621. }
  ?item wdt:P735 wd:Q11122389;
    p:P735 ?statement.
  ?statement ps:P735 ?nyelv.
  OPTIONAL { ?statement pq:P407 ?lang. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v4("?lang") v3("?nyelv") v2("?statement") c7(["wd:Q171150"]):::iri c6(["wd:Q28"]):::iri c10(["wd:Q11122389"]):::iri c8(["wd:Q655621"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,hu"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end 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 --"p:direct/P27"--> c8 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P27"--> c7 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"p:direct/P27"--> c6 end union0r <== or ==> union0l end v1 --"p:direct/P735"--> c10 v1 --"p:P735"--> v2 v2 --"p:statement/P735"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P407".-> v4 end