Языки описания информации Лекция ХХХ. Кафедра «ОСУ» Весенний семестр 2010/2011 уч. года Среда описания ресурсов RDF.

Slides:



Advertisements
Similar presentations
Metadata vocabularies and ontologies Dr. Manjula Patel Technical Research and Development
Advertisements

Dr. Alexandra I. Cristea CS 253: Topics in Database Systems: C3.
W3C and RDF. Why OCLC is a W3C Member Access to networked information resources –the browser and online access –the breath and depth of networked information.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
Processing of structured documents Part 8. 2 Resource Description Framework (RDF) zWeb was originally built for human consumption yalthough everything.
The Semantic Web – WEEK 4: RDF
Introduction to RDF Based on tutorial at
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
CS570 Artificial Intelligence Semantic Web & Ontology 2
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 20 Novembre 2009.
Языки описания информации Лекция ХХХ. Кафедра «ОСУ» Весенний семестр 2010/2011 уч. года RDF схемы.
RDF Tutorial.
Ontology Notes are from:
Dr. Alexandra I. Cristea RDF.
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
RDF Kitty Turner. Current Situation there is hardly any metadata on the Web search engine sites do the equivalent of going through a library, reading.
RDF: Data Description With HTML, the Web is for reading With XML, the Web is for processing Necessary to know  who wrote this?  who owns it?  who authorised.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
Resource Description Framework ( RDF ) Xinxia An.
Module 2b: Modeling Information Objects and Relationships IMT530: Organization of Information Resources Winter, 2007 Michael Crandall.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
Metadata Standards and Applications 4. Metadata Syntaxes and Containers.
RDF: Resource Description Framework Some slides are from Costello and “primer to semantic web”
Visual Models for Knowledge Engineering Madalina Croitoru
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Practical RDF Chapter 1. RDF: An Introduction
An Introduction to the Resource Description Framework Eric Miller Online Computer Library Center, Inc. Office of Research Dublin, Ohio 元智資工所 系統實驗室 楊錫謦.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
By: Dan Johnson & Jena Block. RDF definition What is Semantic web? Search Engine Example What is RDF? Triples Vocabularies RDF/XML Why RDF?
RDF (Resource Description Framework). 2 Table of Contents  Introduction  Basic RDF –Basic RDF Model –Basic Syntax  Containers  Statements about Statements.
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 01Dicembre 2009.
Resource Description Framework (RDF) Course: Electronic Document Team member: Ding Feng Ding Wei Wang Ling Date:
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Semantic Web - an introduction By Daniel Wu (danielwujr)
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Переход от XML документов к RDF документам. Цель языка RDF Целью языка RDF (Resource Description Framework) является предоставление стандартного способа.
Evidence from Metadata INST 734 Doug Oard Module 8.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Dr. Alexandra I. Cristea RDF.
Problems with XML & XML Schemas XML falls apart on the Scalability design goal. 1.The order in which elements appear in an XML document is significant.
THE BIBFRAME EDITOR AND THE LC PILOT Module 3 – Unit 1 The Semantic Web and Linked Data : a Recap of the Key Concepts Library of Congress BIBFRAME Pilot.
Dr. Bhavani Thuraisingham September 24, 2008 Building Trustworthy Semantic Webs Lecture #9: RDF and RDF Security.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lotzi Bölöni.
The Semantic Web. What is the Semantic Web? The Semantic Web is an extension of the current Web in which information is given well-defined meaning, enabling.
1 RDF, XML & interoperability Metadata : a reprise Communities, communication & XML An introduction to RDF RDF, XML and interoperability.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Chapter 5 The Semantic Web 1. The Semantic Web  Initiated by Tim Berners-Lee, the inventor of the World Wide Web.  A common framework that allows data.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
The Semantic Web By: Maulik Parikh.
Presentation transcript:

Языки описания информации Лекция ХХХ. Кафедра «ОСУ» Весенний семестр 2010/2011 уч. года Среда описания ресурсов RDF

Технологические уровни «Semantic Web»

Введение в RDF RDF это фреймворк (framework) для описания Web ресурсов, таких, как информация о названии (title), авторе (author), дате изменения (modification date), содержание (content) и авторском праве (copyright) Web страницы. Пример RDF документа: <rdf:RDF xmlns:rdf= xmlns:si= W3Schools Jan Egil Refsnes

Введение в RDF

Что такое RDF? RDF это сокращение для фразы Resource Description Framework (среда описания ресурсов); RDF это структура (средство, каракас, инфраструктура) для описания ресурсов, имеющихся в web сети; RDF разработано для чтения и понимания компьютерными программами; RDF не предназначено для работы с такими описаниями пользователей (людей); RDF записывается на языке XML; RDF является частью работы организации W3C по созданию «Semantic Web»; RDF является стандартом организации W3C.

