W3C home > Mailing lists > Public > www-talk@w3.org > March to April 2003

Re: RDF Description of HTTP headers/meta-data

From: S. Mike Dierken <mdierken@hotmail.com>
Date: Wed, 2 Apr 2003 20:40:48 -0800
To: "Justin Chapweske" <justin@chapweske.com>, "Mark Nottingham" <mnot@mnot.net>, <www-talk@w3.org>
Message-ID: <OE50rblZz02H67yRLVb0000a721@hotmail.com>

A most excellent approach is documented here:

Jonathan Borden, The Open Healthcare Group

XMTP is a mapping of RFC 822/MIME to XML. XMTP 2.0 is implemented in RDF 1.0


The XMTP XML representation
MIME is expressed as XML by a simple set of transforms:

A MIME message is rooted in a mime:Message element
Each header is represented as a child element of the mime:Message
Each parameter of a header is represented as a child element of the header
The body of a message is represented as a mime:Body element
The Body of a multipart message contains multiple child Message elements

A Grove or Graph Representation of Property Values is the logical structure
of a document that can be obtained by parsing the character stream that
represents the document.

XMTP implements an XML Grove for MIME, where the result of parsing a MIME
document is a logical XML structure (otherwise known as an Infoset). The
java project referenced above implements an XML Grove for MIME by parsing a
MIME character stream into a SAX event stream, which is one of the
incarnations of an XML Grove.

Similarly to the XML Grove obtained via parsing a MIME document into a
series of SAX events, an RDF Grove is obtained by parsing a MIME document
into an RDF Model. The implementation accepts an
com.megginson.sax.RDFHandler interface property through which the parser can
fire events signalling RDF statements.

A simple example

Message-ID: xxxyyy@openhealth.org
From: jonathan@openhealth.org
To: xml-dev@lists.xml.org
Subject: An example
MIME-Version: 1.0
Content-Type: text/plain

This is a simple message in MIME format

is transformed into:

<Message xmlns="http://www.openhealth.org/xmtp#"
  <Subject> An example</Subject>
  <mime:Body xmlns="">This is a simple message in MIME format</mime:Body>

----- Original Message -----
From: "Justin Chapweske" <justin@chapweske.com>
To: "Mark Nottingham" <mnot@mnot.net>; <www-talk@w3.org>
Sent: Tuesday, April 01, 2003 9:11 PM
Subject: RDF Description of HTTP headers/meta-data

> Has anyone done any work on describing the HTTP headers or content
> metadata for a URI using RDF?
> This would be useful for serializing meta-data about a URI, such as its
> content-type, content-encoding, etc.
> --
> Justin Chapweske, Onion Networks
> http://onionnetworks.com/
Received on Wednesday, 2 April 2003 23:36:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:04 UTC