[contents]
Copyright © 2005 W3C ® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use rules apply.
This document describes an RDF ([RDFConcepts]) representation of XHTML 2.0's built-in link types. It is based on the Metainformation Attributes Module of [XHTML2], and uses W3C's RDF Schema [RDFS] and Web Ontology [OWL Overview] languages to describe several kinds of relationship that can hold between information resources.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This document is for review by the Semantic Web Best Practices and Deployment Working Group and is subject to change without notice. This document has no formal standing within W3C. Please consult the group's home page and the W3C technical reports index for information about the latest publications by this group.
A number of Open Issues remain before this document will be a candidate for publication as a Technical Report.
The Semantic Web Best Practices and Deployment Working Group is part of the Semantic Web Activity. This document has been prepared as part of a joint taskforce on RDF-in-XHTML with the HTML Working Group.
Please send comments to the public-rdf-in-xhtml-tf@w3.org mailing list. The archives for this list are publicly available.
This document is expected to be published and maintained as a W3C Working Group Note after review and refinement. Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document describes an RDF ([RDFConcepts]) representation of XHTML 2.0's built-in link types. It is based on the Metainformation Attributes Module of [XHTML2], and uses W3C's RDF Schema [RDFS] and Web Ontology [OWL Overview] languages to describe several kinds of relationship that can hold between information resources.
The HTML community has for many years understood the importance of typed links (eg. Connolly 96]) for Web metadata. There have been a number of "built-in" sets of link types associated with HTML. The XHTML 2.0 ([XHTML2]) specification continues this tradition, defining a number of terms that name useful inter-document relationship types that can be used within HTML markup.
This RDF representation of the XHTML 2.0 link types was created to:
rdfs:subPropertyOf
) to these link types.This document is an attempt to meet the following goals:
This document does not currently aim at a complete mapping; it may not be possible to represent everything from XHTML link typing in RDF using the representation presented here.
This document does not attempt to provide an RDF representation for link types defined in earlier versions of XHTML or HTML. It does not provide an account of link types defined using HTML profiles (eg. "microformats").
This document does not attempt to represent any of the syntactic aspects of RDF in XHTML 2.0, ie. the mapping from XML elements and attributes into RDF statements.
This brief example shows one potential contribution of this vocabulary to the Semantic Web: simple Web page metadata can be made more useful when linked together. We use the XHTML link types (marked up here using the lt:
prefix) to describe information about glossary and copyright documents associated with W3C's homepage, alongside privacy, document profile and other metadata. We also describe a second page on the site, showing how applications can navigate the "up
" relationships between pages to find metadata (eg. links to glossaries or copyright statements).
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:lt="http://www.w3.org/2002/06/xhtml2/" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="http://www.w3.org/"> <rdf:Description rdf:about="http://www.w3.org/"> <dc:title>World Wide Web Consortium</dc:title> <lt:glossary rdf:resource="2003/glossary/"/> <lt:copyright rdf:resource="Consortium/Legal/2002/copyright-documents-20021231"/> <lt:meta rdf:resource="Overview-about.rdf"/> <lt:p3pv1 rdf:resource="http://www.w3.org/2001/05/P3P/p3p.xml"/> <lt:profile rdf:resource="http://www.w3.org/2000/08/w3c-synd/#"/> </rdf:Description> <rdf:Description rdf:about="TR/"> <dc:title>W3C Technical Reports and Publications</dc:title> <lt:up rdf:resource="http://www.w3.org/"/> </rdf:Description> </rdf:RDF>
A diagrammatic representation of the corresponding RDF follows:
This section provides a brief introduction to linktypes.rdf (the machine-readable vocabulary description).
XHTML 2.0 defines the following link types: alternate, start, next, prev, up, contents, index, glossary, copyright, chapter, section, subsection, appendix, help, bookmark, meta, icon, p3pv1, propfile. See the Metainformation Attributes Module of XHTML 2.0 [XHTML2] for the normative, textual definition of each of these link types.
The RDF representation of these link types uses the link name as a local name (and human-readable rdfs:label
) for each RDF property. The rdfs:domain
and rdfs:range
of each property are considered to be the class InformationResource
, a utility class representing information resources as defined by the Architecture of the World Wide Web, Volume One W3C Recommendation ([WebArch]). Note that this is an interpretation of the XHTML 2.0 design that has not been formally confirmed by the HTML Working Group. Note that non-HTML, non-XML documents can be inter-related using the link types described here (eg. Javascript, CSS).
The OWL language is used to note that next
and prev
are inverses of each other. We also use OWL to note that each property is a ObjectProperty, ie. a relationship between things that are not "literals". Note that this last point means that the properties cannot, in this form, be used as a relationship to a piece of inline text (unless represented as an RDF resource (eg. via a data:
URI).
For an RDF vocabulary such as this to be used in actual RDF data, the terms it defines need to be associated with URIs. This is typically accomplished by associating the vocabulary with a namespace URI. In this version of the document, the proposed URI is that of the XHTML2 namespace itself. This was chosen for reasons of compatibility with the RDF-based metadata syntax in XHTML2. Feedback is invited on this design choice, and on the question of how the RDFS/OWL vocabulary description might best be associated with the XHTML2 namespace URI.
Note: see open issue discussion below for some possible issues here.
Various open design issues remain.
The following issues concern the accuracy of this RDF vocabulary as a representation of the original XHTML 2.0 linking mechanisms, the semantics of particular link types, and the handling of certain aspects of their definition.
owl:FunctionalProperty
.A few issues relate to publication pragmatics and technicalities.
<rdf:RDF xml:base"http://www.w3.org/2002/06/xhtml2/" xml:lang"en"> <-- a draft in progress by danbri@w3.org for SWBPD WG. $Id: Overview.html,v 1.53 2005/08/02 21:05:06 danbri Exp $ --> <rdfs:Class rdf:about"#InformationResource" rdf:type"http://www.w3.org/2002/07/owl#Class"> <rdfs:label>Information Resource</rdfs:label> <rdfs:comment>The class of Information Resources as defined by the Web Architecture Recommendation, see http://www.w3.org/TR/2004/REC-webarch-20041215/#id-resources</rdfs:comment> <-- this is the most creative aspect of this vocab; all the other text is excerpted from the XHTML2 spec. --> </rdfs:Class> <rdf:Property rdf:about"#alternate" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>alternate</rdfs:label> <rdfs:comment>Designates substitute versions for the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#start" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>start</rdfs:label> <rdfs:comment>Refers to the first resource in a collection of resources. A typical use case might be a collection of chapters in a book.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#next" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <owl:inverseOf rdf:resource"#prev"/><rdfs:label>next</rdfs:label> <rdfs:comment>Refers to the next document (after the current document) in an ordered collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#prev" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <owl:inverseOf rdf:resource"#next"/> <rdfs:label>prev</rdfs:label> <rdfs:comment>Refers to the previous document (before the current document) in an ordered collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#up" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>up</rdfs:label> <rdfs:comment>Refers to the document "above" in a hierarchically structured set of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#contents" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>contents</rdfs:label> <rdfs:comment>Refers to a document serving as a table of contents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#index" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>index</rdfs:label> <rdfs:comment>Refers to a document providing an index for the resource.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#glossary" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>glossary</rdfs:label> <rdfs:comment>Refers to a document providing a glossary of terms that pertain to the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#copyright" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>copyright</rdfs:label> <rdfs:comment>Refers to a copyright statement for the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#chapter" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>chapter</rdfs:label> <rdfs:comment>Refers to a document serving as a chapter in a collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#section" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>section</rdfs:label> <rdfs:comment>Refers to a document serving as a section in a collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#subsection" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>subsection</rdfs:label> <rdfs:comment>Refers to a document serving as a subsection in a collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#appendix" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>appendix</rdfs:label> <rdfs:comment>Refers to a document serving as an appendix in a collection of documents.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#help" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>help</rdfs:label> <rdfs:comment>Refers to a document offering help (more information, links to other sources of information, etc.)</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#bookmark" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>bookmark</rdfs:label> <rdfs:comment>Refers to a bookmark. A bookmark is a link to a key entry point within an extended document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#meta" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>meta</rdfs:label> <rdfs:comment>Refers to a document that provides metadata, for instance in RDF, about the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#icon" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>icon</rdfs:label> <rdfs:comment>Refers to a resource that represents an icon for the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#p3pv1" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>p3pv1</rdfs:label> <rdfs:comment>Refers to a P3P Policy Reference File.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> <rdf:Property rdf:about"#profile" rdf:type"http://www.w3.org/2002/07/owl#ObjectProperty"> <rdfs:label>profile</rdfs:label> <rdfs:comment>Refers to a document that defines relationships or provides metadata, for instance in RDF, about the document.</rdfs:comment> <rdfs:range rdf:resource"#InformationResource"/> <rdfs:domain rdf:resource"#InformationResource"/> </rdf:Property> </rdf:RDF>