RCCTD WikiDataCuration02
CNUDH
목차
Contents
연구배경
(내용 서술)
연구목적
(내용 서술)
대상주제
(내용 서술)
쿼리작성
① 중국 국적을 가진 SF 영화감독, SF 작가에 대해 알아보자
SELECT ?person personLabel ?award ?awardLabel ?occupation ?occupationLabel
WHERE {
?person rdfs:label "SF 영화감독, SF 작가"@ko.
SERVICE wikibase:label { bd:serviceParam wikibase:language
"[AUTO_LANGUAGE],ko,en". }
}
SELECT ?person ?personLabel ?award ?awardLabel ?occupation ?occupationLabel WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P166 ?award; # 수상 경력
wdt:P106 ?occupation. # 직업
FILTER (?occupation IN (wd:Q2526255, # 영화 감독 film director
wd:Q36180, # 작가 writer
wd:Q18844224 # SF 작가 science fiction writer
)
)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ko,en,zh".
}
} LIMIT 200
SELECT ?person ?personLabel
?birth ?death
?gender ?genderLabel
?nativeLang ?nativeLangLabel
?birthplace ?birthplaceLabel
?occupation ?occupationLabel
?award ?awardLabel
?notableWork ?notableWorkLabel
WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 ?occupation. # 직업
FILTER (?occupation IN (
wd:Q2526255, # 영화 감독 film director
wd:Q36180, # 작가 writer
wd:Q18844224 # SF 작가 science fiction writer
))
OPTIONAL { ?person wdt:P569 ?birth. } # 출생일
OPTIONAL { ?person wdt:P570 ?death. } # 사망일
OPTIONAL { ?person wdt:P21 ?gender. } # 성별
OPTIONAL { ?person wdt:P19 ?birthplace. } # 출생지
OPTIONAL {?person wdt:P69 ?graduation} #졸업학교
OPTIONAL { ?person wdt:P800 ?notableWork. } # 대표작
OPTIONAL { ?person wdt:P166 ?award. } # 수상 경력
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ko,en,zh".
}
} LIMIT 200
②중국 국적을 가진 SF 영화감독, SF 작가에 대한 출생지에 대해 알아보자
SELECT ?person ?personLabel
?occupation ?occupationLabel
?award ?awardLabel
?birthplace ?birthplaceLabel
WHERE { ?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 ?occupation. # 직업
OPTIONAL { ?person wdt:P166 ?award. } # 수상 경력
FILTER (?occupation IN (wd:Q2526255, # 영화 감독 film director
wd:Q36180, # 작가 writer
wd:Q18844224 # SF 작가 science fiction writer
)
)
OPTIONAL { ?person wdt:P19 ?birthplace. } # 출생지
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ko,en,zh".
}
} LIMIT 200
③기본정보(SF 작가와 SF영화감독)를 포함한 대표작 수상경력 알아보기
SELECT ?person ?personLabel
?birth ?death
?gender ?genderLabel
?nativeLang ?nativeLangLabel
?birthplace ?birthplaceLabel
?occupation ?occupationLabel
?award ?awardLabel
?notableWork ?notableWorkLabel
WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 ?occupation. # 직업
FILTER (?occupation IN (
wd:Q2526255, # 영화 감독 film director
wd:Q36180, # 작가 writer
wd:Q18844224 # SF 작가 science fiction writer
))
OPTIONAL { ?person wdt:P569 ?birth. } # 출생일
OPTIONAL { ?person wdt:P570 ?death. } # 사망일
OPTIONAL { ?person wdt:P21 ?gender. } # 성별
OPTIONAL { ?person wdt:P19 ?birthplace. } # 출생지
OPTIONAL {?person wdt:P69 ?graduation} #졸업학교
OPTIONAL { ?person wdt:P800 ?notableWork. } # 대표작
OPTIONAL { ?person wdt:P166 ?award. } # 수상 경력
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ko,en,zh".
}
} LIMIT 200
④기본정보(SF 작가와 SF영화감독)에 작품수를 세보자
SELECT ?person ?personLabel (COUNT(?work) AS ?sfNovelCount) WHERE {
?person wdt:P27 wd:Q148; # 중국 국적
wdt:P106 wd:Q18844224. # SF 작가
?work wdt:P50 ?person;
wdt:P136 wd:Q24925. # 장르 = SF
} GROUP BY ?person ?personLabel ORDER BY DESC(?sfNovelCount)
결과해석
(내용 서술)
참고자원
(내용 서술)
주석