SlideShare une entreprise Scribd logo
1  sur  44
2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF 개념 및 구문 소개 김동범 (eastkim@gmail.com, eastkim@twitter)시맨틱 웹 스터디 그룹(http://groups.google.com/group/semanticwebstudy)2009-10-31
What is RDF? 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF              stands for Resource Description Framework : URI를 갖는 모든 것 (웹 페이지, 이미지, 동영상등)  : 자원(Resource)들의 속성, 특성, 관계 기술 : 위의 것들을 기술하기 위한 모델, 언어, 문법
Where is RDF on the Semantic Web Layer 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Semantic Aspect 시맨틱웹 표준의 첫 번째 Layer Web Aspect Image source : http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/
RDF Definition W3C RDF 문서에서의 정의 Framework for representing information in the Web. 웹에 있는 Resource에 대한 정보를 표현하기 위한 언어 특히, 웹 Resource에 대한 Metadata를 표현하기 위함. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
RDF 탄생 스토리 1990년대 중반 Ramanathan V. Guha (Apple) MCF (Meta Content Framework) 라는 메타데이터 포맷 개발 RDF의 모태가 됨 1997년 Guha의 Netscape로 이직 Tim Bray 와 함께 MCF/XML 프로젝트 착수 MCF/XML: Microsoft 의 CDF (Channel Document Format) 과 경쟁하기 위한 프로젝트 1998년 RDF 제안 (W3C) 시맨틱 웹의 기본 구성요소가 됨 2009 시맨틱 웹 튜토리얼: RDF 집중분석
Semantic Web 언어의 흐름 DAML+OIL RDF Scheme (W3C WD) RDF (W3C WD) DAML Ontology (information science) SPARQL (WD) 1996.11 1999 2002 1997.08 1970s 1998.04 1999 2000 2004.10 XML (W3C WD) OIL (Europe IST Project) OWL (W3C WD)
왜 RDF를 만들었을까? 웹은 글로벌하고 방대한 정보 공간 2009 시맨틱 웹 튜토리얼: RDF 집중분석 ,[object Object]
웹에 있는 정보를 데이터베이스처럼 표현할 수 없을까?
(Linked Data, Web of Data)
그러면 웹 상의 정보를 기계가 좀 더 처리하기 쉬울텐데...
(Machine processible, readable, understandable)
또 웹에 흩어진 정보를 가져와서 내 정보와 쉽게 결합할 수 있을 텐데...
(Interworking among the applications),[object Object]
2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Data Model
RDF Data Model 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF는 Graph Model을 갖고 있다. subject Object predicate 술어 (Property, Relation) 목적어 (Resource, Literal) 주어 (Resource) URI Blank Node URI Literal URI
RDF is A Graph !! 2009 시맨틱 웹 튜토리얼: RDF 집중분석 The formal semantics of RDF is described using graphs. Think in terms of graphs, not XMLor documents. By Ian Davis (ian.davis@talis.com)
Graph Model 예제 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean has a singer whose value is Michael Jackson Subject : http://dbpedia.org/resource/Billie_Jean    (URI) Predicate:  http://www.example.com/terms/singer   (URI) Object: Michael_Jackson(Literal) By Ian Davis (ian.davis@talis.com)
Basic Graph 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released Michael_Jackson 1983-01-02
Basic Graph 확장 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released 1983-01-02 http://dbpedia.org/resource/Michael_Jackson http://www.example.com/terms/name http://www.example.com/terms/age Michael_Jackson 44
Typed Literal 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released “1983-01-02”^^xsd:date http://dbpedia.org/resource/Michael_Jackson http://www.example.com/terms/name http://www.example.com/terms/age Michael_Jackson 44^^xsd:integer
Merge by linking 서로 다른 source를 나타내는 그래프는 병합될 수 있다. 같은 URI를 가진 Node는 같은 resource를 취급한다. 어떤 RDF도 다른 RDF와 병합될 수 있다. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
Merging Example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Source : http://research.talis.com
2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Schema
RDF Schema RDF Schema는 property에 대한 추가 정보 제공함으로써 사용 방법을 보다 명확히 함 (Domain, Range) Resource의 타입을 기술 (type, Class) Book, Person, Publisher Not Like XML Scheme Resource를 설명하는데 있어 의미 표현을 추가한 것 2009 시맨틱 웹 튜토리얼: RDF 집중분석
RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Resource <http://example.com/ISBN/xxxx>의 타입(type)은  <http://ex.org/bib/Book> 이다. http://example.com/ISBN/xxxx Source : http://research.talis.com
RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://ex.org/bib/Book>은 <http://ex.org/bib/ArtisticWork> 의  하위 클래스다.
RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://example.com/ISBN/xxxx> 의 타입이 <http://ex.org/bib/Book>이면, 또한 <http://ex.org/bib/ArtisticWork> 의 타입을 갖는다. http://example.com/ISBN/xxxx
Domain 과 Range 속성은 Domain(정의역)과 Range(공역)를 가질 수 있다. Domain은 Property의 Subject 의 클래스를 알려준다. Range는 Property의 Object(Value)의 클래스를 알려준다. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
2009 시맨틱 웹 튜토리얼: RDF 집중분석 다음과 같은 Triple 있다.
2009 시맨틱 웹 튜토리얼: RDF 집중분석 Property <http://ex.org/bib/author>는 아래와 같이 domain 과 range를 갖는다
2009 시맨틱 웹 튜토리얼: RDF 집중분석 우리는 이와 같이 subject와 object 의 type을 추론할 수 있다.
2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Syntax
Graph를 언어로 표현하기 Turtle  a text based format, easy to scribble, easy to read RDF/XML  an XML based format, hard to read/write 2009 시맨틱 웹 튜토리얼: RDF 집중분석
Turtle – Basic Syntax Triple은 마침표(.) 로 끝을 맺는다. URIs 는 <> 로 감싸서 표현한다. Literal 은 “” 로 감싼다. 약식 URI를 위해 prefix를 사용한다 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://example.com/Thing>     <http://example.com/relation>    “some text” . @prefix  ex: <http://example.com> . ex:Thingex:relation    “some text” . ex:Thing     ex:relation2    “some text2” .
Turtle – Basic Syntax Blank Nodes 2009 시맨틱 웹 튜토리얼: RDF 집중분석 @prefix  ex: <http://example.com> . _:a     ex:relation    “some text” . ,[object Object],@prefix  ex: <http://example.com> . ex:thingex:relation    “hello@en” . ex:thingex:relation    “Bonjour@fr” . ,[object Object],@prefix  ex: <http://example.com> . ex:Thingex:relation    “24”^^http://www.w3.org/2001/XMLScheme#integer .
RDF/XML Syntax 2009 시맨틱 웹 튜토리얼: RDF 집중분석 example title RDF 개념 및 구문 소개 http://www.dbdb.kr/rdf_tutorial DongBumKim author <RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:ex=“http://www.dbdb.kr/”>   <Descriptionabout=“http://www.dbdb.kr/rdf_tutorial”> <ex:author>DongBumKim</ex:author> <ex:title>RDF 개념 및 구문 소개</ex:title>   </Description> </RDF>
Movie Database 2009 시맨틱 웹 튜토리얼: RDF 집중분석 URI : http://movie.naver.com/
2009 시맨틱 웹 튜토리얼: RDF 집중분석 <?xml version=“1.0”> <RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:movie=“http://movie.naver.com/”>   <Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace”>      <movie:title>007 퀀텀오브솔러스</movie:title>      <movie:director>마크 포스터</movie:director>      <movie:country>미국</movie:country>      <movie:runtime>106분</movie:runtime>      <movie:reviewer>genie</movie:reviewer>   </Description>  <Descriptionrdf:about=“http://movie.naver.com/2husbands”>      <movie:title>아내가 결혼했다</movie:title>       …  </Description> </RDF>
RDF Main Elements 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <rdf:RDF> Element RDF 문서의 root Element <rdf:Description> Element about속성을 가진 resource를 식별(기술)하기 위해 사용 Resource를 기술하기 위한 여러 Element(title, director, etc)를 포함 <?xml version=“1.0”> <RDFxmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:movie=“http://movie.naver.com/”> . .   Description goes here .   </RDF> <Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace”>      <movie:title>007 퀀텀오브솔러스</movie:title>      <movie:director>마크 포스터</movie:director>      <movie:country>미국</movie:country>      <movie:runtime>106분</movie:runtime>      <movie:reviewer>genie</movie:reviewer>   </Description>  <Descriptionrdf:about=“http://movie.naver.com/2husbands”>      <movie:title>아내가 결혼했다</movie:title>       …  </Description>
RDF Main Elements 2009 시맨틱 웹 튜토리얼: RDF 집중분석 ,[object Object],<Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace” movie:title=“007 퀀텀오브솔러스”  movie:director=“마크 포스터” movie:country=“미국”  movie:runtime=“106분”  movie:reviewer=“genie” /> ,[object Object],<Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace”>      <movie:title>007 퀀텀오브솔러스</movie:title>      <movie:director>마크 포스터</movie:director>      <movie:country>미국</movie:country>      <movie:runtime>106분</movie:runtime>      <movie:reviewer>genie</movie:reviewer>   </Description>
RDF Main Elements 2009 시맨틱 웹 튜토리얼: RDF 집중분석 ,[object Object],Alt, Bag, Description, ID, List, Property, Statement, Seq, XMLLiteral about, first, nodeID, object, parseType, predicate, resource, rest, subject, type,  value, nil  ,[object Object],Class, Container, ContainerMembershipProperty, Datatype, Literal, Resource comment, domain, isDefinedBy, label, member, range, sellAlso, subClassOf, subPropertyOf
2009 시맨틱 웹 튜토리얼: RDF 집중분석 XML과 무엇이 다른가?
2009 시맨틱 웹 튜토리얼: RDF 집중분석 or may be <author>     <uri>page</uri>     <name>Ora</name> </author> <document>     <details>         <uri>href=“page”</uri>         <author>             <name>Ora</name>         </author>     </details> </document> or may be <document href=“page”>     <author>Ora</author> </document> <document>     <author>         <uri>href=“page”</uri>         <details>             <name>Ora</name>         </details>     </author> </document> or may be <document href=“http://www.w3.org/test/page” author=“Ora” /> 다음 XML이 나타내고자 하는 것은?
What is the author of page? 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <v>     <x>         <y>a=“pppp”</y>         <z>             <w>qqqqq</w>         </z>     </x> </v> 위 구문에서 설명하고자 하는 것은 무엇인가? x z y 인가?

Contenu connexe

Tendances

LOD (linked open data) part 2 lod 구축과 현황
LOD (linked open data) part 2   lod 구축과 현황LOD (linked open data) part 2   lod 구축과 현황
LOD (linked open data) part 2 lod 구축과 현황LiST Inc
 
Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFSNilesh Wagmare
 
Linked Open Data Tutorial
Linked Open Data TutorialLinked Open Data Tutorial
Linked Open Data TutorialMyungjin Lee
 
LODAC 2017 Linked Open Data Workshop
LODAC 2017 Linked Open Data WorkshopLODAC 2017 Linked Open Data Workshop
LODAC 2017 Linked Open Data WorkshopMyungjin Lee
 
Programming the Semantic Web
Programming the Semantic WebProgramming the Semantic Web
Programming the Semantic WebLuigi De Russis
 
Introduction to RDF & SPARQL
Introduction to RDF & SPARQLIntroduction to RDF & SPARQL
Introduction to RDF & SPARQLOpen Data Support
 
Linked Data 4 principles
Linked Data 4 principles Linked Data 4 principles
Linked Data 4 principles LiST Inc
 
온톨로지 & 규칙 추론 시스템
온톨로지 & 규칙 추론 시스템온톨로지 & 규칙 추론 시스템
온톨로지 & 규칙 추론 시스템Sang-Kyun Kim
 
도서관 Linked Open Data의 필요성
도서관 Linked Open Data의 필요성도서관 Linked Open Data의 필요성
도서관 Linked Open Data의 필요성Hansung University
 
An Introduction to SPARQL
An Introduction to SPARQLAn Introduction to SPARQL
An Introduction to SPARQLOlaf Hartig
 
RDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic RepositoriesRDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic RepositoriesMarin Dimitrov
 
Jena – A Semantic Web Framework for Java
Jena – A Semantic Web Framework for JavaJena – A Semantic Web Framework for Java
Jena – A Semantic Web Framework for JavaAleksander Pohl
 
[오원석 Kswc2010]데이터의 가치를 높이는 linked data
[오원석 Kswc2010]데이터의 가치를 높이는 linked data[오원석 Kswc2010]데이터의 가치를 높이는 linked data
[오원석 Kswc2010]데이터의 가치를 높이는 linked dataLiST Inc
 
Debunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsDebunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsNeo4j
 
LOD(linked open data) part 1 lod 란 무엇인가
LOD(linked open data) part 1   lod 란 무엇인가LOD(linked open data) part 1   lod 란 무엇인가
LOD(linked open data) part 1 lod 란 무엇인가LiST Inc
 
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)Myungjin Lee
 
