Presentation for the course 'XML and Web Technologies' of the IT4BI Erasmus Mundus Master's Programme. Introduction, motivation, target domain, schema, attributes, comparing RDFa with RDF, comparing RDFa with Microformats, comparing RDFa with Microdata, how to use RDFa to improve websites, how to extract metadata defined with RDFa, GRDDL and a simple exercise.
2. Agenda
1 Introduction
2 Target domain
3 This is an example text. Go ahead and replace it
Schema
4 Attributes
5 Comparing RDFa
6 Using RDFa
3. Introduction
o Internet grows fast
o (X)HTML is a good standard to present
data for human
o We need machine-readable data
o Solution: user attributes in XML
o Semantic web: gives a structure to the
massive data available on Internet.
4. Introduction
Problem Solution
1 • Internet grows fast 2 • Use attributes in
• (X)HTML is a good XML.
standard to present • Semantic web:
data for humans. gives a structure to
• But we need the massive data
machine-readable available on Internet
data
5. Target domain
Once the data is structured, it is more useful for the
computer programs, that can use it efficiently.
13. Comparing RDFa with RDF
RDF
- Abstract
representation of
the data.
Triple
- Subject-
predicate-object.
- It can be shown
as a graph.
RDFa express
RDF data within
XHTML.
14. Comparing RDFa
RDF Microformats Microdata
- Abstract - Very popular. - Custom
representation of - Predefined. vocabularies.
the data. - Limitations:
• Identifying - Simpler than
- Subject- resources. RDFa.
predicate-object. • Typed literal
properties. - Lack of support,
- It can be shown • More than one features and
as a graph. type per evolution.
RDFa express resource.
RDF data within
XHTML. Same purpose: make the webpages
readable for computers.
In the same way: using tags in the HTML
document.
15. Using RDFa
Agenda
Extracted
Improving
websites
embedded Exercise
data
16. Improving websites
Define
metadata with
RDFa
Google index it
Rich search
Other examples:
results • Central Office of Information of the UK: job vacancies
• GoodRelations: e-commerce
17. Extracting RDFa
Browser GRDDL
• Extract data compatible
with RDF.
• Define transformations in a
stylesheet.
Example Parsing RDFa
• RDFa available for BBC programmes
• Parse it with rdfquery
• Use it to stream music from Spotify