Примеры использования RDF Описание свойств продаваемых товаров, таких, как цена и доступность. Описание расписаний для событий в web сети. Описание информации о web страницах (content, author, created и modified date). Описание содержания и оценки (rating) web картинок. Описание содержания для поисковых систем (search engines). Описание электронных библиотек.

RDF это язык утверждений, предназначенный для описания высказываний (propositions) с помощью использования точных формальных словарей, в особенности таких, которые определены с помощью языка RDFS. К RDF утверждениям можно получить доступ и использовать в Web сети (World Wide Web). Они предназначены предоставить основу для более совершенных языков утверждений, имеющих аналогичные цели. – RDF язык описания высказываний; – RDFS словари также описываются в виде наборов высказываний.

RDF разработано для чтения и понимания компьютерными программами; – RDF было разработано для предоставления общего способа описывать информацию так, чтобы ее можно было читать и понимать компьютерными программами. – RDF описания не предназначаются для того, чтобы их показывать в web сети. RDF записывается на языке XML – RDF документы записываются на языке XML. Язык XML, который используется средой RDF называется RDF/XML. – В результате использования XML, может легко обмениваться RDF информацией между разными типами компьютеров, использующих разные типы ОС и языков программирования. RDF и концепция “Semantic Web“ – Язык RDF является частью деятельности W3C по разработке «Semantic Web». – Концепция W3C это будущий этап развития WWW, в котором: – Web информация имеет точный смысл. – Web информация может быть понята и обработана компьютерными программами. – Компьютеры могут интегрировать информацию из web сети.

Работы организации W3C, связанные с RDF и OWL Semantic Web это среда для совместного использования данных компаниями, приложениями, предприятиями, независимо от платформ и программного обеспечения. RDF и OWL это основные технологии Semantic Web: – RDF - Resource Description Framework RDF is a language for describing Web resources, such as the title, author, modification date, content, and copyright information of a Web page. – OWL - Web Ontology Language OWL is built on top of RDF, and is a language for processing information on the internet. – SPARQL - Query Language for RDF SPARQL offer developers a way to write queries across the wide range of RDF information on the internet.

Спецификации и расписание W3C … SpecificationDraft / ProposalRecommendation RDF Primer 10. Feb 2004 RDF Test Cases 10. Feb 2004 RDF Concept 10. Feb 2004 RDF Semantics 10. Feb 2004 RDF Schema 10. Feb 2004 RDF Syntax 10. Feb 2004 OWL Overview 10. Feb 2004 OWL Guide 10. Feb 2004 OWL Reference 10. Feb 2004 OWL Syntax 10. Feb 2004 OWL Test Cases 10. Feb 2004 OWL Use Cases 10. Feb 2004 Parsing OWL in RDF21. Jan 2004 SPARQL Language 15. Jan 2008

RDF модель данных Утверждениями являются триплеты вида : Триплеты могут быть представлены в виде графа: IanUli hasColleague Утверждения описывают свойства (properties) ресурсов. Ресурсом является любой объект, на который можно сослаться с помощью URI: –документ, картинка, параграф текста в Web сети; – –книга в библиотеке, реальный человек (?) –isbn:// –…–… Сами свойства также являются ресурсом (имеют URI идентификаторы)

URI идентификаторы URI = Uniform Resource Identifier «Обобщенное множество всех имен/адресов, являющиеся короткими строками, которые являются ссылками на ресурсы.» URLs (Uniform Resource Locators) are a particular type of URI, used for resources that can be accessed on the WWW (e.g., web pages) In RDF, URIs typically look like “normal” URLs, often with fragment identifiers to point at specific parts of a document: –

Связывание утверждений Субъект одного утверждения может быть объектом для другого утверждения. Такие коллекции утверждений формируют направленный, размеченный граф. Отметим, что объектом триплета может также быть “литерал” (строка). Ian Uli hasColleague Carole ttler hasColleague hasHomePage

Синтаксис языка RDF RDF имеет XML синтаксис, который имеет специальный смысл: Каждый элемент Description описывает ресурс. Каждый атрибут или вложенный подэлемент в элементе Description является свойством ( property ) данного Ресурса ( Resource). На ресурсы можно ссылаться с помощью URI:

Взаимосвязь между RDF n RDFS

Правила языка RDF RDF идентифицирует объекты (things) с помощью Web идентификаторов (URI) и описывает ресурсы свойствами (properties) и значения свойств (property values) RDF описывает ресурсы свойствами (properties) и значения свойств (property values). – Ресурс (resource) это любое понятие, которое может иметь URI, такое, как например: " – Свойство (property) это отношение ресурса с другими ресурсами или различными данными, такие, как "author" или "homepage". – Значение свойства (property value) это объект, с которым связан ресурс (другой ресурс или какое-то данное стандартного типа). Например, "Jan Egil Refsnes“ или " (note that a property value can be another resource)

