Ontology languages, XML and RDF. Contents Definition of ontology A quick survey to famous ontology languages Graphical Logic based ● XML ● XML, namespaces,

Slides:



Advertisements
Similar presentations
Ontology-Based Computing Kenneth Baclawski Northeastern University and Jarg.
Advertisements

1 ISWC-2003 Sanibel Island, FL IMG, University of Manchester Jeff Z. Pan 1 and Ian Horrocks 1,2 {pan | 1 Information Management.
Three Theses of Representation in the Semantic Web
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
XML: Extensible Markup Language
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
Semantic Web Thanks to folks at LAIT lab Sources include :
An Introduction to RDF(S) and a Quick Tour of OWL
CS570 Artificial Intelligence Semantic Web & Ontology 2
By Ahmet Can Babaoğlu Abdurrahman Beşinci.  Suppose you want to buy a Star wars DVD having such properties;  wide-screen ( not full-screen )  the extra.
SIG2: Ontology Language Standards WebOnt Briefing Ian Horrocks University of Manchester, UK.
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
1 Semantic Web Technologies: The foundation for future enterprise systems Okech Odhiambo Knowledge Systems Research Group Strathmore University.
Dr. Alexandra I. Cristea RDF.
Ontology and Ontology-Based Applications C. Farkas Some of the slides were obtained from presentations of Ian Horrocks.
Tutorial on OWL ISWC, Sanibel Island, Florida, USA 20 th October, 2003 Sean Bechhofer, 1 Ian Horrocks 1 and Peter F. Patel-Schneider 2 1 University of.
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
Semantic Web and its Logical Foundations Serguei Krivov, Ecoinformatics Collaboratory Gund Institute for Ecological Economics, UVM.
Semantic Web 06 th March, 2002 Robert Kaminski, Thomas Panas.
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.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Aidministrator nederland b.v. Adding formal semantics to the Web Jeen Broekstra, Michel Klein, Stefan Decker, Dieter Fensel,
Practical RDF Chapter 1. RDF: An Introduction
Logical Foundations for the Semantic Web Ian Horrocks and Ulrike Sattler University of Manchester Manchester, UK
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Okech Odhiambo Faculty of Information Technology Strathmore University
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
1 Representing Data with XML September 27, 2005 Shawn Henry with slides from Neal Arthorne.
Logics for Data and Knowledge Representation
Dept. Computer Science, Korea Univ. Intelligent Information System Lab. 1 Sohn Jong-Soo Intelligent Information System lab. Department of Computer Science.
RDF and OWL Developing Semantic Web Services by H. Peter Alesso and Craig F. Smith CMPT 455/826 - Week 6, Day Sept-Dec 2009 – w6d21.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Semantic Web - an introduction By Daniel Wu (danielwujr)
Chapter 3 RDF and RDFS Semantics. Introduction RDF has a very simple data model But it is quite liberal in what you can say Semantics can be given using.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
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.
RDF & RDF Schema Machine Understandable Metadata for the Web Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
Ontology-Based Computing Kenneth Baclawski Northeastern University and Jarg.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
Of 35 lecture 5: rdf schema. of 35 RDF and RDF Schema basic ideas ece 627, winter ‘132 RDF is about graphs – it creates a graph structure to represent.
DAML+OIL: an Ontology Language for the Semantic Web.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
Organization of the Lab Three meetings:  today: general introduction, first steps in Protégé OWL  November 19: second part of tutorial  December 3:
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Metadata : an overview XML and Educational Metadata, SBU, London, 10 July 2001 Pete Johnston UKOLN, University of Bath Bath, BA2 7AY UKOLN is supported.
Description of Information Resources: RDF/RDFS (an Introduction)
PRACTICAL KNOWLEDGE REPRESENTATION FOR THE WEB Frank van Harmelen Dieter Fensel AIFB Kim Kangil Structural Complexity Laboratory.
Representing Data with XML February 26, 2004 Neal Arthorne.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall RDF & RDF Schema Machine Understandable Metadata for the.
06 Dec Rev. 14 Dec CmpE 583 Fall 2008 OWL Language 1 OWL Language off Lacy Ch. 10 Atilla Elçi.
OWL Web Ontology Language Summary IHan HSIAO (Sharon)
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.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
RDF For Semantic Web Dhaval Patel 2nd Year Student School of IT
ece 720 intelligent web: ontology and beyond
RDF & RDF Schema Machine Understandable Metadata for the Web
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Chapter 3 RDF and RDFS Semantics
Semantic Web Basics (cont.)
Presentation transcript:

Ontology languages, XML and RDF

Contents Definition of ontology A quick survey to famous ontology languages Graphical Logic based ● XML ● XML, namespaces, XSLT ● XSLT, XSL:FO ● RDF

Ontology An ontology is a hierarchically structured set of terms for describing a domain that can be used as a skeletal foundation for a knowledge base. (Swartout, Patil, Knight, Russ) An ontology provides the means for describing explicitly the conceptualization behind the knowledge represented in a knowledge base. (Bernaras, Lasergoiti, Correra) An ontology is a formal, explicit specification of a shared conceptualization (Studer, Benjamins,Fensel)

(In)famous “Layer Cake”  Data Exchange  Semantics+reasoning  Relational Data ? ? ???

Ontology Languages Wide variety of languages for “Explicit Specification” –Graphical notations Semantic networks

Ontology Languages Wide variety of languages for “Explicit Specification” –Graphical notations Topic Maps

Ontology Languages Wide variety of languages for “Explicit Specification” –Graphical notations UML

Ontology Languages Wide variety of languages for “Explicit Specification” –Graphical notations RDF

Ontology Languages Wide variety of languages for “Explicit Specification” –Logic based Description Logics (e.g., OIL, DAML+OIL, OWL) Rules (e.g., RuleML, LP/Prolog) First Order Logic (e.g., KIF)

Ontology Languages Wide variety of languages for “Explicit Specification” –Logic based Conceptual graphs

Ontology Languages Wide variety of languages for “Explicit Specification” –Logic based Conceptual graphs (Syntactically) higher order logics (e.g., LBase) Non-classical logics (e.g., Flogic, Non-Mon, modalities) –Bayesian/probabilistic/fuzzy Degree of formality varies widely –Increased formality makes languages more amenable to machine processing (e.g., automated reasoning)

Objects/Instances/Individuals –Elements of the domain of discourse –Equivalent to constants in FOL Types/Classes/Concepts –Sets of objects sharing certain characteristics –Equivalent to unary predicates in FOL Relations/Properties/Roles –Sets of pairs (tuples) of objects –Equivalent to binary predicates in FOL Such languages are/can be: –Well understood –Formally specified –(Relatively) easy to use –Amenable to machine processing Many languages use “object oriented” model based on:

Web “Schema” Languages Existing Web languages extended to facilitate content description –XML  XML Schema (XMLS) –RDF  RDF Schema (RDFS) XMLS not an ontology language –Changes format of DTDs (document schemas) to be XML –Adds an extensible type hierarchy Integers, Strings, etc. Can define sub-types, e.g., positive integers RDFS is recognisable as an ontology language –Classes and properties –Sub/super-classes (and properties) –Range and domain (of properties)

XML –Unformal definition: –XML is a markup language for representation of –documents which contain stuctured information. Usages: Data exchange (e.g. RSS, SOAP-envelope, ad hoc B2B data exchange) Web services Data integration Content publishing (single source multiple output) Multimedia presentations (SMIL)

XML Processing –Parsing SAX: uses callback to notify occurences of each element(e.g. StartDocument(), startElement(), endDocument(), etc.) DOM: Makes and object model of the document in memory –Remote procedure call: XML-RPC –SOAP (web serices)

Namespaces in XML Namespaces avoids name conflicts same tag for different things same tag for different format Example: Document 1: Tim Berners Lee Document 2: Tim Berners Lee

Namespaces in XML (cont.) First try Tim Berners Lee Second try Tim Berners Lee Final solution Tim Berners Lee

Namespace example George Soros Counting

XML Schema: What is a Schema ?  A schema defines the content of a number of XML-documents  It defines  which elements and attributes can be included  the element content  the order of elements  Schema substitutes DTD  Think of classes (schema) and instances (documents)

XML Schema  Schema is saved with postfix.xsd  A document is validated against a schema  A schema is a XML-document

XSL XSL consist of –formatting objects –XSL Transformations (XSLT) Formatting object: specifies presentation XSLT: Transformations to arbitrary format The idea of XSLT: traverse the tree and apply a specific template at each node Usage –XML to XML (i.e. SVG) –XML to (X)HTML –XML to text –XML to other formats (i.e CSV)

The XSLT language Transformation in XML dialect Example: A rule based language Output handled by the enviroment

Terminology Template rules consists of: –pattern –template Pattern specifies nodes a template applies to –tag name –attributes –context Template defines the transformations

XML Example chicken soup Introduction I’ve always.. book title section title para

Template rule for book

Template rule for section

Formatting objects Formatting represents common document elements Example –block –external-graphic –table –simple-link They are specified in XML Attributes specify their appearance

Template rule with objects

SMIL  SMIL  Synchronized Multimedia Integration Language  SMIL is an XML extension  used for multimedia presentations which integrate streaming audio and video with images, text, etc.  enables to specify what should be presented when

SMIL  Introduction  About XML  XML Schema  XML Namespaces  XSLT  Future

SMIL

RDF and RDFS RDF stands for Resource Description Framework It is a W3C candidate recommendation ( RDF is graphical formalism ( + XML syntax + semantics) –for representing metadata –for describing the semantics of information in a machine- accessible way RDFS extends RDF with “schema vocabulary”, e.g.: –Class, Property –type, subClassOf, subPropertyOf –range, domain

The RDF Data Model Statements are triples: Can be represented as a graph: Knuth StanfordU hasColleague Statements describe properties of resources A resource is any object that can be pointed to by a URI: –a document, a picture, a paragraph on the Web; – –a book in the library, a real person (?) –isbn:// –…–… Properties themselves are also resources (URIs)

URIs URI = Uniform Resource Identifier "The generic set of all names/addresses that are short strings that refer to resources" 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: –

Linking Statements The subject of one statement can be the object of another Such collections of statements form a directed, labeled graph Note that the object of a triple can also be a “literal” (a string) Knuth STU hasColleague Carole hasColleague hasHomePage

How can RDF be implemented Usally RDF/XML syntax However other notations are possible –e.g. Notation3 "Sean"

RDF Syntax RDF has an XML syntax that has a specific meaning: Every Description element describes a resource Every attribute or nested element inside a Description is a property of that Resource We can refer to resources by using URIs

Rdf type RDF predifined property Its value – a resource that represent a category or class Its subject – Instance of that category or class prefix ex:, URI:

Rdf containers Bag: (A resource having type rdf:Bag) –Represents an unordered list of resources or literals –Duplicated values are prermitted Sequence: (A resource having type rdf:Seq) –Represents ordered list of resources or literal –Duplicated values are permitted Alternatives: (A resource having type rdf:Alt) –Represents group of resources or literals that are alternatives

Bag example

RDF reification association of a statement and a specific resource representing the statement used to make statements about statements Vocabulary: type rdf:Statement properties rdf:subject rdf:predicate rdf:object

Reification example The member of project opposed the statement that is an NSF founded project

RDF graphs

RDF Schema (RDFS) RDF gives a formalism for meta data annotation, and a way to write it down in XML, but it does not give any special meaning to vocabulary such as subClassOf or type –Interpretation is an arbitrary binary relation RDF Schema allows you to define vocabulary terms and the relations between those terms –it gives “extra meaning” to particular RDF predicates and resources –this “extra meaning”, or semantics, specifies how a term should be interpreted

RDFS Examples RDF Schema terms (just a few examples): –Class –Property –type –subClassOf –range –domain These terms are the RDF Schema building blocks (constructors) used to create vocabularies:

RDFS is about creating taxonomies

Inferences: Yangtze is ariver Yangtze has a length of 6300 Kilometers Inferences in RDF and RDFS

Two classes same concept: –Equivalent classes: Airplane and Plane Cardinality constraints: –Ocean has one maxDepth Desire for more expressiveness

RDF/RDFS “Liberality” No distinction between classes and instances (individuals) Properties can themselves have properties No distinction between language constructors and ontology vocabulary, so constructors can be applied to themselves/each other

RDFS semantic using logic

Problems with RDFS RDFS too weak to describe resources in sufficient detail –No localised range and domain constraints Can’t say that the range of hasChild is person when applied to persons and elephant when applied to elephants –No existence/cardinality constraints Can’t say that all instances of person have a mother that is also a person, or that persons have exactly 2 parents –No transitive, inverse or symmetrical properties Can’t say that isPartOf is a transitive property, that hasPart is the inverse of isPartOf or that touches is symmetrical –…–… Difficult to provide reasoning support –No “native” reasoners for non-standard semantics –May be possible to reason via FO axiomatisation

RDF(S) tools Read RDF data –Parsers: Jena, Redland, SWI-Prolog –Validators: W3C RDF validation service –Editors: IsaViz, RDF Author, RDFEd, InferEd Store RDF data (XML format, tripples or relational/oo DB) –RSSDB, RDFLib Use RDF data (applications, RSS news, etc.) Manipulate RDF data (inference, query, etc.) –Jena RDQL, etc. –Example: SELECT ?person, ?knows WHERE (?x ?z), (?x ?person), (?z ?knows)

Web Ontology Language Requirements Desirable features identified for Web Ontology Language: Extends existing Web standards –Such as XML, RDF, RDFS Easy to understand and use –Should be based on familiar KR idioms Formally specified Of “adequate” expressive power Possible to provide automated reasoning support

From RDF to OWL Two languages developed to satisfy above requirements –OIL: developed by group of (largely) European researchers (several from EU OntoKnowledge project) –DAML-ONT: developed by group of (largely) US researchers (in DARPA DAML programme) Efforts merged to produce DAML+OIL –Development was carried out by “Joint EU/US Committee on Agent Markup Languages” –Extends (“DL subset” of) RDF DAML+OIL submitted to W3C as basis for standardisation –Web-Ontology (WebOnt) Working Group formed –WebOnt group developed OWL language based on DAML+OIL –OWL language now a W3C Candidate Recommendation –Will soon become Proposed Recommendation

OWL Language Three species of OWL –OWL full is union of OWL syntax and RDF –OWL DL restricted to FOL fragment (¼ DAML+OIL) –OWL Lite is “easier to implement” subset of OWL DL Semantic layering –OWL DL ¼ OWL full within DL fragment –DL semantics officially definitive OWL DL based on SHIQ Description Logic –In fact it is equivalent to SHOIN (D n ) DL OWL DL Benefits from many years of DL research –Well defined semantics –Formal properties well understood (complexity, decidability) –Known reasoning algorithms –Implemented systems (highly optimised)

(In)famous “Layer Cake”  Data Exchange  Semantics+reasoning  Relational Data ? ? ??? Relationship between layers is not clear OWL DL extends “DL subset” of RDF