query-df883f58f251f5d5d048c9a72bc20c38
TODO
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?item (SAMPLE(?s1) AS ?label) WHERE {
?item schema:description "Japanese journalist"@en; wdt:P106 wd:Q1930187; wdt:P27 wd:Q17.
?item rdfs:label ?s1. FILTER(LANG(?s1)="zh"||LANG(?s1)="zh-hans"||LANG(?s1)="zh-hant"||LANG(?s1)="zh-cn"||LANG(?s1)="zh-hk"||LANG(?s1)="zh-tw"||LANG(?s1)="zh-mo"||LANG(?s1)="zh-my")
} GROUP BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?label")
v1("?s1"):::projected
c12(["wd:Q1930187"]):::iri
c14(["wd:Q17"]):::iri
c10([sJapanese journalist^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal
f0[["(?s1 = 'zh' || (?s1 = 'zh-hans' || (?s1 = 'zh-hant' || (?s1 = 'zh-cn' || (?s1 = 'zh-hk' || (?s1 = 'zh-tw' || (?s1 = 'zh-mo' || ?s1 = 'zh-my')))))))"]]
f0 --> v1
v2 --"schema:description"--> c10
v2 --"wdt:P106"--> c12
v2 --"wdt:P27"--> c14
v2 --"rdfs:label"--> v1
bind2[/"sample(?s1)"/]
v1 --o bind2
bind2 --as--o v3