Пример Следующий RDF документ может описывать ресурс " Jan Egil Refsnes Это упрощенный пример, в котором не задано пространство имен.

Утверждения языка RDF The combination of a Resource, a Property, and a Property value forms a Statement (known as thesubject, predicate and object of a Statement). Let's look at some example statements to get a better understanding: Statement: "The author of is Jan Egil Refsnes". – The subject of the statement above is: – The predicate is: author – The object is: Jan Egil Refsnes Statement: "The homepage of is – The subject of the statement above is: – The predicate is: homepage – The object is:

RDF Example Это две записи из таблицы CD-list: TitleArtistCountryCompanyPriceYear Empire BurlesqueBob DylanUSAColumbia Hide your heartBonnie TylerUKCBS Records Несколько записей RDF документа: <rdf:RDF xmlns:rdf=“ xmlns:cd=" Bob Dylan USA Columbia Bonnie Tyler UK CBS Records

Компоненты RDF Формальная модель данных. Синтаксис для обмена данными. A schema-type system (schema model). Syntax for machine-understandable schemas. Query and profile protocols.

Модель данных RDF Imposes structural constraints on the expression of application data models: – For consistent encoding, exchange and processing of metadata. Enables resource description communities to define their own semantics. Provides for structural inter-operability.

Spring Модель данных RDF Направленный размеченный граф. Элементы модели: – Resource, – Property, – Value, – Statement.

RDF Model Primitives Resource Property Type Value Statement Value

Spring Simple Example Resource Author “Mark”

Simple Example Page.html creator “Mark” title “Mark’s Homepage”

Spring Базовая RDF модель Resources: – All things being described by RDF expressions, – Named by URI. Properties: – A specific aspect, characteristic, attribute, or relation used to describe a resource. How the characteristics of properties are expressed? --> RDF schema.

Spring Базовая модель RDF Утверждения (Statements): – A specific resource together with a named property plus the value of that property for that resource, – A statement consists of three elements: 1.Subject (resource), 2.Predicate (property), 3.Object (value).

Spring Базовая модель RDF Example: Ora Lassila is the creator of the resource Subject (Resource) Predicate (Property) Creator Object (Value) "Ora Lassila"

Spring Базовая модель RDF The direction of the arrow is important. The arc always starts at the subject and points to the object of the statement. The simple diagram above may also be read " has creator Ora Lassila", or in general " HAS ". " Ora Lassila

Spring Базовый синтаксис RDF The RDF data model provides an abstract, conceptual framework for defining and using metadata. A concrete syntax, such as XML, is needed for the purposes of creating and exchanging this metadata. RDF also requires the XML namespace facility to precisely associate each property with the schema that defines the property

Spring Базовый синтаксис RDF Ora Lassila is the creator of the resource Represented in RDF/XML as: <rdf:RDF xmlns:rdf=" xmlns:s=" Ora Lassila

Spring Контейнеры Frequently it is necessary to refer to a collection of resources: – For example, to say that a work was created by more than one person, or to list the students in a course, or the software modules in a package. RDF containers are used to hold such lists of resources or literals.

Spring Модель контейнеров Bag: – An unordered list of resources or literals, where the order of processing the parts does not matter Sequence: – An ordered list of resources or literals, e.g an alphabetical ordering of values. Alternative: – A list of resources or literals that represent alternatives for the (single) value of a property: e.g a list of Internet mirror sites at which a resource might be found.

Spring Модель контейнеров The students in course are Amy, Tim, John, Mary, and Sue.

Spring Модель контейнеров The students in course are Amy, Tim, John, Mary, and Sue.

Spring Синтаксис RDF The RDF Model defines the formal relationships among resources, properties and values. The Syntax is required to... – Store instances of the model into files, – Communicate files from one application to another. All based on W3C XML eXtensible Markup Language: –

Spring Bringing it together RDF Metadata transmission: – Embedded (e.g. ), transmitted with resource (HTTP), trusted 3rd Party (HTTP GET). RDF Data Model: – Support consistent encoding, exchange and processing of metadata… critical when aggregating data from multiple sources. RDF Schema: – Declare, define, reuse vocabularies.

RDF Анализатор (Parser) Имеется хороший грамматический анализатор RDF на web-сайте организации W3С: This RDF parser will tell you if your XML is in the proper RDF format.

Он-лайн валидаторы RDF документов W3C's RDF Validation Service ( is useful when learning RDF. W3C's RDF Validation Service Here you can experiment with RDF files. The online RDF Validator parses your RDF document, checks your syntax, and generates tabular and graphical views of your RDF document. Copy and paste the example below into W3C's RDF validator: <rdf:RDF xmlns:rdf= xmlns:si=" W3Schools.com Jan Egil Refsnes

