query-0558b87c6486b73a80462169c6ed4ed3
合并罪名
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?People_s_Republic_of_China ?People_s_Republic_of_ChinaLabel (GROUP_CONCAT(?label; SEPARATOR = ",") AS ?criminals) WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "zh". }
?People_s_Republic_of_China wdt:P27 wd:Q148.
?People_s_Republic_of_China wdt:P1399 ?criminal.
?criminal rdfs:label ?label.
FILTER(LANG(?label) = "zh-cn")
}
GROUP BY ?People_s_Republic_of_China ?People_s_Republic_of_ChinaLabel
LIMIT 9999999
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?People_s_Republic_of_China"):::projected
v3("?criminal")
v4("?criminals")
v1("?label"):::projected
c7(["wd:Q148"]):::iri
c3(["bd:serviceParam"]):::iri
c5(["zh"]):::literal
f0[["?label = 'zh-cn'"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v2 --"wdt:P27"--> c7
v2 --"wdt:P1399"--> v3
v3 --"rdfs:label"--> v1
bind2[/"?label"/]
v1 --o bind2
bind2 --as--o v4