SlideShare a Scribd company logo
Infromation Reprentation, 
Structured Data and Semantics 
Yogendra Tamang 
070-MSCS-670
OUTLINE 
• XML, DTD and XML Schema, XSLT 
• Meta data Standards. 
• Information Representation in Semantic Web 
• RDF, RDFS 
• Syntactic Formats 
• RDF/XML, N-triples, Turtles etc. 
• Embedded Formats 
• RDFs, Microformats, eRDF, HTML5, GRDDL, SPARQL
XML 
Thing! Elements 
XML 
Documents Epilogue 
Prolog 
XML 
Declaration and 
Reference 
Tag, 
Attributes 
and 
Content 
<?xml version="1.0" encoding="UTF-16"?> 
<!DOCTYPE book SYSTEM "book.dtd"> 
<lecturer>David Billington</lecturer>
XML 
• Comments and Processing Instructions 
<!-- This is a comment --> 
<?stylesheet type="text/css" href="mystyle.css"?>
DTD and XML Schema 
• Used for defining the structure 
• what values an attribute may take 
• which elements may or must occur within other elements, etc. 
<lecturer> 
<name>David Billington</name> 
<phone> +61 − 7 − 3875 507 </phone> 
</lecturer> 
<!ELEMENT lecturer (name,phone)> 
<!ELEMENT name (#PCDATA)> 
<!ELEMENT phone (#PCDATA)>
DTD 
Disjunctions: 
<!ELEMENT lecturer (name|phone)> 
<!ELEMENT lecturer((name,phone)|(phone,name))>
DTD 
<order orderNo="23456" customer="John Smith" date="October 15, 2002"> 
<item itemNo="a528" quantity="1"/> 
<item itemNo="c817" quantity="3"/> 
</order> 
<!ELEMENT order (item+)> 
<!ATTLIST order orderNo ID #REQUIRED 
customer CDATA #REQUIRED 
date CDATA #REQUIRED> 
<!ELEMENT item EMPTY> 
<!ATTLIST item itemNo ID #REQUIRED 
quantity CDATA #REQUIRED 
comments CDATA #IMPLIED>
XML Schema 
<schema http://www.w3.org/2000/10/XMLSchema version="1.0"> 
Element and Attribute Types using Data Types 
• Numerical data types: integer, Short etc. 
• String types: string, ID, IDREF, CDATA etc. 
• Date and time data types: time, Month etc. 
• User defined(Simple and Comlpex)
XML Namespaces and XPATH 
• Form: 
xmlns:prefix="location“ 
• XPATH: 
Operates on Tree data model and is core for XML query lanaguage
XSLT 
• XSLT specifies rules with which an input XML document 
is transformed to 
• another XML document 
• an HTML document 
• plain text
RDF 
• It provides a uniform framework for interchange of 
data and metadata between applications 
• XML does not provide any means of talking about the 
semantics (meaning) of data 
• Object-Attribute-Value
RDF 
• Fundamental Concepts: 
• resources 
• properties 
• statements
Statements 
• Triples 
• (x, P, y)  P(x, y)
RDFS Core Classes 
• rdfs:Resource, the class of all resources 
• rdfs:Class, the class of all classes 
• rdfs:Literal, the class of all literals (strings) 
• rdf:Property, the class of all properties. 
• rdf:Statement, the class of all reified statements
RDFS Core Properties 
• rdf:type, which relates a resource to its class 
• The resource is declared to be an instance of that class 
• rdfs:subClassOf, which relates a class to one of its 
superclasses 
• All instances of a class are instances of its superclass 
• rdfs:subPropertyOf, relates a property to one of its 
superproperties 
• rdfs:domain, 
• rdfs:range,
RDF Sparql Query 
• SPARQL is based on matching graph patterns 
• Example: 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
SELECT ?c 
WHERE 
{ 
?c rdf:type rdfs:Class . 
}
RDFa 
• RDFa is an extension to HTML5 that helps you markup things like 
People, Places, Events, Recipes and Reviews. Search Engines and Web 
Services use this markup to generate better search listings and give 
you better visibility on the Web, so that people can find your website 
more easily
Microformats 
• microformats are a set of simple, open data formats built upon 
existing and widely adopted standards
MicroFormats Tools and Code generators
Infromation Reprentation,Structured Data and Semantics
Infromation Reprentation,Structured Data and Semantics
Infromation Reprentation,Structured Data and Semantics
Ntriples
Green Turtle RDFa
Green Triples 
• an implementation of RDFa 1.1 for browsers 
• When triples are discovered in a web page, a little green turtle 
will appear in the address bar. If you click on that turtle, you can 
view the triple graph.
Infromation Reprentation,Structured Data and Semantics
Infromation Reprentation,Structured Data and Semantics
References 
• “Semantic Web Primer”, Grigoris Antoniou, Frank van Harmelen 
• http://rdfa.info/ 
• https://code.google.com/p/green-turtle/ 
• http://microformats.org/wiki/about

More Related Content

PDF
Resource description framework
PPTX
RDF Graph Data Management in Oracle Database and NoSQL Platforms
PDF
Sparql a simple knowledge query
PPTX
What's New in RDF 1.1?
PPTX
SHACL: Shaping the Big Ball of Data Mud
PPTX
Using OWL for the RESO Data Dictionary
PPTX
Data exchange over internet (XML vs JSON)
PDF
SSSW 2012 - Reusing XML Schemas' Information as a Foundation for Designing Do...
Resource description framework
RDF Graph Data Management in Oracle Database and NoSQL Platforms
Sparql a simple knowledge query
What's New in RDF 1.1?
SHACL: Shaping the Big Ball of Data Mud
Using OWL for the RESO Data Dictionary
Data exchange over internet (XML vs JSON)
SSSW 2012 - Reusing XML Schemas' Information as a Foundation for Designing Do...

What's hot (18)

PPT
Analysis on semantic web layer cake entities
PDF
SKOS, Simple Knowledge Organization System: University of Florida Libraries, ...
PDF
RDF Seminar Presentation
PPTX
Naming things isn't that hard
PDF
An Introduction to Linked Data and Microdata
PDF
SHACL Overview
PPTX
Services semantic technology_terminology
PDF
Islandora and Linked Open Data
PPTX
Linked Open Data and Digital Curation (Islandora)
PPT
Library OKRA: A Matter of Semantics? Intelligence, Open Data and the Future o...
PPT
A review of the state of the art in Machine Learning on the Semantic Web
PPT
Introduction to XML
PPTX
Future directions for RDA / Gordon Dunsire
PPTX
DSpace-CRIS: a CRIS enhanced repository platform
PPTX
An introduction to Metadata Application Profiles
PDF
3.24.15 Slides, “New Possibilities: Developments with DSpace and ORCID”
PPTX
Introduction to Crossref: History, Mission, Members
Analysis on semantic web layer cake entities
SKOS, Simple Knowledge Organization System: University of Florida Libraries, ...
RDF Seminar Presentation
Naming things isn't that hard
An Introduction to Linked Data and Microdata
SHACL Overview
Services semantic technology_terminology
Islandora and Linked Open Data
Linked Open Data and Digital Curation (Islandora)
Library OKRA: A Matter of Semantics? Intelligence, Open Data and the Future o...
A review of the state of the art in Machine Learning on the Semantic Web
Introduction to XML
Future directions for RDA / Gordon Dunsire
DSpace-CRIS: a CRIS enhanced repository platform
An introduction to Metadata Application Profiles
3.24.15 Slides, “New Possibilities: Developments with DSpace and ORCID”
Introduction to Crossref: History, Mission, Members
Ad

Viewers also liked (10)

PDF
Management information system
PPT
Cloud computing
PDF
Management Information System James O Brien Study Notes
PPT
(Mrp 1) Prsntation Slides
PPT
Input and Output Devices.
PDF
Management information system
PPT
Information system
PPTX
Presentation on Input and Output Devices
PPT
Basic Concepts Of Information Technology (It)
PPT
Material Resource Planning
Management information system
Cloud computing
Management Information System James O Brien Study Notes
(Mrp 1) Prsntation Slides
Input and Output Devices.
Management information system
Information system
Presentation on Input and Output Devices
Basic Concepts Of Information Technology (It)
Material Resource Planning
Ad

Similar to Infromation Reprentation, Structured Data and Semantics (20)

PPT
semantic web resource description framework
PDF
A Hands On Overview Of The Semantic Web
PPT
Chapter3_a_updated.ppt
PDF
Semantic Web talk TEMPLATE
PPTX
SWT Lecture Session 2 - RDF
ODP
Riding the Semantic Web
PDF
Rdf data-model-and-storage
PPT
Publishing data on the Semantic Web
PPTX
RDF Data Model
PPT
PPTX
Introduction to RDF Data Model
PPT
A hands on overview of the semantic web
PPT
RDF briefing
PPTX
RDF SHACL, Annotations, and Data Frames
PDF
Graph databases & data integration v2
PPTX
Sparql
ODP
Semantic Web introduction
PPTX
20100614 ISWSA Keynote
PDF
ESWC SS 2012 - Monday Tutorial 1 Aidan Hogan: Semantic Web Languages and Stan...
PPT
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
semantic web resource description framework
A Hands On Overview Of The Semantic Web
Chapter3_a_updated.ppt
Semantic Web talk TEMPLATE
SWT Lecture Session 2 - RDF
Riding the Semantic Web
Rdf data-model-and-storage
Publishing data on the Semantic Web
RDF Data Model
Introduction to RDF Data Model
A hands on overview of the semantic web
RDF briefing
RDF SHACL, Annotations, and Data Frames
Graph databases & data integration v2
Sparql
Semantic Web introduction
20100614 ISWSA Keynote
ESWC SS 2012 - Monday Tutorial 1 Aidan Hogan: Semantic Web Languages and Stan...
DATA INTEGRATION (Gaining Access to Diverse Data).ppt

More from Yogendra Tamang (20)

PPTX
.Net framework
PPTX
Asp.net orientation
PPTX
Azure machine learning tech mela
PPTX
Machine learning and azure ml studio gabc
PPTX
Machine learning and azure ml studio
PPTX
Image classification with Deep Neural Networks
PPTX
Efficient Neural Network Architecture for Image Classfication
PPTX
ADO.NET Introduction
PPTX
Introduction and Starting ASP.NET MVC
PPTX
Electronics projects
PPTX
Task programming
PPTX
Arduino Workshop Day 2
PPTX
Arduino Day 1 Presentation
PPTX
Virtualization lab
PDF
Path finder
PPTX
Classification and Clustering
PPTX
Notation 3(n3)
PPTX
Cloud mobility final
PPTX
Natural language processing
PPTX
IP/Wi-Fi Based Robot
.Net framework
Asp.net orientation
Azure machine learning tech mela
Machine learning and azure ml studio gabc
Machine learning and azure ml studio
Image classification with Deep Neural Networks
Efficient Neural Network Architecture for Image Classfication
ADO.NET Introduction
Introduction and Starting ASP.NET MVC
Electronics projects
Task programming
Arduino Workshop Day 2
Arduino Day 1 Presentation
Virtualization lab
Path finder
Classification and Clustering
Notation 3(n3)
Cloud mobility final
Natural language processing
IP/Wi-Fi Based Robot

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
master seminar digital applications in india
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
RMMM.pdf make it easy to upload and study
STATICS OF THE RIGID BODIES Hibbelers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Structure & Organelles in detailed.
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
master seminar digital applications in india
Cell Types and Its function , kingdom of life
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Renaissance Architecture: A Journey from Faith to Humanism
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf

Infromation Reprentation, Structured Data and Semantics

  • 1. Infromation Reprentation, Structured Data and Semantics Yogendra Tamang 070-MSCS-670
  • 2. OUTLINE • XML, DTD and XML Schema, XSLT • Meta data Standards. • Information Representation in Semantic Web • RDF, RDFS • Syntactic Formats • RDF/XML, N-triples, Turtles etc. • Embedded Formats • RDFs, Microformats, eRDF, HTML5, GRDDL, SPARQL
  • 3. XML Thing! Elements XML Documents Epilogue Prolog XML Declaration and Reference Tag, Attributes and Content <?xml version="1.0" encoding="UTF-16"?> <!DOCTYPE book SYSTEM "book.dtd"> <lecturer>David Billington</lecturer>
  • 4. XML • Comments and Processing Instructions <!-- This is a comment --> <?stylesheet type="text/css" href="mystyle.css"?>
  • 5. DTD and XML Schema • Used for defining the structure • what values an attribute may take • which elements may or must occur within other elements, etc. <lecturer> <name>David Billington</name> <phone> +61 − 7 − 3875 507 </phone> </lecturer> <!ELEMENT lecturer (name,phone)> <!ELEMENT name (#PCDATA)> <!ELEMENT phone (#PCDATA)>
  • 6. DTD Disjunctions: <!ELEMENT lecturer (name|phone)> <!ELEMENT lecturer((name,phone)|(phone,name))>
  • 7. DTD <order orderNo="23456" customer="John Smith" date="October 15, 2002"> <item itemNo="a528" quantity="1"/> <item itemNo="c817" quantity="3"/> </order> <!ELEMENT order (item+)> <!ATTLIST order orderNo ID #REQUIRED customer CDATA #REQUIRED date CDATA #REQUIRED> <!ELEMENT item EMPTY> <!ATTLIST item itemNo ID #REQUIRED quantity CDATA #REQUIRED comments CDATA #IMPLIED>
  • 8. XML Schema <schema http://www.w3.org/2000/10/XMLSchema version="1.0"> Element and Attribute Types using Data Types • Numerical data types: integer, Short etc. • String types: string, ID, IDREF, CDATA etc. • Date and time data types: time, Month etc. • User defined(Simple and Comlpex)
  • 9. XML Namespaces and XPATH • Form: xmlns:prefix="location“ • XPATH: Operates on Tree data model and is core for XML query lanaguage
  • 10. XSLT • XSLT specifies rules with which an input XML document is transformed to • another XML document • an HTML document • plain text
  • 11. RDF • It provides a uniform framework for interchange of data and metadata between applications • XML does not provide any means of talking about the semantics (meaning) of data • Object-Attribute-Value
  • 12. RDF • Fundamental Concepts: • resources • properties • statements
  • 13. Statements • Triples • (x, P, y)  P(x, y)
  • 14. RDFS Core Classes • rdfs:Resource, the class of all resources • rdfs:Class, the class of all classes • rdfs:Literal, the class of all literals (strings) • rdf:Property, the class of all properties. • rdf:Statement, the class of all reified statements
  • 15. RDFS Core Properties • rdf:type, which relates a resource to its class • The resource is declared to be an instance of that class • rdfs:subClassOf, which relates a class to one of its superclasses • All instances of a class are instances of its superclass • rdfs:subPropertyOf, relates a property to one of its superproperties • rdfs:domain, • rdfs:range,
  • 16. RDF Sparql Query • SPARQL is based on matching graph patterns • Example: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?c WHERE { ?c rdf:type rdfs:Class . }
  • 17. RDFa • RDFa is an extension to HTML5 that helps you markup things like People, Places, Events, Recipes and Reviews. Search Engines and Web Services use this markup to generate better search listings and give you better visibility on the Web, so that people can find your website more easily
  • 18. Microformats • microformats are a set of simple, open data formats built upon existing and widely adopted standards
  • 19. MicroFormats Tools and Code generators
  • 25. Green Triples • an implementation of RDFa 1.1 for browsers • When triples are discovered in a web page, a little green turtle will appear in the address bar. If you click on that turtle, you can view the triple graph.
  • 28. References • “Semantic Web Primer”, Grigoris Antoniou, Frank van Harmelen • http://rdfa.info/ • https://code.google.com/p/green-turtle/ • http://microformats.org/wiki/about

Editor's Notes

  • #5: Define procedural attachments –PI A piece of text that is to be ignored by parser– Comments Well Formed XML Syntactically correct documents Only one outermost element (called root element) Each element contains an opening and a corresponding closing tag Tags may not overlap <author><name>Lee Hong</author></name> Attributes within an element have unique names Element and tag names must be permissible The tree representation of an XML document is an ordered labeled tree: There is exactly one root There are no cycles Each non-root node has exactly one parent Each node has a label. The order of elements is important … but the order of attributes is not important
  • #6: An XML document is valid if it is well-formed respects the structuring information it uses
  • #7: We express that a lecturer element contains either a name element or a phone element as follows: <!ELEMENT lecturer (name|phone)> A lecturer element contains a name element and a phone element in any order. <!ELEMENT lecturer((name,phone)|(phone,name))>
  • #9: #REQUIRED Attribute must appear in every occurrence of the element type in the XML document #IMPLIED The appearance of the attribute is optional #FIXED "value" Every element must have this attribute "value" This specifies the default value for the attribute
  • #10: Significantly richer language for defining the structure of XML documents Tts syntax is based on XML itself not necessary to write separate tools Reuse and refinement of schemas Expand or delete already existent schemas Sophisticated set of data types, compared to DTDs (which only supports strings) Opening tag Element Types <element name="email"/> <element name="head" minOccurs="1" maxOccurs="1"/> <element name="to" minOccurs="1"/> Cardinality constraints: minOccurs="x" (default value 1) maxOccurs="x" (default value 1) Generalizations of *,?,+ offered by DTDs
  • #11: location is the address of the DTD or schema If a prefix is not specified: xmlns="location" then the location is used by default XPath is core for XML query languages Language for addressing parts of an XML document. It operates on the tree data model of XML It has a non-XML syntax
  • #12: The output document may use the same DTD or schema, or a completely different vocabulary XSLT can be used independently of the formatting language
  • #14: Resource:- Resource is object or thing authors, books, publishers URI=== URL or some unique identifier Properties: Describe relations between resources Written by, age, title etc. URI Value can be resource or literals