- From: Sandro Hawke <sandro@w3.org>
- Date: Thu, 25 Nov 2010 11:21:44 -0500
- To: semantic-web <semantic-web@w3.org>
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 : <http://example.org/stuff/1.0/> . :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 16:21:51 UTC