행위

"RCCTD WikiDataCuration06"의 두 판 사이의 차이

CNUDH

(쿼리작성)
(쿼리작성)
87번째 줄: 87번째 줄:
 
  ?film wdt:P31 wd:Q11424.          # 영화<br/>
 
  ?film wdt:P31 wd:Q11424.          # 영화<br/>
 
  ?film wdt:P915 ?place.            # 촬영지<br/>
 
  ?film wdt:P915 ?place.            # 촬영지<br/>
  ?place wdt:P17 wd:Q148.          # 촬영지가 중국 위치<br/>
+
  ?place wdt:P17 wd:Q148.          # 촬영지가 중국<br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
 
  }<br/>
 
  }<br/>
100번째 줄: 100번째 줄:
 
  <span style="color:red">'''SELECT'''</span> ?place ?placeLabel ?location <br/>
 
  <span style="color:red">'''SELECT'''</span> ?place ?placeLabel ?location <br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
  ?place wdt:P31 wd:Q41253.      # 인스턴스 : 영화관 (Cinema)<br/>
+
  ?place wdt:P31 wd:Q41253.      # 인스턴스 : 영화관 <br/>
  ?place wdt:P17 wd:Q148.        # 국가 : 중국 (China)<br/>
+
  ?place wdt:P17 wd:Q148.        # 국가 : 중국 <br/>
 
  ?place wdt:P625 ?location.      # 좌표 <br/>
 
  ?place wdt:P625 ?location.      # 좌표 <br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
108번째 줄: 108번째 줄:
  
 
  '''4. 영화 감독들의 출생 장소'''<br/>
 
  '''4. 영화 감독들의 출생 장소'''<br/>
 +
영화 감독들의 출생 장소를 지도로 보여줘<br/>
 
  #defaultView:Map<br/>
 
  #defaultView:Map<br/>
 
  <span style="color:red">'''SELECT'''</span> ?director ?directorLabel ?birthPlace ?birthPlaceLabel ?location <br/>
 
  <span style="color:red">'''SELECT'''</span> ?director ?directorLabel ?birthPlace ?birthPlaceLabel ?location <br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
  ?director wdt:P106 wd:Q2526255.  # 직업: 영화 감독 (Film Director)<br/>
+
  ?director wdt:P106 wd:Q2526255.  # 직업: 영화 감독 <br/>
  ?director wdt:P19 ?birthPlace.    # 출생지 (Place of birth)<br/>
+
  ?director wdt:P19 ?birthPlace.    # 출생지 <br/>
  ?birthPlace wdt:P17 wd:Q148.      # 국가: 중국 (China)<br/>
+
  ?birthPlace wdt:P17 wd:Q148.      # 국가: 중국 <br/>
  ?birthPlace wdt:P625 ?location.  # 좌표 (지도 표시에 필수)<br/>
+
  ?birthPlace wdt:P625 ?location.  # 좌표 (<br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
 
  <span style="color:red">'''SERVICE'''</span> wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }<br/>
 
  }<br/>
 
  }<br/>
  
  
  '''5. 수상/후보작 영화 이미지 그리드 (순수 해외 실적)'''<br/>
