20180219 회의록

khw
Hiblue (토론 | 기여) 사용자의 2018년 2월 21일 (수) 01:36 판 (의미있는 질의어 찾아오기)

이동: 둘러보기, 검색
← Previous 회의록
20180208 회의록 20180219 회의록


스파클 강의

  • 스파클 질의어 스터디

운영중인 LOD 서비스

서울시 LOD - 서울시(http://lod.seoul.go.kr/home/)

스마트관광정보 LOD - 한국관광공사(http://data.visitkorea.or.kr/linked_open_data)

국가서지 LOD - 국립중앙도서관 https://lod.nl.go.kr/home/

부산 영화 영상 관광 LOD - 부산시 http://lod.busan.go.kr/

RISS LOD - 한국교육학술정보원 http://data.riss.kr/

한국사 LOD - 국사편찬위원회 http://lod.koreanhistory.or.kr/

DBpedia - http://DBpedia.org

RDB to TripleStore

  • 안된다고 함. RDB에서 TripleStore로 데이터를 끌어 오는 것은 아직 해보진 않았지만 가능할 것으로 보이나, 매우 복잡하고, 동기화 되지 않을 것으로 예상됨.

Graph IRI

의미있는 질의어 찾아오기

#부인과 부인의 부모님
 select * where {
  ?person ekc:hasWife ?wife.
  ?wifeParents ekc:hasDaughter ?wife .
 }

#왕비와 왕, 왕비가 낳은 아들
select ?queen ?king ?son where {
 ?queen rdf:type ekc:Actor; rdfs:label ?name.
 filter regex(?name, "(왕후|황후|태후|대비)+")
 optional {{?king ekc:hasWife ?queen} union {?queen ekc:hasHusband ?king} 
 optional{?queen ekc:hasSon ?son}}
} 
#복장과 복장에 포함되는 복식
select * 
 where {?suite dcterms:hasPart ?clothes.
 filter regex(str(?suite),"(.+의.+복)" )
}order by ?suite
#과거와 현재의 위치
select * where {
?object edm:formerLocation ?formerlocation.
?object edm:currentLocation ?currentlocation.
}
#가장 많은 연결을 가진 인물은?
select ?name, count(*)  where{
?person rdf:type ekc:Actor.
?person rdfs:label ?name.
?person ?rel ?object.
} order by desc(count(*)) limit 50
#세종과 문종의 관계는?
select * 
where { 
  ?a ?rel ?b.
  filter (contains(str(?a), "세종") && contains(str(?b), "문종"))
  }
#한국관광공사 LOD와 연계하여 박물관과 미술관의 위경도정보 추출하기
PREFIX ids: <http://data.visitkorea.or.kr/resource/>
PREFIX wgs: <http://www.w3.org/2003/01/geo/wgs84_pos#>
select * 
where { ?ekcMuseum rdfs:label ?ekcName.
 filter ( contains(?ekcName, "미술관") || contains(?ekcName, "박물관") )
   service  <http://data.visitkorea.or.kr/sparql> {
   ?idsMuseum rdfs:label ?idsName.
   ?idsMuseum wgs:lat ?lat.
   ?idsMuseum wgs:long ?long.
   filter (?ekcName = ?idsName)}
 } limit 100