SPARQL-DL - Theory & Practice
SPARQL-DL - Theory & PracticeSPARQL-DL - Theory & Practice
SPARQL-DL - Theory & PracticeAdriel Café
 

Tendances (20)

LOD (linked open data) part 2 lod 구축과 현황
LOD (linked open data) part 2   lod 구축과 현황LOD (linked open data) part 2   lod 구축과 현황
LOD (linked open data) part 2 lod 구축과 현황
 
Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFS
 
Linked Open Data Tutorial
Linked Open Data TutorialLinked Open Data Tutorial
Linked Open Data Tutorial
 
LODAC 2017 Linked Open Data Workshop
LODAC 2017 Linked Open Data WorkshopLODAC 2017 Linked Open Data Workshop
LODAC 2017 Linked Open Data Workshop
 
Programming the Semantic Web
Programming the Semantic WebProgramming the Semantic Web
Programming the Semantic Web
 
Introduction to RDF & SPARQL
Introduction to RDF & SPARQLIntroduction to RDF & SPARQL
Introduction to RDF & SPARQL
 
Linked Data 4 principles
Linked Data 4 principles Linked Data 4 principles
Linked Data 4 principles
 
온톨로지 & 규칙 추론 시스템
온톨로지 & 규칙 추론 시스템온톨로지 & 규칙 추론 시스템
온톨로지 & 규칙 추론 시스템
 
