RDF has a standard XML syntax which has nice merging properties but isn't so nice for authors and doesn't integrate well with DTDs, XML Schemas, and the like. There will always be various alternative formats that can be used to encode information and publish it as structured data on the Web. In order to make this information available to RDF systems, some sort of pre-processing is necessary. This page collects general approaches and concrete mappings.

Approaches

GRDDL is a technique for processing XML/XHTML dialects (especially microformats) as custom RDF syntaxes by having each document point, directly or indirectly, to a transformation to an RDF graph. GRDDL accomodates a wide variety of dialects (at the expense of asking consumers to execute potentially untrusted code). In theory, GRDDL can be combined with arbitrary transformation mechanisms, for now it's mostly based on XSLTs.

RDFa and eRDF are designs for serializing RDF in HTML. They allow a single parser (or GRDDL transformation!) to work for data from any domain and provide a direct relationship between the RDF data and the HTML document structure, which can improve human interaction with enriched Web content (e.g. for copy-and-paste of information).

Custom parsers can be used to convert a particular serialization to RDF. Dialect-specific parsers can be valuable for non-XML/tagsoup formats, or in systems where XSLT is not an efficient approach.

HTML-based Dialects

Dialect

Domain

Schema

Mapping

Status

Notes

Dublin Core in HTML

Bibliographic Metadata

Dublin Core

dc-extract

@@cite request to make it official

upgradeable to eRDF+GRDDL

eRDF

generic

RDF

extract-rdf.xsl, profile

by IanDavis

GeoURL markup

Geo (lat/long)

GeoInfo

grokGeoURL.xsl

e.g. Joe Lambda's homepage

glink

HTML links/link@rel

#html, DC

groklinks.xsl

maintained by DannyAyers

hCalendar

Calendars and Events

RDF Calendar

glean-hcal.xsl, hcal profile

maintained by DanConnolly since Dec 2002

hCard

Contact Information

vcard ontologies (2001), (2006)

hcard2rdf.xsl, hcard profile

maintained by Walsh, Halpin, and Suda since Nov 2006; used in xtech schedule

hDoap

Software project description

DOAP

hDoap

maintained by DannyAyers

hReview

Opinions, Ratings and Reviews

RDF Review

hreview2rdfxml.xsl

See RDF Review

hTurtle

generic

RDF

XSLT service, profile

by SeanPalmer

metaprof

meta/link@rel + generic

various

xh2rdf.xsl

maintained by MasahideKanzaki

RDFa

generic

RDF

RDFa profile

by Fabien Gandon, collaborating with the GRDDL and RDFa WGs

Rel-License

Licenses

Creative Commons

grokCC.xsl

e.g. Joe Lambda's homepage

Rel-Tag

Tags, Keywords, Categories

Tag Ontology, SKOS, DC

?

(todo DannyAyers)

Site Summaries

Syndication

RSS

html2rss.xsl

in production on the W3C homepage

XFN

Social Graph

XFN + # as namespace

grokXFN.xsl

maintained(?) by DanConnolly

XFN on the GRDDL

Site Summaries

Syndication

RSS

html2rss.xsl

in production on the W3C homepage

XFN

Social Graph

XFN+hCard as FoaF

hFoaF.xsl

Maintained by MartinMcEvoy

See also hFoaF

hAudio

Audio Syndication

hAudio as RSS1

hAudioRSS.xsl

Maintained by MartinMcEvoy

See also hAudio to RSS

Non-HTML based dialects

Dialect

Domain

Schema

Mapping

Status

RSS

Syndication

RSS 1.0

feed-rss1.0.xsl

usable

Atom

Syndication

Atom/OWL

atom2rdf_xslt-1.0.xsl

incomplete*

Atom

Syndication

RSS 1.0

atom2rss10.xsl

usable**

OPML

Feedlists

FOAF/RSS 1.0

opml2blogroll.xsl

usable**

OPML

Feedlists

FOAF/RSS 1.0/SKOS

opml2skosroll.xsl

usable**

Metalink

File sharing

metalink

(under revision 2007-10)

maintained by DannyAyers

APML

Attention Profiling

apml

-

(todo DannyAyers)

SAWSDL

web service description

SAWSDL

profile, SAWSDL_GRDDL.xsl

under development at INRIA (contact Mohamed Bennis and Fabien Gandon)

XTM

topic maps

XTM

profile, XTM_GRDDL.xsl

under development at INRIA (contact Priscille Durville and Fabien Gandon)

* there are several other XSLTs around, discussion is in-progress on which is best for Atom/GRDDL

** OPML tends to be used ad hoc, it's only minimally specified and data in the wild varies wildly, hence it's impossible to give definitive mappings


migrating from MicroModels, grddlmicromodels, EmbeddingRDFinHTML, CustomRdfDialects/GrddableMicroformats, etc.


CategoryGrddl

CustomRdfDialects (last edited 2008-04-23 14:21:21 by MartinMcEvoy)