FW: NewsML 2 and RDF

The mail below describes a problem we're having with the Cwm RDF
Advice would be very much appreciated.


From: newsml-2@yahoogroups.com [mailto:newsml-2@yahoogroups.com] On
Behalf Of Jeremy Lebrett
Sent: 23 January 2006 16:17
To: newsml-2@yahoogroups.com
Subject: [newsml-2] NewsML 2 and RDF

I am currently developing an XSLT script to automate the creation of RDF
from NewsML 2 news stories. This involves converting the item and
content metadata elements into RDF statements in one form or another. I
am generating N3 notation and converting it to RDF/XML using the Cwm RDF
processor [1].

The problem I am currently grappling with is as follows:
The NewsML 2 namespace is defined as the URI
"urn:iptc:std:newsml:2.0:xmlns". The absence of a terminating delimiter
causes problems for tools such as Altova's SemanticWorks which simply
concatenates the URI and the local name to give URIs such as
"urn:iptc:std:newsml:2.0:xmlnsitemCreated". Adding a "#" does the trick
but this is invalid for a URN. A colon (":") would seem an acceptable
solution but Cwm has trouble processing that. What happens is that the
first letter of an element in the namespace is appended to the namespace
URI eg.

@prefix newsml2: <urn:iptc:std:newsml:2.0:xmlns:> .

  newsml2:itemCreated     "2005-12-06T01:59:21Z"  .


<rdf:RDF xmlns="urn:iptc:std:newsml:2.0:xmlns:i"
<http://www.w3.org/1999/02/22-rdf-syntax-ns> #">


I have raised this bug with one of Cwm developers and I'm awaiting a

I'll keep the list posted.


[1]  http://www.w3.org/2000/10/swap/doc/cwm.html

To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.

Received on Monday, 23 January 2006 18:21:01 UTC