N3 in XHTML / META tag

Dear all:

Is there any work on using N3/Turtle syntax inside XHTML or HTML5 documents?

I think it would be a much more readable way of embedding small amounts 
of RDF meta-data than RDFa in some cases.

Actually agreeing upon a value for the attribute "name" in a meta 
element might be sufficient - or defining a new element/tag or attribute.

Even without tweaking any existing spec, this just requires escaping 
<,>," and maybe a few more.

For example, the attached snippet validates correctly as XHTML 1.0 strict.

Best wishes


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="text/n3"
    content="@prefix foo: &lt;http://www.example.com/xyz#&gt; .
    @prefix gr:  &lt;http://purl.org/goodrelations/v1#&gt; .
    @prefix xsd:  &lt;http://www.w3.org/2001/XMLSchema#&gt; .
    @prefix rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; .
        a gr:BusinessEntity ;
        rdfs:seeAlso &lt;http://www.example.com/xyz&gt; ;
        gr:hasLegalName &quot;Hepp Industries Ltd.&quot;^^xsd:string."/>

    <title>N3/Turtle in XHTML</title>
A test page with embedded N3.

martin hepp
e-business & web science research group
universitaet der bundeswehr muenchen

e-mail:  mhepp@computer.org
phone:   +49-(0)89-6004-4217
fax:     +49-(0)89-6004-4620
www:     http://www.unibw.de/ebusiness/ (group)
         http://www.heppnetz.de/ (personal)
skype:   mfhepp 
twitter: mfhepp

Check out GoodRelations for E-Commerce on the Web of Linked Data!


Recipe for Yahoo SearcMonkey:

Talk at the Semantic Technology Conference 2009: 
"Semantic Web-based E-Commerce: The GoodRelations Ontology"

Overview article on Semantic Universe:

Project page:

Resources for developers:

Tutorial materials:
CEC'09 2009 Tutorial: The Web of Data for E-Commerce: A Hands-on Introduction to the GoodRelations Ontology, RDFa, and Yahoo! SearchMonkey 

Received on Tuesday, 11 August 2009 18:20:39 UTC