Re: RDF Description of HTTP headers/meta-data

A most excellent approach is documented here:
http://www.openhealth.org/xmtp/

===
Author:
Jonathan Borden, The Open Healthcare Group

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

[...]

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

[...]
MIME XML Grove
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.

[...]
MIME RDF 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
The MIME:

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#"
 xmlns:mime="http//www.openhealth.org/xmtp#"
 xmlns:web="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 web:about="mid:xxxyyy@openhealth.org">
  <Message-ID>xxxyyy@openhealth.org</Message-ID>
  <From>jonathan@openhealth.org</From>
  <To>xml-dev@lists.xml.org</To>
  <Subject> An example</Subject>
  <MIME-Version>1.0</MIME-Version>
  <Content-Type>text/plain</Content-Type>
  <mime:Body xmlns="">This is a simple message in MIME format</mime:Body>
</Message>



----- 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