도서관 Linked Open Data의 필요성
도서관 Linked Open Data의 필요성도서관 Linked Open Data의 필요성
도서관 Linked Open Data의 필요성
 
An Introduction to SPARQL
An Introduction to SPARQLAn Introduction to SPARQL
An Introduction to SPARQL
 
RDF data model
RDF data modelRDF data model
RDF data model
 
RDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic RepositoriesRDF, SPARQL and Semantic Repositories
RDF, SPARQL and Semantic Repositories
 
Jena – A Semantic Web Framework for Java
Jena – A Semantic Web Framework for JavaJena – A Semantic Web Framework for Java
Jena – A Semantic Web Framework for Java
 
[오원석 Kswc2010]데이터의 가치를 높이는 linked data
[오원석 Kswc2010]데이터의 가치를 높이는 linked data[오원석 Kswc2010]데이터의 가치를 높이는 linked data
[오원석 Kswc2010]데이터의 가치를 높이는 linked data
 
Debunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsDebunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative Facts
 
LOD(linked open data) part 1 lod 란 무엇인가
LOD(linked open data) part 1   lod 란 무엇인가LOD(linked open data) part 1   lod 란 무엇인가
LOD(linked open data) part 1 lod 란 무엇인가
 
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)
지식그래프 개념과 활용방안 (Knowledge Graph - Introduction and Use Cases)
 
