resource description framework (rdf) - github pages · 2020. 12. 27. · contents 1 xml: a glimpse...

Post on 21-Feb-2021

19 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Resource Description Framework(RDF)

W8.L15.M5.T15.1.1and4

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 1 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 2 / 34

What is XML?

XML stands for eXtensible Markup Language

XML is a markup language much like HTML

XML was designed to store and transport data

XML is a W3C Recommendation

All major browsers have a built-in XML parser to access andmanipulate XML.

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 3 / 34

XML vs. HTML

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 4 / 34

XML and HTML (Similarities)

They both use tags and attributes

Tags may be nested

Human can read and interpret both XML and HTML quite easily

Machines can read and interpret only to some extent

Both XML and HTML were influenced and derived from SGML(Standard Generalized Markup Language)

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 5 / 34

XML vs. HTML (Differences)

HTML is to tell machines about how to interpret formatting forgraphical presentation (focus on how data looks)

XML is to tell machines about metadata content andrelationships between different pieces of information (focus onwhat data is)

XML allows the definition of constraints on values

HTML tags are fixed, while XML tags are user defined

HTML is not Case sensitive, whereas XML is Case sensitive.

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 6 / 34

More About XMLXML is considered a meta-markup language, i.e. a language fordefining markup languages

Query Languages for XML include:- XQuery, XML-QL, XQL,YATL etc.

The XML DOM (Document Object Model) defines a standardway for accessing and manipulating XML documents. It presentsan XML document as a tree-structure.

XPath can be used to navigate through elements and attributesin an XML document.

XSL (eXtensible Stylesheet Language) is a styling language forXML. XSLT stands for XSL Transformations.

By using XML, RDF information can easily be exchangedbetween different types of computers (RDF/XML Serialization).

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 7 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 8 / 34

RDF and the Semantic Web

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 9 / 34

What is RDF?

A language for representing Web resources and informationabout them in the form of metadata [RDF Primer]

A language to represent all kinds of things that can be identifiedon the Web [RDF Primer]

A domain independent data model for representing informationon the Web [G. Antoniou and F. van Harmelen, 2004]

A language with an underlying model designed to publish dataon the Semantic Web [F. Giunchiglia et al., 2010]

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 10 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 11 / 34

RDF language and data modelRDF language:

A language for expressing simple statements of the formsubject-property-value (binary predicates), with reasoning andinferencing capabilities

The data model in RDF is a graph data model

An edge with two connecting nodes forms a triple

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 12 / 34

RDF language

Formal syntax:

RDF has been given a syntax in XML and inherits all its benefits

Statements in RDF are machine comprehensible

Resources:

An object, an entity or anything we want to talk about (e.g.authors, books, publishers, places, people, facilities)

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 13 / 34

RDF language (Contd.)

Properties:

They codify relations (e.g. written-by, friend-of, located-in, . . . )and attributes (e.g. age, date of birth, length . . . )

Statements:

Statements assert the properties of resources in form of triplessubject-property-value

Every resource and property has a URI (an URL or any otheridentifier)

Values can be resources (for relations) or literals (for attributes)

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 14 / 34

RDF Data Model

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 15 / 34

RDF Graph

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 16 / 34

XML syntax example

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 17 / 34

RDF/XML elements

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 18 / 34

RDF typing

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 19 / 34

RDF ReificationRDF Reification can be used to represent:

Generic statements about statementsStructured attributes (e.g. address)Units of measureProvenance informationTime validity and other contextual information

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 20 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 21 / 34

RDF Schema (RDFS)

RDF:

RDF is a universal language that lets users describe resourcesin their own vocabularies

RDF by default does not assume, nor defines semantics of anyparticular application domain

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 22 / 34

RDF Schema (RDFS) [Contd.]

RDF Schema (RDFS): A language defined to provide mechanisms toadd semantics to RDF resources, in terms of:

Classes (rdfs:Class) and Properties (rdfs:Property)

Class Hierarchies and Inheritance (rdfs:subClassOf)

Property Hierarchies (rdfs:subPropertyOf)

Domain (rdfs:domain) and range (rdfs:range) of properties

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 23 / 34

RDF Schema (RDFS) [Contd.]

It is similar to the object-oriented programming (OOP) paradigmwith the difference that in OOP the central notion is the class(and properties are defined for them), while in RDF the centralnotion is the property and classes are used to specify theirdomain/range.

Classes and instances: Individual objects that belong to aclass are referred to as instances of that class (rdf:type).

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 24 / 34

Graphical Example

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 25 / 34

RDF Schema in XML

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 26 / 34

Utility Properties:rdfs:seeAlso relates a resource to another resource thatexplains itrdfs:isDefinedBy is a subproperty of rdfs:seeAlso and relatesa resource to the place where its definition, typically an RDFschema, is foundrdfs:comment support comments that can be associated with aresourcerdfs:label is a human-friendly name associated with a resource

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 27 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 28 / 34

Inference SystemSound and complete set of inference rules:

The RDF inference system consists of inference rules

Sound: inference rules prove only formulas that are valid withrespect to its semantics

Complete: every formula having a certain property can bederived) inference systems

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 29 / 34

RDF Inferencing by example

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 30 / 34

RDF Inferencing by example

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 31 / 34

Intersection and union in RDFSet Intersection (if an entity e is in X, it is also in both Y and Z)

Set Union (any entity e that belongs either to Y or Z alsobelongs to X)

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 32 / 34

Contents1 XML: A Glimpse

2 Resource Description Framework (RDF)

3 RDF Syntax

4 RDF Semantics

5 Reasoning

6 Summary

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 33 / 34

Summary

RDF provides a domain-independent foundation for representingand processing metadata, using a graph-based data model

RDF has a decentralized philosophy and allows incrementalbuilding of knowledge, and its sharing and reuse across the Web

RDF has a (XML-based) syntax and a semantics (via RDFSchema)

RDF Schema provides a mechanism for describing specificdomains

RDF Schema is a primitive ontology language, and it offerscertain modelling primitives with fixed meaning.

W8.L15.M5.T15.1.1and4 Resource Description Framework (RDF) 34 / 34

W8.L15.M5.T15.1.1and4

Resource DescriptionFramework (RDF)

top related