22
1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (UKOLN) [email protected] http:// www.ukoln.ac.uk/ UKOLN is funded by Resource: the Council for Museums, Archives and Libraries, the Joint Information Systems Committee (JISC) of the Further and Higher Education Funding Councils, as well as by project funding from JISC and the EU. UKOLN also receives support from the Universities of Bath and Hull where staff are based.

1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) [email protected] U

Embed Size (px)

Citation preview

Page 1: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

1

XML and RDF

Paul Miller

Interoperability FocusUK Office for Library & Information Networking (UKOLN)

[email protected] http://www.ukoln.ac.uk/

UKOLN is funded by Resource: the Council for Museums, Archives and Libraries, the Joint Information Systems Committee (JISC) of the Further and Higher Education Funding Councils, as well as by project funding from JISC and the EU. UKOLN also receives support from the Universities of Bath and Hull where staff are based.

Page 2: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

2

What is HTML ?

• HyperText Markup Language• World Wide Web Consortium

recommendation (currently at version 4.01)• Simplified subset of SGML for use on Web• Widely deployed and understood• Difficult to extend• Supported by major vendors, mostly• Technically superseded by XHTML now….

See www.w3.org/MarkUp/See www.w3.org/MarkUp/

Page 3: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

3

© C

abin

et O

ffice

, Cro

wn

Cop

yrig

ht R

eser

ved

Page 4: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

4

© C

abin

et O

ffice

, Cro

wn

Cop

yrig

ht R

eser

ved

Page 5: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

5

HTML Features

• Easy to create• MS Word, etc.

• Permissive<p><UL><li>Blah…</p>

</ul>

• Occasionally ambiguous

• Case Insensitive.

Page 6: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

6

What is XML ?

• eXtensible Markup Language• World Wide Web Consortium

recommendation• Simplified subset of SGML for use on Web• Addresses HTML’s lack of evolvability• Easily extended• Supported by major vendors• Increasingly used as a transfer syntax, but

capable of far more….

See www.w3.org/XML/See www.w3.org/XML/

Page 7: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

7

Page 8: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

8

XML Features

• Extensible• Stricter than HTML on some rules

• Therefore less ambiguous

• Case Sensitive• Notions of ‘well–formed’ and ‘valid’

• A well formed document obeys the rules of XML

• A valid document further obeys the constraints of an associated DTD or equivalent.

Page 9: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

9

What is XHTML ?

• XHTML 1.0• An expression of HTML 4.01 in XML• The current W3C recommendation for

creating web documents

• XHTML 1.1• A strict expression of HTML 4.01 in

XML– Layout tagging removed altogether– Constructed in a modular fashion

• Currently a W3C proposal.

See www.w3.org/MarkUp/See www.w3.org/MarkUp/

Page 10: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

10

© C

CT

A, C

row

n C

opyr

ight

Res

erve

d

Page 11: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

11

© C

CT

A, C

row

n C

opyr

ight

Res

erve

d

Page 12: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

12

XHTML Features

…which apply to other applications of XML, such as RDF…

Page 13: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

13

XHTML Features

• Tags and values are case sensitive<P>Blah… </P>

<P>Blah… </p>

<p>Blah… </p>

• All different. Only one is correct.

Page 14: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

14

XHTML Features

• All tags must nest<p>here is a paragraph containing <em>emphasis.</p></em>

<p>here is a paragraph containing <em>emphasis.</em></p>

Page 15: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

15

XHTML Features

• All tags must close<p>here is a paragraph.

<p>here is a paragraph.</p>

Page 16: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

16

XHTML Features

• Attribute values must be quoted<img src=image.gif alt=Some explanatory text>

<img src=“image.gif” alt=“Some explanatory text” />

Page 17: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

17

XHTML Features

• Empty elements must close, too<br>

<br></br>

<br />

Page 18: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

18

Beyond XML

“…XML allows users to add arbitrary structure to their documents but says nothing about what the structures mean.”

See http://www.sciam.com/2001/0501issue/0501berners-lee.html

See http://www.sciam.com/2001/0501issue/0501berners-lee.html

Page 19: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

19

• World Wide Web Consortium Recommendation

• Fully compliant application of XML• Improves upon XML, HTML, PICS…• Machine understandable metadata!• Supports structure• Increasing interest.

See www.w3.org/RDF/See www.w3.org/RDF/

What is RDF?

Page 20: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

20

What is RDF?

• Founded upon ‘triples’• A resource has properties• Each property has a value

• e.g.• This presentation has a creator• The creator is “Paul Miller” • This presentation has a title• The title is “XML and RDF”.

Page 21: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

21

RDF model

ResourceProperty

ValueResource

Statement

Page 22: 1 XML and RDF Paul Miller Interoperability Focus UK Office for Library & Information Networking (U KOLN ) P.Miller@ukoln.ac.uk U

22

RDF model

ResourceCreator

“Paul Miller”