Download Powerpoint

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Cascading Style Sheets wikipedia , lookup

URL redirection wikipedia , lookup

Transcript
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
1 based.
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/
2
3
© Cabinet Office, Crown Copyright Reserved
4
© Cabinet Office, Crown Copyright Reserved
HTML Features
• Easy to create
• MS Word, etc.
• Permissive
<p>
<UL>
<li>Blah…
</p>
</ul>
• Occasionally ambiguous
• Case Insensitive.
5
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/
6
7
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.
8
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.
9
See www.w3.org/MarkUp/
10
© CCTA, Crown Copyright Reserved
11
© CCTA, Crown Copyright Reserved
XHTML Features
…which apply to other applications of
XML, such as RDF…
12
XHTML Features
• Tags and values are case sensitive
<P>Blah… </P>
<P>Blah… </p>
<p>Blah… </p>
• All different. Only one is correct.
13
XHTML Features
• All tags must nest


14
<p>here is a paragraph containing
<em>emphasis.</p></em>
<p>here is a paragraph containing
<em>emphasis.</em></p>
XHTML Features


15
• All tags must close
<p>here is a paragraph.
<p>here is a paragraph.</p>
XHTML Features
• Attribute values must be quoted


16
<img src=image.gif
alt=Some explanatory text>
<img src=“image.gif”
alt=“Some explanatory text” />
XHTML Features



17
• Empty elements must close, too
<br>
<br></br>
<br />
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
18
What is RDF?
• 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/
19
What is RDF?
• Founded upon ‘triples’
• A resource has properties
• Each property has a value
• e.g.
•
•
•
•
20
This presentation has a creator
The creator is “Paul Miller”
This presentation has a title
The title is “XML and RDF”.
RDF model
Property
Resource
Value
Resource
Statement
21
RDF model
Creator
Resource
22
“Paul Miller”