"RCCTD WikiDataCuration06"의 두 판 사이의 차이
CNUDH
(→쿼리작성) |
(→쿼리작성) |
||
| 223번째 줄: | 223번째 줄: | ||
<span style="color:red">'''ORDER BY'''</span> ?year<br/> | <span style="color:red">'''ORDER BY'''</span> ?year<br/> | ||
| − | #defaultView:Dimensions | + | #defaultView:Dimensions |
| − | SELECT ?personLabel ?birthYear ?deathYear ?age ?careerStart | + | SELECT ?personLabel ?birthYear ?deathYear ?age ?careerStart |
| − | WHERE { | + | WHERE { |
?person wdt:P31 wd:Q5 ; # 인간 | ?person wdt:P31 wd:Q5 ; # 인간 | ||
wdt:P27 wd:Q148 ; # 중국 국적 | wdt:P27 wd:Q148 ; # 중국 국적 | ||
| 243번째 줄: | 243번째 줄: | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". } | ||
| − | } | + | } |
2025년 12월 4일 (목) 13:32 판
목차
Contents
연구배경
(내용 서술)
연구목적
(내용 서술)
대상주제
(내용 서술)
쿼리작성
1. 국제 영화제 수상 중국 감독
국제 영화제에서 상을 타본 적이 있는 중국 영화 감독들을 찾아보자
SELECT ?person ?personLabel ?award ?awardLabel
WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 wd:Q2526255; # 영화 감독
wdt:P166 ?award. # 수상 경력
?award wdt:P31 wd:Q19020. # 영화제 상
SERVICE wikibase:label {bd:serviceParam wikibase:language "ko, zh, en". }
}
1-1. 국제 영화제 후보 및 사망 여부
국제 영화제에서 후보로 올라간 영화 감독들을 찾아보자. 단, 사망한 인물이면 표시해보자
SELECT ?person ?personLabel ?nominated ?nominatedLabel ?death
WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 wd:Q2526255; # 영화 감독
wdt:P1411 ?nominated. # 후보 경력
?nominated wdt:P31 wd:Q19020. # 영화제
OPTIONAL {?person wdt:P570 ?death.} # 사망일
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko, zh, en". }
}
2. 중국 내 영화 촬영지 분석
최근 중국 내에서 영화 촬영지로 사용된 장소들을 분석하여, 촬영된 영화 개수 순으로 정렬(상위 20곳)
SELECT ?place ?placeLabel (COUNT(?film) AS ?count) ?location
WHERE {
?film wdt:P31 wd:Q11424. # 영화
?film wdt:P915 ?place. # 촬영지
?place wdt:P17 wd:Q148. # 촬영지가 중국 위치
OPTIONAL { ?place wdt:P625 ?location } # 좌표
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
GROUP BY ?place ?placeLabel ?location
ORDER BY DESC(?count)
LIMIT 20
3. 중국 전국 영화관 지도
중국 전국 영화관을 지도로 보여줘
#defaultView:Map
SELECT ?place ?placeLabel ?location
WHERE {
?place wdt:P31 wd:Q41253. # 인스턴스 : 영화관 (Cinema)
?place wdt:P17 wd:Q148. # 국가 : 중국 (China)
?place wdt:P625 ?location. # 좌표
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
4. 영화 감독들의 출생 장소
#defaultView:Map
SELECT ?director ?directorLabel ?birthPlace ?birthPlaceLabel ?location
WHERE {
?director wdt:P106 wd:Q2526255. # 직업: 영화 감독 (Film Director)
?director wdt:P19 ?birthPlace. # 출생지 (Place of birth)
?birthPlace wdt:P17 wd:Q148. # 국가: 중국 (China)
?birthPlace wdt:P625 ?location. # 좌표 (지도 표시에 필수)
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
5. 수상/후보작 영화 이미지 그리드
중국 영화 중에서 국제 시상식에서 수상하거나 후보작으로 올라온 작품 중 이미지가 있는 것들 출력해보자
#defaultView:ImageGrid
SELECT DISTINCT ?film ?filmLabel ?image ?award ?awardLabel
WHERE {
?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148; # 제작 국가: 중국
wdt:P18 ?image; # 이미지 필수
wdt:P166|wdt:P1411 ?award. # 수상 또는 후보
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
LIMIT 50
6. 제작비와 흥행 수익 상관관계
중국제작영화들의 제작비와 흥행 수익을 scatter chart에 표시해보자
#defaultView:ScatterChart
SELECT ?budget ?boxOffice ?film ?filmLabel
WHERE {
?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148. # 중국
OPTIONAL { ?film wdt:P2130 ?budget. } # 제작비
OPTIONAL { ?film wdt:P2142 ?boxOffice. } # 흥행 수익
FILTER(BOUND(?budget) && BOUND(?boxOffice))
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,en,zh". } }
7. 주요 국제 영화제 수상 및 후보작 현황
주요 국제 영화제에서 수상했거나 후보에 오른 중국 영화들을 확인해보자
SELECT ?film ?filmLabel ?status ?festival ?festivalLabel ?award ?awardLabel
WHERE {
?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148. # 중국
VALUES ?festival {
wd:Q42369 # 칸
wd:Q49024 # 베니스
wd:Q130871 # 베를린
wd:Q482633 # 부산
wd:Q477369 # 상하이
}
{
?film wdt:P166 ?award. # 수상 경력
?award wdt:P1027 ?festival. # 상의 수여 주체가 위 영화제인 경우
BIND("수상" AS ?status)
}
UNION
{
?film wdt:P1411 ?award. # 후보 경력
?award wdt:P1027 ?festival. # 상의 수여 주체가 위 영화제인 경우
BIND("후보" AS ?status)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
ORDER BY ?filmLabel ?status
8. 국가별 주요 영화제 진출작 트리맵
9개국의 주요 영화제 후보작과 수상작을 출력해줘
#defaultView:TreeMap
SELECT DISTINCT ?countryLabel ?filmLabel
WHERE {
VALUES ?country {
wd:Q148 # 중국
wd:Q142 # 프랑스
wd:Q145 # 영국
wd:Q30 # 미국
wd:Q884 # 대한민국
wd:Q17 # 일본
wd:Q38 # 이탈리아
wd:Q183 # 독일
wd:Q29 # 스페인
}
VALUES ?festival {
wd:Q42369 # 칸 영화제
wd:Q49024 # 베니스 영화제
wd:Q130871 # 베를린 영화제
wd:Q482633 # 부산 국제 영화제
wd:Q477369 # 상하이 국제 영화제
}
?film wdt:P31 wd:Q11424; # 인스턴스: 영화
wdt:P495 ?country. # 제작 국가
?film wdt:P166|wdt:P1411 ?award.
?award wdt:P1027 ?festival.
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
LIMIT 1000
9. 최근 30년 중국 영화 제작 편수 추이
중국 영화의 최근 30년(1995~2024) 간 제작 편수 변화를 연도별로 확인해보자
#defaultView:BarChart
SELECT ?yearLabel (COUNT(?film) AS ?count)
WHERE {
?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148; # 중국
wdt:P577 ?pubDate. # 개봉일
BIND(YEAR(?pubDate) AS ?year)
FILTER(?year >= 1995 && ?year <= 2024)
BIND(STR(?year) AS ?yearLabel)
}
GROUP BY ?yearLabel ?year
ORDER BY ?year
#defaultView:Dimensions
SELECT ?personLabel ?birthYear ?deathYear ?age ?careerStart
WHERE {
?person wdt:P31 wd:Q5 ; # 인간
wdt:P27 wd:Q148 ; # 중국 국적
wdt:P106 wd:Q2526255 ; # 영화감독
wdt:P569 ?birth . # 출생일
OPTIONAL { ?person wdt:P570 ?death. }
OPTIONAL { ?person wdt:P2031 ?careerStartDate. }
BIND(YEAR(?birth) AS ?birthYear) BIND(YEAR(?death) AS ?deathYear) BIND(COALESCE(?deathYear, 2024) - ?birthYear AS ?age) #만약 사망 연도(?deathYear)가 있으면 쓰고, 없으면(아직 살아있으면) 2024년을 대신 써라. BIND(YEAR(?careerStartDate) AS ?careerStart) #경력출발시점 추출하기
FILTER(?birthYear >= 1900 && ?birthYear <= 2000) FILTER(?age > 0)
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
결과해석
(내용 서술)
참고자원
(내용 서술)
주석