update RDFa snippet to RDFa 1.1 and remove inaccurate mime type recommendation (instead refer to the RDFA-CORE spec)
authorStephane Corlosquet <scorlosquet@gmail.com>
Mon, 19 Nov 2012 16:48:59 -0500
changeset 297 c6450473e5c4
parent 296 20eafdeb0327
child 298 9ab6c7fc806b
update RDFa snippet to RDFa 1.1 and remove inaccurate mime type recommendation (instead refer to the RDFA-CORE spec)
spec/index-respec.html
--- a/spec/index-respec.html	Mon Nov 19 12:01:18 2012 -0500
+++ b/spec/index-respec.html	Mon Nov 19 16:48:59 2012 -0500
@@ -722,32 +722,26 @@
 <p>RDFa in HTML [[!RDFA-CORE]] is a way to markup HTML with relations that have a well defined semantics and
     mapping to an RDF graph.  There are many ways of writing out the above graph using RDFa in
 HTML. Here is just one example of what a WebID profile could look like.
-    It would have to be served with the mime type <code>application/xhtml+xml</code>.
 </p>
 <pre class="example" style="word-wrap: break-word; white-space: pre-wrap;">
-&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
-  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"&gt;
-&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr"
-      xmlns:cert="http://www.w3.org/ns/auth/cert#"
-      xmlns:foaf="http://xmlns.com/foaf/0.1/"
-      xmlns:rdfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-      xmlns:xsd="http://www.w3.org/2001/XMLSchema#"&gt;
+&lt;!DOCTYPE html&gt;
+&lt;html lang="en" prefix="cert: http://www.w3.org/ns/auth/cert# foaf: http://xmlns.com/foaf/0.1/ rdfs: http://www.w3.org/1999/02/22-rdf-syntax-ns# xsd: http://www.w3.org/2001/XMLSchema#"&gt;
 &lt;head&gt;
    &lt;title&gt;Welcome to Bob's Home Page&lt;/title&gt;
 &lt;/head&gt;
 &lt;body&gt;
-&lt;!-- WebID HTML snippet. The xmlns declarations above can be moved into the div below if needed--&gt;
+&lt;!-- WebID HTML snippet. The prefix attribute above can be moved into the div below if needed --&gt;
 &lt;div about="#me" typeof="foaf:Person"&gt;
-  &lt;p&gt; My name is  &lt;span xml:lang="" property="foaf:name"&gt;Bob&lt;/span&gt; and I like to &lt;a rel="foaf:weblog" href="http://bob.example/blog"&gt;blog fun stuff&lt;/a&gt;
+  &lt;p&gt;My name is &lt;span property="foaf:name"&gt;Bob&lt;/span&gt; and I like to &lt;a property="foaf:weblog" href="http://bob.example/blog"&gt;blog fun stuff&lt;/a&gt;
   &lt;/p&gt;
   &lt;h2&gt;My Good Friends&lt;/h2&gt;
   &lt;ul&gt;
-    &lt;li rel="foaf:knows" href="https://example.edu/p/Alois#MSc"&gt;Alois&lt;/li&gt;
+    &lt;li property="foaf:knows" href="https://example.edu/p/Alois#MSc"&gt;Alois&lt;/li&gt;
   &lt;/ul&gt;
   &lt;h2&gt;My RSA Public Keys&lt;/h2&gt;
-  &lt;div rel="cert:key"&gt;
+  &lt;div&gt;
     &lt;p&gt;I made this key on the 23 November 2011 from my laptop.&lt;/p&gt;
-    &lt;div typeof="cert:RSAPublicKey"&gt;
+    &lt;div property="cert:key" typeof="cert:RSAPublicKey"&gt;
       &lt;dl&gt;
       &lt;dt&gt;Comment&lt;/dt&gt;
       &lt;dd property="rdfs:label"&gt;made on 23 November 2011 on my laptop&lt;/dd&gt;