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

Martin


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <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; .
    foo:myCompany
        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>
   
</head>
<body>
<div>
A test page with embedded N3.
</div>
</body>
</html>


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

Webcast:
http://www.heppnetz.de/projects/goodrelations/webcast/

Recipe for Yahoo SearcMonkey:
http://tr.im/rAbN

Talk at the Semantic Technology Conference 2009: 
"Semantic Web-based E-Commerce: The GoodRelations Ontology"
http://tinyurl.com/semtech-hepp

Overview article on Semantic Universe:
http://tinyurl.com/goodrelations-universe

Project page:
http://purl.org/goodrelations/

Resources for developers:
http://www.ebusiness-unibw.org/wiki/GoodRelations

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 
http://tr.im/grcec09

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