- From: Misha Wolf <Misha.Wolf@reuters.com>
- Date: Mon, 23 Jan 2006 18:21:09 +0000
- To: Semantic Web <semantic-web@w3.org>
- Message-id: <A29ADE959C70A1449470AA9A212F5D80FF6585@LONSMSXM06.emea.ime.reuters.com>
The mail below describes a problem we're having with the Cwm RDF processor. Advice would be very much appreciated. Misha ________________________________ 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:> . <urn:newsml:afp.com:20010101:AFP_TX_WASH_20051206_015921_NLV79> newsml2:itemCreated "2005-12-06T01:59:21Z" . becomes: <rdf:RDF xmlns="urn:iptc:std:newsml:2.0:xmlns:i" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns <http://www.w3.org/1999/02/22-rdf-syntax-ns> #"> <rdf:Description rdf:about="urn:newsml:afp.com:20010101:AFP_TX_WASH_20051206_015921_NLV79 "> <temCreated>2005-12-06T01:59:21Z</temCreated> </rdf:Description> </rdf:RDF> I have raised this bug with one of Cwm developers and I'm awaiting a response. I'll keep the list posted. Regards, Jeremy. [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