<?xml version='1.0' encoding='iso-8859-1'?><?xml-stylesheet type='text/xsl' href='https://w3future.com/w3f/w3f.xsl' ?>
<html xmlns="http://www.w3.org/2002/06/xhtml2" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xf="http://www.w3.org/2002/xforms/cr" xml:lang="en" xml:base="https://w3future.com/weblog/2003/05/22.xml">
<head>
<title>Thursday, May 22, 2003 - Sjoerd Visscher's weblog</title>
<link rel="meta" type="application/rdf+xml" title="FOAF" href="https://w3future.com/people/sjoerd_visscher/foaf.rdf" />
</head>
<body>
<section id="content">
	<h>Sjoerd Visscher's weblog</h>
	<p>Pondering those web technologies that may change the future of the world wide web.</p>
	<section id="note">
		<h>Last Update</h>
		<p>10/16/2005; 1:27:34 AM</p>
		<p id="alternates" class="buttons">
			<l href="https://w3future.com/weblog/2003/05/22.xml?notransform" rel="alternate" type="application/xml" title="See this web page with XHTML 2.0 technology."><span>Try</span> XHTML 2.0</l>
			<l href="view-source:https://w3future.com/weblog/2003/05/22.xml?notransform" title="View the XHTML 2.0 source of this page."><span>Src</span> XHTML 2.0</l>
			<l href="https://w3future.com/tools/xr.pl?xr=https://w3future.com/xr/w3f.xml&amp;xml=https://w3future.com/weblog/2003/05/22.xml%3Fnotransform" rel="meta" type="application/rdf+xml" title="RDF metadata"><span>RDF</span> Metadata</l>
		</p>
		<xi:include href="https://w3future.com/w3f/buttons.xml" />
	</section><section>
  <h><a rel='prev' href='https://w3future.com/weblog/2003/05/21.xml#a201' title='Wednesday, May 21, 2003'>&lt;&#160;</a><a href="https://w3future.com/weblog/2003/05/22.xml">Thursday, May 22, 2003</a><a rel='next' href='https://w3future.com/weblog/2003/05/24.txt#a203' title='Saturday, May 24, 2003'>&#160;&gt;</a></h>
<a name="a231"></a>
<section id="a231">
<h id='rpvTimBraysThoughtExperiment'><a href="https://w3future.com/weblog/2003/05/22.xml#a231" class="weblogItemTitle">RPV, Tim Bray's thought experiment</a></h>
<p><a href="http://www.tbray.org/ongoing/When/200x/2003/05/21/RDFNet">Tim Bray</a> shows an example of his syntax for RDF. I'm not really convinced, and I find the short element and attribute names unappealing. The RDF/XML version he offers isn't very pretty either. But RDF/XML can be somewhat prettier: (I tried to follow the structure Tim used in his RPV example)</p>
<pre>&lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
         xmlns="http://www.example.com/terms/">

  &lt;rdfs:Resource rdf:ID="Dave">
    &lt;fullName>
      Dave Beckett
    &lt;/fullName>
    &lt;homePage>
      &lt;rdfs:Resource rdf:about="http://purl.org/net/dajobe/" />
    &lt;/homePage>
  &lt;/rdfs:Resource>

  &lt;rdfs:Resource rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
    &lt;title xmlns="http://purl.org/dc/elements/1.1/">
      RDF/XML Syntax Specification (Revised)
    &lt;/title>
    &lt;editor>
      &lt;rdfs:Resource rdf:about="#Dave" />
    &lt;/editor>
  &lt;/rdfs:Resource>

&lt;/rdf:RDF>
</pre>
<p>I think this is not that bad. It clearly shows the triples I think. (This is called <a href="http://www.w3.org/2001/10/stripes/">striping</a>.) The problem with RDF/XML is not the syntax, the problem is the whole idea of serializing semantics. It's not even a problem restricted to RDF. All content in the html head element of every page on my website can either be extracted from the page, or is the same across all pages. Semantics should be extracted from the available data. So here is the <a href="https://w3future.com/xr/"><acronym title="RDF Extraction from XML">XR</acronym></a> document to extract the above RDF data from <a href="http://www.w3.org/TR/rdf-syntax-grammar/">the webpage</a> it describes:</p>
<pre>&lt;xr:transform
  xmlns:xr="https://w3future.com/xr/ns/"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:h="http://www.w3.org/1999/xhtml"
  xmlns="http://www.example.com/terms/">

  &lt;xr:introducing>
    &lt;rdfs:Resource xr:uriSelect="$documentURI">
      &lt;dc:title xr:select="/h:html/h:head/h:title" />
      &lt;editor xr:select="//h:dt[.='Editor:']/following-sibling::h:dd[1]/h:a[1]">
        &lt;rdfs:Resource>
          &lt;fullName xr:select="." />
          &lt;homePage>
            &lt;rdfs:Resource xr:uriSelect="@href" />
          &lt;/homePage>
        &lt;/rdfs:Resource>
      &lt;/editor>
    &lt;/rdfs:Resource>
  &lt;/xr:introducing>

&lt;/xr:transform>
</pre>
<p>You can try this out on other W3C standards pages as well with the form at the bottom of <a href="https://w3future.com/xr/">the XR homepage</a>. <a href="https://w3future.com/xr/xrexample.xml">Here is the above XR document.</a></p>
</section>
</section>
<xi:include href='https://w3future.com/tools/rdf.php?about=https://w3future.com/weblog/2003/05/22.xml' /></section>
<section id="navigation"><xi:include href="https://w3future.com/w3f/sections.xml" /></section>
<section id="sidebar"><xi:include href="https://w3future.com/weblog/sidebars/weblog.opml" /></section>
</body>
</html>