SPARQL-DL - Theory & Practice
SPARQL-DL - Theory & PracticeSPARQL-DL - Theory & Practice
SPARQL-DL - Theory & Practice
 
RDF and OWL
RDF and OWLRDF and OWL
RDF and OWL
 
SPARQL Tutorial
SPARQL TutorialSPARQL Tutorial
SPARQL Tutorial
 

En vedette

LOD(Linked Open Data) Recommendations
LOD(Linked Open Data) RecommendationsLOD(Linked Open Data) Recommendations
LOD(Linked Open Data) RecommendationsMyungjin Lee
 
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open dataHansung University
 
공공데이터와 Linked open data
공공데이터와 Linked open data공공데이터와 Linked open data
공공데이터와 Linked open dataMyungjin Lee
 
Linked Data in Healthcare and Life Sciences
Linked Data in Healthcare and Life SciencesLinked Data in Healthcare and Life Sciences
Linked Data in Healthcare and Life SciencesJames G. Boram Kim
 
쉽게 이해하는 LOD
쉽게 이해하는 LOD쉽게 이해하는 LOD
쉽게 이해하는 LODMyungjin Lee
 
Linked Data Technology and Status
Linked Data Technology and StatusLinked Data Technology and Status
Linked Data Technology and StatusMyungjin Lee
 

