RE: microformat for turtle?

Here's a link to some similar thoughts I has a while back:

 http://labs.intellidimension.com/rdfgoo/

with a few differences: (1) place the turtle in <xmp> or cdata (if xhtml) to avoid encoding, and (2) create hash indexes as turtle comments to make the rdf content searchable by traditional search engines.

Happy Thanksgiving,

-Geoff

-----Original Message-----
From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On Behalf Of Sandro Hawke
Sent: Thursday, November 25, 2010 11:22 AM
To: semantic-web
Subject: microformat for turtle?

Just a random idea.

Can we make it legit for people to publish RDF triples just by putting
some turtle as plain text in an HTML page, with class="turtle" and an id
to give a URI to the graph?    Something like this:

At http://example.org/page1:

  <html>
    <head>
      ...
    </head>
    <body>
      ...
    <div class="turtle" id="g1">
   @prefix : &lt;http://example.org/stuff/1.0/&gt; .
   :a :b ( "apple" "banana" ) .
   </div>
   </body>
   </html>

So the URI for that graph would be http://example.org/page1#g1

I'd suggest the format be defined to allow markup, which is ignored.  I
imagine this being used for nicer styling of the turtle code, and to
allow the URLs to be clickable, if the author wants that.   (Some
systems like wikis try hard to do that automatically.)   None of the
markup should affect the graph -- if you print the page, or cut/paste
it, it's still real turtle, producing the same triples.

I don't know anything about the html5 or microformats process, but I
assume there needs to be some consensus developed and recorded around
class="turtle" for this to be fully legitimate.

What's compelling about this, to me, is it would allow even more people
to publish RDF even more easily, at very low implementation cost to
consumers.  (Perhaps consuming turtle embedded in HTML like this could
be part of the Turtle Recommendation, if/when that happens?  I don't
know.)   I think turtle is easier to learn than RDFa, and most
publication platforms (eg blogs and wikis) allow people to include divs
with a class and id.  Basically, this would be more viral than existing
techniques because it's easier to see (unless people style it to be
invisible), and requires less specialized knowledge to publish.
(Hopefully people would, near this kind of content, include a link to
some turtle tutorial they like, explaining this mysterious code.)

     -- Sandro

Received on Thursday, 25 November 2010 17:10:20 UTC