"RDF"의 두 판 사이의 차이

seonae's wiki
이동: 둘러보기, 검색
(RDF triple : resource, property and property value)
(RDF주요 요소)
 
(사용자 2명의 중간 판 14개는 보이지 않습니다)
1번째 줄: 1번째 줄:
===What is RDF?===
+
[[2019 겨울방학 스터디 6주차 |이전페이지]]
*RDF stands for Resource Description Framework
 
*RDF is a framework for describing resources on the web
 
**Describing properties for shopping items, such as price and availability
 
**Describing time schedules for web events
 
**Describing information about web pages (content, author, created and modified date)
 
**Describing content and rating for web pictures
 
**Describing content for search engines
 
**Describing electronic libraries
 
*RDF is designed to be read and understood by computers
 
*RDF is not designed for being displayed to people
 
**RDF was designed to provide a common way to describe information so it can be read and understood by computer applications.
 
**RDF descriptions are not designed to be displayed on the web.
 
*RDF is written in XML
 
**RDF documents are written in XML. The XML language used by RDF is called RDF/XML.
 
**By using XML, RDF information can easily be exchanged between different types of computers using different types of operating systems and application languages.
 
 
 
*RDF is a part of the W3C's Semantic Web Activity
 
**W3C's "Semantic Web Vision" is a future where:
 
**Web information has exact meaning
 
**Web information can be understood and processed by computers
 
**Computers can integrate information from the web
 
 
 
*RDF is a W3C Recommendation
 
**RDF became a W3C Recommendation 10. February 2004.
 
  
 +
*배포한 pdf참조. 웹상 업로드 x
  
 +
===What is RDF?===
 
*RDF : 웹상의 다양한 정보를 컴퓨터가 확실하게 처리할 수 있는 형태로 기술하는, 시맨틱 웹의 기본계층을 형성하는 데이터모델. 주어-술어-목적어로 구성된 트리플을 기본단위로 하고, 트리플들의 집합인 그래프에 의해 리소스를 기술.
 
*RDF : 웹상의 다양한 정보를 컴퓨터가 확실하게 처리할 수 있는 형태로 기술하는, 시맨틱 웹의 기본계층을 형성하는 데이터모델. 주어-술어-목적어로 구성된 트리플을 기본단위로 하고, 트리플들의 집합인 그래프에 의해 리소스를 기술.
 
**리소스란 ‘웹에서 식별할 수 있는 것’을 의미.
 
**리소스란 ‘웹에서 식별할 수 있는 것’을 의미.
 
**RDF는 특정한 환경을 전제로 하지 않고 처리할 수 있는 형태로 정보를 표현함.
 
**RDF는 특정한 환경을 전제로 하지 않고 처리할 수 있는 형태로 정보를 표현함.
 +
 +
*Concepts and Abstract Syntax에서 제시된 RDF의 설계목표 6가지
 +
**단순하면서도 유연한 데이터모델
 +
**논리학적인 근거가 있는 의미표현과 증명가능한 추론
 +
**URI를 토대로하는 확장가능한 어휘의 이용
 +
**XML에 의한 교환구문의 채용
 +
**XML스키마데이터형에 의한 데이터의 정밀한 유형화
 +
**누구든지 어떠한 리소스에 대해서도 기술 가능
 +
 +
*RDF/XML
 +
**다른 XML기반의 시스템과 상호운용이 쉬우며, 익히기 쉬움.
 +
**다양한 생략구문이 제공되나 복잡함. 그래프 규모가 커지면 태그의 양이 증가하여 전체적인 가독성이 떨어짐.
 +
**RDF의 교환구문의 기본은 RDF/XML이지만 다른 형태의 표현을 쓰기도 함.(N-triples, N3, turtle 등)
 +
 +
*N-triples : 주어, 술어, 목적어의 URI를 <>로 묶어서 나열.
 +
<pre>
 +
주어 술어 목적어.
 +
<urn:pin:MK705> <http://example.org/terms/hasHompage> <http://www.kanzaki.com>.
 +
<http://www.kanzaki.com> <http://example.org/terms/created> "1999-12-15".
 +
</pre>
 +
*N3(notation 3) : 맨처음에 prefix 선언하고, 수식명은 직접 기술.
 +
<pre>
 +
주어 술어 목적어.
 +
@prefix ex:<http://example.org/terms/>
 +
<urn:pin:MK705> ex:hasHompage <http://www.kanzaki.com>.
 +
<http://www.kanzaki.com> ex:created "1999-12-15".
 +
</pre>
  
 
===RDF triple : resource, property and property value===
 
===RDF triple : resource, property and property value===
39번째 줄: 44번째 줄:
 
*주어와 목적어를 타원(노드, node)로 나타내며, 이러한 2개의 노드들을 술어를 나타내는 화살표(아크, arc)로 연결.
 
*주어와 목적어를 타원(노드, node)로 나타내며, 이러한 2개의 노드들을 술어를 나타내는 화살표(아크, arc)로 연결.
  
===RDF구문(statements)===
+
===[https://www.w3.org/RDF/Validator/ RDF 유효성 검사]===
  
===RDF주요 요소===
+
===RDF그래프 그리기===
 +
*선애
 +
<pre>
 +
1) http://dh.aks.ac.kr/~seonae/wiki의 이름은 선애이다
 +
2) 선애는 인문정보학과이다
 +
3) 선애는 보라색을 좋아한다
  
===RDF Schema(RDFS)===
+
*RDF/XML
 +