Проверка и визуализация созданных RDF документов Enter a URI or paste an RDF/XML document into the text field above. A 3- tuple (triple) representation of the corresponding data model as well as an optional graphical visualization of the data model will be displayed. Check by Direct Input Display Result Options: Triples and/or Graph: Graph format: Paste an RDF/XML document into the following text field to have it checked. More options are available in the Extended interface.Extended interface Check by URI Display Result Options: Triples and/or Graph: Graph format: Enter the URI for the RDF/XML document you would like to check. More options are available in the Extended interface.Extended interface

Результаты проверки

Основные элементы RDF Основными элементами RDF являются: – корневой элемент, – элемент, который идентифицирует ресурс. Элемент – is the root element of an RDF document. It defines the XML document to be an RDF document. It also contains a reference to the RDF namespace: Например:...здесь записывается описание...

Элемент The Element – Элемент определяет ресурс с атрибутом “about”. – Элемент содержит элементы, которые описывают данный ресурс: Например: <rdf:RDF xmlns:rdf=" xmlns:cd=" Bob Dylan USA Columbia Элементы artist, country, company, price и year определены в пространстве имен Данное пространство имен находится вне RDF (и не является частью RDF). RDF описывает только framework. Элементы artist, country, company, price и year должны быть определены в каком-то другом месте (company, organization, person, etc).

Задание свойств в атрибутах Элементы свойств (property elements) также могут быть описаны в виде атрибутов (а не в виде элементов): <rdf:RDF xmlns:rdf=" xmlns:cd=" <rdf:Description rdf:about=" Burlesque" cd:artist="Bob Dylan" cd:country="USA" cd:company="Columbia" cd:price="10.90" cd:year="1985" />

Задание свойств в виде ресурсов Элементы описания свойств (property elements) также могут быть определены в виде ресурсов: <rdf:RDF xmlns:rdf=" xmlns:cd=" … В данном примере, свойство artist не имеет свойство (value), а использует ссылку (reference) на ресурс (resource), который содержит информацию о данном художнике (artist).

rdf:Description + rdf:type Существует еще один способ представления в виде XML. Он делает очень понятным, что выполняется описание чего-то, что это имеет некоторый конкретный тип (type) (класс) : <rdf:Description rdf:about=" xmlns:rdf=" xmlns=" kilometers western China's Qinghai-Tibet Plateau East China Sea This is read as: "This is a Description about the resource This resource is an instance of the River type (class). The resource has a length of 6300 kilometers, a startingLocation of western China's Qinghai-Tibet Plateau, and an endingLocation of the East China Sea." Note: this form of describing a resource is called the "long form". The form we have seen previously is an abbreviation of this long form. An RDF Parser interprets the abbreviated form as if it were this long form.

Варианты описания Альтернативно можно использовать атрибут rdf:ID вместо атрибута rdf:about, как показано ниже: <rdf:Description rdf:ID="Yangtze" xmlns:rdf=" xmlns=" xml:base=" kilometers western China's Qinghai-Tibet Plateau East China Sea

Эквивалентные представления! <River rdf:ID="Yangtze" xmlns:rdf=" xmlns=" xml:base=" kilometers western China's Qinghai-Tibet Plateau East China Sea <River rdf:about=" xmlns:rdf=" xmlns=" kilometers western China's Qinghai-Tibet Plateau East China Sea <rdf:Description rdf:about=" xmlns:rdf=" xmlns=" kilometers western China's Qinghai-Tibet Plateau East China Sea В литературе по RDF данный пример Обычно показывается в такой форме.

RDF контейнеры RDF контейнеры используются для описания группы объектов (things). The following RDF elements are used to describe groups: –, –, and –. RDF Terms – In the examples above we have talked about "list of values" when describing the container elements. – In RDF these "list of values" are called members. So, we have the following: – A container is a resource that contains things – The contained things are called members (not list of values)

Элемент Элемент используется для описания списказначений (list of values), которые не должны находиться в заданном порядке. Элемент может содержать повторяющиеся значения. Например: <rdf:RDF xmlns:rdf=" xmlns:cd=" John Paul George Ringo

Элемент – The element is used to describe an ordered list of values (For example, in alphabetical order). – The element may contain duplicate values. Example George John Paul Ringo

Элемент The element is used to describe a list of alternative values (the user can select only one of the values). Example CD Record Tape

RDF коллекции RDF collections describe groups that can ONLY contain the specified members. The rdf:parseType = "Collection" Attribute – As seen in the previous chapter, a container says that the containing resources are members - it does not say that other members are not allowed. – RDF collections are used to describe groups that can ONLY contain the specified members. – A collection is described by the attribute rdf:parseType="Collection". Example