W3C home > Mailing lists > Public > public-rdf-wg@w3.org > November 2011

Turtle in HTML question/issue

From: Ivan Herman <ivan@w3.org>
Date: Sun, 13 Nov 2011 10:12:41 +0100
Cc: Eric Prud'hommeaux <eric@w3.org>, Manu Sporny <msporny@digitalbazaar.com>, W3C RDF WG <public-rdf-wg@w3.org>, Jeni Tennison <jeni@jenitennison.com>, Sandro Hawke <sandro@w3.org>
Message-Id: <6F2B3CC6-56A8-4C24-9FA4-B5CFD5CC40D3@w3.org>
To: Gavin Carothers <gavin@topquadrant.com>
Hi Gavin,

I was looking at [1] again, but now with an RDFa goggle on. If I author and RDFa file, it would be perfectly ok to put some parts into an embedded turtle portion and mix the two ways of making RDF statements. There might be RDF statements that do not necessarily make sense as a visible HTML portion on the screen and the current approach in RDFa is to put those into a <div style="display:none"> statement which is really hacking. Ie, the Turtle in HTML feature really comes as a welcome addition imho.

However. I wonder whether it makes sense for the surrounding RDFa content to have some effect on the turtle portion. Namely:

- base setting in HTML (which is also the base for the generated RDF from RDFa) would be a @base for the encoded turtle. AFAIK we discussed that at some point, but I have not found it in [1]
- maybe more importantly: if RDFa sets a bunch of prefix declarations (and in RDFa there are even some defaults, eg, for rdf or foaf), I wonder whether those prefix declarations should not be valid as @prefix declarations in the embedded turtle. I think that would really be useful for HTML+RDFa authors. 
- SVG already has a way to add RDF/XML as metadata, as well as the possibility to add RDFa statements[2]. More interestingly, it also has a script element[3]. I think the Turtle syntax should allow for the same style of turtle embedding for SVG, too.

B.t.w., I think it would be good to publish a Turtle draft soon with those features. This Turtle-in-HTML would be an important addition to the current approaches of embedding RDF data into HTML...

Thoughts?

Ivan


[1] http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#in-html
[2] http://www.w3.org/TR/SVG11/metadata.html
[3] http://www.w3.org/TR/SVG11/script.html#ScriptElement

----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Sunday, 13 November 2011 09:10:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:46 GMT