W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > May 2006

IRI production from about/id and base

From: Benjamin Nowack <bnowack@appmosphere.com>
Date: Mon, 8 May 2006 22:37:58 +0200
To: public-rdf-in-xhtml-tf@w3.org
Message-ID: <PM-EH.20060508223758.43937.1.1D@192.168.27.2>


Hi,

Just a question/confirmation:

I was wondering which IRIs would be generated from the RDFa below:

URL of the page: http://example.org/mybase/sub/page
[[
<html ...>
  <head>
    <base href="http://example.org/mybase/" />
  </head>
  <body>
    <div id="res1">
      <span property="dc:creator">John Doe</span>
      created <a about="#john" rev="foaf:maker" href="sub/page/#res1">.
    </div>
  </body>
</html>
]]

Is it
[[
  <http://example.org/mybase/sub/page#res1> dc:creator "John Doe" .
  <http://example.org/mybase/sub/page#res1> foaf:maker
<http://example.org/mybase/sub/page#john>
]]
or 
[[
  <http://example.org/mybase/#res1> dc:creator "John Doe" .
  <http://example.org/mybase/sub/page#res1> foaf:maker
<http://example.org/mybase/#john>
]]

i.e. does the base defined in html affect the base of the IRIs
of the generated RDF? The "href" surely does, but I wasn't sure
about "id" and "about".

Many WCMSs/template-based publishing tools use a fixed <base
href /> to simplify inclusion of graphical elements, css and
js files etc.

This means that using id attributes in those pages may
generate overloaded IRIs if the RDFa is partly generated
automatically.

A related question would be, if there are both an id and an
about attribute on some element, does the about override the
id? This could basically solve the problem and would also
allow to use ids for css hooks, without the implied resource
identification.


Thanks,
Benjamin

--
Benjamin Nowack

Kruppstr. 100
45145 Essen, Germany
http://www.bnode.org/
Received on Monday, 8 May 2006 20:37:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:02 GMT