Simplify RDFa snippet using RDFa Lite 1.1, and remove irrelevant styling tips. remove wrong mime type recommendation. (merge)
authorStephane Corlosquet <scorlosquet@gmail.com>
Mon, 19 Nov 2012 17:12:29 -0500
changeset 303 4662458de781
parent 301 7747aa0db2d4 (current diff)
parent 302 94bbebe79899 (diff)
child 304 d4352591e069
Simplify RDFa snippet using RDFa Lite 1.1, and remove irrelevant styling tips. remove wrong mime type recommendation. (merge)
spec/identity-respec.html
--- a/spec/identity-respec.html	Mon Nov 19 17:04:06 2012 -0500
+++ b/spec/identity-respec.html	Mon Nov 19 17:12:29 2012 -0500
@@ -494,32 +494,17 @@
 <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" version="XHTML+RDFa 1.0" 
-      xmlns:foaf="http://xmlns.com/foaf/0.1/">
-&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;div about="https://bob.example/profile#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;div vocab="http://xmlns.com/foaf/0.1/" about="#me" typeof="foaf:Person"&gt;
+  &lt;p&gt;My name is &lt;span property="name"&gt;Bob&lt;/span&gt; and I like to &lt;a property="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/Alice#MSc"&gt;Alice&lt;/li&gt;
+    &lt;li property="knows" href="https://example.edu/p/Alice#MSc"&gt;Alice&lt;/li&gt;
   &lt;/ul&gt;
-
 &lt;/div&gt;
-&lt;!-- WebID HTML snippet --&gt;
-&lt;/body&gt;
-&lt;/html&gt;
 </pre>
-<p>The <code>style="word-wrap: break-word; white-space: pre-wrap;"</code> attributes allow the number to be displayed on more than one line so that it will wrapped across lines and not just continue off to the right of the screen.</p>
 <p>If a WebID provider would rather prefer not to mark up his data in RDFa, but
 just provide a human readable format for users and have the RDF graph appear
 in a machine readable format such as RDF/XML then a link from