"RCCTD(2025)WikiDataQueries"의 두 판 사이의 차이
CNUDH
JSH CNUGrad (토론 | 기여) (→Person) |
JSH CNUGrad (토론 | 기여) (→Event) |
||
| 65번째 줄: | 65번째 줄: | ||
<br/><br/><br/> | <br/><br/><br/> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=='''<span style="color:#3CB371">Event</span>'''== | =='''<span style="color:#3CB371">Event</span>'''== | ||
2025년 11월 10일 (월) 14:27 판
목차
Contents
Person
① 한글 명칭으로 특정 인물(예:마오쩌둥) 찾기
SELECT ?person ?personLabel
WHERE {
?person rdfs:label "마오쩌둥"@ko.
SERVICE wikibase:label { bd:serviceParam wikibase:language
"[AUTO_LANGUAGE],ko,en". }
}
② 기본 정보(생몰년, 출생지)를 포함한 당나라 시대 사람들 찾기
SELECT ?person ?personLabel ?birth ?death ?birthplaceLabel ?occupationLabel
WHERE {
?person wdt:P27 wd:Q9683. # 국적: 당나라
- OPTIONAL { ?person wdt:P569 ?birth. }
- OPTIONAL { ?person wdt:P570 ?death. }
- OPTIONAL { ?person wdt:P19 ?birthplace. }
- OPTIONAL { ?person wdt:P106 ?occupation. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "zh, en". }
}
LIMIT 100
③ 1950년 이후의 드라마와 영화에 가장 많이 출연한 인물 찾기
#defaultView:BubbleChart
SELECT ?person (COUNT(?work) AS ?count) ?personLabel
WHERE {
- VALUES ?type { wd:Q11424 wd:Q5398426 }
- ?work wdt:P31 ?type.
- ?work wdt:P577 ?date.
- FILTER (YEAR(?date) >= 1950)
- ?work wdt:P161 ?person.
- ?person wdt:P27 wd:Q148.
- SERVICE wikibase:label { bd:serviceParam wikibase:language "zh, ko, en". }
- }
- }
GROUP BY ?person ?personLabel
ORDER BY DESC(?count)
LIMIT 50
Event
Place
CulturalHeritage
Combination