+
  '''5. 수상/후보작 영화 이미지 그리드’’’<br/>
  중국 영화 중 자국(중국) 영화제를 제외한 국제 시상식 수상/후보작 이미지 (※ 위키데이터에 이미지가 존재하는 작품만 표시됨)<br/>
+
  중국 영화 중 자국 영화제를 제외한 국제 시상식 수상작 혹은 후보작들의 이미지를 보여줘 <br/>
 
  #defaultView:ImageGrid<br/>
 
  #defaultView:ImageGrid<br/>
 
  <span style="color:red">'''SELECT DISTINCT'''</span> ?film ?filmLabel ?image<br/>
 
  <span style="color:red">'''SELECT DISTINCT'''</span> ?film ?filmLabel ?image<br/>
126번째 줄: 127번째 줄:
 
  ?film wdt:P31 wd:Q11424;      # 영화<br/>
 
  ?film wdt:P31 wd:Q11424;      # 영화<br/>
 
       wdt:P495 wd:Q148;        # 제작 국가: 중국<br/>
 
       wdt:P495 wd:Q148;        # 제작 국가: 중국<br/>
       wdt:P18 ?image.          # 이미지 필수<br/>
+
       wdt:P18 ?image.          # 이미지 <br/>
 
  <br/>
 
  <br/>
  # 1. 상/후보/참여 데이터 찾기<br/>
+
  # 1. 상|후보|참여 데이터 찾기<br/>
 
  ?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.<br/>
 
  ?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.<br/>
 
  <br/>
 
  <br/>
144번째 줄: 145번째 줄:
 
  <span style="color:red">'''UNION'''</span><br/>
 
  <span style="color:red">'''UNION'''</span><br/>
 
  {<br/>
 
  {<br/>
   # [경로 C] ★ 올드보이 경로 (P31) <br/>
+
   # [경로 C] 상의 종류(Class)를 통한 간접 연결 (P31 경유)<br/>
 
   ?thing wdt:P31/wdt:P1027 ?festival. <br/>
 
   ?thing wdt:P31/wdt:P1027 ?festival. <br/>
 
  }<br/>
 
  }<br/>
 
  <br/>
 
  <br/>
  # 3. [국적 필터] 중국(Q148) 영화제 제외 (순수 해외 실적)<br/>
+
  # 3. [국적 필터] 중국(Q148) 영화제 제외 <br/>
 
  ?festival wdt:P17 ?country.<br/>
 
  ?festival wdt:P17 ?country.<br/>
 
  <span style="color:red">'''FILTER'''</span>(?country != wd:Q148)<br/>
 
  <span style="color:red">'''FILTER'''</span>(?country != wd:Q148)<br/>
199번째 줄: 200번째 줄:
  
 
  '''7-1. 한·중·일 순수 해외 영화제 실적 추이 (자국 개최 제외)'''<br/>
 
  '''7-1. 한·중·일 순수 해외 영화제 실적 추이 (자국 개최 제외)'''<br/>
  한·중·일 3국의 자국 영화제를 제외한 순수 해외 영화제 수상 및 후보 성과를 비교해보자 (올드보이 경로 포함)<br/>
+
  한·중·일 3국의 자국 영화제를 제외한 해외 영화제 수상 및 후보 성과를 비교해보자<br/>
 
  #defaultView:LineChart<br/>
 
  #defaultView:LineChart<br/>
 
  <span style="color:red">'''SELECT'''</span> ?yearLabel ?count ?countryLabel<br/>
 
  <span style="color:red">'''SELECT'''</span> ?yearLabel ?count ?countryLabel<br/>
206번째 줄: 207번째 줄:
 
     <span style="color:red">'''SELECT'''</span> ?yearLabel ?country (<span style="color:red">'''COUNT'''</span>(?thing) AS ?count)<br/>
 
     <span style="color:red">'''SELECT'''</span> ?yearLabel ?country (<span style="color:red">'''COUNT'''</span>(?thing) AS ?count)<br/>
 
     <span style="color:red">'''WHERE'''</span> {<br/>
 
     <span style="color:red">'''WHERE'''</span> {<br/>
      # [1단계: 서브쿼리] 4대 영화제 관련 '상/회차' 리스트부터 먼저 확보 (Force Execution)<br/>
 
 
       {<br/>
 
       {<br/>
 
         <span style="color:red">'''SELECT'''</span> <span style="color:red">'''DISTINCT'''</span> ?thing <span style="color:red">'''WHERE'''</span> {<br/>
 
         <span style="color:red">'''SELECT'''</span> <span style="color:red">'''DISTINCT'''</span> ?thing <span style="color:red">'''WHERE'''</span> {<br/>
          # 여기서 '경로'를 다 정의합니다. (올드보이 경로 포함)<br/>
 
 
           {<br/>
 
           {<br/>
             # [경로 A] 직접 수여 / 소속<br/>
+
             # [경로 A] 직통 / 소속<br/>
 
             ?thing wdt:P1027|wdt:P361 ?festival. <br/>
 
             ?thing wdt:P1027|wdt:P361 ?festival. <br/>
 
           }<br/>
 
           }<br/>
 
           <span style="color:red">'''UNION'''</span><br/>
 
           <span style="color:red">'''UNION'''</span><br/>
 
           {<br/>
 
           {<br/>
             # [경로 B] 회차 경유 (수여주체/소속)<br/>
+
             # [경로 B] 회차 경유 <br/>
 
             ?thing wdt:P1027|wdt:P361 ?edition.<br/>
 
             ?thing wdt:P1027|wdt:P361 ?edition.<br/>
 
             ?edition wdt:P361 ?festival.<br/>
 
             ?edition wdt:P361 ?festival.<br/>
222번째 줄: 221번째 줄:
 
           <span style="color:red">'''UNION'''</span><br/>
 
           <span style="color:red">'''UNION'''</span><br/>
 
           {<br/>
 
           {<br/>
             # [경로 C] ★ 올드보이 필수 경로 (P31) ★<br/>
+
             # [경로 C] 상의 종류(Class)를 통한 간접 연결 (P31 경유)<br>
            # 상 --(P31)--> 상의 그룹 --(P1027)--> 영화제<br/>
 
 
             ?thing wdt:P31 ?awardClass.<br/>
 
             ?thing wdt:P31 ?awardClass.<br/>
 
             ?awardClass wdt:P1027 ?festival.<br/>
 
             ?awardClass wdt:P1027 ?festival.<br/>
 
           }<br/>
 
           }<br/>
 
           <br/>
 
           <br/>
           # [국적 필터] 중국(Q148), 한국(Q884), 일본(Q17) 제외<br/>
+
           # [국적 필터] 한중일 제외<br/>
 
           ?festival wdt:P17 ?festCountry.<br/>
 
           ?festival wdt:P17 ?festCountry.<br/>
 
           <span style="color:red">'''FILTER'''</span>(?festCountry != wd:Q148 && ?festCountry != wd:Q884 && ?festCountry != wd:Q17)<br/>
 
           <span style="color:red">'''FILTER'''</span>(?festCountry != wd:Q148 && ?festCountry != wd:Q884 && ?festCountry != wd:Q17)<br/>
 
         }<br/>
 
         }<br/>
 
       }<br/>
 
       }<br/>
       # [2단계] 위에서 확보한 ?thing 리스트에 해당하는 영화 찾기<br/>
+
       # 위에서 확보한 ?thing 리스트에 해당하는 영화 찾기<br/>
 
       ?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.<br/>
 
       ?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.<br/>
 
  <br/>
 
  <br/>
       # 3. 국가 및 연도 필터<br/>
+
       # 국가 및 연도 필터<br/>
 
       <span style="color:red">'''VALUES'''</span> ?country { wd:Q148 wd:Q884 wd:Q17 }<br/>
 
       <span style="color:red">'''VALUES'''</span> ?country { wd:Q148 wd:Q884 wd:Q17 }<br/>
 
       ?film wdt:P495 ?country;<br/>
 
       ?film wdt:P495 ?country;<br/>
271번째 줄: 269번째 줄:
 
     wd:Q49024  # 베니스 영화제<br/>
 
     wd:Q49024  # 베니스 영화제<br/>
 
     wd:Q130871  # 베를린 영화제<br/>
 
     wd:Q130871  # 베를린 영화제<br/>
    wd:Q482633  # 부산 국제 영화제<br/>
 
    wd:Q477369  # 상하이 국제 영화제<br/>
 
 
   }<br/>
 
   }<br/>
 
   ?film wdt:P31 wd:Q11424;        # 인스턴스: 영화<br/>
 
   ?film wdt:P31 wd:Q11424;        # 인스턴스: 영화<br/>
334번째 줄: 330번째 줄:
 
  <span style="color:red">'''SELECT'''</span> ?personLabel ?birthYear ?deathYear ?age ?careerStart<br/>
 
  <span style="color:red">'''SELECT'''</span> ?personLabel ?birthYear ?deathYear ?age ?careerStart<br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
 
  <span style="color:red">'''WHERE'''</span> {<br/>
  # 1. 인물 조건: 중국 국적의 영화 감독<br/>
 
 
   ?person wdt:P31 wd:Q5 ;          # 인간<br/>
 
   ?person wdt:P31 wd:Q5 ;          # 인간<br/>
 
           wdt:P27 wd:Q148 ;        # 중국 국적<br/>
 
           wdt:P27 wd:Q148 ;        # 중국 국적<br/>
340번째 줄: 335번째 줄:
 
           wdt:P569 ?birth .        # 출생일<br/>
 
           wdt:P569 ?birth .        # 출생일<br/>
  
  # 2. 감독의 연출작 중 가장 빠른 개봉일 찾기 (서브쿼리)<br/>
 
 
   {<br/>
 
   {<br/>
 
     <span style="color:red">'''SELECT'''</span> ?person (<span style="color:red">'''MIN'''</span>(?pubDate) AS ?firstMovieDate)<br/>
 
     <span style="color:red">'''SELECT'''</span> ?person (<span style="color:red">'''MIN'''</span>(?pubDate) AS ?firstMovieDate)<br/>
 
     <span style="color:red">'''WHERE'''</span> {<br/>
 
     <span style="color:red">'''WHERE'''</span> {<br/>
       ?person wdt:P27 wd:Q148 ; wdt:P106 wd:Q2526255 . # 최적화<br/>
+
       ?person wdt:P27 wd:Q148 ; wdt:P106 wd:Q2526255 . <br/>
 
       ?film wdt:P31 wd:Q11424 ;      # 영화<br/>
 
       ?film wdt:P31 wd:Q11424 ;      # 영화<br/>
 
             wdt:P57 ?person ;        # 감독 = ?person<br/>
 
             wdt:P57 ?person ;        # 감독 = ?person<br/>
354번째 줄: 348번째 줄:
 
   <span style="color:red">'''OPTIONAL'''</span> { ?person wdt:P570 ?death. }<br/>
 
   <span style="color:red">'''OPTIONAL'''</span> { ?person wdt:P570 ?death. }<br/>
  
  # 3. 연도 추출 및 나이 계산<br/>
 
 
   <span style="color:red">'''BIND'''</span>(YEAR(?birth) AS ?birthYear)<br/>
 
   <span style="color:red">'''BIND'''</span>(YEAR(?birth) AS ?birthYear)<br/>
 
   <span style="color:red">'''BIND'''</span>(YEAR(?death) AS ?deathYear)<br/>
 
   <span style="color:red">'''BIND'''</span>(YEAR(?death) AS ?deathYear)<br/>
360번째 줄: 353번째 줄:
 
   <span style="color:red">'''BIND'''</span>(YEAR(?firstMovieDate) AS ?careerStart) # 실제 첫 영화 개봉년도<br/>
 
   <span style="color:red">'''BIND'''</span>(YEAR(?firstMovieDate) AS ?careerStart) # 실제 첫 영화 개봉년도<br/>
  
  # 4. 데이터 정제<br/>
 
 
   <span style="color:red">'''FILTER'''</span>(?birthYear >= 1900 && ?birthYear <= 2000)<br/>
 
   <span style="color:red">'''FILTER'''</span>(?birthYear >= 1900 && ?birthYear <= 2000)<br/>
 
   <span style="color:red">'''FILTER'''</span>(?age > 0)<br/>
 
   <span style="color:red">'''FILTER'''</span>(?age > 0)<br/>

2025년 12월 11일 (목) 17:17 판

데이터로 읽는 중국문화(강의) 페이지로 가기



중국 영화와 영화산업의 발전양상

: 연구 부제

정윤환





목차

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)
WHERE {
?film wdt:P31 wd:Q11424. # 영화
?film wdt:P915 ?place. # 촬영지
?place wdt:P17 wd:Q148. # 촬영지가 중국
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
GROUP BY ?place ?placeLabel
ORDER BY DESC(?count)
LIMIT 20


3. 중국 전국 영화관 지도
중국 전국 영화관을 지도로 보여줘
#defaultView:Map
SELECT ?place ?placeLabel ?location
WHERE {
?place wdt:P31 wd:Q41253. # 인스턴스 : 영화관
?place wdt:P17 wd:Q148. # 국가 : 중국
?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. # 직업: 영화 감독
?director wdt:P19 ?birthPlace. # 출생지
?birthPlace wdt:P17 wd:Q148. # 국가: 중국
?birthPlace wdt:P625 ?location. # 좌표 (
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}


5. 수상/후보작 영화 이미지 그리드’’’
중국 영화 중 자국 영화제를 제외한 국제 시상식 수상작 혹은 후보작들의 이미지를 보여줘
#defaultView:ImageGrid
SELECT DISTINCT ?film ?filmLabel ?image
WHERE {
?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148; # 제작 국가: 중국
wdt:P18 ?image. # 이미지

# 1. 상|후보|참여 데이터 찾기
?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.

# 2. [경로 탐색] 올드보이 경로 포함하여 영화제(?festival) 찾기
{
# [경로 A] 직통 / 소속
 ?thing wdt:P1027|wdt:P361 ?festival.
}
UNION
{
# [경로 B] 회차 경유
 ?thing wdt:P1027|wdt:P361 ?edition.
 ?edition wdt:P361 ?festival.
}
UNION
{
# [경로 C] 상의 종류(Class)를 통한 간접 연결 (P31 경유)
 ?thing wdt:P31/wdt:P1027 ?festival.
}

# 3. [국적 필터] 중국(Q148) 영화제 제외
?festival wdt:P17 ?country.
FILTER(?country != wd:Q148)

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


7-1. 한·중·일 순수 해외 영화제 실적 추이 (자국 개최 제외)
한·중·일 3국의 자국 영화제를 제외한 해외 영화제 수상 및 후보 성과를 비교해보자
#defaultView:LineChart
SELECT ?yearLabel ?count ?countryLabel
WHERE {
{
SELECT ?yearLabel ?country (COUNT(?thing) AS ?count)
WHERE {
{
SELECT DISTINCT ?thing WHERE {
{
# [경로 A] 직통 / 소속
 ?thing wdt:P1027|wdt:P361 ?festival.
}
UNION
{
# [경로 B] 회차 경유
 ?thing wdt:P1027|wdt:P361 ?edition.
 ?edition wdt:P361 ?festival.
}
UNION
{
# [경로 C] 상의 종류(Class)를 통한 간접 연결 (P31 경유)
 ?thing wdt:P31 ?awardClass.
 ?awardClass wdt:P1027 ?festival.
}

# [국적 필터] 한중일 제외
 ?festival wdt:P17 ?festCountry.
FILTER(?festCountry != wd:Q148 && ?festCountry != wd:Q884 && ?festCountry != wd:Q17)
}
}
# 위에서 확보한 ?thing 리스트에 해당하는 영화 찾기
 ?film wdt:P166|wdt:P1411|wdt:P1344 ?thing.

# 국가 및 연도 필터
VALUES ?country { wd:Q148 wd:Q884 wd:Q17 }
 ?film wdt:P495 ?country;
wdt:P577 ?pubDate.

FILTER(YEAR(?pubDate) >= 1990 && YEAR(?pubDate) <= 2024)
BIND(STR(YEAR(?pubDate)) AS ?yearLabel)
}
GROUP BY ?yearLabel ?country
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,en". }
}
ORDER BY ?yearLabel


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 # 베를린 영화제
}
 ?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


10. 중국 영화 장르 분포 (버블 차트)
중국 영화의 장르별 분포를 버블 차트로 확인해보자
#defaultView:BubbleChart
SELECT ?genreLabel (COUNT(?film) AS ?count)
WHERE {
 ?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148; # 제작 국가: 중국
wdt:P136 ?genre. # 장르
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
GROUP BY ?genreLabel
ORDER BY DESC(?count)
LIMIT 30


11. 주요 영화 제작사 분석
중국 영화 제작사별 제작 편수 순위를 확인해보자
SELECT ?company ?companyLabel (COUNT(?film) AS ?count)
WHERE {
 ?film wdt:P31 wd:Q11424; # 영화
wdt:P495 wd:Q148; # 제작 국가: 중국
wdt:P272 ?company. # 제작사
SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}
GROUP BY ?company ?companyLabel
ORDER BY DESC(?count)
LIMIT 20


12. 감독 세대 및 데뷔 시기 분석 (Dimensions)
중국 감독들의 출생년도, 사망년도, 그리고 첫 영화 개봉(데뷔) 시기를 입체적으로 분석해보자
#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 . # 출생일
 {
SELECT ?person (MIN(?pubDate) AS ?firstMovieDate)
WHERE {
 ?person wdt:P27 wd:Q148 ; wdt:P106 wd:Q2526255 .
 ?film wdt:P31 wd:Q11424 ; # 영화
wdt:P57 ?person ; # 감독 = ?person
wdt:P577 ?pubDate . # 개봉일
}
GROUP BY ?person
}
 OPTIONAL { ?person wdt:P570 ?death. }
 BIND(YEAR(?birth) AS ?birthYear)
BIND(YEAR(?death) AS ?deathYear)
BIND(COALESCE(?deathYear, 2024) - ?birthYear AS ?age)
BIND(YEAR(?firstMovieDate) AS ?careerStart) # 실제 첫 영화 개봉년도
 FILTER(?birthYear >= 1900 && ?birthYear <= 2000)
FILTER(?age > 0)
 SERVICE wikibase:label { bd:serviceParam wikibase:language "ko,zh,en". }
}

결과해석


(내용 서술)


참고자원


(내용 서술)


주석