En vedette (8)

LOD(Linked Open Data) Recommendations
LOD(Linked Open Data) RecommendationsLOD(Linked Open Data) Recommendations
LOD(Linked Open Data) Recommendations
 
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data
웹의 또 다른 모습, 글로벌 데이터베이스 Linked open data
 
공공데이터와 Linked open data
공공데이터와 Linked open data공공데이터와 Linked open data
공공데이터와 Linked open data
 
링크드 데이터 사례
링크드 데이터 사례링크드 데이터 사례
링크드 데이터 사례
 
Linked Data in Healthcare and Life Sciences
Linked Data in Healthcare and Life SciencesLinked Data in Healthcare and Life Sciences
Linked Data in Healthcare and Life Sciences
 
Open Data and Linked Data
Open Data and Linked DataOpen Data and Linked Data
Open Data and Linked Data
 
쉽게 이해하는 LOD
쉽게 이해하는 LOD쉽게 이해하는 LOD
쉽게 이해하는 LOD
 
Linked Data Technology and Status
Linked Data Technology and StatusLinked Data Technology and Status
Linked Data Technology and Status
 

Similaire à RDF 개념 및 구문 소개

Linked open data
Linked open dataLinked open data
Linked open dataToby Yun
 
페이스북과 트위터에서의 소셜 시맨틱 웹
페이스북과 트위터에서의 소셜 시맨틱 웹페이스북과 트위터에서의 소셜 시맨틱 웹
페이스북과 트위터에서의 소셜 시맨틱 웹Myungjin Lee
 
Swc발표자료2 2(restful)
Swc발표자료2 2(restful)Swc발표자료2 2(restful)
Swc발표자료2 2(restful)마경근 마
 
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)Channy Yun
 
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등DaeHyun Sung
 
HTML5 스펙 소개
HTML5 스펙 소개HTML5 스펙 소개
HTML5 스펙 소개Toby Yun
 
HTML5 & CSS 살펴보기
HTML5 & CSS  살펴보기HTML5 & CSS  살펴보기
HTML5 & CSS 살펴보기Suan Lee
 
국립중앙도서관 RDA 실행전략 보고서
국립중앙도서관 RDA 실행전략 보고서국립중앙도서관 RDA 실행전략 보고서
국립중앙도서관 RDA 실행전략 보고서Hansung University
 
LOD 구축현황 과 현황
LOD 구축현황 과 현황LOD 구축현황 과 현황
LOD 구축현황 과 현황sbchae
 
