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 forResourceDescriptionFramework: URI를 갖는 모든 것 (웹 페이지, 이미지, 동영상등) : 자원(Resource)들의 속성, 특성, 관계 기술: 위의 것들을 기술하기 위한 모델, 언어, 문법
3.
Where is RDFon the Semantic Web Layer2009 시맨틱 웹 튜토리얼: RDF 집중분석SemanticAspect시맨틱웹 표준의첫 번째 LayerWebAspectImage source : http://www.w3.org/2007/Talks/0130-sb-W3CTechSemWeb/
4.
RDF DefinitionW3C 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+OILRDF Scheme(W3C WD)RDF(W3C WD)DAMLOntology(information science)SPARQL(WD)1996.11199920021997.081970s1998.04199920002004.10XML(W3C WD)OIL(Europe IST Project)OWL(W3C WD)
7.
왜 RDF를 만들었을까?웹은글로벌하고 방대한 정보 공간2009 시맨틱 웹 튜토리얼: RDF 집중분석그런데 지금의 웹은 사람은 보기 쉽지만 기계가 처리하기에는 너무 모호하고 힘들어.
(Interworking among theapplications)W3C RDF 문서들PrimerRDF 를 빠르게 사용하기 위한 기본 지식 제공ConceptsRDF Concept, Abstract Syntax (RDF Graph)SyntaxRDF 모델에 대한 XML Syntax (RDF/XML), N-triplesSemanticsRDF, RDF Schema 가 담고 있는 의미론, 추론 규칙에 대한 설명VocabulariesRDF Schema와 RDF Vocabulary를 기술하는 방법2009 시맨틱 웹 튜토리얼: RDF 집중분석http://www.w3.org/RDF/
RDF Data Model2009시맨틱 웹 튜토리얼: RDF 집중분석RDF는 Graph Model을 갖고 있다.subjectObjectpredicate술어(Property, Relation)목적어(Resource, Literal)주어(Resource)URIBlank NodeURILiteralURI
16.
RDF is AGraph !!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 JacksonSubject : 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)
RDF SchemaRDF Schema는property에 대한 추가 정보 제공함으로써 사용 방법을 보다 명확히 함 (Domain, Range)Resource의 타입을 기술 (type, Class)Book, Person, PublisherNot Like XML SchemeResource를 설명하는데 있어 의미 표현을 추가한 것2009 시맨틱 웹 튜토리얼: RDF 집중분석
RDFS example2009 시맨틱웹 튜토리얼: RDF 집중분석<http://ex.org/bib/Book>은 <http://ex.org/bib/ArtisticWork> 의 하위 클래스다.
27.
RDFS example2009 시맨틱웹 튜토리얼: 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 집중분석
Graph를 언어로 표현하기Turtlea text based format, easy to scribble, easy to readRDF/XML an XML based format, hard to read/write2009 시맨틱 웹 튜토리얼: RDF 집중분석
34.
Turtle – BasicSyntaxTriple은 마침표(.) 로 끝을 맺는다.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” .
RDF/XML Syntax2009 시맨틱웹 튜토리얼: RDF 집중분석exampletitleRDF 개념 및 구문 소개http://www.dbdb.kr/rdf_tutorialDongBumKimauthor<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>
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 theauthor of page?2009 시맨틱 웹 튜토리얼: RDF 집중분석<v> <x> <y>a=“pppp”</y> <z> <w>qqqqq</w> </z> </x></v>위 구문에서 설명하고자 하는 것은 무엇인가?xzy인가?