W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2000

Re: Update to XLink -> RDF mapping

From: Dan Connolly <connolly@w3.org>
Date: Tue, 27 Jun 2000 22:56:12 -0500
Message-ID: <3959775C.EE0F4F46@w3.org>
To: rdaniel@metacode.com
CC: www-rdf-interest@w3.org
> From: Ron Daniel (rdaniel@metacode.com)
> Date: Mon, Jun 26 2000
> Hi all,
> The XML Linking WG decided that they would not try to put
> the XLink to RDF mapping into the XLink spec as an
> appendix. Instead, it was decided that the mapping would
> be submitted as a NOTE.
> Here's a draft of the text (both in HTML and the XML
> source). It has been revised to be a NOTE. It
> has also been updated to deal with linkbases, and some
> of the material on extracting the structure of an
> extended link into a Bag has been removed.
> Any other member organizations who want to be in on
> the submission, let me know.
>    * text/html attachment: xlink2rdf1.html

an editorial nit: it says both

| The
| starting Resource of the simple link SHALL be mapped to the subject of
the RDF statement.


| The ending Resource of the simple link SHALL be mapped to the subject
of the RDF statement.

I presume you meant 'object' rather than 'subject' in the latter.

Anyway... I got about 1/10th of the way thru implementing it
as an XSLT transformation. I was able to convert your first

... In a <x:extRef xlink:type="simple"
   >recent paper</x:extRef>, Dr. Taylor assumes that ...


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  <oops-predicate rdf:about="#xpointer-for-N8"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />

  <rdf:type rdf:about="http://www.foo.com/papers/crops.txt"
  rdf:resource="http://links.org/namespace/screed" />

  <rdf:Class rdf:about="http://links.org/namespace/screed" />

As you can see, I ran into some trouble already:

	* how do I compute a namespace name and a local name from
	the predicate http://links.org/namespace/cite? I suppose
	l:cite xmlns:l='http://links.org/namespace/' would work,
	but I couln't figure out how to implement that with XSLT ;-)

	But I don't see a general purpose algorithm, especially
	since URIs need not end with XML name characters
	(e.g. http://example.org/foo/).

	This is a generic RDF problem, not a problem with this
	xlink->rdf mapping; i.e. it's an issue with serializing
	RDF models in the general case.

Anyway... it's pretty feeble at this point, but share and enjoy:

$Id: xlink2rdf.xsl,v 1.1 2000/06/28 03:43:31 connolly Exp $

see also: Makefile and examples.xml in:


Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Tuesday, 27 June 2000 23:54:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:24 UTC