Go revel 구성_루팅_정리
Go revel 구성_루팅_정리Go revel 구성_루팅_정리
Go revel 구성_루팅_정리라한사 아
 

Similaire à RDF 개념 및 구문 소개 (13)

Linked open data
Linked open dataLinked open data
Linked open data
 
페이스북과 트위터에서의 소셜 시맨틱 웹
페이스북과 트위터에서의 소셜 시맨틱 웹페이스북과 트위터에서의 소셜 시맨틱 웹
페이스북과 트위터에서의 소셜 시맨틱 웹
 
Ch11
Ch11Ch11
Ch11
 
2-2. html5
2-2. html52-2. html5
2-2. html5
 
Swc발표자료2 2(restful)
Swc발표자료2 2(restful)Swc발표자료2 2(restful)
Swc발표자료2 2(restful)
 
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)
Linked Data 기반 데이터 검색 서비스의 현황과 과제 (KSWC2010)
 
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등
[2021 오픈소스 컨트리뷰션 아카데미] #6 XML파일구조 및 리브레오피스의 자동교정 기능 소개 등
 
Semantic web
Semantic webSemantic web
Semantic web
 
HTML5 스펙 소개
HTML5 스펙 소개HTML5 스펙 소개
HTML5 스펙 소개
 
HTML5 & CSS 살펴보기
HTML5 & CSS  살펴보기HTML5 & CSS  살펴보기
HTML5 & CSS 살펴보기
 
국립중앙도서관 RDA 실행전략 보고서
국립중앙도서관 RDA 실행전략 보고서국립중앙도서관 RDA 실행전략 보고서
국립중앙도서관 RDA 실행전략 보고서
 
LOD 구축현황 과 현황
LOD 구축현황 과 현황LOD 구축현황 과 현황
LOD 구축현황 과 현황
 
Go revel 구성_루팅_정리
Go revel 구성_루팅_정리Go revel 구성_루팅_정리
Go revel 구성_루팅_정리
 

