Content Analysis Standards development Heterogeneity MEtadata REtrieval


Latest News
28.02.2005
Cashmere - int Workshop 2005
 

CASHMERE-int

German

Semantic Web: Development and Transmission

Subproject of:

Competence Network: New Services, Standardization, MetaData

 
home
Osnabrück
Göttingen
 

Embedding RDF in XHTML

Martin Cavanagh, University of Osnabrück

Slides

Abstract

The presentation explains the problems involved with embedding RDF in XHTML and shows possible solutions. In relation to this the Homepage Generator: Math-Net Meta Maker 2.1 & 2.2 is described.

Emdedding RDF directly in XHTML creates problems with most browers - that they parse this RDF object as XHTML and attempt to render it as text in the XHTML document. This means one needs to find an alternative way to store RDF data in a XHTML document. Two current schools of thought on possible solutions which were both implemented at Osnabrück are described in the following:

XHTML allows SVG Objects. It is possible to have an SVG object of 0 pixels width and 0 pixels height, while SVG allows RDF code. So the problem is solved? The problem is that the RDF then describes all of the tags - except the SVG tag itself.

Discussion after this presentation showed additional problems with this candidate solution. Basically it doesn't allow namespaces to be used dynamically in the RDF fragment - they have to be all previously described in a DTD header (wherethe same problem as with writing RDF directly into XHTML reoccurs.

The second possible solution involves creating a link in the XTML document to a valid RDF document. This is one of the currently accepted and common methods for embedding RDF in XHTML, though it comes with the typical problem of every external linking, its lack of presistence.

Displayed Homepage Generator: Math-Net Meta Maker 2.1 & 2.2 - example solutions with these two methods of embedding RDF data can be found here:
http://www.inf-eng.org/cgi-bin/infeng/MMM/MMMPersons/MMMPers2.1.cgi
http://www.inf-eng.org/cgi-bin/infeng/MMM/MMMPersons/MMMPers2.1.cgi

There remains no standard for embedding RDF in XHTML, though many more candidates for the solution are acutally being discussed:

  • Just writing RDF directly in XHTML (validation problems due to fragment IDs).
  • Create a new DTD for each XHTML document with valid namespaces (impractical for most people).
  • Embedd the RDF in object tags. The RDF is encoded in 64 base format (unreadable to people).
  • Embedd the RDF in script tags (validation problems due to fragment IDs).
  • HyperRDF-XSLT transformation to RDF (needs a modifed DTD).
  • Augmented Metadata. Write metadata directly in HTML body tag.

References

http://infomesh.net/2002/rdfinhtml/
http://www.w3.org/MarkUp/2004/02/xhtml-rdf
http://www.w3.org/2003/03/rdf-in-xml.html

 
Valid XHTML 1.0!
Mitglied
W3C
BMBF DLR IWI