<?xml version="1.0"?>
 +
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 +
  xmlns:sa="http://dh.aks.ac.kr/~seonae/wiki#">
 +
  <rdf:Description rdf:about="http://dh.aks.ac.kr/~seonae/wiki">
 +
    <sa:name>선애</sa:name>
 +
    <sa:major>인문정보학과</sa:major>
 +
    <sa:favorite>보라색</sa:favorite>
 +
  </rdf:Description>
 +
</rdf:RDF>
 +
</pre>
  
===RDF 유효성 검사===
+
*인혁
 
+
<pre>
===Purl(persistent uniform resource locator)===
+
1) 전인혁은 무형문화재이다.
 
+
2) 전인혁은 제례를 공부한다.
===RDF그래프 그리기===
+
3) 전인혁은 인문정보학을 연구한다.
  
===RDF/XML===
+
<?xml version="1.0"?>
 +
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 +
  xmlns:ih="http://purl.org/dc/elements/1.1/">
 +
  <rdf:Description rdf:about="http://dh.aks.ac.kr/Edu/wiki/index.php/전인혁">
 +
    <ih:work>무형문화재</ih:work>
 +
    <ih:study>제례</ih:study>
 +
    <ih:research>인문정보학</ih:research>
 +
  </rdf:Description>
 +
</rdf:RDF>
 +
</pre>

2019년 2월 12일 (화) 19:45 기준 최신판

이전페이지

  • 배포한 pdf참조. 웹상 업로드 x

What is RDF?

  • RDF : 웹상의 다양한 정보를 컴퓨터가 확실하게 처리할 수 있는 형태로 기술하는, 시맨틱 웹의 기본계층을 형성하는 데이터모델. 주어-술어-목적어로 구성된 트리플을 기본단위로 하고, 트리플들의 집합인 그래프에 의해 리소스를 기술.
    • 리소스란 ‘웹에서 식별할 수 있는 것’을 의미.
    • RDF는 특정한 환경을 전제로 하지 않고 처리할 수 있는 형태로 정보를 표현함.
  • Concepts and Abstract Syntax에서 제시된 RDF의 설계목표 6가지
    • 단순하면서도 유연한 데이터모델
    • 논리학적인 근거가 있는 의미표현과 증명가능한 추론
    • URI를 토대로하는 확장가능한 어휘의 이용
    • XML에 의한 교환구문의 채용
    • XML스키마데이터형에 의한 데이터의 정밀한 유형화
    • 누구든지 어떠한 리소스에 대해서도 기술 가능
  • RDF/XML
    • 다른 XML기반의 시스템과 상호운용이 쉬우며, 익히기 쉬움.
    • 다양한 생략구문이 제공되나 복잡함. 그래프 규모가 커지면 태그의 양이 증가하여 전체적인 가독성이 떨어짐.
    • RDF의 교환구문의 기본은 RDF/XML이지만 다른 형태의 표현을 쓰기도 함.(N-triples, N3, turtle 등)
  • N-triples : 주어, 술어, 목적어의 URI를 <>로 묶어서 나열.
주어 술어 목적어.
<urn:pin:MK705> <http://example.org/terms/hasHompage> <http://www.kanzaki.com>.
<http://www.kanzaki.com> <http://example.org/terms/created> "1999-12-15".
  • N3(notation 3) : 맨처음에 prefix 선언하고, 수식명은 직접 기술.
주어 술어 목적어.
@prefix ex:<http://example.org/terms/>
<urn:pin:MK705> ex:hasHompage <http://www.kanzaki.com>.
<http://www.kanzaki.com> ex:created "1999-12-15".

RDF triple : resource, property and property value

  • A Resource is anything that can have a URI, such as "http://www.w3schools.com/rdf"
  • A Property is a Resource that has a name, such as "author" or "homepage"
  • A Property value is the value of a Property, such as "Jan Egil Refsnes" or "http://www.w3schools.com" (note that a property value can be another resource)
  • RDF트리플(Triple) : 주어(Subject)-술어(Predicate)-목적어(Object) => 문장(Statement)구성
  • RDF의 가장 기본적인 기술 단위. 술어를 속성(Property), 목적어를 속성값(Property Value)라고 부르기도 함.
  • 주어와 목적어를 타원(노드, node)로 나타내며, 이러한 2개의 노드들을 술어를 나타내는 화살표(아크, arc)로 연결.

RDF 유효성 검사

RDF그래프 그리기

  • 선애
1) http://dh.aks.ac.kr/~seonae/wiki의 이름은 선애이다
2) 선애는 인문정보학과이다
3) 선애는 보라색을 좋아한다

*RDF/XML
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:sa="http://dh.aks.ac.kr/~seonae/wiki#">
  <rdf:Description rdf:about="http://dh.aks.ac.kr/~seonae/wiki">
    <sa:name>선애</sa:name>
    <sa:major>인문정보학과</sa:major>
    <sa:favorite>보라색</sa:favorite>
  </rdf:Description>
</rdf:RDF>
  • 인혁
1) 전인혁은 무형문화재이다.
2) 전인혁은 제례를 공부한다.
3) 전인혁은 인문정보학을 연구한다.

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:ih="http://purl.org/dc/elements/1.1/">
  <rdf:Description rdf:about="http://dh.aks.ac.kr/Edu/wiki/index.php/전인혁">
    <ih:work>무형문화재</ih:work>
    <ih:study>제례</ih:study>
    <ih:research>인문정보학</ih:research>
  </rdf:Description>
</rdf:RDF>