- From: Chimezie Ogbuji <ogbujic@ccf.org>
- Date: Mon, 25 Jun 2007 15:14:24 -0400
- To: "public-grddl-wg" <public-grddl-wg@w3.org>
On Mon, 2007-06-25 at 14:43 -0400, Harry Halpin wrote: > In process of doing PR Request, I'm noting that we have as part of > charter [1] that we have "bootstrapping adoption" with the Dublin Core > Metadata profile[2]. I assume this means creating a GRDDL transform for > them and asking them to put it in their profile. Has anyone done this? Thinking out loud: depending on how much of DC you attempt to map to RDF (from XML) this could be straightforward. 4Suite has [1] (in its code base) a limited set of XPath mappings from XML elements to Dublin Core RDF which could be used as the basis of a rudimentary GRDDL transform to do the same. It can be ported to a simple XSLT stylesheet. The mapping (paraphrased in pseudo-code) is: for title in document($uri)//dc:title/text(): create triple ($uri, dc:title, title) for subject in document($uri)//dc:subject/text(): create triple ($uri, dc:subject, subject) for description in document($uri)//dc:description/text(): create triple ($uri, dc:description, description) Where $uri is the URI of the source document I can imagine a 'library' transform which attempts to map *all* DC metadata properties over directly, I'm just not sure how it would determine the subject URI *in context* (since XSLT doesn't have a fine-grained notion of a base URI) other than the above heuristic which just assumes all the DC RDF statements are about the source document (for instance): <xsl:template match="/"> <rdf:RDF> <xsl:apply-templates select="//dc:*"/> </rdf:RDF> </xsl:template> <xsl:template match="dc:*"> <rdf:Description rdf:about=""> <xsl:copy> <xsl:value-of select="text()"/> </xsl:copy> <rdf:Description> </xsl:template> [1]http://cvs.4suite.org/viewcvs/*checkout*/4Suite/Ft/Server/Share/Data/dublin_core.docdef -- Chimezie Ogbuji Lead Systems Analyst Thoracic and Cardiovascular Surgery Cleveland Clinic Foundation 9500 Euclid Avenue/ W26 Cleveland, Ohio 44195 Office: (216)444-8593 ogbujic@ccf.org =================================== Cleveland Clinic is ranked one of the top 3 hospitals in America by U.S.News & World Report. Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you.
Received on Monday, 25 June 2007 19:14:47 UTC