RDF 개념 및 구문 소개

  • 1. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF 개념 및 구문 소개 김동범 (eastkim@gmail.com, eastkim@twitter)시맨틱 웹 스터디 그룹(http://groups.google.com/group/semanticwebstudy)2009-10-31
  • 2. What is RDF? 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF stands for Resource Description Framework : URI를 갖는 모든 것 (웹 페이지, 이미지, 동영상등) : 자원(Resource)들의 속성, 특성, 관계 기술 : 위의 것들을 기술하기 위한 모델, 언어, 문법
  • 3. Where is RDF on the Semantic Web Layer 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Semantic Aspect 시맨틱웹 표준의 첫 번째 Layer Web Aspect Image source : http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/
  • 4. RDF Definition W3C RDF 문서에서의 정의 Framework for representing information in the Web. 웹에 있는 Resource에 대한 정보를 표현하기 위한 언어 특히, 웹 Resource에 대한 Metadata를 표현하기 위함. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 5. RDF 탄생 스토리 1990년대 중반 Ramanathan V. Guha (Apple) MCF (Meta Content Framework) 라는 메타데이터 포맷 개발 RDF의 모태가 됨 1997년 Guha의 Netscape로 이직 Tim Bray 와 함께 MCF/XML 프로젝트 착수 MCF/XML: Microsoft 의 CDF (Channel Document Format) 과 경쟁하기 위한 프로젝트 1998년 RDF 제안 (W3C) 시맨틱 웹의 기본 구성요소가 됨 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 6. Semantic Web 언어의 흐름 DAML+OIL RDF Scheme (W3C WD) RDF (W3C WD) DAML Ontology (information science) SPARQL (WD) 1996.11 1999 2002 1997.08 1970s 1998.04 1999 2000 2004.10 XML (W3C WD) OIL (Europe IST Project) OWL (W3C WD)
  • 7.
  • 8. 웹에 있는 정보를 데이터베이스처럼 표현할 수 없을까?
  • 10. 그러면 웹 상의 정보를 기계가 좀 더 처리하기 쉬울텐데...
  • 12. 또 웹에 흩어진 정보를 가져와서 내 정보와 쉽게 결합할 수 있을 텐데...
  • 13.
  • 14. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Data Model
  • 15. RDF Data Model 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF는 Graph Model을 갖고 있다. subject Object predicate 술어 (Property, Relation) 목적어 (Resource, Literal) 주어 (Resource) URI Blank Node URI Literal URI
  • 16. RDF is A Graph !! 2009 시맨틱 웹 튜토리얼: RDF 집중분석 The formal semantics of RDF is described using graphs. Think in terms of graphs, not XMLor documents. By Ian Davis (ian.davis@talis.com)
  • 17. Graph Model 예제 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean has a singer whose value is Michael Jackson Subject : http://dbpedia.org/resource/Billie_Jean (URI) Predicate: http://www.example.com/terms/singer (URI) Object: Michael_Jackson(Literal) By Ian Davis (ian.davis@talis.com)
  • 18. Basic Graph 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released Michael_Jackson 1983-01-02
  • 19. Basic Graph 확장 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released 1983-01-02 http://dbpedia.org/resource/Michael_Jackson http://www.example.com/terms/name http://www.example.com/terms/age Michael_Jackson 44
  • 20. Typed Literal 2009 시맨틱 웹 튜토리얼: RDF 집중분석 http://dbpedia.org/resource/Billie_Jean http://www.example.com/terms/singer http://www.example.com/terms/released “1983-01-02”^^xsd:date http://dbpedia.org/resource/Michael_Jackson http://www.example.com/terms/name http://www.example.com/terms/age Michael_Jackson 44^^xsd:integer
  • 21. Merge by linking 서로 다른 source를 나타내는 그래프는 병합될 수 있다. 같은 URI를 가진 Node는 같은 resource를 취급한다. 어떤 RDF도 다른 RDF와 병합될 수 있다. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 22. Merging Example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Source : http://research.talis.com
  • 23. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Schema
  • 24. RDF Schema RDF Schema는 property에 대한 추가 정보 제공함으로써 사용 방법을 보다 명확히 함 (Domain, Range) Resource의 타입을 기술 (type, Class) Book, Person, Publisher Not Like XML Scheme Resource를 설명하는데 있어 의미 표현을 추가한 것 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 25. RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Resource <http://example.com/ISBN/xxxx>의 타입(type)은 <http://ex.org/bib/Book> 이다. http://example.com/ISBN/xxxx Source : http://research.talis.com
  • 26. RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://ex.org/bib/Book>은 <http://ex.org/bib/ArtisticWork> 의 하위 클래스다.
  • 27. RDFS example 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://example.com/ISBN/xxxx> 의 타입이 <http://ex.org/bib/Book>이면, 또한 <http://ex.org/bib/ArtisticWork> 의 타입을 갖는다. http://example.com/ISBN/xxxx
  • 28. Domain 과 Range 속성은 Domain(정의역)과 Range(공역)를 가질 수 있다. Domain은 Property의 Subject 의 클래스를 알려준다. Range는 Property의 Object(Value)의 클래스를 알려준다. 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 29. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 다음과 같은 Triple 있다.
  • 30. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Property <http://ex.org/bib/author>는 아래와 같이 domain 과 range를 갖는다
  • 31. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 우리는 이와 같이 subject와 object 의 type을 추론할 수 있다.
  • 32. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 RDF Syntax
  • 33. Graph를 언어로 표현하기 Turtle a text based format, easy to scribble, easy to read RDF/XML an XML based format, hard to read/write 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 34. Turtle – Basic Syntax Triple은 마침표(.) 로 끝을 맺는다. URIs 는 <> 로 감싸서 표현한다. Literal 은 “” 로 감싼다. 약식 URI를 위해 prefix를 사용한다 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <http://example.com/Thing> <http://example.com/relation> “some text” . @prefix ex: <http://example.com> . ex:Thingex:relation “some text” . ex:Thing ex:relation2 “some text2” .
  • 35.
  • 36. RDF/XML Syntax 2009 시맨틱 웹 튜토리얼: RDF 집중분석 example title RDF 개념 및 구문 소개 http://www.dbdb.kr/rdf_tutorial DongBumKim author <RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:ex=“http://www.dbdb.kr/”> <Descriptionabout=“http://www.dbdb.kr/rdf_tutorial”> <ex:author>DongBumKim</ex:author> <ex:title>RDF 개념 및 구문 소개</ex:title> </Description> </RDF>
  • 37. Movie Database 2009 시맨틱 웹 튜토리얼: RDF 집중분석 URI : http://movie.naver.com/
  • 38. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <?xml version=“1.0”> <RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:movie=“http://movie.naver.com/”> <Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace”> <movie:title>007 퀀텀오브솔러스</movie:title> <movie:director>마크 포스터</movie:director> <movie:country>미국</movie:country> <movie:runtime>106분</movie:runtime> <movie:reviewer>genie</movie:reviewer> </Description> <Descriptionrdf:about=“http://movie.naver.com/2husbands”> <movie:title>아내가 결혼했다</movie:title> … </Description> </RDF>
  • 39. RDF Main Elements 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <rdf:RDF> Element RDF 문서의 root Element <rdf:Description> Element about속성을 가진 resource를 식별(기술)하기 위해 사용 Resource를 기술하기 위한 여러 Element(title, director, etc)를 포함 <?xml version=“1.0”> <RDFxmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:movie=“http://movie.naver.com/”> . . Description goes here . </RDF> <Descriptionrdf:about=“http://movie.naver.com/007quantumofsolace”> <movie:title>007 퀀텀오브솔러스</movie:title> <movie:director>마크 포스터</movie:director> <movie:country>미국</movie:country> <movie:runtime>106분</movie:runtime> <movie:reviewer>genie</movie:reviewer> </Description> <Descriptionrdf:about=“http://movie.naver.com/2husbands”> <movie:title>아내가 결혼했다</movie:title> … </Description>
  • 40.
  • 41.
  • 42. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 XML과 무엇이 다른가?
  • 43. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 or may be <author> <uri>page</uri> <name>Ora</name> </author> <document> <details> <uri>href=“page”</uri> <author> <name>Ora</name> </author> </details> </document> or may be <document href=“page”> <author>Ora</author> </document> <document> <author> <uri>href=“page”</uri> <details> <name>Ora</name> </details> </author> </document> or may be <document href=“http://www.w3.org/test/page” author=“Ora” /> 다음 XML이 나타내고자 하는 것은?
  • 44. What is the author of page? 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <v> <x> <y>a=“pppp”</y> <z> <w>qqqqq</w> </z> </x> </v> 위 구문에서 설명하고자 하는 것은 무엇인가? x z y 인가?
  • 45. In RDF Graph 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <Description about="http://www.w3.org/test/page" Author ="Ora" /> <?xml version="1.0"?> <Description about="http://www.w3.org/test/page“> <s:Author ="http://www.w3.org/staff/Ora" /> </Description> page Ora has author
  • 46. The RDF Graph displays the same thing 2009 시맨틱 웹 튜토리얼: RDF 집중분석 <Description about=“x" y=“z” /> <?xml version="1.0"?> <Description about=“x“> <y =“z” /> </Description> x z y
  • 47. 분산된 데이터의 웹에서 2009 시맨틱 웹 튜토리얼: RDF 집중분석 Ora가 글을 작성했다 Ora가 영화 ‘xxx’에 출연했다 통합문서 Ora는 ‘page’의 저자이고, 영화 ‘xxx’에 출연했다 xxx page Ora has author plays in
  • 48. RDF 활용 (RDF Vocabularies) RSS 1.0 FOAF FRBR Creative Commons SKOS Geo 2009 시맨틱 웹 튜토리얼: RDF 집중분석
  • 49. 2009 시맨틱 웹 튜토리얼: RDF 집중분석 감사합니다. Question?